home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
sprint
/
drawln01.zip
/
DRAWLN01.DOC
< prev
next >
Wrap
Text File
|
1993-03-12
|
6KB
|
144 lines
@printer(default)
@Style(TopMargin 1 inch, BottomMargin 1 inch)
@Style(LeftMargin 1 inch, RightMargin 1 inch)
@Style(Spread 1 line, notct, font Courier, size 10 points, fill no)
@=From the desk of
@=@big{NORMAN SWARTZ}
@>March 10, 1993
Topic How to configure the Sprint word-processor (copyright by
Borland) to print the IBM line-drawing characters (ASCII 176
- 223) on a PostScript printer.
Disclaimer All the standard disclaimers apply. In no event will the
author or Simon Fraser University be liable for any damages,
including lost data, lost profits, lost savings or other
incidental or consequential damages arising out of the use of
the instructions and materials contained in this document.
Files needed DRAWLN01.DOC . . . . . . . . . . .(this very file)
FONTS.PS . . . . . . . . (accompanying DRAWLN01.DOC)
DRAWLINE.TST . . . (test file, accompanying DRAWLN01.DOC)
Note The file FONTS.PS was obtained from the archived file
FONTS.ZOO residing in the subdirectory /mirrors/
garbo.uwasa.fi/printer at wuarchive.wustl.edu. To de-archive
FONTS.ZOO, I used the file ZOO210.EXE, obtained from the same
site, in the subdirectory /mirrors/garbo.uwasa.fi/arcers.
The PostScript code in FONTS.PS was produced by Tim Clark,
Computing Services, University of Warwick UK:
T.Clark@@warwick.ac.uk
None of the fonts resident in a PostScript printer includes the IBM
line-drawing characters. Thus, while it is easy to construct a diagram or
figure on-screen using these characters (Sprint even provides routines to
facilitate doing this), it has been awkward, if not impossible, to get such
a figure to print correctly on a PostScript printer. Here is a way to do
so easily.
The `heart' of this procedure is the file written by Tim Clark, FONTS.PS,
which contains a PostScript definition of a fixed-pitch font, IBMextended,
which is - in effect - the standard Courier font for ASCII characters
32-127, but redefines characters 128-255, in particular, defines the
line-drawing characters 176-223.
Preliminary backup - (i) To set up Sprint so that it can print the extended
characters, begin by backing up your working copies [see below] - not the
factory versions - of the following three files! (If anything goes wrong,
you will want to have working copies of these files.)
POSTSCR.HDR
POSTSCR.TCT
DEFAULT.SPP*
(*or whatever printer driver "xxx.SPP" you are currently using as your
PostScript driver)
(ii) Be sure that factory disk #9 is write-protected and copy that disk to
another disk, labeling the latter, "Printer B / Revised".
You are about to make two minor changes to the file POSTSCR.SPL (on the
disk "Printer B / Revised").
1. Read into Sprint the file POSTSCR.SPL (from the disk "Printer B /
Revised").
2. Search for the 2 lines reading@nohinge
font Courier,on /Courier %d ff\ ,width 180@nohinge
(These will probably be lines nos. 89 and 185).
3. Immediately above each of these two lines, add the following line
exactly as written here:
font Extended,on /IBMextended %d ff\ ,width 180
(Have you added that line in the two different places specified?)
4. Check your spelling and then save the file back to disk
"Printer B / Revised".
5. Exit Sprint to DOS, and run the installation program SP-SETUP (on
factory disk #1). In the Main Menu, choose `Printer Installation',
and proceed to re-install the PostScript driver. When told to
insert disk "Printer B", be sure to use "Printer B / Revised".
Doing so will create a new version of DEFAULT.SPP (or a file bearing
whatever name you specify as `alternate').
6. Important: running SP-SETUP may copy the FACTORY VERSIONS of
POSTSCR.HDR and POSTSCR.TCT to your Sprint subdirectory. If you
have customized those files in any way, then copy the customized
versions of POSTSCR.HDR and POSTSCR.TCT you earlier saved [step (i)
in the preliminary stage], to your Sprint subdirectory, and thus
overwrite the factory versions (of 10/03/88).
7. Run Sprint and open the file c:\sprint\postscr.hdr. Find the line
reading "initgraphics".
8. Insert the entirety of the file FONTS.PS immediately above the line
"initgraphics". (If you are using the Borland factory interface,
place the cursor on the first letter of "initgraphics" and type:
<F10> F I _path_FONTS.PS <enter>
where "_path_" indicates the path to the file, FONTS.PS)
9. Just to double-check: the last line of the inserted file (just above
the line "initgraphics") should read "%End of definition of
IBMextended font". (Incidentally, ignore the comments [marked by
"%"] at the top of the file FONTS.PS.)
10. Save the file c:\sprint\postscr.hdr
Whenever you want to print a line drawing, surround it with the following
commands:
@@begin(text, font Extended, size 9 points, spacing 1 line, notct)
[your drawing goes here]
@@end(text)
Notice the specification of "notct". You want to turn off TCT in your
diagram to prevent kerning of text (e.g. of pairs such as "Po", "Ta", etc.
[as defined in POSTSCR.TCT]), otherwise characters in the diagram will not
be printed full-width and the vertical lines will be skewed.
Beware of setting the point size less than 9: the vertical lines may not
line up exactly.
@begin(Group)
For a test run, open and print the accompanying file DRAWLINE.TST. Examine
the file itself to see various tricks for printing boxes, etc.
@blankspace(1 line)
That's it.
@end(Group)
==========================================================================
Professor Norman Swartz | e-mail (via Internet): norman_swartz@@sfu.ca
Department of Philosophy | e-mail (via Bitnet): swartz@@sfuvax.bitnet
Simon Fraser University |
Burnaby, B.C. | fax: (604)-291-4455
Canada V5A 1S6 | voice (Dept. of Phil. at SFU): (604)-291-3343
==========================================================================