home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / PROGRAMS / WSTAR / WSUNDERL.TXT < prev    next >
Text File  |  2000-06-30  |  7KB  |  161 lines

  1.            Underlining in WordStar with a Dot Matrix Printer
  2.  
  3. Here's how to set WordStar up so that it will give you continuous
  4. underlining (rather than the broken dash kind) whenever you want it.  I
  5. shall use WordStar 3.3 as the example (the drill for version 3.0 is
  6. somewhat different).  What you have to do is pick out one of the Printer
  7. Codes for which you have no use and redefine it so that it will toggle
  8. continuous underlining on and off.  A suitable one is the ^PY that
  9. WordStar provides for changing your ribbon color, which you are unlikely
  10. to mind giving up.  And you can make the change, by running either
  11. WINSTALL or DDT.  I'll describe the former method, because most people
  12. probably have some acquaintance with it.  <CR> means: enter a Return.
  13.  
  14. As a safety precaution make a copy of your present WordStar file, and
  15. then work on that copy.  Then, if things go wrong, you still have your
  16. original WordStar file safe and sound.  A simple way to do that is to
  17. rename the file with:
  18.  
  19. A>ren oldws.com=ws.com  <CR>
  20. A>pip ws.com=oldws.com  <CR>
  21.  
  22. Now work exclusively with WS.COM.  Start by passing through the early
  23. screens of WINSTALL until you reach the Installation Menu, where you
  24. again choose between two methods of achieving your goal.  I shall
  25. describe the shorter and quicker one.
  26.  
  27. At the Installation Menu you are invited to select one of several
  28. letters.  Don't take any of them.  Instead do something that you are not
  29. told about at all - hit the "+" key.
  30.  
  31. 1. This will bring up a screen called "Custom Modification routine".
  32. Hit <CR>.
  33.  
  34. 2. You will be asked for a starting address.  Reply by entering the
  35. label:
  36.  
  37.         :RIBBON     [You must start with that colon]
  38.  
  39. 3. You will be told you are at address 6E3h.  ["h" is not part of the
  40. address; it indicates that the numerals, like all the numerals in this
  41. operation, are in hexadecimal notation.]  And below will be a row of 16
  42. numerals.  You will be asked if this is OK.  It is, so enter Y.
  43.  
  44. 4. The next screen may look terrifying, if you have not been in this
  45. sort of country before.  Not to worry.  Just follow these instructions
  46. blindly - but with your eyes wide open, to make sure that you enter
  47. things exactly as below.
  48.  
  49. Where the cursor is flashing enter:
  50.  
  51.         ,03   <CR>   [Put that comma in each time]
  52.         ,1B   <CR>
  53.         ,2D   <CR>
  54.         ,31   <CR>
  55.         .     <CR>   [No comma that time.  Just the period]
  56.  
  57. 5. Then enter <CR> to continue, and repeat the pattern of 2.- 4. above,
  58. but entering different values.  This time give as your starting address:
  59.  
  60.         :RIBOFF           [Don't forget that colon]
  61.  
  62. 6. You will be told you are at address 6E8h.  That is OK, so type Y.
  63.  
  64. 7. Now the values to be entered at the cursor are:
  65.  
  66.         ,03   <CR>
  67.         ,1B   <CR>
  68.         ,2D   <CR>
  69.         ,30   <CR>
  70.         .     <CR>
  71.  
  72. 8. Next type X to leave the Modification routine.
  73.  
  74.    Then type X again to leave the Installation Menu.
  75.    Then type A to save the changes you have made.
  76.  
  77. ** NOTE **  The hexadecimal values given in 4. and 7. above are those
  78. for Epson printers, for which the Underline Mode ON command is: <ESC>-1,
  79. and for OFF is: <ESC>-0.  If you have a printer with different ON and
  80. OFF commands, the hexadecimal values will have to be changed
  81. correspondingly.
  82.  
  83. The job is almost done, and you are now back at the A> or B>, or
  84. wherever you started.  From now on, when writing a file use ^PY in the
  85. way that you previously used ^PS, and in the printed version of what you
  86. have written the expressions that you marked will have continuous
  87. underlining below them.  At the same time, you can go on using ^PS just
  88. as you do now whenever you want to produce the broken dash kind of
  89. underlining.
  90.  
  91. There is just one more thing you have to remember when you are using
  92. this method of underlining.  Dot matrix printers are very literal
  93. creatures, and when they are in Underline Mode they underline
  94. everything, including spaces between words, and also the blank space in
  95. the left margin.  If you want "The Wind in the Willows" (the whole title
  96. continuously underlined), "^PYThe Wind in the Willows^PY" will give it
  97. to you.  If you want "The Wind in the Willows" (each word separately
  98. underlined), you will have to write it as "^PYThe^PY ^PYWind^PY ^PYin^PY
  99. ^PYthe^PY ^PYWillows^PY".
  100.  
  101. And if, when you are using the first way, the book title happens to run
  102. over from the end of one line on your screen to the beginning of the
  103. next, in the printed version the blank space in the left margin of that
  104. second line will get underlined too.  You can prevent that by putting in
  105. a closing ^PY at the end of the first line and a new opening ^PY at the
  106. beginning of the next.  But it is a nuisance to have to remember that on
  107. each occasion, and there is a cleaner way that I have been using for a
  108. long time, that I recommend.  It consists simply of telling WordStar
  109. that you are not going to have any left margin at all, and then secretly
  110. telling your printer to put it back again.
  111.  
  112. 1. You remove the margin from WordStar by reducing the Page Offset to
  113. zero with the dot command: .PO 0.  If it is worth your while, you could
  114. change your default Page Offset to that; and then you wouldn't have to
  115. think about it each time.
  116.  
  117. 2. To get the printer to put the margin back again you have to run a
  118. very short file in Basic before giving the command to print.  I call the
  119. file LMARG.BAS; and this is all it consists of:
  120.  
  121. 10 LPRINT CHR$(27)"l"CHR$(10)
  122. 20 SYSTEM
  123.  
  124. If you don't know what that means, it doesn't matter.  It tells the
  125. printer to put in a left margin of 10 characters.  And if you don't know
  126. how to write and save that to disk in Basic, get a friend who does know
  127. to do it for you.
  128.  
  129. Make sure that you have MBASIC.COM and LMARG.BAS on the same disk as
  130. your WordStar files.  Now, when you have finished writing your file in
  131. WordStar and are ready to print it, first turn on the printer and then
  132. from the Opening Menu choose:
  133.  
  134. "R Run a program" and enter: "mbasic lmarg  <CR>".  The Basic program
  135. will run, set the margin on the printer and return you to the Opening
  136. Screen where you give the command P and start printing as usual.
  137.  
  138. That may all sound very complicated.  But remember that you have to do
  139. it only once.  Thereafter, whenever you want to print anything and have
  140. the underlining (or some of it) continuous, all you have to do is: (i)
  141. to insert the .PO 0 command at the beginning of your file.
  142.  
  143.   (ii) to enclose the expressions to be continuously underlined within a
  144. ^PY . . . .^PY command.
  145.  
  146.   (iii) when you are ready to print, to give those final R and P
  147. commands.
  148.  
  149. If you are satisfied with the results, you can delete your old WordStar
  150. file (OLDWS.COM).  If you are not satisfied delete the one you have been
  151. playing around with (WS.COM), and rename OLDWS.COM as WS.COM.  You will
  152. have lost nothing but some time and trouble.
  153.  
  154. Postscript.  To any of you who are using one of those new-fangled MS-DOS
  155. Kaypros: the WINSTALL procedure for you is exactly the same as that I
  156. have described for the CP/M version, except that the starting addresses
  157. you will be given for RIBBON and RIBOFF are different (they are 793h and
  158. 798h).  All the steps you have to take are just as I have given them.
  159.  
  160. - Tony Woozley
  161.