The big changes were comited. Now is the right time make a short summary of what has been done and what remains. Your feedback is welcome. :-)
Changes: ******* - The code is cleaner. + The code for convert and revert is placed together. + Follow the same style as the C++ code, use two lines to separate different functions. + Add more comments explaining what is happening. - All the warnings and errors handling are concentrated inside a single dependency. We have now several warning levels, this was advertised previously but not implemented. - There is the possibility to redirect the error and warnings to a file that could be read inside lyx, easing thus bug reports from the users. - No more "from parser_tools import *", explicitly tell which functions are called. This is good style for writing python code. - Now all the modules only call: + re_ for regular expressions + string_ needed to support older python versions - Separation of roles between lyx2lyx and parser_tools lyx2lyx - all the aspects related with the program parser_tools - all the knowleadege of the file format. To do: ***** - Add a command line option to specify the target lyx version. - Internationalization? There is support inside python to use gettext, and we can fallback to english if that support is not present. (A few lines of code, if that matters) - Add support for lyx-0.8 and elder versions. (This is my pet project ;-)). Comments? -- José Abílio LyX and docbook, a perfect match. :-)