home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume4 / troff2lj-v2 / part01 / README < prev    next >
Text File  |  1989-02-03  |  2KB  |  40 lines

  1. Troff2lj is a filter that translates CAT troff output (as described in
  2. the documentation for a SUN work station) into commands for an HP
  3. LaserJet laser printer.  The necessary fonts must be present on the
  4. printer, either as a font cartridge or as a downloaded font.  One
  5. obvious improvement would be to have the filter download the fonts as
  6. necessary.
  7.  
  8. The files fthX.c are the font width tables for the K font cartridge
  9. that should be compiled and placed in `/usr/lib/font/ftX' for troff to
  10. find.
  11.  
  12. The special font MUST be called ftS.  This is necessary because of
  13. a bug in troff (at least under SUN 3.0-3.2).  This by the way was a
  14. fatal bug, if you tried to call it something else it would still
  15. use ftS.  The other tables appears to work when you rename them.
  16. Initially I called them fth[RIB] and it appeared to work just fine.
  17. Then I started to notice that sometimes troff would use the wrong font.
  18. After hours of debugging I finally noticed that everything worked
  19. just fine when I changed the file names.
  20.  
  21. Troff assumes that the character widths scale with the point size.
  22. Unfortunately this is not true for several characters on the K font
  23. (like plus, minus, etc.).  The width tables are set up for 10 point by
  24. scaling HP supplied widths by 0.864 and rounding to nearest integer.
  25. The widths in fthS.c are likely to contain errors.
  26.  
  27. You probably want to install troff2lj as the `lpr -t' filter instead of
  28. including it in htroff as done here.
  29.  
  30. The program has been running for a couple of months and should be
  31. reasonably bug free.  Still I should appreciate receiving bug reports
  32. as well as any improvements to the program.
  33.  
  34. Enjoy...
  35.  
  36. Sverre Froyen
  37. UUCP:   boulder!fesk!sverre, sunpeaks!seri!fesk!sverre
  38. ARPA:   froyen@nmfecc.arpa
  39. BITNET: froyen@csugold.bitnet
  40.