On Wed, May 1, 2013 at 7:21 AM, ehud.kaplan <ehud.kap...@gmail.com> wrote:
> I had tried to convert from a Lyx document (a Ph.D. thesis, ~140 pages) to
> LibreOffice (File/Export/HTML).  Much of it worked, but there were many
> problems:
>
> Equation numbers moved from right to left
> Figures were totally distorted (size scaled up),
> Some equations and algorithms were mangled
> Several sections appeared centered instead of being left justified as they
> were originally.
>
> Using File/Export/LYXHTML produced similar results, although the equation
> numbers were not mangled.
>
> In short, such conversions do a lot, but they also leave a lot for manual
> fixing.  I suspect that if such a path were available, many more people
> would use Lyx.

If you understand the target XML schemata then just write an XSL (in
XSLT) for the conversion from LyXHTML to that target.  I've done this.
 It's a small project, and it does depend on the stability of the
LyXHTML "schema" (XHTML documents don't have a schema so much as
conventions), which is probably not really stable.  You could also use
my lyx2xml converter and write XSLs that consume that.  The latter
depends on the .lyx "schema", which too is not stable, but working
with raw LyX metadata is easier than an XHTML rendering of a LyX
document, and you can always use lyx2lyx to workaround lack of
stability in .lyx, whereas nothing really helps w.r.t. LyXHTML
instability.

If the OpenOffice XML schemata are too complex but there's some other
intermediate XML schema for which there's a suitably faithful
converter out there, then you could use it as a step in the conversion
process.

Nico
--

Reply via email to