home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2600 < prev    next >
Internet Message Format  |  1991-01-22  |  26KB

  1. From: clewis@ecicrl.UUCP (Chris Lewis)
  2. Newsgroups: comp.sources.bugs,alt.sources,comp.text,comp.lang.postscript
  3. Subject: Official Patch 7 for Psroff 2.0
  4. Message-ID: <1165@ecicrl.UUCP>
  5. Date: 21 Jan 91 07:18:17 GMT
  6.  
  7.  
  8. Archive-name: psroff2.0/patch.07
  9. Submitted-by: clewis@ferret.ocunix.on.ca (Chris Lewis)
  10.  
  11.     This is official patch 07 for Psroff 2.0.
  12.     Please apply it by:
  13.     cd <psroff source directory>
  14.     patch -N -p < <this file>
  15.  
  16. The important changes are:
  17.     - The mailing list has been discontinued due to lack of interest.
  18.       Patches will go out cross-posted to alt.sources, comp.sources.bugs,
  19.       comp.text and comp.lang.postscript.  If you do not get ANY of these
  20.       newsgroups, drop me a line, and I'll put you in an informal mailing
  21.       list for patch notices.  The README has been altered to reflect
  22.       this.
  23.     - Some mention is made regarding installing as root on systems
  24.       where you've arranged a restrictive umask in the README.
  25.       "make fixperms" will repair these problems on the places where
  26.       the makefiles aren't careful enough with file creation.
  27.       If, after an install, psroff fails with can't find file
  28.       errors, it's worth while doing a fixperms and see if it
  29.       fixes it.
  30.     - The support for page length settings was a little off, so I
  31.       implemented a bit more, and made sure that the manual page
  32.       was consistent with it.
  33.     - Since I've moved, FAXing the test page won't do you any good.
  34.       testtab.m.S has been updated to tell you where to surface-mail
  35.       test sheets.  README's contact information has been updated.
  36.  
  37. Note: I'm a bit stalled because I have no direct access to a printer
  38. that psroff can drive, so development on new stuff is suspended.
  39. I do have a printer, but doing a psroff driver for a Diablo 1550 doesn't
  40. seem like a really good idea or a lot of fun.
  41.  
  42. ./makeincl.S        LIBDIR stuff
  43. ./utils.c        stdio.h's missing popen defn
  44. ./man/troff2ps.1.S    page length stuff corrected
  45. ./README        future directions/contact info changed/fixperm
  46. ./Makefile        permissions (fixperms) stuff
  47. ./widths/Makefile    permissions
  48. ./utils/Makefile    permissions
  49. ./utils/pktype.c    slight output format improvement
  50. ./tests/testtab.m.S    address for mailing tests.
  51. ./defs.h        PL7
  52. ./lj.c            stdio.h's missing popen defn
  53. ./pk.c            stdio.h's missing popen defn
  54. ./troff2.c        stdio.h's missing popen defn/page length stuff
  55. *** /tmp/PATCHold/./makeincl.S    Mon Jan 21 01:42:28 1991
  56. --- ./makeincl.S    Mon Jan 21 01:42:29 1991
  57. ***************
  58. *** 1,6 ****
  59. ! #    Makefile overrides 2.1 90/07/18
  60.   CC    = %%CC%%
  61. ! CFLAGS    = %%CCFLAGS%% '-DLIBDIR="%%LIBDIR%%"' -I../
  62.   FONTDIR = %%FONTDIR%%
  63.   LIBDIR    = %%LIBDIR%%
  64.   LIBFLAGS = %%LIBFLAGS%%
  65. --- 1,6 ----
  66. ! #    Makefile overrides 2.2 90/12/15
  67.   CC    = %%CC%%
  68. ! CFLAGS    = %%CCFLAGS%% -I../
  69.   FONTDIR = %%FONTDIR%%
  70.   LIBDIR    = %%LIBDIR%%
  71.   LIBFLAGS = %%LIBFLAGS%%
  72. *** /tmp/PATCHold/./utils.c    Mon Jan 21 01:42:41 1991
  73. --- ./utils.c    Mon Jan 21 01:42:45 1991
  74. ***************
  75. *** 15,21 ****
  76.   
  77.   #ifndef    lint
  78.   static char SCCSid[] =
  79. !     "@(#)utils.c: 2.5 Copyright 90/12/14 23:47:08 Chris Lewis";
  80.   #endif
  81.   
  82.   #ifndef    HEADERSIZE
  83. --- 15,21 ----
  84.   
  85.   #ifndef    lint
  86.   static char SCCSid[] =
  87. !     "@(#)utils.c: 2.6 Copyright 91/01/18 03:44:58 Chris Lewis";
  88.   #endif
  89.   
  90.   #ifndef    HEADERSIZE
  91. ***************
  92. *** 101,106 ****
  93. --- 101,107 ----
  94.   
  95.   char nodename[25];
  96.   getnodename() {
  97. +     FILE *popen();
  98.       FILE *uuname;
  99.       if ((uuname = popen(NODECMD, "r")) == NULL)
  100.       strcpy(nodename, "<noname>");
  101. *** /tmp/PATCHold/./man/troff2ps.1.S    Mon Jan 21 01:43:05 1991
  102. --- ./man/troff2ps.1.S    Mon Jan 21 01:43:07 1991
  103. ***************
  104. *** 1,4 ****
  105. ! .\"Copyright 1988 by Chris Lewis 2.4 90/12/04
  106.   .TH TROFF2PS 1 local
  107.   .SH NAME
  108.   troff2ps, troff2lj, troff2xx \- convert troff output to Postscript, HP etc.
  109. --- 1,4 ----
  110. ! .\"Copyright 1988 by Chris Lewis 2.5 91/01/18
  111.   .TH TROFF2PS 1 local
  112.   .SH NAME
  113.   troff2ps, troff2lj, troff2xx \- convert troff output to Postscript, HP etc.
  114. ***************
  115. *** 41,53 ****
  116.   .BI -l length
  117.   option is used to tell the software how long the pages are on the printer.
  118.   The default value is 11 inches.
  119. ! Length should be written as if you were issuing a ".pl"
  120.   .I troff
  121.   command; eg: troff scaling should be used.
  122. ! For example: "-l11i", "-l4752u", "-l792p" specify a page length of
  123.   11 inches in inches,
  124.   .I troff
  125. ! units and points respectively.
  126.   .P
  127.   The
  128.   .BI -T xx
  129. --- 41,55 ----
  130.   .BI -l length
  131.   option is used to tell the software how long the pages are on the printer.
  132.   The default value is 11 inches.
  133. ! Length should be written as if you were issuing a ``.pl''
  134.   .I troff
  135.   command; eg: troff scaling should be used.
  136. ! For example: ``-l11i'', ``-l4752u'', ``-l792p'' and ``-l66P''
  137. ! specify a page length of
  138.   11 inches in inches,
  139.   .I troff
  140. ! units, points and Picas respectively.
  141. ! Centimetres (``c'') are also supported, but ``v'', ``m'' and ``n'' are not.
  142.   .P
  143.   The
  144.   .BI -T xx
  145. *** /tmp/PATCHold/./README    Mon Jan 21 01:43:28 1991
  146. --- ./README    Mon Jan 21 01:43:36 1991
  147. ***************
  148. *** 1,4 ****
  149. !         PSROFF RELEASE 2.0 PL5 README 2.4 90/12/14
  150.   
  151.               May 14, 1990
  152.               Chris Lewis
  153. --- 1,4 ----
  154. !         PSROFF RELEASE 2.0 PL5 README 2.6 91/01/21
  155.   
  156.               May 14, 1990
  157.               Chris Lewis
  158. ***************
  159. *** 11,18 ****
  160.       or, you can simply patch yours to this level - contact me for
  161.       patch 5.
  162.   
  163. !     Please see the end of this file for my contact information
  164. !     and for enrollment in the psroff mailing list.
  165.   
  166.   Please read this document, especially any new patches (if any) near
  167.   the end before reconfiguring.  If you have difficulties, read the
  168. --- 11,17 ----
  169.       or, you can simply patch yours to this level - contact me for
  170.       patch 5.
  171.   
  172. !     Please see the end of this file for my contact information.
  173.   
  174.   Please read this document, especially any new patches (if any) near
  175.   the end before reconfiguring.  If you have difficulties, read the
  176. ***************
  177. *** 65,75 ****
  178.   psroff (version 1.0) was posted in comp.sources.unix in October 1989.
  179.   This version is a lot better.
  180.   
  181. ! If you send me your name and e-mail address, I'll put you on the psroff
  182. ! mailing list, and you'll get express delivery of any small patches (see
  183. ! CONTACT INFO at end of this README).  Patches are also shipped out through
  184. ! comp.sources.unix and/or comp.sources.bugs, but the latency can be rather
  185. ! high at times.  A current list of FTP-access sites can be obtained by
  186.   sending me mail.
  187.   
  188.   Credit/copyright where credit's due:
  189. --- 64,74 ----
  190.   psroff (version 1.0) was posted in comp.sources.unix in October 1989.
  191.   This version is a lot better.
  192.   
  193. ! Please note: I have discontinued the mailing list, because nothing
  194. ! ever went out on it.
  195. ! Patches are shipped out through comp.sources.bugs and alt.sources.
  196. ! A current list of FTP and UUCP access sites can be obtained by
  197.   sending me mail.
  198.   
  199.   Credit/copyright where credit's due:
  200. ***************
  201. *** 377,382 ****
  202. --- 376,392 ----
  203.         says something nasty about non-numeric character in file,
  204.         "may be non-ASCII".
  205.   
  206. +     - NOTE: during installs as root, the makefiles attempt to be
  207. +       carefull about the modes of the files it creats.  HOWEVER,
  208. +       some people do insist on "umask 077" for root, and I've
  209. +       probably not fixed everything.  If psroff doesn't work
  210. +       after an install, I suggest that you check root's umask,
  211. +       and ensure that it's 002 or 022 before invoking any
  212. +       of the makefile install entries.  If you forget, you
  213. +       can invoke:
  214. +         make fixperms
  215. +       on the upper level makefile.
  216.       - type "make unpackljfonts"  This will uudecode the font
  217.         files I've supplied and remove the .UU files.  This
  218.         step is unneccessary if you're not using Laserjets,
  219. ***************
  220. *** 452,458 ****
  221.       - edit lib/psrofflib.S according to the instructions you find.
  222.         Take special note of -T/-F handling for troff (trofftype) -
  223.         check out your troff manual page!  Suns and Ultrix want
  224. !       trofftype='-F/usr/lib/font/$width/ftXX'.
  225.   
  226.       - If you're going to be driving HP Laserjets without a Postscript
  227.         cartridge:
  228. --- 462,470 ----
  229.       - edit lib/psrofflib.S according to the instructions you find.
  230.         Take special note of -T/-F handling for troff (trofftype) -
  231.         check out your troff manual page!  Suns and Ultrix want
  232. !       trofftype='-F/usr/lib/font/$width/ftXX'.  If you're running
  233. !       postscript, you may want to eventually add the -Z option
  234. !       to the entry to make your printer REALLY run fast.
  235.   
  236.       - If you're going to be driving HP Laserjets without a Postscript
  237.         cartridge:
  238. ***************
  239. *** 530,536 ****
  240.   
  241.         "TEST" is generated via make to include some information about
  242.         your configuration to help me diagnose your problems.
  243.       - If you have problems, read the TROUBLE file which describes
  244.         some trouble-shooting.
  245.   
  246. --- 542,548 ----
  247.   
  248.         "TEST" is generated via make to include some information about
  249.         your configuration to help me diagnose your problems.
  250. !     
  251.       - If you have problems, read the TROUBLE file which describes
  252.         some trouble-shooting.
  253.   
  254. ***************
  255. *** 646,682 ****
  256.   
  257.   Future directions:
  258.   
  259.   You may have noticed a compile flag called "OPT" which is defined in
  260.   the distributed version of defs.h.  If enabled (via -Z/W), this enables the
  261. ! experimental optimizer that I'm working on.  It works well with Postscript
  262. ! output, but not with laserjet unless the fonts you use are VERY good.
  263. ! It's disabled by default.  The optimizer does two things: it emits as many
  264. ! characters as it can as one print directive, rather than one CAT code
  265. ! per print.  On postscript and HPLJ's this is a BIG win (printer execution
  266. ! speeds 3 or more times faster), but it won't work with ditroff.  The
  267. ! optimizer requires access to the CAT troff width tables, and if troff2ps
  268. ! can't find them, it simply doesn't optimize.  The other thing the optimizer
  269. ! does is enable a new backend transmission feature (\(bs\(bs<directive>\(bs)
  270. ! which will ultimately *replace* the ".tm M<directive>" feature.  Once
  271. ! this occurs, troff stderr can unmerged with stdout, psfig will work better,
  272. ! and special directives will no longer require breaks.  And, I might
  273. ! be able to emulate \X better, and maybe even (gasp) \D and friends.
  274. ! The intent is, that when I'm satisfied with the optimizer, possibly after
  275. ! some patching), I can either ship a patch that explicitly makes it default,
  276. ! or tell you to do it manually in the patch preamble.  Stay tuned.
  277.   
  278. ! CONTACT INFO:
  279.   
  280.       Chris Lewis
  281.       Elegant Communications Inc.
  282. !     481 University Avenue, Suite 602
  283. !     Toronto, Ontario, Canada
  284. !     Voice Phone: Canada (416)-595-5425
  285. !     FAX: Canada (416)-595-5439
  286.       Userid's for e-mail contact:
  287. !     Psroff enquiries/help/mailing list enrollment: psroff-request
  288.       Non-psroff mail only: clewis
  289. !     UUCP routing: {uunet!attcan,utzoo}!lsuc!eci386!<userid>
  290. !     Possible internet routing: lsuc!eci386!<userid>@uunet.uu.net
  291.       Alternates: <user>@eci386.uucp
  292. --- 658,692 ----
  293.   
  294.   Future directions:
  295.   
  296. + They are two-fold: replacing the ".tm/.sR" mechanism for communication
  297. + with the backend.  There is a new method, using a FSA to recognize
  298. + a special sequence of bell symbols (see catconv).  I haven't converted
  299. + over to it, because under some not-yet-understood situations, it
  300. + doesn't work.  Once this works PROPERLY, a number of enhancements
  301. + will be made to make CAT troff behave more like ditroff, support
  302. + for psfig, pic etc.
  303.   You may have noticed a compile flag called "OPT" which is defined in
  304.   the distributed version of defs.h.  If enabled (via -Z/W), this enables the
  305. ! optimizer.  It works well with Postscript output, but not with laserjet
  306. ! unless the fonts you use are VERY good.  It's disabled by default.  The
  307. ! optimizer does two things: it emits as many characters as it can as one
  308. ! print directive, rather than one CAT code per print.  On postscript and
  309. ! HPLJ's this is a BIG win (printer execution speeds 3 or more times faster),
  310. ! but it won't work with ditroff.  The optimizer requires access to the CAT
  311. ! troff width tables, and if troff2ps can't find them, it simply doesn't
  312. ! optimize.
  313.   
  314. ! CONTACT INFO (note that I've moved):
  315.   
  316.       Chris Lewis
  317.       Elegant Communications Inc.
  318. !     Box 13215, Kanata PO
  319. !     Kanata, Ontario, K2K 1X4
  320. !     Voice Phone: Canada (613) 832-0541
  321.       Userid's for e-mail contact:
  322. !     Psroff enquiries/help: psroff-request
  323.       Non-psroff mail only: clewis
  324. !     UUCP routing: uunet!mitel!cunews!latour!ecicrl!<userid>
  325. !     Possible internet routing: <userid>@ferret.ocunix.on.ca
  326.       Alternates: <user>@eci386.uucp
  327. *** /tmp/PATCHold/./Makefile    Mon Jan 21 01:44:06 1991
  328. --- ./Makefile    Mon Jan 21 01:44:09 1991
  329. ***************
  330. *** 16,28 ****
  331.   #    Note:        This is a System V Makefile, so you may
  332.   #            have some problems making a few of the items.
  333.   #
  334. ! #ident  "@(#)Makefile: 2.2 Copyright 90/08/10 15:22:08 Chris Lewis"
  335.   
  336.   #    Use s5make on Ultrix and Sun!
  337.   
  338.   #    Set to where you want the user-interfaces to go
  339. ! BINDIR    = /usr/lbin
  340. ! #BINDIR    = /usr/tmp/bin
  341.   
  342.   #    Testing type (default postscript (ps)):
  343.   #    Use lj for laserjet.
  344. --- 16,27 ----
  345.   #    Note:        This is a System V Makefile, so you may
  346.   #            have some problems making a few of the items.
  347.   #
  348. ! #ident  "@(#)Makefile: 2.4 Copyright 91/01/18 03:44:18 Chris Lewis"
  349.   
  350.   #    Use s5make on Ultrix and Sun!
  351.   
  352.   #    Set to where you want the user-interfaces to go
  353. ! BINDIR    = /usr/local/bin
  354.   
  355.   #    Testing type (default postscript (ps)):
  356.   #    Use lj for laserjet.
  357. ***************
  358. *** 32,38 ****
  359.   #    This *must* be a directory all by itself with no other stuff
  360.   #    in it.
  361.   LIBDIR    = /usr/lib/troff2
  362. - #LIBDIR = /usr/tmp/troff2
  363.   
  364.   #    Directory for Laserjet fonts.
  365.   LJF    = $(LIBDIR)/lib/lj
  366. --- 31,36 ----
  367. ***************
  368. *** 42,61 ****
  369.   
  370.   #    Where your real macros are
  371.   RTMACDIR = /usr/lib/tmac
  372. - #RTMACDIR = /usr/tmp/tmac
  373.   
  374.   #    upper level man directory, with subdirectories man1, man2 etc.
  375.   MANDIR    = /usr/man/l_man
  376. - #MANDIR    = /usr/tmp/man
  377.   
  378.   #    Change this at your peril - your troff *must* support -F!
  379.   #    (font width files (ft??) are placed under FONTDIR/<width>/ft??)
  380.   #    (see lib/psrofflib.S)
  381.   FONTDIR    = /usr/lib/font
  382. - #FONTDIR = /usr/tmp/font
  383.   
  384. ! #    Comment this out if you don't have shared libraries ala 386/ix
  385. ! LIBFLAGS = -lc_s
  386.   
  387.   #    Bourne shell.  *All* Bourne shells with the exception of extremely
  388.   #    braindamaged ones (such as Ultrix or vanilla BSD) will work fine.
  389. --- 40,56 ----
  390.   
  391.   #    Where your real macros are
  392.   RTMACDIR = /usr/lib/tmac
  393.   
  394.   #    upper level man directory, with subdirectories man1, man2 etc.
  395.   MANDIR    = /usr/man/l_man
  396.   
  397.   #    Change this at your peril - your troff *must* support -F!
  398.   #    (font width files (ft??) are placed under FONTDIR/<width>/ft??)
  399.   #    (see lib/psrofflib.S)
  400.   FONTDIR    = /usr/lib/font
  401.   
  402. ! #    Set this to -lc_s if you have 386/ix style shared libraries
  403. ! LIBFLAGS =
  404.   
  405.   #    Bourne shell.  *All* Bourne shells with the exception of extremely
  406.   #    braindamaged ones (such as Ultrix or vanilla BSD) will work fine.
  407. ***************
  408. *** 166,171 ****
  409. --- 161,169 ----
  410.   
  411.   BACKENDS = lj.o pk.o pkc.o ps.o dt.o
  412.   
  413. + DEFINES    = '-DLIBDIR="$(LIBDIR)/lib"' '-DFONTDIR="$(FONTDIR)"'\
  414. +     '-DLJF="$(LJF)"' $(CCFLAGS)
  415.   #    Creation of sedscript for parameterization.
  416.   
  417.   SEDSCRIPT =    "sed -e 's;%%LIBDIR%%;$(LIBDIR);g' \
  418. ***************
  419. *** 183,193 ****
  420.                -e 's^%%IGNORESH%%^$(IGNORESH)^' \
  421.                -e 's;%%RTMACDIR%%;$(RTMACDIR);g'"
  422.   
  423. - DEFINES    = '-DLIBDIR="$(LIBDIR)/lib"' '-DFONTDIR="$(FONTDIR)"'\
  424. -     '-DLJF="$(LJF)"' $(CCFLAGS)
  425.   CFLAGS    = $(DEFINES)
  426.   
  427.   all:    troff2ps subst.done makeincl psroff README TROUBLE LASERFONTS submakes
  428.   
  429.   subst.done:    sedscript
  430. --- 181,188 ----
  431. ***************
  432. *** 250,260 ****
  433. --- 245,257 ----
  434.       if [ "$$files" != 'fonts.lj/*.pk' ] ; \
  435.       then \
  436.           cp fonts.lj/*.pk $(LJF) ; \
  437. +         chmod 644 $(LJF)/* ; \
  438.       fi
  439.       $(IGNORESH) files=`echo fonts.lj/*.sfp` ; \
  440.       if [ "$$files" != 'fonts.lj/*.sfp' ] ; \
  441.       then \
  442.           cp fonts.lj/*.sfp $(LJF) ; \
  443. +         chmod 644 $(LJF)/* ; \
  444.       fi
  445.       $(IGNORESH) test -z "$(PKFONTS)" -o ! -d "$(NEWFONTS)" \
  446.           || cp $(NEWFONTS)/* $(LJF)
  447. ***************
  448. *** 282,287 ****
  449. --- 279,285 ----
  450.       rm -f $(LIBDIR)/troff2ps.old
  451.       -cp $(LIBDIR)/troff2ps $(LIBDIR)/troff2ps.old
  452.       cp troff2ps $(LIBDIR)/troff2ps
  453. +     chmod 755 $(LIBDIR)/troff2ps $(BINDIR)/psroff
  454.       cd lib ; $(MAKE) install
  455.       cd adapters ; $(MAKE) install
  456.       cd man ; $(MAKE) install
  457. ***************
  458. *** 415,417 ****
  459. --- 413,419 ----
  460.       else \
  461.           echo "IGNORESH set correctly" ; \
  462.       fi
  463. + fixperms:
  464. +     find $(LIBDIR) -type f -exec chmod +r '{}' ';'
  465. +     find $(LIBDIR) $(FONTDIR) -type d -exec chmod +rx '{}' ';'
  466. *** /tmp/PATCHold/./widths/Makefile    Mon Jan 21 01:44:32 1991
  467. --- ./widths/Makefile    Mon Jan 21 01:44:35 1991
  468. ***************
  469. *** 1,4 ****
  470. ! #2.6 90/12/13
  471.   SCRIPTS    = gfnttab
  472.   TD    = testdir
  473.   PSW    = \
  474. --- 1,4 ----
  475. ! #2.8 91/01/18
  476.   SCRIPTS    = gfnttab
  477.   TD    = testdir
  478.   PSW    = \
  479. ***************
  480. *** 26,31 ****
  481. --- 26,32 ----
  482.       do \
  483.           echo "Processing $$i" ; \
  484.           ./gfnttab $$i >> gfnttab.log ; \
  485. +         chmod 644 $$i/* ; \
  486.       done
  487.   
  488.   subst.done:    ../makeincl ../sedscript
  489. ***************
  490. *** 194,200 ****
  491.           continue ; \
  492.           fi ; \
  493.           echo "Installing $$base widths" ; \
  494. !         mv width$$base/ft* $(FONTDIR)/$$base ; \
  495.       done
  496.   
  497.   cmp:
  498. --- 195,201 ----
  499.           continue ; \
  500.           fi ; \
  501.           echo "Installing $$base widths" ; \
  502. !         cp width$$base/ft* $(FONTDIR)/$$base ; \
  503.       done
  504.   
  505.   cmp:
  506. ***************
  507. *** 237,243 ****
  508.       rm -f gfnttab.log pk2dit.log pk2sep.log pk2dit.err pk2sep.err
  509.   
  510.   dit2catwid.o:    ../defs.h
  511. -     $(CC) -c $(CFLAGS) '-DFONTDIR="$(FONTDIR)"' dit2catwid.c
  512.   
  513.   ../cattab.o:    ../defs.h
  514.       @echo "cattab.o is out of date, please run make troff2ps in top level first"
  515. --- 238,243 ----
  516. *** /tmp/PATCHold/./utils/Makefile    Mon Jan 21 01:44:56 1991
  517. --- ./utils/Makefile    Mon Jan 21 01:44:58 1991
  518. ***************
  519. *** 1,4 ****
  520. ! #    Copyright 14:22:49 Chris Lewis
  521.   SCRIPTS    = psdtwd showfont mkenctab calcfonts catconv
  522.   PROGRAMS = hpinterp psxlate pk2sfp pk2ditwid pktype dumpft pk2ps lj2ps
  523.   MAPS = maps/S.cmtrf \
  524. --- 1,4 ----
  525. ! #    Copyright 03:46:16 Chris Lewis
  526.   SCRIPTS    = psdtwd showfont mkenctab calcfonts catconv
  527.   PROGRAMS = hpinterp psxlate pk2sfp pk2ditwid pktype dumpft pk2ps lj2ps
  528.   MAPS = maps/S.cmtrf \
  529. ***************
  530. *** 62,68 ****
  531.           $(LIBFLAGS)
  532.   
  533.   dumpft:    dumpft.o ../cattab.o
  534. !     $(CC) -o dumpft dumpft.o ../cattab.o $(LIBFLAGS)
  535.   
  536.   clean:
  537.       rm -f *.o $(SCRIPTS) $(PROGRAMS) ljtab.c *.D *.sfp diagnostics
  538. --- 62,68 ----
  539.           $(LIBFLAGS)
  540.   
  541.   dumpft:    dumpft.o ../cattab.o
  542. !     $(CC) $(CFLAGS) -o dumpft dumpft.o ../cattab.o $(LIBFLAGS)
  543.   
  544.   clean:
  545.       rm -f *.o $(SCRIPTS) $(PROGRAMS) ljtab.c *.D *.sfp diagnostics
  546. *** /tmp/PATCHold/./utils/pktype.c    Mon Jan 21 01:45:17 1991
  547. --- ./utils/pktype.c    Mon Jan 21 01:45:20 1991
  548. ***************
  549. *** 1,4 ****
  550. ! /*    Copyright 1985, 1986, 1987, 1988 16:49:49 Chris Lewis
  551.           All Rights Reserved
  552.   
  553.       Permission to copy and further distribute is freely given provided
  554. --- 1,4 ----
  555. ! /*    Copyright 1985, 1986, 1987, 1988 01:41:15 Chris Lewis
  556.           All Rights Reserved
  557.   
  558.       Permission to copy and further distribute is freely given provided
  559. ***************
  560. *** 13,19 ****
  561.   
  562.   #ifndef    lint
  563.   static char SCCSID[] =
  564. !     "@(#)pk2sfp.c 2.1 Copyright 90/07/18 16:49:49 Chris Lewis";
  565.   #endif
  566.   #include "defs.h"
  567.   #include "pk.h"
  568. --- 13,19 ----
  569.   
  570.   #ifndef    lint
  571.   static char SCCSID[] =
  572. !     "@(#)pk2sfp.c 2.2 Copyright 91/01/21 01:41:15 Chris Lewis";
  573.   #endif
  574.   #include "defs.h"
  575.   #include "pk.h"
  576. ***************
  577. *** 161,167 ****
  578.           pc->pkc_char, pc->pkc_pl);
  579.       fprintf(diagFile, "  Flag byte: %d\n", pc->pkc_flag);
  580.       fprintf(diagFile, "  Dynamic packing variable: %d\n", pc->pkc_dyn_f);
  581. !     fprintf(diagFile, "  TFM width: %d, dx: %d", pc->pkc_tfm, pc->pkc_dx);
  582.       if (pc->pkc_dy)
  583.           fprintf(diagFile, " dy: %d\n", pc->pkc_dy);
  584.       else
  585. --- 161,168 ----
  586.           pc->pkc_char, pc->pkc_pl);
  587.       fprintf(diagFile, "  Flag byte: %d\n", pc->pkc_flag);
  588.       fprintf(diagFile, "  Dynamic packing variable: %d\n", pc->pkc_dyn_f);
  589. !     fprintf(diagFile, "  TFM width: %d, dx: %d, delta x: %d", pc->pkc_tfm,
  590. !         pc->pkc_dx, pc->pkc_dx * 4 / pow2(16));
  591.       if (pc->pkc_dy)
  592.           fprintf(diagFile, " dy: %d\n", pc->pkc_dy);
  593.       else
  594. *** /tmp/PATCHold/./tests/testtab.m.S    Mon Jan 21 01:45:36 1991
  595. --- ./tests/testtab.m.S    Mon Jan 21 01:45:38 1991
  596. ***************
  597. *** 1,4 ****
  598. ! .\" 2.1 90/07/18
  599.   .po .25i
  600.   .in 0
  601.   .fp 1 R
  602. --- 1,4 ----
  603. ! .\" 2.2 91/01/01
  604.   .po .25i
  605.   .in 0
  606.   .fp 1 R
  607. ***************
  608. *** 8,17 ****
  609.   .ps 12
  610.   .vs 14
  611.   .sp |.3i
  612. ! .ce 3
  613. ! PSROFF TEST SHEET (2.1)
  614.   .br
  615. ! Please fill out and FAX to (416) 595-5439
  616.   .br
  617.   \*(2d
  618.   .ps 10
  619. --- 8,19 ----
  620.   .ps 12
  621.   .vs 14
  622.   .sp |.3i
  623. ! .ce 4
  624. ! PSROFF TEST SHEET (2.2)
  625.   .br
  626. ! Please fill out and mail to: BOX 13215
  627. ! .br
  628. ! Kanata PO, Kanata, Ontario, Canada K2K 1X4
  629.   .br
  630.   \*(2d
  631.   .ps 10
  632. *** /tmp/PATCHold/./defs.h    Mon Jan 21 01:45:48 1991
  633. --- ./defs.h    Mon Jan 21 01:45:50 1991
  634. ***************
  635. *** 1,4 ****
  636. ! /*    Copyright 1988, 1989 23:46:55 Chris Lewis
  637.           All Rights Reserved
  638.   
  639.       Permission to copy and further distribute is freely given provided
  640. --- 1,4 ----
  641. ! /*    Copyright 1988, 1989 03:44:30 Chris Lewis
  642.           All Rights Reserved
  643.   
  644.       Permission to copy and further distribute is freely given provided
  645. ***************
  646. *** 6,18 ****
  647.       sold for profit.
  648.   
  649.       Project:    Generic Troff drivers
  650. !     Module:        defs.h 2.12 90/12/14 23:46:55
  651.       Author:     Chris Lewis
  652.       Specs:        Main header file - contains some customization
  653.    */
  654.   
  655.   /*    Official Release and Patch level:    */
  656. ! #define    T2VERSION    "@(#)PSROFF Copyright 90/12/14 Chris Lewis - R2 P6"
  657.   
  658.   #ifndef    LIBDIR
  659.   /*    Don't touch this */
  660. --- 6,18 ----
  661.       sold for profit.
  662.   
  663.       Project:    Generic Troff drivers
  664. !     Module:        defs.h 2.13 91/01/18 03:44:30
  665.       Author:     Chris Lewis
  666.       Specs:        Main header file - contains some customization
  667.    */
  668.   
  669.   /*    Official Release and Patch level:    */
  670. ! #define    T2VERSION    "@(#)PSROFF Copyright 91/01/18 Chris Lewis - R2 P7"
  671.   
  672.   #ifndef    LIBDIR
  673.   /*    Don't touch this */
  674. ***************
  675. *** 55,64 ****
  676.   
  677.       - If HEADERSIZE defined, use that many bytes as a prefix to the
  678.         compiled font width table.  HEADERSIZE 0 is the correct definition
  679. !       for Xenix and most System V Troffs.  HEADERSIZE=32 works for Ultrix.
  680. !       HEADERSIZE=0 works properly for Suns (I think).
  681.       - If COFF is defined instead, use a COFF header on the beginning of
  682. !       the file.  I personally know of no machine that supports these.
  683.       - If neither are defined, use a BSD/V7 style a.out.h header, this
  684.         is appropriate for V7 and BSD troffs
  685.       - If you are running RISC/Ultrix (Mips box? from DEC) define
  686. --- 55,65 ----
  687.   
  688.       - If HEADERSIZE defined, use that many bytes as a prefix to the
  689.         compiled font width table.  HEADERSIZE 0 is the correct definition
  690. !       for Xenix and most System V [o]troffs.  HEADERSIZE=32 works for Ultrix
  691. !       (except RISC, see below).  HEADERSIZE=32 works properly for most Suns.
  692.       - If COFF is defined instead, use a COFF header on the beginning of
  693. !       the file.  I personally know of no machine that supports these, tho,
  694. !       there's unconfirmed rumours that Apollo systems might.
  695.       - If neither are defined, use a BSD/V7 style a.out.h header, this
  696.         is appropriate for V7 and BSD troffs
  697.       - If you are running RISC/Ultrix (Mips box? from DEC) define
  698. *** /tmp/PATCHold/./lj.c    Mon Jan 21 01:46:02 1991
  699. --- ./lj.c    Mon Jan 21 01:46:05 1991
  700. ***************
  701. *** 35,41 ****
  702.   
  703.   #ifndef    lint
  704.   static char SCCSid[] =
  705. !     "@(#)lj.c: 2.1 Copyright 90/07/18 16:51:32 Chris Lewis";
  706.   #endif
  707.   
  708.   struct troff2befont ljStdFont[108] = {
  709. --- 35,41 ----
  710.   
  711.   #ifndef    lint
  712.   static char SCCSid[] =
  713. !     "@(#)lj.c: 2.2 Copyright 91/01/18 03:45:38 Chris Lewis";
  714.   #endif
  715.   
  716.   struct troff2befont ljStdFont[108] = {
  717. ***************
  718. *** 431,436 ****
  719. --- 431,437 ----
  720.   int font, selpoints, fontcode;
  721.   char *sequence; {
  722.       int points, pointidx;
  723. +     extern FILE *popen();
  724.       register char *pf, *p;
  725.       register struct pkp *pk;
  726.   #if    !defined(INCR) && defined(PK)
  727. *** /tmp/PATCHold/./pk.c    Mon Jan 21 01:46:31 1991
  728. --- ./pk.c    Mon Jan 21 01:46:36 1991
  729. ***************
  730. *** 7,13 ****
  731.   #ifdef    PK
  732.   
  733.   #ifndef lint
  734. ! static char SCCSid[] = "@(#)pk.c 2.1 Copyright 90/07/18 16:51:38 Chris Lewis";
  735.   #endif
  736.   
  737.   #define    DRAW
  738. --- 7,13 ----
  739.   #ifdef    PK
  740.   
  741.   #ifndef lint
  742. ! static char SCCSid[] = "@(#)pk.c 2.2 Copyright 91/01/18 03:45:54 Chris Lewis";
  743.   #endif
  744.   
  745.   #define    DRAW
  746. ***************
  747. *** 742,747 ****
  748. --- 742,748 ----
  749.   pk_read(file, fontcode)
  750.   char *file; int fontcode; {
  751.       register struct pkp *p;
  752. +     extern FILE *popen();
  753.       register struct pkc *pc, **pcp;
  754.   #ifdef    COMPRESS
  755.       int compressed = 0;
  756. *** /tmp/PATCHold/./troff2.c    Mon Jan 21 01:47:07 1991
  757. --- ./troff2.c    Mon Jan 21 01:47:10 1991
  758. ***************
  759. *** 15,21 ****
  760.   
  761.   #ifndef    lint
  762.   static char SCCSid[] =
  763. !     "@(#)troff2.c: 2.3 Copyright 90/12/13 14:55:19 Chris Lewis";
  764.   #endif
  765.   
  766.   #define    ESC    0x80
  767. --- 15,21 ----
  768.   
  769.   #ifndef    lint
  770.   static char SCCSid[] =
  771. !     "@(#)troff2.c: 2.4 Copyright 91/01/18 03:44:48 Chris Lewis";
  772.   #endif
  773.   
  774.   #define    ESC    0x80
  775. ***************
  776. *** 611,618 ****
  777.           case 'c':
  778.               retval *= TROFFRESOLUTION * 50. / 127.;
  779.               break;
  780.           case 'P':
  781. !             retval *= 72.;
  782.               break;
  783.           }
  784.           break;
  785. --- 611,621 ----
  786.           case 'c':
  787.               retval *= TROFFRESOLUTION * 50. / 127.;
  788.               break;
  789. +         case 'p':
  790. +             retval *= 6.;    /* points */
  791. +             break;
  792.           case 'P':
  793. !             retval *= 72.;    /* Picas */
  794.               break;
  795.           }
  796.           break;
  797. ***************
  798. *** 657,662 ****
  799. --- 660,666 ----
  800.           case 'S': {
  801.   
  802.               register FILE *fin;
  803. +             extern FILE *popen();
  804.               register int rc, n;
  805.               char buf[BUFSIZ];
  806.               DBP((D_SPEC,"SYSTEM: %s\n", string+1));
  807. -- 
  808. Chris Lewis, Phone: (613) 832-0541, Internet: clewis@ferret.ocunix.on.ca
  809. UUCP: uunet!mitel!cunews!latour!ecicrl!clewis
  810. Moderator of the Ferret Mailing List (ferret-request@eci386)
  811. Psroff mailing list (psroff-request@eci386)
  812.