Date: Sat, 3 Aug 2002 11:15:05 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "Philip M. Gollucci" <philip@p6m7g8.com> Cc: questions@FreeBSD.ORG Subject: Re: Text proccessing Message-ID: <20020803101505.GA59572@happy-idiot-talk.infracaninophi> In-Reply-To: <3D4B7222.1000508@p6m7g8.com> References: <3D4B7222.1000508@p6m7g8.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 03, 2002 at 02:03:14AM -0400, Philip M. Gollucci wrote:
> I would like to be able to autogenerate files of the following format:
> .doc
> .sdw
> .rtf
> .txt
> .html
> .pdf
> .ps
>
> from one "master file" it doesn't really matter to me which one is the
> master as long as I can edit it in XEmacs. What tools for FreeBSD exist
> for this. Which format should I start with ? If its easier to start
> with a format I haven't listed, please let me know.
>
> The other requirement, is that what ever .html file is generated needs
> to be able to be run through tidy and have it autocorrect any errors.
If you start with TeX format, which you can generate easily in XEmacs,
then you can generate ps, pdf, rtf, html and txt fairly readily. If
you have rtf, it should then be possible to generate doc and sdw:
.tex
--------------------------------------------
| |
| latex (teTeX) | latex2rtf
| |
.dvi .rtf
----------------------- ---------------------------
| | | | | |
| dvips | dvipdfm | catdvi | rtf2htm | OpenOffice | OpenOffice
| | | | | |
.ps .pdf .txt .html .doc .sdw
| |
| ps2pdf | pdftohtml
| |
.pdf .html
There are any number of other programs that will do similar
conversions in ports, of greater or lesser quality. I'm afraid you're
just going to have to experiment to find out what works best. You can
hunt out candidates for dealing with particular file types by (eg.):
cd /usr/ports
make search key=pdf
There are other tricks to getting good results: for instance, using
postscript fonts rather than metafont fonts with TeX yields better
looking .pdf output
(http://www.aaai.org/Publications/Author/latex-fonts.html,
http://www.acm.org/toplas/latex/,
http://web.gat.com/diag/pci/ltx2pdf.html)
Apart from OpenOffice, all of these are command line and can be
readily scripted or used in Makefiles. I know of no way of generating
.doc files or {Open,Star}Office file formats without firing up a GUI
and requiring human intervention.
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
Tel: +44 1628 476614 Marlow
Fax: +44 0870 0522645 Bucks., SL7 1TH UK
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020803101505.GA59572>
