groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] rtf (word) output


From: 21150918
Subject: [Groff] rtf (word) output
Date: Tue, 5 Oct 2004 20:31:39 +0200
User-agent: KMail/1.6.2

Good evening.

Some time ago there was a thread concerning a groff output that word
can read.

   I had an idea of a rtf output by means of a combination of a sed script
and a tmac file.  The tmac file mimics mm macros and outputs rtf (as
a plain ascii file with the -Tascii (-Tlatin1) option), and the whole
project is preceded by a sed script managing the inline requests.
So that the idea is that I can take a normal groff.mm source code
file, preprocess it with the sed script, process it with my "m2l.tmac"
instead of "mm.tmac" and get the rtf output.

   OK. I don't know RTF well enough (yet?), so I adopted a more dirty
method and created a latex output wich then is reformatted into rtf
by the latex2rtf program.

   This method works for my needs which I admit are very simple.  I don't
know how far that approach can lead; footnotes work, but tables are
not supported and I didn't try do do that.  On the other hand every
good groffer could adapt that to MS, MOM or ME in no time and better
than I could.

   Perhaps it will be the better choice to output direct rtf; or perhaps
it would be wise to leave the project in the limited area where it is.

   Is someone interested in either trying how it works or looking
into it and giving advice whether this method can lead *anywhere*?
I wrote a bash script that manages the process and made a tarball
out of it with a size of roughly 8500kb containing the tmac file,
the script and a readme.  Well this is a bit plain cooking because
I'm no programmer at all.

Best,

erich









reply via email to

[Prev in Thread] Current Thread [Next in Thread]