home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume8 / jetroff / patch04 < prev    next >
Text File  |  1989-09-09  |  13KB  |  535 lines

  1. Newsgroups: comp.sources.misc
  2. organization: PC Research, Inc.
  3. subject: v08i033: JetRoff DWB troff to HP postprocessor - Patch04
  4. From: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5. Reply-To: jetroff@pcrat.UUCP (JetRoff Mail)
  6.  
  7. Posting-number: Volume 8, Issue 33
  8. Submitted-by: jetroff@pcrat.UUCP (JetRoff Mail)
  9. Archive-name: jetroff/patch04
  10.  
  11. JetRoff Usenet version 1.1 Patch 04. 09/01/89.
  12.  
  13. This patch adds a new shell script for people with DWB1.0.
  14. It also kludges "djet/device.c" to ignore the \| and \^
  15. special characters which DWB1.0 tries to print even though
  16. they aren't printable.
  17.  
  18. People with DWB2.0 need just apply this patch to keep
  19. the Shareware version of JetRoff source code current,
  20. in case I release more patches (doubtful, since the
  21. commercial version of JetRoff is much better than the
  22. Shareware version, and supports the HP LJ+, clones,
  23. and the HP Deskjet).
  24.  
  25. People with DWB1.0 will know that they need this patch if
  26. the manual pages come out looking like troff ignored some
  27. formatting commands. After applying this patch, DWB1.0
  28. people should read and follow the instructions in file
  29. "font/devjet/dbw1fix.sh".
  30.  
  31.     cd root_of_JetRoff_source
  32.     cat >font/devjet/dwb1fix.sh </dev/null
  33.     chmod +x font/devjet/dwb1fix.sh
  34.     patch -p <Patch04
  35.  
  36. Here are the diffs:
  37.  
  38. *** /dev/null    Fri Sep  1 08:40:11 1989
  39. --- font/devjet/dwb1fix.sh    Fri Sep  1 08:57:07 1989
  40. ***************
  41. *** 1,0
  42.  
  43. --- 1,56 -----
  44. + #
  45. + #    Fix makeDESC output for DWB 1.0 which requires that the
  46. + #    psuedo chars '\|' and '\^' be in the font tables
  47. + #
  48. + #    $Id: dwb1fix.sh,v 1.2 89/09/01 09:03:06 rick Exp $
  49. + #
  50. + #    this file gets installed as "/usr/lib/font/devjet/dwb1fix"
  51. + #
  52. + #
  53. + #    If you have DWB 1.0, you should call this script from
  54. + #    the script "/usr/lib/font/fontcfg".  Your "fontcfg"
  55. + #    script should look something like this when you
  56. + #    get done adding the call:
  57. + #        ...
  58. + #        ./makeDESC $*
  59. + #        ./dwb1fix
  60. + #        echo "Making standard fonts:  \c"
  61. + #        ...
  62. + #
  63. + #    Then, run "fontcfg" again.
  64. + #
  65. + #    NOTE:
  66. + #        DWB 1.0's troff is likely to core dump if a large
  67. + #    number of special characters or fonts are configured.
  68. + #    If you have this trouble, trim out some special characters
  69. + #    that you don't need from the *.code tables, then re-run "fontcfg".
  70. + #    With JetRoff 2.6, you can knock out all of the "combo" characters
  71. + #    by running "fontcfg -C".  This is a quick way to determine if
  72. + #    you need to trim the *.code tables yourself.
  73. + #
  74. + EM_SIXTH=6    # 1/6 em in dots at 10 point (roughly)
  75. + EM_TWELFTH=3    # 1/12 em in dots at 10 point (roughly)
  76. + echo "Adding psuedo chars '\|' and '\^' for DWB 1.0's pleasure"
  77. + for i in [A-Z] [A-Za-z][A-Za-z] 
  78. + do
  79. +     if [ ! -f $i ]; then continue; fi
  80. +     echo $i
  81. +     ed - $i <<-EOF
  82. +     /charset/a
  83. +     \|    $EM_SIXTH 0    0
  84. +     \^    $EM_TWELFTH 0    0
  85. +     .
  86. +     w
  87. +     q
  88. +     EOF
  89. + done
  90. + ed - DESC <<-EOF
  91. + /charset/a
  92. + \| \^
  93. + .
  94. + w
  95. + q
  96. + EOF
  97. *** font/devjet/makefile.old    Fri Sep  1 09:07:21 1989
  98. --- font/devjet/makefile    Fri Sep  1 09:07:48 1989
  99. ***************
  100. *** 52,57
  101.       if [ ! -d $(FONTDIR) ]; then mkdir $(FONTDIR); fi
  102.       cp fontlist *.code *.out *.SZ $(FONTDIR)
  103.       cp fontcfg.sh $(FONTDIR)/fontcfg
  104.       cp makeDESC sfp2pk $(FONTDIR)
  105.       if [ -d ../mf ]; \
  106.           then cd pk; make install; else cd pk; make just_install;fi
  107.  
  108. --- 52,58 -----
  109.       if [ ! -d $(FONTDIR) ]; then mkdir $(FONTDIR); fi
  110.       cp fontlist *.code *.out *.SZ $(FONTDIR)
  111.       cp fontcfg.sh $(FONTDIR)/fontcfg
  112. +     cp dwb1fix.sh $(FONTDIR)/dwb1fix
  113.       cp makeDESC sfp2pk $(FONTDIR)
  114.       if [ -d ../mf ]; \
  115.           then cd pk; make install; else cd pk; make just_install;fi
  116. ***************
  117. *** 60,65
  118.       if [ ! -d $(FONTDIR) ]; then mkdir $(FONTDIR); fi
  119.       cp fontlist *.code *.out *.SZ $(FONTDIR)
  120.       cp fontcfg.sh $(FONTDIR)/fontcfg
  121.       cp makeDESC sfp2pk $(FONTDIR)
  122.   
  123.   lint:
  124.  
  125. --- 61,67 -----
  126.       if [ ! -d $(FONTDIR) ]; then mkdir $(FONTDIR); fi
  127.       cp fontlist *.code *.out *.SZ $(FONTDIR)
  128.       cp fontcfg.sh $(FONTDIR)/fontcfg
  129. +     cp dwb1fix.sh $(FONTDIR)/dwb1fix
  130.       cp makeDESC sfp2pk $(FONTDIR)
  131.   
  132.   lint:
  133. *** djet/Odevice.c    Fri Sep  1 21:37:25 1989
  134. --- djet/device.c    Fri Sep  1 21:41:03 1989
  135. ***************
  136. *** 228,233
  137.           Fprintf(stderr,"Special \"%s\", Font %d, Size %d, at (%d,%d)\n",
  138.               s, FontNumber, PointSize, TroffX, TroffY);
  139.       }
  140.       for (i = 0; i < DESC_dev.nchtab; ++i)
  141.           if (strcmp(&DESC_funny_names[DESC_funny_index[i]], s) == 0)
  142.           {
  143.  
  144. --- 228,238 -----
  145.           Fprintf(stderr,"Special \"%s\", Font %d, Size %d, at (%d,%d)\n",
  146.               s, FontNumber, PointSize, TroffX, TroffY);
  147.       }
  148. +     if (s[0] == '\\' && (s[1] == '|' || s[1] == '^') )
  149. +     {    /* Kludge for DWB 1.0, ignore \| and \^ */
  150. +         if (debug) Fprintf(stderr,"Special \"%s\" ignored\n", s);
  151. +         return;
  152. +     }
  153.       for (i = 0; i < DESC_dev.nchtab; ++i)
  154.           if (strcmp(&DESC_funny_names[DESC_funny_index[i]], s) == 0)
  155.           {
  156. *** OREADME    Fri Sep  1 21:51:31 1989
  157. --- README    Fri Sep  1 21:57:29 1989
  158. ***************
  159. *** 55,76
  160.   
  161.         - Can    print in landscape or portrait orientations.
  162.   
  163.         - Can    print multiple logical pages per physical page.
  164.   
  165.         - Can    print manual pages on both sides of legal paper    for
  166.  
  167. --- 55,60 -----
  168.   
  169.         - Can    print in landscape or portrait orientations.
  170.   
  171.         - Can    print multiple logical pages per physical page.
  172.   
  173.         - Can    print manual pages on both sides of legal paper    for
  174. ***************
  175. *** 98,103
  176.            path for the font libraries ``/usr/lib/font/devjet'',
  177.            since troff itself    uses some of this information.
  178.   
  179.        3.  Edit ``djet/jetroff.sh'' and set the correct options
  180.            so    that your ``lp'' spooler sends its output to your
  181.            printer without converting    NL to CR/NL.  On our
  182.  
  183. --- 82,90 -----
  184.            path for the font libraries ``/usr/lib/font/devjet'',
  185.            since troff itself    uses some of this information.
  186.   
  187. +      2a. If you are using a DWB 1.0 troff, read the comments
  188. +          in ``font/devjet/dwb1fix.sh''.
  189.        3.  Edit ``djet/jetroff.sh'' and set the correct options
  190.            so    that your ``lp'' spooler sends its output to your
  191.            printer without converting    NL to CR/NL.  On our
  192. ***************
  193. *** 107,113
  194.   
  195.        4.  If    you do not have    the extended font set for JetRoff,
  196.            you must also edit    ``font/devjet/fontlist'' and
  197. !          comment out the H,    HI, HB,    and HD lines.
  198.   
  199.        5.  If    you are    a BSD site, go to the root of the source
  200.            tree and type ``make bsd''.  This attempts    to build
  201.  
  202. --- 94,102 -----
  203.   
  204.        4.  If    you do not have    the extended font set for JetRoff,
  205.            you must also edit    ``font/devjet/fontlist'' and
  206. !          comment out the H,    HI, HB,    and HD lines.  This will
  207. !          cause troff to emit warnings about missing fonts on
  208. !          some documents, and will instead choose the R font.
  209.   
  210.        5.  If    you are    a BSD site, go to the root of the source
  211.            tree and type ``make bsd''.  This attempts    to build
  212. ***************
  213. *** 123,142
  214.        7.  cd    to ``doc'', and    type ``make man''.  If your shell
  215.            is    too old    to grok    the ``jetroff''    script,    do this:
  216.   
  217.             tbl *.1 *.5 |    troff -mjetroff    -man -Tjet | djet | lp -otroff
  218.   
  219.            (Remember,    the ``-otroff''    depends    on your    local
  220.  
  221. --- 112,117 -----
  222.        7.  cd    to ``doc'', and    type ``make man''.  If your shell
  223.            is    too old    to grok    the ``jetroff''    script,    do this:
  224.   
  225.             tbl *.1 *.5 |    troff -mjetroff    -man -Tjet | djet | lp -otroff
  226.   
  227.            (Remember,    the ``-otroff''    depends    on your    local
  228. ***************
  229. *** 153,158
  230.             JetRoff Shareware
  231.             94 Apple Orchard Drive
  232.             Tinton Falls,    NJ   07724
  233.   
  234.       10.  Remember that if you give someone a copy of the
  235.            JetRoff source code, you must give    it to them without
  236.  
  237. --- 128,134 -----
  238.             JetRoff Shareware
  239.             94 Apple Orchard Drive
  240.             Tinton Falls,    NJ   07724
  241. +           (201) 389-8963
  242.   
  243.       10.  Remember that if you give someone a copy of the
  244.            JetRoff source code, you must give    it to them without
  245. ***************
  246. *** 177,198
  247.        4.  Edit fontlist, and    add the    info about your    font.
  248.   
  249.        5.  Run ``fontcfg''.  That's it.
  250.   
  251.  
  252. --- 153,156 -----
  253.        4.  Edit fontlist, and    add the    info about your    font.
  254.   
  255.        5.  Run ``fontcfg''.  That's it.
  256.   
  257. *** ORegister.mm    Fri Sep  1 21:57:51 1989
  258. --- Register.mm    Fri Sep  1 22:01:41 1989
  259. ***************
  260. *** 20,25
  261.   JetRoff Shareware
  262.   94 Apple Orchard Drive
  263.   Tinton Falls, NJ   07724
  264.   .DE
  265.   
  266.   
  267.  
  268. --- 20,26 -----
  269.   JetRoff Shareware
  270.   94 Apple Orchard Drive
  271.   Tinton Falls, NJ   07724
  272. + (201) 389-8963
  273.   .DE
  274.   
  275.   
  276. ***************
  277. *** 23,30
  278.   .DE
  279.   
  280.   
  281. ! If you would like to contribute and register your copy of JetRoff,
  282. ! please complete this form.  The suggested contribution, per computer
  283.   on which you use JetRoff, is $50.00 for an individual and $100.00
  284.   for a business (US Dollars).  Write to us for site licensing or
  285.   resale information.
  286.  
  287. --- 24,31 -----
  288.   .DE
  289.   
  290.   
  291. ! To license and register your copy of JetRoff,
  292. ! please complete this form.  The license fee, per computer
  293.   on which you use JetRoff, is $50.00 for an individual and $100.00
  294.   for a business (US Dollars).  Write to us for site licensing or
  295.   resale information.
  296. ***************
  297. *** 30,36
  298.   resale information.
  299.   
  300.   I have read the JetRoff Licensing agreement and agree to the terms
  301. ! and conditions stated in it.
  302.   
  303.   
  304.   '\"    This looks better if B is HD
  305.  
  306. --- 31,38 -----
  307.   resale information.
  308.   
  309.   I have read the JetRoff Licensing agreement and agree to the terms
  310. ! and conditions stated in it.  I also understand that the licensed
  311. ! version 2.6 of JetRoff which I will receive is not shareware.
  312.   
  313.   
  314.   '\"    This looks better if B is HD
  315. ***************
  316. *** 50,55
  317.   
  318.   Phone    \l'4i'
  319.   
  320.   
  321.   
  322.   .ta 1.5i
  323.  
  324. --- 52,58 -----
  325.   
  326.   Phone    \l'4i'
  327.   
  328. + E-Mail    \l'4i'
  329.   
  330.   
  331.   .ta 1.5i
  332. ***************
  333. *** 53,59
  334.   
  335.   
  336.   .ta 1.5i
  337. ! Computer    \l'3.25i'
  338.   
  339.   Operating system    \l'3.25i'
  340.   
  341.  
  342. --- 56,62 -----
  343.   
  344.   
  345.   .ta 1.5i
  346. ! Computer/OS    \l'3.25i'
  347.   
  348.   Printer Model    \l'3.25i'
  349.   
  350. ***************
  351. *** 55,61
  352.   .ta 1.5i
  353.   Computer    \l'3.25i'
  354.   
  355. ! Operating system    \l'3.25i'
  356.   
  357.   I got my copy from    \l'3.25i'
  358.   
  359.  
  360. --- 58,64 -----
  361.   .ta 1.5i
  362.   Computer/OS    \l'3.25i'
  363.   
  364. ! Printer Model    \l'3.25i'
  365.   
  366.   I got my copy from    \l'3.25i'
  367.   
  368. ***************
  369. *** 58,65
  370.   Operating system    \l'3.25i'
  371.   
  372.   I got my copy from    \l'3.25i'
  373.   
  374.   
  375.   .ta 3i
  376.  
  377. --- 61,66 -----
  378.   Printer Model    \l'3.25i'
  379.   
  380.   I got my copy from    \l'3.25i'
  381.   
  382.   
  383.   .ta 3i
  384. *** OLicense    Fri Sep  1 22:06:30 1989
  385. --- License    Fri Sep  1 22:08:20 1989
  386. ***************
  387. *** 1,7
  388.              tm
  389.       JetRoff   - HP LaserJet Series II postprocessor for DWB 2.0
  390.   
  391. !     (c) Copyright 1988 PC Research, Inc.  All Rights Reserved.
  392.   
  393.   
  394.               SHAREWARE LICENSE
  395.  
  396. --- 1,7 -----
  397.              tm
  398.       JetRoff   - HP LaserJet Series II postprocessor for DWB 2.0
  399.   
  400. !     (c) Copyright 1988,1989 PC Research, Inc.  All Rights Reserved.
  401.   
  402.   
  403.               SHAREWARE LICENSE
  404. ***************
  405. *** 17,22
  406.               JetRoff Shareware
  407.               94 Apple Orchard Drive
  408.               Tinton Falls, NJ   07724
  409.   
  410.   Smaller contributions will be accepted; send what you can afford.
  411.   However, we believe that JetRoff is worth this token amount
  412.  
  413. --- 17,23 -----
  414.               JetRoff Shareware
  415.               94 Apple Orchard Drive
  416.               Tinton Falls, NJ   07724
  417. +             (201) 389-8963
  418.   
  419.   When you consider the effort I've gone through to provide this
  420.   package to you, the effort you may have to go through to get
  421. ***************
  422. *** 18,27
  423.               94 Apple Orchard Drive
  424.               Tinton Falls, NJ   07724
  425.   
  426. - Smaller contributions will be accepted; send what you can afford.
  427. - However, we believe that JetRoff is worth this token amount
  428. - when compared to other commercial alternatives.
  429.   When you consider the effort I've gone through to provide this
  430.   package to you, the effort you may have to go through to get
  431.   your company or spouse to agree to write out a check is minimal.
  432.  
  433. --- 19,24 -----
  434.               Tinton Falls, NJ   07724
  435.               (201) 389-8963
  436.   
  437.   When you consider the effort I've gone through to provide this
  438.   package to you, the effort you may have to go through to get
  439.   your company or spouse to agree to write out a check is minimal.
  440. ***************
  441. *** 26,34
  442.   package to you, the effort you may have to go through to get
  443.   your company or spouse to agree to write out a check is minimal.
  444.   
  445. ! In return for your contribution, you will be placed on the list of
  446. ! registered users and notified of enhancements, bug fixes, and
  447. ! additional fonts for JetRoff.  All correspondence concerning
  448.   JetRoff should be directed to the above address or to the
  449.   USENET address: ..!uunet!pcrat!jetroff.
  450.   
  451.  
  452. --- 23,31 -----
  453.   package to you, the effort you may have to go through to get
  454.   your company or spouse to agree to write out a check is minimal.
  455.   
  456. ! In return for your license fee, you will be placed on the list of
  457. ! registered users and will receive the full version 2.6 source
  458. ! code and font sets.  All correspondence concerning
  459.   JetRoff should be directed to the above address or to the
  460.   USENET address: ..!uunet!pcrat!jetroff.
  461.   
  462. ***************
  463. *** 78,80
  464.       possession.
  465.   
  466.   August, 1988
  467.  
  468. --- 75,78 -----
  469.       possession.
  470.   
  471.   August, 1988
  472. + August, 1989
  473. -- 
  474. Rick Richardson | JetRoff "di"-troff to LaserJet Postprocessor|uunet!pcrat!dry2
  475. PC Research,Inc.| Mail: uunet!pcrat!jetroff; For anon uucp do:|for Dhrystone 2
  476. uunet!pcrat!rick| uucp jetroff!~jetuucp/file_list ~nuucp/.    |submission forms.
  477. jetroff Wk2200-0300,Sa,Su ACU {2400,PEP} 12013898963 "" \d\r\d ogin: jetuucp
  478.  
  479.  
  480.