Prannoy Pilligundla
2014-07-03 15:06:28 UTC
Hi Everyone,
I am almost done with LyX to ODT part of my project and I started work on
the roundtrip i.e ODT to LyX part of the project. For LyX to ODT I
converted LyX to LaTeX first and then used tex4ht for converting LaTeX to
ODT. In case of math I am also storing the latex expression as it as in the
ODT file(using annotation property) as meta data.
Now for getting back to LyX from ODT I am thinking of writing a python
script which does this conversion. As of now I am planning to use the xml
parsers expat library <https://docs.python.org/2/library/pyexpat.html>.I
also had a look at lyx2lyx scripts. I tried using Writer2LaTeX but it
doesn't suit our purpose of getting back the same LyX file. I am not very
clear on how to go ahead from this juncture. For example I am not clear on
how I will get information about all the packages used from the ODT file. I
feel I am not aware of many issues which need to be taken care of during
this conversion process. It would be great to hear your comments and
suggestions on how to go ahead
Thanks and Regards
Prannoy Pilligundla
I am almost done with LyX to ODT part of my project and I started work on
the roundtrip i.e ODT to LyX part of the project. For LyX to ODT I
converted LyX to LaTeX first and then used tex4ht for converting LaTeX to
ODT. In case of math I am also storing the latex expression as it as in the
ODT file(using annotation property) as meta data.
Now for getting back to LyX from ODT I am thinking of writing a python
script which does this conversion. As of now I am planning to use the xml
parsers expat library <https://docs.python.org/2/library/pyexpat.html>.I
also had a look at lyx2lyx scripts. I tried using Writer2LaTeX but it
doesn't suit our purpose of getting back the same LyX file. I am not very
clear on how to go ahead from this juncture. For example I am not clear on
how I will get information about all the packages used from the ODT file. I
feel I am not aware of many issues which need to be taken care of during
this conversion process. It would be great to hear your comments and
suggestions on how to go ahead
Thanks and Regards
Prannoy Pilligundla