home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 01e / lq_235.zip / DOC.ARC / LQPCWRIT.DOC < prev    next >
Text File  |  1989-09-06  |  13KB  |  275 lines

  1.           Using LQ's proportional spacing with PC-Write.
  2.  
  3.      PC-Write is a superb Shareware word processor which can fully
  4. exploit LQ's features.  In particular, PC-Write (version 2.6 and
  5. later) lets you communicate the size of LQ characters in any font
  6. or mode so that proportional spacing works in conjunction with
  7. justification.  For example LQ's HELV font is narrower than
  8. COURIER so more characters can be put into a given space.  PC-
  9. Write also supports micro-justification so that white space is
  10. evenly distributed across a line when fill-justification is used
  11. (even when fonts and modes are mixed in the line).  To see how
  12. nice the result can look, run LQDEMO (which prints a text file
  13. edited with PC-Write).
  14.  
  15.      PC-Write is available from Quicksoft, 219 First N. #224,
  16. Seattle, WA 98109, (206) 282-0452 and from many PC bulletin boards
  17. and disk distribution centers.  Versions 2.70 and 3.0 work fine 
  18. with LQ, but you may run into a slight problem with 2.71.  The 
  19. print program in this version (PR.EXE) handles margins differently 
  20. and fill-justified, micro-justified lines with leading spaces 
  21. (past the normal left margin) may not print right.  One solution 
  22. is to use PR.EXE 2.70 with ED.EXE 2.71; Granny's will provide the 
  23. older program for $2 if you wish to take this route.  A better 
  24. solution is to obtain the most recent version of PC-Write directly 
  25. from Quicksoft. 
  26.  
  27.      You can use the LQ/PC-Write/proportional spacing combination
  28. at a couple of different levels.  If you are content with LQ's
  29. default fonts (COURIER, COURITAL, HELV, PALATINO) then simply
  30. use the PR.DEF file from the LQ disk as described below.  If you
  31. want to load other fonts you will need to create new width tables
  32. to be included in your PR.DEF file and you'll have to get a little
  33. more involved.  In either case a little experimentation will be
  34. well worth the time - after a one-time modification of your PC-
  35. Write environment you can obtain really polished printouts with no
  36. extra effort from then on.
  37.  
  38.  
  39. The PR.DEF file.
  40.  
  41.      PC-Write's print program expects to find information on font 
  42. control commands and various printing parameters in a file called 
  43. PR.DEF.  If you use PC-Write then you already have such a file; it 
  44. may have been created automatically as part of PC-Write's 
  45. installation procedure, or you may have created (or modified) this 
  46. file yourself.  The LQ disk includes a PC-Write print control file 
  47. called PR.LQ - by copying this to the right place under the name 
  48. PR.DEF you can make convenient use of LQ's features.  You will 
  49. want to keep your original PR.DEF file for draft printing; how you 
  50. organize your files for LQ or draft printing depends on whether 
  51. you use a hard disk or floppy disk system. 
  52.  
  53.      Floppy disk users should simply make a new work disk for LQ 
  54. printing.  If you already have a work disk just use DISKCOPY to 
  55. make a duplicate; otherwise run the WORKDISK program on the PC-
  56. Write disk to create one.  Copy PR.LQ from the LQ disk to your new 
  57. work disk under the name PR.DEF; e.g., 
  58.   COPY A:PR.LQ B:PR.DEF
  59. The last modification is to edit the ED.DEF file to include the
  60. line
  61.  
  62.   !PR.DEF
  63. (which communicates the information in the new PR.DEF to ED.EXE).
  64. Your work disk is now ready to go - you can use it as described
  65. below to edit and print files with LQ.
  66.  
  67.      Hard disk users should use separate subdirectories for LQ and
  68. draft documents.  Let's assume for example that you have a
  69. directory \PW and a subdirectory \PW\LQ.  The PC-Write program
  70. files (ED.EXE, PR.EXE, ED.DEF, etc.) and all draft documents are
  71. under PW, while the documents to be printed with LQ are under
  72. PW\LQ.  (Note: there is no PR.EXE in version 3.0; this reference 
  73. pertains only to older versions.)  Keep your old PR.DEF under PW 
  74. and copy PR.LQ from the LQ disk to PW\LQ under the name PR.DEF.  
  75. Put the line 
  76.   !PR.DEF
  77. in the ED.DEF file.  (You don't need a separate ED.DEF file under
  78. PW\LQ.)  The last change is to put the PC-Write directory in your
  79. your DOS path so that ED.EXE and PR.EXE can be executed from any
  80. subdirectory.  For example if the line
  81.   PATH \;\UTIL;\DOS;\PW;\TB;\NT;
  82. is included in AUTOEXEC.BAT, then DOS will search first the
  83. current directory, then the root directory, then \UTIL, then \DOS,
  84. then \PW and so on when looking for programs to execute.  To edit
  85. draft or LQ documents, change your working directory to \PW or
  86. \PW\LQ, respectively.
  87.  
  88.      If you prefer to keep all your documents separate from
  89. programs on your hard disk you can follow the above approach with
  90. the directory structure
  91.                              PW
  92.                             /  \
  93.                           LQ   DRAFT
  94. The DRAFT subdirectory should contain the original PR.DEF.
  95.  
  96.  
  97. Width tables in the print control file.
  98.  
  99.      Consider the following line from the PR.LQ file:
  100. #F=28@A120i+27,27,49,27,27,80 (font 1, proportional spacing)
  101. The 'F' indicates that the command <Alt F> (or <Alt G>.R:F as a
  102. separate line) will be used to turn on the font described by this
  103. line, and the '28' indicates which figure will show up on your
  104. screen when you start this font.  The '@A120i' says to ED.EXE and
  105. PR.EXE that table A in the print control file gives a list of
  106. character widths in multiples of 1/120".  Finally,
  107. +27,27,49,27,27,80 causes a control sequence (<Esc> <Esc> '1'
  108. <Esc> <Esc> 'P') to be sent to LQ when the font is turned on.
  109.        
  110.      The '@A' prefix tells PC-Write to use the following table
  111. which precedes the line in the print control file:
  112. @A: 32=10,33=5,34=9,35=14,36=13,37=14,38=14,39=5,40=8,41=8
  113. @A: 42=13,43=13,44=6,45=12,46=6,47=14,48=11,49=9,50=12,51=12
  114. @A: etc
  115. The table simply says that this font (LQ's default font number 1,
  116. COURIER) has a space character (ASCII code 32) which is 10 units
  117. wide, an '!' character which is 5 units wide, etc.  PC-Write can
  118. now use this information to figure out how many characters will
  119. fit in a line of text.
  120.  
  121.      There are width tables included in PR.LQ for six fonts.
  122. Following is a list of these fonts and the associated font control
  123. commands:
  124.  
  125.     <Alt F>  LQ font number 1, COURIER
  126.     <Alt I>  Font 2, COURITAL
  127.     <Alt P>  Font 3, HELV
  128.     <Alt Q>  Font 4, PALATINO
  129.     <Alt E>  COURIER bold
  130.     <Alt D>  COURIER double width
  131.  
  132. (Any of these fonts can be made the default by using a '.R:' line
  133. preceded by <Alt G>.)  Here are additional font control commands
  134. from PR.LQ which don't use width tables:
  135.  
  136.     <Alt B>  Bold, even spacing
  137.     <Alt H>  Superscript
  138.     <Alt L>  Subscript
  139.     <Alt C>  Font 1, even spacing
  140.     <Alt J>  Font 2, even spacing
  141.     <Alt O>  Font 3, even spacing
  142.     <Alt V>  Font 4, even spacing
  143.     <Alt U>  Underline
  144.     <Alt W>  Double-width, even spacing
  145.  
  146. These are somewhat arbitrary assignments; to change them, read
  147. 'Customizing Font Control Lines' in the PC-Write User's Guide.
  148. There is an '.R:F' line in the PR.LQ file which establishes font 1
  149. (COURIER) with proportional spacing as the default.  Change this
  150. to suit your taste; for example, change it to .R:C to make font 1,
  151. even spacing the default.
  152.  
  153.      There is a limitation when changing fonts: variable-width
  154. and even-spaced fonts may not be mixed on the same line.  If you
  155. want to switch to an even-space font, do so at the start of a new
  156. line.
  157.  
  158.      You may want to stop reading these instructions here.  You
  159. should at least give PC-Write a try with the PR.LQ file provided
  160. to see if it suits your needs.  If you want to develop more exotic
  161. special effects later on, read the following information.
  162.        
  163.  
  164. Adding or changing width tables.
  165.  
  166.      What if you want to use a font or mode for which a width
  167. table is not included?  A new option has been added to the EDCHAR
  168. program (the character editor included on the LQ disk):  pressing
  169. 'T' will bring up a window for creating a PC-Write width table for
  170. the font which is currently loaded.  A width table can be created
  171. for the font itself, or for the font in emphasized or double-width
  172. mode.  Suppose you have installed (or plan to load) a new font
  173. MYFONT.SET as LQ's third character set.  Here is a how your
  174. session might go: First run EDCHAR and load MYFONT as the primary
  175. character set.  Press 'T' to activate the width-table window; you
  176. will see the following:
  177.     PC-Write proportional spacing table.
  178.     Write to what file?
  179. Since the width table you generate will be merged with an existing
  180. PR.DEF file later on, use a temporary file for the table.  Let's
  181. suppose you type the file name TEMP.  Next you are prompted to
  182. enter a table identifier from A to Z; this letter will be
  183. referenced within the PC-Write print control file to link a font
  184. control command to a width table.  The identifiers A - F are used
  185. in PR.LQ to be associated with the font control commands F,I,P,Q,
  186. E, and D, described above.  Since you are replacing the third font
  187. with a new one you should stick with the 'C' identifier.  Finally,
  188. you are asked
  189.     Widths for which mode:
  190.     1. Normal
  191.     2. Bold
  192.     3. Double-wide
  193.     Which? (1-3)
  194. Assuming that you want a width table for MYFONT as-is, select
  195. option 1.  The width table is written as standard text to the file
  196. TEMP.
  197.  
  198.      The next step is to edit PR.LQ.  Delete the existing table C
  199. which starts as follows:
  200.   (HELV)
  201.   @C: 32=10,33=5,34=8,35=13,36=11,37=14,38=13,39=5,40=6,41=6
  202.   @C: 42=12,43=11,44=6,45=9,46=5,47=9,48=11,49=7,50=11,51=11
  203.   @C: 52=12,...
  204. Then insert the new table saved under TEMP by using PC-Write's
  205. <Ctrl F3> function and save the modified PR.LQ file.  That's all
  206. there is to it!
  207.  
  208.  
  209. Microjustification.
  210.  
  211.      Normally if you embed a ruler line in your document with a
  212. 'J' at the right margin, PC-Write fill-justifies the text by
  213. inserting spaces between words until the right margins line up.
  214. 'Microjustification' describes the process of inserting fractions
  215.        of spaces so that the gaps are evenly distributed across the line;
  216. the result looks much better.  PC-Write supports micro-
  217. justification if '$H' lines are included in the print control file
  218. to tell it how to insert these fractions.  The following lines are
  219. included in the PR.LQ file:
  220.     $H120i=1 (LQ microjustification codes)
  221.     $H60i=2
  222.     $H30i=3
  223.     $H15i=4
  224.     $H12960u=5
  225.     $H25920u=6
  226. For example the first line tells PC-Write that if it sends the
  227. ASCII code 01 to LQ, the printhead will be advanced by 1/120".
  228. The codes 2 - 6 are also interpreted as fractional advances
  229. (multiples 2,4,8,16,32 of 1/120").
  230.  
  231. Important note:
  232. LQ normally filters out otherwise unrecognized ASCII codes such as
  233. 1 - 6.  You can tell LQ to recognize fractional advances in one of
  234. two ways:
  235. When you load LQ, add 'MJ' (which stands for mode justify) to the
  236. command tail; e.g., LQ F'TEMP' MJ, or
  237. send the control sequence <Esc> <Esc> 'J' in your document.
  238. If you use the PR.LQ file you won't have to worry about this because
  239. the line '.S:6' instructs PC-Write to start a document by sending
  240. the line space control sequence given by
  241.     $S06= 27,27,83,36,27,27,74
  242. (which PC-Write uses to set 6 lines/inch).  This results in
  243. following sequence being sent:
  244.   <Esc> <Esc> 'S' 36 (LQ's command for setting 36/216" per line,
  245.   <Esc> <Esc> 'J' (microjustification)
  246.  
  247.  
  248. Boxing with PC-Write version 3.
  249.  
  250.      The latest version of PC-Write has a variety of options for 
  251. manipulating text in boxes.  One of these options is to put a 
  252. graphics border around a box.  To get the graphics box you want 
  253. you will have to do two things: 
  254.  
  255. 1. When you load LQ, use IBM1.SET and IBM2.SET as character sets 3 
  256.    and 4; e.g. LQ C3'IBM1' C4'IBM2',
  257. 2. Change the line spacing to 1/9" before the box and back to 1/6"
  258.    afterwards.  You do this by putting <Alt G>.S:9 on a line by 
  259.    itself before the box and <Alt G>.S:6 after the box.  
  260.  
  261. Note that since line spacing is smaller in the box double spacing 
  262. is probably in order.  Also, you probably won't get the desired 
  263. results with proportional spacing - try running MENUPRT in PC-
  264. Write and selecting an Epson MX-80 with Graftrax type III to 
  265. generate the right PR.DEF file for LQ.  
  266.  
  267. BUG FIX: Through PC-Write version 3.02 there is a bug affecting 
  268. proportional spacing in header lines.  In the width table for a 
  269. font there needs to be an entry for ASCII code 250, even though 
  270. this code is never used.  In the PR.LQ file we have added 250=5 at 
  271. the end of each width table, but if you use EDCHAR to make new 
  272. width tables you will have to add this entry yourself.  A quick 
  273. look at PR.LQ will make the proper position for these entries 
  274. clear.  (The bug should be fixed in PC-Write 3.03.)
  275.