patch to dvi2tty to make output more readable

Peter Marshall peter at ria.ccs.uwo.ca
Wed Jan 3 01:05:50 AEST 1990


The following patches were made to the dvi2tty program converted to C
by Marcel Mol: 1988-10-25 (UUCP: dutesta!mol). They make the output of
the conversion (for me) suitable for mailing without any further
post-processing.  Straight ascii output from TeX isn't quite there
yet, but it isn't bad.

*** dvi2tty.c.old	Mon Jan 23 00:00:08 1989
--- dvi2tty.c	Wed Sep  6 22:12:37 1989
***************
*** 1,4 ****
--- 1,9 ----
  /******************************************************************************
+  * Peter Marshall: 1989-09-06 <peter at uwo.ca>
+  *        dvistuff.c, dvi2tty (comments only)
+  *               made some minor changes to make itemizes display as dashes
+  *               instead of ffl ligatures and to display opening ``s as "
+  *               rather than \ (just un-commented some existing code for this).
   * Marcel Mol: 1988-10-25  (UUCP: dutesta!mol)
   *        dvi2tty.c dvi2tty.h dvistuff.c commands.h
   *               Converted program to C.
*** dvistuff.c.old	Sun Jan  1 23:12:54 1989
--- dvistuff.c	Wed Sep  6 22:06:23 1989
***************
*** 692,699 ****
--- 692,702 ----
          case 13  :  outchar('f'); ch = 'l'; break;  /* ligature        */
          case 14  :  outchar('f'); outchar('f');
                                    ch = 'i'; break;  /* ligature        */
+ /* doesn't seem right this should be a bullet. pbm
          case 15  :  outchar('f'); outchar('f');
                                    ch = 'l'; break;  /* ligature        */
+ /* show a dash for the bullet pbm */
+ 	case 15  :  outchar('-'); ch = ' '; break;
          case 16  :  ch = 'i'; break;
          case 17  :  ch = 'j'; break;
          case 25  :  outchar('s'); ch = 's'; break;  /* German double s */
***************
*** 711,717 ****
                      else
                          ch = 'O';
                      break;
! #if 0
          case 92  :  ch = '"'; break;                /* beginning qoute  */
          case 123 :  ch = '-'; break;
          case 124 :  ch = '_'; break;
--- 714,720 ----
                      else
                          ch = 'O';
                      break;
! #if 1
          case 92  :  ch = '"'; break;                /* beginning qoute  */
          case 123 :  ch = '-'; break;
          case 124 :  ch = '_'; break;




--
--
Peter Marshall, Data Comm. Manager
CCS, U. of Western Ontario, London, Canada N6A 5B7
(519)661-2111x6032 or 661-2151 to leave a message 
peter.marshall at uwo.ca pm at uwovax (BITNET); peter at julian.uucp



More information about the Comp.sources.bugs mailing list