home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / sprint / drawln01.zip / DRAWLN01.DOC < prev    next >
Text File  |  1993-03-12  |  6KB  |  144 lines

  1. @printer(default)
  2. @Style(TopMargin 1 inch, BottomMargin 1 inch)
  3. @Style(LeftMargin 1 inch, RightMargin 1 inch)
  4. @Style(Spread 1 line, notct, font Courier, size 10 points, fill no)
  5. @=From the desk of
  6. @=@big{NORMAN SWARTZ}
  7.  
  8. @>March 10, 1993
  9.  
  10. Topic         How to configure the Sprint word-processor (copyright by
  11.               Borland) to print the IBM line-drawing characters (ASCII 176
  12.               - 223) on a PostScript printer.
  13.  
  14. Disclaimer    All the standard disclaimers apply.  In no event will the
  15.               author or Simon Fraser University be liable for any damages,
  16.               including lost data, lost profits, lost savings or other
  17.               incidental or consequential damages arising out of the use of
  18.               the instructions and materials contained in this document.
  19.  
  20. Files needed  DRAWLN01.DOC  .  .  .  .  .  .  .  .  .  .  .(this very file)
  21.               FONTS.PS   .  .  .  .  .  .  .  . (accompanying DRAWLN01.DOC)
  22.               DRAWLINE.TST  .  .  .  (test file, accompanying DRAWLN01.DOC)
  23.  
  24. Note          The file FONTS.PS was obtained from the archived file
  25.               FONTS.ZOO residing in the subdirectory /mirrors/
  26.               garbo.uwasa.fi/printer at wuarchive.wustl.edu.  To de-archive
  27.               FONTS.ZOO, I used the file ZOO210.EXE, obtained from the same
  28.               site, in the subdirectory /mirrors/garbo.uwasa.fi/arcers.
  29.               The PostScript code in FONTS.PS was produced by Tim Clark,
  30.               Computing Services, University of Warwick UK:
  31.               T.Clark@@warwick.ac.uk
  32.  
  33. None of the fonts resident in a PostScript printer includes the IBM
  34. line-drawing characters.  Thus, while it is easy to construct a diagram or
  35. figure on-screen using these characters (Sprint even provides routines to
  36. facilitate doing this), it has been awkward, if not impossible, to get such
  37. a figure to print correctly on a PostScript printer.  Here is a way to do
  38. so easily.
  39.  
  40. The `heart' of this procedure is the file written by Tim Clark, FONTS.PS,
  41. which contains a PostScript definition of a fixed-pitch font, IBMextended,
  42. which is - in effect - the standard Courier font for ASCII characters
  43. 32-127, but redefines characters 128-255, in particular, defines the
  44. line-drawing characters 176-223.
  45.  
  46. Preliminary backup - (i) To set up Sprint so that it can print the extended
  47. characters, begin by backing up your working copies [see below] - not the
  48. factory versions - of the following three files!  (If anything goes wrong,
  49. you will want to have working copies of these files.)
  50.  
  51.           POSTSCR.HDR
  52.           POSTSCR.TCT
  53.           DEFAULT.SPP*
  54.  
  55. (*or whatever printer driver "xxx.SPP" you are currently using as your
  56. PostScript driver)
  57.  
  58. (ii) Be sure that factory disk #9 is write-protected and copy that disk to
  59. another disk, labeling the latter, "Printer B / Revised".
  60.  
  61. You are about to make two minor changes to the file POSTSCR.SPL (on the
  62. disk "Printer B / Revised").
  63.  
  64.    1.  Read into Sprint the file POSTSCR.SPL (from the disk "Printer B /
  65.        Revised").
  66.  
  67.    2.  Search for the 2 lines reading@nohinge
  68.  
  69.             font Courier,on /Courier %d ff\ ,width 180@nohinge
  70.  
  71.        (These will probably be lines nos. 89 and 185).
  72.  
  73.    3.  Immediately above each of these two lines, add the following line
  74.        exactly as written here:
  75.  
  76.             font Extended,on /IBMextended %d ff\ ,width 180
  77.  
  78.        (Have you added that line in the two different places specified?)
  79.  
  80.    4.  Check your spelling and then save the file back to disk
  81.        "Printer B / Revised".
  82.  
  83.    5.  Exit Sprint to DOS, and run the installation program SP-SETUP (on
  84.        factory disk #1).  In the Main Menu, choose `Printer Installation',
  85.        and proceed to re-install the PostScript driver.  When told to
  86.        insert disk "Printer B", be sure to use "Printer B / Revised".
  87.        Doing so will create a new version of DEFAULT.SPP (or a file bearing
  88.        whatever name you specify as `alternate').
  89.  
  90.    6.  Important: running SP-SETUP may copy the FACTORY VERSIONS of
  91.        POSTSCR.HDR and POSTSCR.TCT to your Sprint subdirectory.  If you
  92.        have customized those files in any way, then copy the customized
  93.        versions of POSTSCR.HDR and POSTSCR.TCT you earlier saved [step (i)
  94.        in the preliminary stage], to your Sprint subdirectory, and thus
  95.        overwrite the factory versions (of 10/03/88).
  96.  
  97.    7.  Run Sprint and open the file c:\sprint\postscr.hdr.  Find the line
  98.        reading "initgraphics".
  99.  
  100.    8.  Insert the entirety of the file FONTS.PS immediately above the line
  101.        "initgraphics".  (If you are using the Borland factory interface,
  102.        place the cursor on the first letter of "initgraphics" and type:
  103.        <F10> F I _path_FONTS.PS <enter>
  104.        where "_path_" indicates the path to the file, FONTS.PS)
  105.  
  106.    9.  Just to double-check: the last line of the inserted file (just above
  107.        the line "initgraphics") should read "%End of definition of
  108.        IBMextended font".  (Incidentally, ignore the comments [marked by
  109.        "%"] at the top of the file FONTS.PS.)
  110.  
  111.   10.  Save the file c:\sprint\postscr.hdr
  112.  
  113. Whenever you want to print a line drawing, surround it with the following
  114. commands:
  115.  
  116.      @@begin(text, font Extended, size 9 points, spacing 1 line, notct)
  117.  
  118.           [your drawing goes here]
  119.  
  120.      @@end(text)
  121.  
  122. Notice the specification of "notct".  You want to turn off TCT in your
  123. diagram to prevent kerning of text (e.g. of pairs such as "Po", "Ta", etc.
  124. [as defined in POSTSCR.TCT]), otherwise characters in the diagram will not
  125. be printed full-width and the vertical lines will be skewed.
  126.  
  127. Beware of setting the point size less than 9: the vertical lines may not
  128. line up exactly.
  129.  
  130. @begin(Group)
  131. For a test run, open and print the accompanying file DRAWLINE.TST.  Examine
  132. the file itself to see various tricks for printing boxes, etc.
  133. @blankspace(1 line)
  134. That's it.
  135. @end(Group)
  136.  
  137. ==========================================================================
  138. Professor Norman Swartz   |  e-mail (via Internet): norman_swartz@@sfu.ca
  139. Department of Philosophy  |  e-mail (via Bitnet):   swartz@@sfuvax.bitnet
  140. Simon Fraser University   |
  141. Burnaby, B.C.             |  fax:                           (604)-291-4455
  142. Canada V5A 1S6            |  voice (Dept. of Phil. at SFU): (604)-291-3343
  143. ==========================================================================
  144.