Am Sonntag, 5. November 2006 19:11 schrieb José Matos: > On Sunday 05 November 2006 4:36 pm, Georg Baum wrote: > > Tex2lyx is currently several file format versions behind LyX, but I don't > > know if it makes sense to work on that. If José is really serious with > > reimplementing it in python then it does not make sense to do anything > > else than simple bugfixes with the current code. > > Yes, I intend to do that for 1.6.
OK, that means no more work on tex2lyx from me except fixing _very simple_ bugs. > > I am however not sure whether it is really a good idea to reimplement > > tex2lyx, because that will be a lof of work, and although I agree that > > several things can be done more elegantly in python I doubt that the > > benefit will be so big that it is worth the effort. > > But I do not intend to do it from scratch. :-) I don't think that you can reuse much existing stuff. As you know I did a great part of tex2lyx, and my experience was that the difficult stuff is where the LyX model and LaTeX model of a document differ. A simple table of TeX macros that need to be translated to LyX insets is easy. The difficult things are for example the different nesting models in LaTeX and LyX (handled by the Context class), when to output whitespace and when not, tables, and everything that is only partially supported by LyX (the minipage inset was a good example before the box inset was created). Of course you can reuse the existing C++ code here, but a python part makes only sense IMHO if the code is more python like, and then it will be more work. Georg