home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / C128CPM / PIPMAG6.ARK / PRN-TIPS.ART < prev    next >
Encoding:
Text File  |  1990-07-25  |  12.7 KB  |  231 lines

  1.           SOME ARCANE, SELDOM-USED, BUT POSSIBLY USEFUL, PRINTING TIPS
  2.                                       for
  3.                              WHEN IN DOCUMENT MODE
  4.  
  5.                           by Tom McEnroe (T.MCENROE1)
  6.  
  7.         Here are a couple of items about getting stuff from the word 
  8.      processor onto the printed page that might help someone on just the 
  9.      right occasion.  They aren't really arcane (i.e., secret).  They're 
  10.      just so little used (because not all that necessary for most 
  11.      occasions) that they didn't occur to me for a long time.  But I'm very 
  12.      slow, so maybe these are what everyone already knows except me.
  13.  
  14.         The first item, on printing international characters, will work 
  15.      only in WordStar 4.  The second, on uses of the overstrike, will work 
  16.      not only in WordStar (any version), but also in VDE and ZDE, those 
  17.      dandy, free, public domain word processing programs.
  18.  
  19.  
  20.         I.  PRINTING FOREIGN LANGUAGE CHARACTERS WITHIN WORDSTAR 4
  21.  
  22.         Many dot matrix printers can also print some of the characters and 
  23.      symbols of languages other than American English in order to make the 
  24.      spelling "correct" for that language.  For instance, in French you 
  25.      need accent marks grave and acute over the letter e for correct 
  26.      spelling of some words, and include the cedilla under the c properly 
  27.      to spell "facade." Writing German requires the use of umlauts over a, 
  28.      o, and u.  Swedish and Norwegian use even more umlauts.  Accurate 
  29.      Spanish requires a tilde over the n in some words, accents marks over 
  30.      a, e, i, o, u, plus the "upside down" question mark to begin a 
  31.      sentence that is a question, and similarly the "upside down" ! mark to 
  32.      begin an exclamation.  And of course the British use a special symbol 
  33.      to designate the pound sterling.
  34.  
  35.         If your printer supports an international character set, you can 
  36.      print c with a cedilla, n with a tilde, o with an umlaut, the pound 
  37.      sterling symbol, and so on, even though none of these are on your 
  38.      keyboard just by hitting some other keys instead.
  39.  
  40.         Your printer manual will show you what is available.  It also 
  41.      advises you to set dip switches accordingly if you are going to use 
  42.      foreign characters or write a great deal in one of the printer's 
  43.      available international character sets.  The manual may even show you 
  44.      a tiny BASIC LPRINT routine for invoking any of its international 
  45.      character sets.
  46.  
  47.         But if you use this feature only once in a great while, it's 
  48.      probably easier to get what you want by using one of WordStar 4's 
  49.      custom print controls: ^PQ, ^PW, ^PE, and ^PR which are called up by 
  50.      their respective dot commands of .PQ, .PW, .PE, and .PR.
  51.  
  52.         (Custom print controls are explained on pp. 143-145 of the WordStar 
  53.      4 spiral-bound manual.  There they are presented as ways to change 
  54.      print width.  But this article shows how to do something else with 
  55.      them.)
  56.  
  57.         My printer, an Epson LQ-800, has the capability of producing many 
  58.      international characters; but changing the proper dip switches from 
  59.      USA characters to something else is a job I'd rather not practice 
  60.      often.  It's an eye-squinting, fiddly chore that I'm content to do 
  61.      once and then never again.
  62.  
  63.         Suppose that in writing about matters pertaining to Great Britain 
  64.      you need to use the English symbol for pound sterling.  If your 
  65.      printer has an "International Character Set" which includes the 
  66.      English pound sign, you too can print it in your document by using one 
  67.      of WordStar 4's custom print controls and without changing the 
  68.      printer's dip switches.
  69.  
  70.         For instance, the EPSON LQ-800 will print the pound sign with the 
  71.      keyboard's # sign.  But first you have to tell WordStar you want the 
  72.      UK character set.
  73.  
  74.         To do that, use one of the custom print controls dot commands, for 
  75.      instance, .XQ, plus the hex code for the UK character set shown in 
  76.      your printer's manual.  For my printer it is 1B 52 3.  Thus at the 
  77.      beginning of the document I type the dot command:
  78.  
  79.                                .XQ 1B 52 3 <RET>
  80.  
  81.      in the left margin beginning in column 1.  (Like all WS dot commands, 
  82.      this requires its own line so it can be inserted anywhere in the 
  83.      document preceding where you need the pound sign.  And the line does 
  84.      not produce an empty line in the print out.)  Thereafter, everything 
  85.      from your keyboard is still the same as in "American" EXCEPT when you 
  86.      want the sign for pound sterling.  Oddly (or fortunately) the UK 
  87.      character set doesn't substitute the dollar sign $ for the pound sign; 
  88.      so you can have both.  All you've "lost" is the # sign.
  89.  
  90.         To get the pound sterling sign, wherever you need it, type ^PQ#.  
  91.      ^PQ (CTRL-P Q) is the print control matching the trigger .XQ command 
  92.      (which we've defined as the UK set), and # (on your keyboard and on 
  93.      your monitor, too) will actually print on your paper as the sign for 
  94.      pound sterling.  You could set ^PQ# up as a WS macro if you want.
  95.  
  96.         Suppose that later on in your document you need to print the # sign 
  97.      "as is"? You just "turn off" the UK character set by reverting to the 
  98.      USA set which is .XQ 1B 52 0 (starting also in the left hand column, 
  99.      all its own one line; and that's a zero), so thereafter when your 
  100.      screen shows # that's what will print on the page.
  101.  
  102.         Obviously, you can do more than just get the English pound sign.
  103.  
  104.         Your printer's manual will show you the hex codes for all the 
  105.      available, different international character sets as well as the 
  106.      particular keyboard characters you must use to make the available 
  107.      foreign symbols and letters appear on the printed page.
  108.  
  109.         Nor are you restricted only to .XQ and ^PQ.  WordStar's three other 
  110.      custom print dot commands and print controls -- .XW with ^PW, .XE with 
  111.      ^PE, and .XR with ^PR -- are available too.
  112.  
  113.         I suppose that, theoretically, you could use all four in one 
  114.      gloriously polyglot document, but I think you'd run into confusion and 
  115.      troubles and don't recommend it
  116.  
  117.         The UK set is easy because, as said, the only difference between it 
  118.      and the USA set is that # substitutes for the pound sterling sign.  
  119.      Others, i.e., the German and Spanish are far more extensive in their 
  120.      substitutions and results.  For instance, the Latin American (Spanish) 
  121.      set substitutes ten of your keyboard symbols (e.g., @, [, \, ], ^, `, 
  122.      {, |, }, and ~) for, respectively, a with an accent, the upside-down 
  123.      exclamation point, N with a tilde, the upside down question mark, e 
  124.      with an accent, u with an umlaut, i with an accent, n with a tilde, 
  125.      and o and u each with an accent.  To use these you'll probably want a 
  126.      crib sheet until you've memorized the whole set.
  127.  
  128.         I suppose you could try to combine Spanish in one document with, 
  129.      say, German (using another pair of custom dot commands and print 
  130.      controls), but the two use many of the same keyboard symbols for 
  131.      entirely different results, so the effort to juggle them would surely 
  132.      tax even the most diligent and conscientious writer.
  133.  
  134.  
  135.         II.  RARELY USED (BUT MAYBE USEFUL) OCCASIONS FOR ^PH, WORDSTAR'S 
  136.      OVERPRINT COMMAND
  137.  
  138.  
  139.         a) WHEN AN "O" BECOMES A ZERO
  140.  
  141.         If you paid close attention (though I don't know why you should 
  142.      have) to one of the directions above, you'll note that I wrote ".XQ 1B 
  143.      52 0" and then added the words "and that's a zero" referring to the 
  144.      final number of the hex code.  On the monitor's screen 0 is obviously 
  145.      a zero, so my statement "that's a zero" seems redundant.  But suppose 
  146.      you printed out this article. If you're me, you've set your printer's 
  147.      dip switch to make zeros print without the slash through them because 
  148.      most of the time, I think, a slashed zero looks out of place (too 
  149.      computerish?) in a document, while printed unslashed zeros are easily 
  150.      discerned as zeros and not O's.  (You don't need them when you're 
  151.      printing out "It's costing Henry $22,000 a year to send Susan to 
  152.      M.I.T.")
  153.  
  154.         Occasionally though, as with the hex code, you do need to have your 
  155.      hard copy make absolutely clear that a 0 is really a zero and not an 
  156.      O.  Here's where the ^PH overstrike command can come in.
  157.  
  158.         Just type 0^PH/ (CTRL-P H/).  (On your monitor the P does not 
  159.      appear.) ^PH has the effect of a backspace and thus will put the / 
  160.      inside the 0 on your print out making it plain that it's a zero not an 
  161.      O.
  162.  
  163.         It would be nice if you could type 00^PH/,^PH/ (or more) to get two 
  164.      (or more) zeros with slashes; but that won't work.  Only the final 
  165.      zero would have a slash in it.  So you have to enter each separately 
  166.      as in 0^PH/0^PH/0^PH/.
  167.  
  168.         If you have to do very much of this (0^PH/) you'll wonder if this 
  169.      is the original kludgy word processing fix for pretty soon your screen 
  170.      will look a mess, the columns all awry, and you will want to reset the 
  171.      printer's dip switches to achieve zero with a slash on the paper; but 
  172.      for very occasional use, 0^PH/ is a serviceable alternative.
  173.  
  174.  
  175.         b) GETTING THE CENTS SIGN
  176.  
  177.         I don't know of any regular computer keyboard that includes the 
  178.      sign for cent (as in "1-cent Sale").  My ancient Royal portable 
  179.      (mechanical, sigh) typewriter had it, up somewhere on the top row of 
  180.      keys, combined with 1/2, if I remember.  Maybe some printers include 
  181.      it in their fonts, but I don't know how you'd get it onto the printed 
  182.      page.  After all, there aren't many times you need it.  But if you do, 
  183.      c with a backslash in it looks perfectly good on paper as the cent 
  184.      sign.  Just type c^PH/, and you've got it.
  185.  
  186.  
  187.         c) SAVING THE DOTTED LINE
  188.  
  189.         As everyone knows WordStar will not print anything on a line which 
  190.      begins at column 1 with a dot (period) because WS uses dot commands in 
  191.      that column for all kinds of mailmerging, printing and formatting 
  192.      purposes.  (VDE and ZDE also ignore every line with a dot in column 1, 
  193.      to make them WS compatible, even though they don't use dot commands.) 
  194.      This rarely creates any problems because, after all, who is apt to 
  195.      start a line with a period? Even James Joyce didn't do that.
  196.  
  197.         However, there are rare occasions when, willy, nilly, your document 
  198.      may find itself with a row in which the first column and perhaps three 
  199.      or four after it, do start with a dot.  I'm speaking specifically of 
  200.      ellipses, that series of three or four periods (dots) that you insert 
  201.      to show an omission.  For instance: "In the beginning ....  Let there 
  202.      be light: ..."
  203.  
  204.         When you first type in those ellipses the periods may well be 
  205.      somewhere other than column 1 and so present no problem in printing, 
  206.      but after a while what with the inevitable reformatting of paragraphs 
  207.      in which you've added or deleted words or phrases, there may come a 
  208.      time when that little row of three or four dots do start in column 1, 
  209.      but you're so used to seeing them as ellipses and not as "dots" that 
  210.      you forget what will happen to that line when your print out your 
  211.      document.  But WordStar doesn't forget; it blindly sees a line 
  212.      commencing with just a dot and so omits the whole line, dots and all 
  213.      text, and jumps to the next line.
  214.  
  215.         So how can you guarantee that if your line does start with a period 
  216.      (dot) it won't be trashed in printing if that isn't what you want?
  217.  
  218.         Just insert the overstrike print command, ^PH at the beginning of 
  219.      any row of dots that you do want to print out.  It looks like this on 
  220.      screen: ^H....  WordStar "sees" the overstrike command first, even 
  221.      though there's nothing to overstrike, so goes ahead and prints what 
  222.      follows, the first dot appearing in column 1, just where it should be.
  223.  
  224.         If you remember to do this every time you want one or more periods 
  225.      that may fall into the beginning of a line to print out, do it -- even 
  226.      when your ellipses are not at the moment starting in column 1.  You 
  227.      won't be disappointed later on should the ellipses have been 
  228.      reformatted to begin in the first column.  The ellipses and the 
  229.      remainder of the sentence will in fact appear on the printed page.  
  230.      You've fooled WordStar, and isn't that nice to be able to do?
  231.