This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Translating latex to docbook
- From: Jirka Kosek <jirka at kosek dot cz>
- To: Jens Emmerich <Jens dot Emmerich at brokat-le dot com>
- Cc: "'docbook-apps at lists dot oasis-open dot org'" <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 29 Nov 2001 15:52:11 +0100
- Subject: Re: DOCBOOK-APPS: Translating latex to docbook
- List-id: <docbook-apps.lists.oasis-open.org>
- References: <410054F605B3D311BF640000C0C06A0E01CA5301@xc1.brokat-le.com>
Jens Emmerich wrote:
> Apart from sectioning and some kinds of lists, LaTeX/TeX's document markup
> mixing visual and locigal markup does not allow "correct" automatic
> translation into DocBook's more semantic markup.
I cann't agree with you. I have a lot of older documents in TeX. It's
not problem to use high-level macros to semanticaly markup your TeX
documents. If your documents use this approach it is quite easy to write
some script to convert them to DocBook. I personally used OmniMark
scripting engine for this purpose. It has unique output validating
parser - it means that result of transformation can be validated
on-the-fly and you can query current context in the XML/SGML output when
deciding how to convert something from TeX to XML/SGML. Even very simple
script can handle 99 % of TeX input. Rest can be turned to PIs and
cleaned manually.
But if your TeX source uses low-level formatting commands, nothing will
help you. ;-)
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz