home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 01e / lq_235.zip / DOC.ARC / LETHEAD.DOC < prev    next >
Text File  |  1988-06-14  |  10KB  |  282 lines

  1.                               LETHEAD
  2.                 A letterhead-editor to accompany LQ
  3.  
  4.                       (c) 1987 by Mark Harris
  5.                        All rights reserved.
  6.  
  7.  
  8.      LETHEAD is a graphics editor which works in conjunction with
  9. LQ to produce high-resolution letterheads consisting of 1" x 1"
  10. pictures and up to four lines of accompanying text.  Each picture
  11. (23040 dot positions) is stored in the format of an LQ character
  12. set, although the picture segments don't look like characters.
  13. LETHEAD lets you
  14.   edit a picture
  15.   save a picture
  16.   load a picture
  17.   create a data file to be printed with the picture serving as one
  18.     of LQ's character sets (the letterhead).
  19. The final product can be printed with a one-line batch file.
  20.  
  21.      For example, suppose that you have edited a picture which has
  22. been saved as MYPIC.SET (LETHEAD adds the suffix) and you have
  23. created a datafile saved as MYDATA.  (The data file consists of
  24. character codes for the picture and for the accompanying text.)
  25. The picture is assumed to take the place of LQ's second character
  26. set, so the command
  27.   LQ F'MYDATA' C2'MYPIC'
  28. will print the letterhead.  Better still, if this line is saved as
  29. a text file under the name LETTER.BAT then you can produce the
  30. letterhead simply by typing LETTER at the DOS prompt.  The
  31. letterhead will look something like this:
  32.  
  33. XXXXXXXXXXXX    Granny's Old-Fashioned Software
  34. XXXXXXXXXXXX
  35. XXXXXXXXXXXX             Rt 4, Box 216
  36. XXXXXXXXXXXX
  37. XXXXXXXXXXXX           Boone, NC  28607
  38. XXXXXXXXXXXX
  39. XXXXXXXXXXXX            (704) 264-6906
  40. XXXXXXXXXXXX
  41.  
  42. where the X's on the left show the position of the picture.  The
  43. text on the right can be printed in up to three LQ fonts, one per
  44. line.  (If you're willing to edit the final data file yourself you
  45. can mix fonts within each line.)
  46.  
  47.      LETHEAD requires a graphics card with IBM Color Graphics
  48. Adapter emulation, although a color monitor is not necessary.
  49. If you don't have this equipment it may be worth a trip to a
  50. friend's computer to edit a letterhead since the resulting
  51. letterhead file can be used on your own non-CGA equipment.
  52.  
  53.  
  54.        Using LETHEAD.
  55.  
  56.      After you enter LETHEAD at the DOS prompt you will see the
  57. following menu:
  58.  
  59.        1. Edit picture.
  60.        2. Clear picture.
  61.        3. Load picture.
  62.        4. Save picture.
  63.        5. Create letterhead.
  64.        6. Directory = A:\
  65.        7. Exit.
  66.  
  67.        Your choice? (1 - 7)
  68.  
  69. Following is a description of each option.
  70.  
  71. 1. Edit picture.
  72.      This is the option you will always take to edit a picture
  73. whether you are loading an old one or starting a new one.  You
  74. will be shown the graphics screen with a summary of editing
  75. options.  For a detailed description see 'Editing pictures' below.
  76. Option 1 is selected by pressing either '1' or <Enter>.
  77.  
  78. 2. Clear picture.
  79.      If you have thoroughly garbled the screen and want to begin
  80. afresh, select this option.  If have not loaded a picture and you
  81. choose option 1, the graphics screen is cleared automatically.
  82.  
  83. 3. Load picture.
  84.      As far as LETHEAD is concerned a picture is any file with the
  85. suffix 'SET'.  If the files PIC1.SET, PIC2.SET and COURIER.SET are
  86. in the current directory then you will be shown the listing
  87.   PIC1     PIC2     COURIER,
  88. then asked for the file you wish to load.  Since COURIER is a
  89. regular LQ character set you will not want to treat it as a
  90. picture (although it wouldn't do any harm as long as you didn't
  91. make and save changes).  When entering the file name you do not
  92. need to include the 'SET' suffix.  It will take LETHEAD a few
  93. seconds to convert the picture from character set format to the
  94. screen representation which you will edit.
  95.  
  96. 4. Save picture.
  97.      As with 'Load picture', you are first shown a listing of all
  98. files which have the suffix 'SET'.  If you enter the name of a
  99. file which already exists, the old file will be overwritten with
  100. no warning.
  101.  
  102. 5. Create letterhead.
  103.      This option is used to create the data file which LQ prints
  104. to make a letterhead.  Included in the file are LQ control
  105. sequences which switch between the picture font and the other
  106. fonts used for your name, address, etc.  You will be prompted to
  107.        enter from one to four lines of text, then you will be given the
  108. option of printing these lines in any mix of fonts 1, 3 and 4.
  109. Suppose you enter the two lines
  110.   Fred Jones
  111.   President of the Universe
  112. and specify font number 4 for the first name and font number 3 for
  113. the second.  If the name UNIVERSE is used for the resulting data
  114. file then you can later enter
  115.   LQ F'UNIVERSE' C2'PIC1'
  116. to create a letterhead with the given text alongside the picture
  117. PIC1; the default fonts 3 and 4 will used for the text.  To load a
  118. different font for (say) 'Fred Jones', the command
  119.   LQ F'UNIVERSE' C2'PIC1' C4'DIFFONT'
  120. could be used, assuming that DIFFONT.SET is an LQ character set.
  121. The same letterhead file can be used with more than one picture;
  122. for example
  123.   LQ F'UNIVERSE' C2'PIC2'
  124. will use a different picture with the same text.
  125.  
  126.      To create a batch file LETTER.BAT which will automate the
  127. letterhead printing, enter the following text:
  128. COPY CON LETTER.BAT
  129. LQ F'UNIVERSE' C2'PIC1' <CTRL Z> <ENTER>
  130. Then simply type LETTER to print the letterhead.
  131.  
  132. 6. Directory =
  133.      Option 6 lets you change the default directory used for
  134. loading and saving files.  When prompted, enter a path such as
  135. A:\MYDIR, or
  136. C:\DIR1\DIR2
  137. The drive prefix may be omitted if the default drive is to be
  138. used.
  139.  
  140. 7. Exit.
  141.      Press '7' or <Esc> to exit LETHEAD.  As a safeguard you will
  142. be prompted to indicate whether you really mean it.
  143.  
  144.  
  145. Text entry.
  146.  
  147.      Any time you are prompted to enter text (file names or
  148. letterhead lines) you have certain editing functions at your
  149. disposal.  The right- and left-arrow, home, end, backspace,
  150. delete and insert keys work as you would expect them to.  The
  151. <Esc> key aborts the text entry.  The F3 or <Ctrl R> keys restore
  152. the line to its original appearance.  The <Enter> key accepts the
  153. displayed text, regardless of the position of the cursor.
  154.  
  155.  
  156. Editing pictures.
  157.  
  158.      When you select the 'Edit picture' option you are shown a
  159. large square in which your picture will be created, with a
  160.        graphics cursor marking the position of the next entry.  At the
  161. right of the screen the following summary of options is displayed:
  162.  
  163. Options:
  164.  
  165. A)rc     C)ircle
  166. D)raw    E)llipse
  167. F)ill    L)ine
  168. R)ect    U)ndo
  169.  
  170. F2  = Copy
  171. Del = Cut
  172. Ins = Paste
  173.  
  174. P)en color = white
  175. S)tyle = 3x3
  176.  
  177. Cursor keys to move
  178.  
  179. Shifted cursor
  180. moves faster
  181.  
  182. <Enter> accepts
  183. change or toggles
  184. point
  185.  
  186. <Esc> = main menu
  187.  
  188. Following is a more detailed description:
  189.  
  190. Cursor movement.
  191.      The arrow keys move the cursor one dot in the appropriate
  192. direction.  Pressing either shift key along with an arrow key
  193. moves the cursor 10 dots.  The Home and End keys move to the far
  194. left or right of the screen, and the PgUp and PgDn keys move to
  195. the top and bottom.
  196.  
  197. Arc.
  198.      Drawing an arc is a three-stage process.  Position the cursor
  199. at one end of the arc and press 'A', then move to the other end
  200. and press <Enter>.  Now as you move the cursor you will control
  201. the arc which connects the two endpoints; when the arc looks right
  202. press <Enter> to accept.
  203.  
  204. Circle.
  205.      Pressing 'C' fixes the center of a circle and subsequent
  206. cursor moves change the radius.  When the radius is correct press
  207. <Enter>.
  208.  
  209. Draw.
  210.      Pressing 'D' initiates the drawing mode.  The cursor keys are
  211. then used to draw in the current pen color (black or white) and
  212. pen style (a square of dimensions 1x1, 2x2 or 3x3).  Extended
  213.        cursor moves (shifted arrow, Home, End, PgUp, PgDn) move the
  214. cursor but terminate drawing mode.  <Enter> also ends drawing
  215. mode.
  216.  
  217. Ellipse.
  218.   The cursor marks the endpoint of an axis of an ellipse.  Press
  219. <Enter> after the other endpoint is positioned correctly to fix
  220. this axis.  The length of the other axis (perpendicular to the
  221. first) is now determined by the distance of the cursor from the
  222. first segment; press <Enter> when this is appropriate.
  223.  
  224. Fill.
  225.      Pressing 'F' fills a region with the color white.  The region
  226. must be completely bounded by a white border or the coloring will
  227. 'spill' into the entire screen.
  228.  
  229. Line.
  230.      Pressing 'L' marks one endpoint of a line, then after cursor
  231. moves <Enter> is used to mark the other endpoint and draw a line
  232. connecting these points.
  233.  
  234. Undo.
  235.      Pressing 'U' cancels the effect of the last operation.  For
  236. example, if you F)ill a larger area than you intended you can
  237. U)ndo the damage and try again.
  238.  
  239. Rectangle.
  240.      Pressing 'R' marks one corner of rectangle, then after cursor
  241. moves <Enter> is used to mark the diagonally opposite corner and
  242. draw the rectangle which is thus determined.
  243.  
  244. F2.
  245.      Pressing F2 begins a block copy operation.  As with
  246. R)ectangle a block is marked with <Enter>.  The cursor is then
  247. used to move a copy of this block and <Enter> fixes the copy.  As
  248. a side effect a copy of the block remains on the 'clipboard' for
  249. subsequent paste operations.
  250.  
  251. Del.
  252.      'Del' is used to cut a block from the picture.  The block is
  253. marked as with the copy operation and the marked region is removed
  254. from the screen.  A copy of the region is retained on the
  255. clipboard and can be pasted back to the screen.
  256.  
  257. Ins.
  258.      'Ins' shows the block from the clipboard at the cursor
  259. position.  The block can be moved with cursor operations and is
  260. fixed on the screen when <Enter> is pressed.
  261.  
  262.        Pen color.
  263.      There are only two pen colors - white (default) and black.
  264. Pressing 'P' toggles between these values.  Note: the image is
  265. reversed when printed, so the originally black screen corresponds
  266. to a white sheet of paper.
  267.  
  268. Pen style.
  269.      The Draw operation places a shape at each cursor position.
  270. This shape is a block of dimensions 1x1, 2x2 or 3x3.  Pressing 'S'
  271. (for style) cycles through these three values.
  272.  
  273. <Enter>.
  274.      Pressing <Enter> generally ends a given operation.  In the
  275. default cursor-movement mode, <Enter> toggles the color of the dot
  276. under the cursor.
  277.  
  278. <Esc>.
  279.      Pressing <Esc> returns you to the main menu, from which you
  280. can load and save files or exit the program.
  281.  
  282.