[425] in Commercialization & Privatization of the Internet

home help back first fref pref prev next nref lref last post

One small meta-flame and then I'll shut up -- promise

daemon@ATHENA.MIT.EDU (Alan Crosswell)
Sat Mar 23 13:14:02 1991

Date: Sat, 23 Mar 91 12:58:17 GMT-0500
From: alan@curta.cc.columbia.edu (Alan Crosswell)
To: brian@napa.telebit.com
Cc: droms@bucknell.edu, com-priv@uu.psi.com
In-Reply-To: Brian Lloyd's message of Fri, 22 Mar 91 21:50:53 PST <9103230550.AA12708>

>  Has anyone ever produced a WYSIWYG nroff/troff generator?  How
>  convenient something like that would be.

>From the RTF README file (archive address can be found below):

RTF-stuff 1.05
04 Mar 91       Paul DuBois     dubois@primate.wisc.edu

This directory contains source and documentation (heh, heh, heh) for
a simple RTF (Rich Text Format) translation tool.  Files in this format
can be produced with, e.g., Microsoft Word.

If you use the Imakefile, you must obtain the WRPRC imake distribution.
If you want to skip that and just use the Makefile you will have to edit
some of the make variable definitions.  Use "make -n" and "make -n install"
to see what will happen on your machine first!

Documentation that is in troff format should be formatted with the -ms
macros.

The WRPRC imake distribution is available via anonymous ftp to host
indri.primate.wisc.edu (Internet address 128.104.230.11) in ~ftp/pub.

The translators currently available are listed below.  Most of them
don't do anything interesting.

rtf2null        RTF -> nothing
rtf2text        RTF -> plain text
rtf2troff       RTF -> troff
rtfwc           "translates" RTF into character, word and paragraph count
rtfdiag         RTF diagnostic program, used mainly to test RTF reader
rtfskel         RTF translator skeleton, for use in building new translators

Each translator uses a tool which reads an RTF input stream and passes
pieces of it to a writer.

There is also a tool, rtfindent, which reads an RTF file and writes it in
somewhat more readable form.  This is helpful when designing a translator,
to see what RTF files look like, but the output should not be fed into
a translator.

Distribution files of interest:

rtf.h           RTF header file; include in any source file using
                RTF-specific info.
reader.c        RTF reader.  Must be part of any RTF translator.  See the
                sample translators for examples of use.
rtfskel.c       Skeleton translator.  You can rip this apart to use as the
                basis for new translators.
Porting         Some notes on machine dependencies.


home help back first fref pref prev next nref lref last post