Hello all, On Wed, 5 Dec 2012 14:11:40 -0600 Nico Williams <[email protected]> wrote:
> ... If there was a > loss-free, bi-directional conversion between LyX and some XML schema > (XHTML, say), then that'd be good enough for now. There is an export > to XHTML function, but I don't think there's an import from XHTML.... Some time ago I experimented with LyX<->XML roundtrip. In my idea, XML was not one-to-one mapping of .lyx structure, but an XML format * which convenient for processing and generation, and * with enough hints to restore one-to-one correspondence. Unfortunately, I had to switch to other projects, and left the work abandoned. Only a part of functionality was implemented: * http://wiki.lyx.org/Devel/LyXFileFormatReverse * https://github.com/olpa/tex/tree/master/lyxml Use "lyxml.py" for testing. In any case, "lyxparser.py" is a good callback-style Python parser of .lyx files. > > Nico > -- > -- Oleg Parashchenko olpa@ http://uucode.com/ http://uucode.com/blog/ XML, TeX, Python, Mac, Chess
