[fa.info-mac] MacWrite to Troff converter for Vax Unix

info-mac@uw-beaver (12/31/84)

From: (Van Jacobson) van@lbl-csam

Attached is a version of Mike Caplinger's MacWrite-to-Troff converter
that will run on a Vax (i.e., it has byte swaps inserted at appropriate
points).  This version should also work on a Sun (the byteswap is done
with the "ntohs" network routine with should be a nop on a Sun).

In addition to the byte swaps:

 - a translation table that maps all the special characters in the
   standard Mac Geneva font into appropriate troff characters has
   been added.

 - lines bracketed by .TS/.TE or .EQ/.EN are treated specially so
   tbl tables and eqn equations can be embedded in the MacWrite
   document.

 - there's a "-p" flag that saves space for pictures that were in the
   MacWrite document (to help make a `paste-up' final document).

 - a couple of minor bugs were squashed.

A complete shar archive follows.  Most files are self explanatory.  The
file "write2troff.dl" is a tohex'd MacWrite document describing the
program.  The fromhex'd .data version of it can be used as a test case
and/or downloaded to the Mac & inspected with MacWrite (you should
macput it with type "WORD" and owner "MACA").

Happy new year.

- Van (van@lbl-csam.arpa)

[filed on <info-mac>writetotroff.sh]