home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume4
/
troff2lj-v2
/
part01
/
README
< prev
next >
Wrap
Text File
|
1989-02-03
|
2KB
|
40 lines
Troff2lj is a filter that translates CAT troff output (as described in
the documentation for a SUN work station) into commands for an HP
LaserJet laser printer. The necessary fonts must be present on the
printer, either as a font cartridge or as a downloaded font. One
obvious improvement would be to have the filter download the fonts as
necessary.
The files fthX.c are the font width tables for the K font cartridge
that should be compiled and placed in `/usr/lib/font/ftX' for troff to
find.
The special font MUST be called ftS. This is necessary because of
a bug in troff (at least under SUN 3.0-3.2). This by the way was a
fatal bug, if you tried to call it something else it would still
use ftS. The other tables appears to work when you rename them.
Initially I called them fth[RIB] and it appeared to work just fine.
Then I started to notice that sometimes troff would use the wrong font.
After hours of debugging I finally noticed that everything worked
just fine when I changed the file names.
Troff assumes that the character widths scale with the point size.
Unfortunately this is not true for several characters on the K font
(like plus, minus, etc.). The width tables are set up for 10 point by
scaling HP supplied widths by 0.864 and rounding to nearest integer.
The widths in fthS.c are likely to contain errors.
You probably want to install troff2lj as the `lpr -t' filter instead of
including it in htroff as done here.
The program has been running for a couple of months and should be
reasonably bug free. Still I should appreciate receiving bug reports
as well as any improvements to the program.
Enjoy...
Sverre Froyen
UUCP: boulder!fesk!sverre, sunpeaks!seri!fesk!sverre
ARPA: froyen@nmfecc.arpa
BITNET: froyen@csugold.bitnet