Re: DOCBOOK-APPS: Translating latex to docbook

2001-11-29 Thread Jirka Kosek

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: [EMAIL PROTECTED]
  http://www.kosek.cz



RE: DOCBOOK-APPS: Translating latex to docbook

2001-11-29 Thread Jens Emmerich

Hi,

Probably best is to use something like untex to remove any markup and add
mark up accordingly by hand. That's quicker for a one-shot solution than
configuring any (complex) transafromation tool.

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.

See also Sebastian's advice:

http://lists.oasis-open.org/archives/docbook-apps/27/msg00218.html

which partially applies to LaTeX as well, depending on the amount of visual
markup.

Jens

Btw. I had those exceptionally clean Word files to convert, but it was a lot
of clean-up anyway.

> -Original Message-
> From: Vladimir Blagojevic [mailto:[EMAIL PROTECTED]]
> Sent: Mittwoch, 28. November 2001 01:31
> To: [EMAIL PROTECTED]
> Subject: DOCBOOK-APPS: Translating latex to docbook
> 
> 
> Hi,
> 
> Does someone know less painful translation process from latex 
> to docbook
> than tex4ht?  It will take me at least two days to set up this tex4ht
> enviroment and all I need is one shot translation of a 3000 
> words document
> from latex to docbook?  
> 
> Thanks,
> Vladimir
> 
> 



DOCBOOK-APPS: Translating latex to docbook

2001-11-27 Thread Vladimir Blagojevic

Hi,

Does someone know less painful translation process from latex to docbook
than tex4ht?  It will take me at least two days to set up this tex4ht
enviroment and all I need is one shot translation of a 3000 words document
from latex to docbook?  

Thanks,
Vladimir