[BL] RTF

baslinux at lists.ibiblio.org baslinux at lists.ibiblio.org
Tue Aug 7 06:37:10 EDT 2007


Sins the problem of converting to RTF have bin up on this list I just
post this cut out from some resent mail to the groff mailing list. It
might be of no interest what so ewer but it can't be of any harm that
I post it.

/Mikkel

...............................................................................................
...............................................................................................


Has anyone out there in Groffland had to produce RTF output, and
what did you do to produce it?  I'm not looking forward to
learning RTF and writing my own troff or PS to RTF filter.


--
James Bailie <jimmy at mammothcheese.ca>
http://www.mammothcheese.ca





Reply Reply to all Forward Invite James to Gmail





    Reply
 Reply to all
 Forward
 Print
 Add Ted to Contacts list
 Delete this message
 Report phishing
 Show original
 Message text garbled?
 Ted Harding  to James, groff
 show details  Aug 3 (4 days ago)

On 03-Aug-07 14:59:56, James Bailie wrote:
> Has anyone out there in Groffland had to produce RTF output, and
> what did you do to produce it?  I'm not looking forward to
> learning RTF and writing my own troff or PS to RTF filter.


It's not something I do myself, but in the past I had a go at
the program troffcvt:

 http://www.snake.net/software/troffcvt

which does a reasonable job with troff input files that are
not too complicated.

You can't hope for a complete translation, since the structure
of troff is different from that of RTF. In particular, a lot
of the work which troff does is done underground, and the sequence
of events does not lend itself to simple representation in RTF.

If you do try troffcvt, be prepared to do some work yourself.

In particular, if you have defined any personal macros, you
will probably have to write "action" files so that troffcvt
can handle them.

Hoping this helps!
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 03-Aug-07                                       Time: 18:12:05
------------------------------ XFMail ------------------------------





Reply Reply to all Forward Invite Ted to Gmail





    Reply
 Reply to all
 Forward
 Print
 Add Werner to Contacts list
 Delete this message
 Report phishing
 Show original
 Message text garbled?
 Werner LEMBERG  to ted.harding, ted.harding, jimmy, groff
 show details  Aug 3 (4 days ago)

> > Has anyone out there in Groffland had to produce RTF output, and
> > what did you do to produce it?  I'm not looking forward to
> > learning RTF and writing my own troff or PS to RTF filter.
>
> It's not something I do myself, but in the past I had a go at
> the program troffcvt:
>
>   http://www.snake.net/software/troffcvt
>
> which does a reasonable job with troff input files that are
> not too complicated.


Assuming that there's an HTML to RTF generator, doclifter might be a
better choice.



   Werner



More information about the BasLinux mailing list