Hi Georg,

Georg Baum wrote:

John Pye wrote:

Can anyone offer any comments on what would be the 'safest path' for
converting Framemaker files into Docbook Lyx files?

You know http://www.cs.brandeis.edu/~pablo/mif2lyx/ ? It is somewhat
limited, but it might be possible to extend it.
The perl module cited as prereq doesn't exist on CPAN. Not that I could find with search.

Is a (nearly) lossless conversion from framemaker to latex possible? Then
you could use tex2lyx (see http://wiki.lyx.org/LaTeX/LatexToLyx) to produce
the LyX files. If tex2lyx fails to convert something then it is probably
easy to fix. The big advantage of this method is that you don't have to
worry about the LyX format.
Nope. Converting from frame to latex is a flakey process. No point going via latex here.

Another possibility would be to read the MIF or XML files with a python
script and use $LYXDIR/lib/lyx2lyx/LyX.py to create the LyX document.
LyX.py has no support for tables yet, so you'll have to write that, but
this would need to happen sometimes anyway.
That might be interesting. Is there no XML-based Lyx file format yet? What does lyx2lyx do, I can't see any documentation on the net.

Come to that, is there a lyx file format reference somewhere?

My best best really does seem to be to write an XSLT to convert from either mif2xml output (or the direct Framemaker XML-export output) to a *structured file format* that Lyx can read reliably. I tried to write out XML directly but it seemed really hard to resolve the whitespace problems.

You can see my efforts at
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2lyx.xsl?rev=310&view=markup
also, see my somewhat more successful
https://pse.cheme.cmu.edu/svn-view/ascend/documentation/trunk/xml/fm2html.xsl?rev=310&view=markup

Cheers
JP

Reply via email to