Hi,
ok Lars, I had time to lunch several times before answering you. ;-)
I send attached a framework for convertion between different file formats. I
took the work from Dekel, moved some of it that is more general to a new
module and that is it.
There are 4 modules:
error.py This is for error and warnings (incomplete)
lyxconvert_218.py This is the module from Dekel (still misses the ert
case)
lyxconvert.py Main module, options parsed.
parser_tools.py Useful tools.
At moment only works for 218 type documents, but as soon as we have a
converter from 2.17 to 218 we only need to add a new module lyxconvert_217.py
with method called convert that has two arguments, header and body, both
being lists of strings.
By default the program tries to convert from the document format to the
newest available. That can be passed specifying arguments in the command
line.
./lyxconvert --from 215 --to 216 < oldfile > newfile
Does this satisfy your requirements, Lars?
Comments welcome.
--
Jos� Ab�lio
lyxconvert.tgz
Description: application/tgz
