On Tue, Nov 28, 2006 at 05:59:40PM +0000, José Matos wrote: > On Tuesday 28 November 2006 5:46 pm, Jean-Marc Lasgouttes wrote: > > > > I do not understand it either, other than the fact that José wants > > to rewrite everything in python. > > My purpose with lyx2lyx was always to write a library (in python) > capable of reading and writing lyx files. It is a lot easier to > treat text with python instead of c++, that was why python was my > choice. > > Converting between two different versions of the lyx file format and > from every format to lyx are just two of its uses. > > Cleaning a lyx file, converting from latex/docbook (fwiw) inside ert > to native lyx is another use.
But you understand that lyx2lyx reads LyX format whereas tex2lyx reads .tex and that _reading_ is the difficult part? There's not too much actual string manipulation in tex2lyx, at least none that looks like it could benefit a lot from snakification. Andre'