Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: also see this problem reported by Anders: http://bugzilla.lyx.org/show_bug.cgi?id=3958#c44 Which turned out to be another critical bug :-( http://bugzilla.lyx.org/show_bug.cgi?id=4046 Jürgen

[patch] Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: Which turned out to be another critical bug :-( http://bugzilla.lyx.org/show_bug.cgi?id=4046 Here's the fix. José, this was introduced with your latest cleanup. Jürgen Index: lib/lyx2lyx/lyx_1_5.py ===

Re: [patch] Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: Here's the fix. José, this was introduced with your latest cleanup. Turns out the other removed linebreaks are needed as well (see attached patch). Don't know what about this change: -    math_outro='$\n\\end_inset\n' +    math_outro='$\n\\end_inset' Jürgen Index:

Re: [patch] Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread José Matos
On Friday 20 July 2007 07:33:20 Jürgen Spitzmüller wrote: Jürgen Spitzmüller wrote: Which turned out to be another critical bug :-( http://bugzilla.lyx.org/show_bug.cgi?id=4046 Here's the fix. José, this was introduced with your latest cleanup. Jürgen OK. I suspected about this fix but I

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
José Matos wrote:  The remaining tasks are: - convert layout files to utf8 - convert documentation to latest file format version - update documentation - other (?) The current state is, AFAICS: - the above and some lyx2lyx issues that might be considered:

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread José Matos
On Friday 20 July 2007 14:27:56 Jürgen Spitzmüller wrote: - the above and some lyx2lyx issues that might be considered: 4048, 4050 (oneliner from Anders available), 3313 (ordered in decreasing severity, IMHO). Plus eventually Michael's patch. Concerning the lyx2lyx issues, I'd say since you

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
José Matos wrote: OK. I have just committed a fix for 4048, it follows the idea proposed by Georg in bug 3985. I have tried my best (to obfuscate the code). ;-) Great! Please test. Looks good from my first test (fixes Georg's test case, and the UserGuide still seems to compile fine).

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Bo Peng
However, while testing with the EmbeddedObjects document, I stumbled over another bug in revert_listings_inset (unrelated to unicode): revert the attached example to 1.4 and see how the line # Example listing float in the listing has disappeared Thanks. I will have a look. Bo

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Bo Peng
However, while testing with the EmbeddedObjects document, I stumbled over another bug in revert_listings_inset (unrelated to unicode): revert the attached example to 1.4 and see how the line # Example listing float in the listing has disappeared I just committed a patch, please test. Bo

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Bo Peng wrote: I just committed a patch, please test. The line is there, but there's a linebreak missing: \begin{lstlisting}[language=Python,caption={Example Listing float},label={lst:Example-Listing}]# Example listing float def func(param): 'this is a python function' pass

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Bo Peng
The line is there, but there's a linebreak missing: \begin{lstlisting}[language=Python,caption={Example Listing float},label={lst:Example-Listing}]# Example listing float So I did not have an extra \end_layout, but missed a \begin_layout. This should have been fixed now. Thanks. Bo

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Bo Peng wrote: This should have been fixed now. Yes. Thanks. Jürgen

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > also see this problem reported by Anders: > http://bugzilla.lyx.org/show_bug.cgi?id=3958#c44 Which turned out to be another critical bug :-( http://bugzilla.lyx.org/show_bug.cgi?id=4046 Jürgen

[patch] Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Which turned out to be another critical bug :-( > http://bugzilla.lyx.org/show_bug.cgi?id=4046 Here's the fix. José, this was introduced with your latest cleanup. Jürgen Index: lib/lyx2lyx/lyx_1_5.py ===

Re: [patch] Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Here's the fix. José, this was introduced with your latest cleanup. Turns out the other removed linebreaks are needed as well (see attached patch). Don't know what about this change: -    math_outro='$\n\\end_inset\n' +    math_outro='$\n\\end_inset' Jürgen Index:

Re: [patch] Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread José Matos
On Friday 20 July 2007 07:33:20 Jürgen Spitzmüller wrote: > Jürgen Spitzmüller wrote: > > Which turned out to be another critical bug :-( > > http://bugzilla.lyx.org/show_bug.cgi?id=4046 > > Here's the fix. José, this was introduced with your latest cleanup. > > Jürgen OK. I suspected about this

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
José Matos wrote: >  The remaining tasks are: > - convert layout files to utf8 > - convert documentation to latest file format version > - update documentation > - other (?) The current state is, AFAICS: - the above and some lyx2lyx issues that might be

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread José Matos
On Friday 20 July 2007 14:27:56 Jürgen Spitzmüller wrote: > - the above and some lyx2lyx issues that might be considered: 4048, 4050 > (oneliner from Anders available), 3313 (ordered in decreasing severity, > IMHO). Plus eventually Michael's patch. > > Concerning the lyx2lyx issues, I'd say since

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
José Matos wrote: > OK. I have just committed a fix for 4048, it follows the idea proposed by > Georg in bug 3985. > > I have tried my best (to obfuscate the code). ;-) Great! > Please test. Looks good from my first test (fixes Georg's test case, and the UserGuide still seems to compile fine).

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Bo Peng
However, while testing with the EmbeddedObjects document, I stumbled over another bug in revert_listings_inset (unrelated to unicode): revert the attached example to 1.4 and see how the line # Example listing float in the listing has disappeared Thanks. I will have a look. Bo

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Bo Peng
However, while testing with the EmbeddedObjects document, I stumbled over another bug in revert_listings_inset (unrelated to unicode): revert the attached example to 1.4 and see how the line # Example listing float in the listing has disappeared I just committed a patch, please test. Bo

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Bo Peng wrote: > I just committed a patch, please test. The line is there, but there's a linebreak missing: \begin{lstlisting}[language=Python,caption={Example Listing float},label={lst:Example-Listing}]# Example listing float def func(param): 'this is a python function' pass

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Bo Peng
The line is there, but there's a linebreak missing: \begin{lstlisting}[language=Python,caption={Example Listing float},label={lst:Example-Listing}]# Example listing float So I did not have an extra \end_layout, but missed a \begin_layout. This should have been fixed now. Thanks. Bo

Re: lyx2lyx back convertion to 1.4

2007-07-20 Thread Jürgen Spitzmüller
Bo Peng wrote: > This should have been fixed now. Yes. Thanks. Jürgen

Re: lyx2lyx back convertion to 1.4

2007-07-19 Thread Uwe Stöhr
I have played a bit with the code in revert_unicode and it seems to work to me. I have committed it as the improved a lot the time execution. Does this produces the right convertion? I tested it hardly and for me all blocker issues are now fixed. But there are these lyx2lyx issues

Re: lyx2lyx back convertion to 1.4

2007-07-19 Thread Uwe Stöhr
Ich schrieb: there are these lyx2lyx issues left: General: - http://bugzilla.lyx.org/show_bug.cgi?id=2945 This one is a regression so this should be considered to fix now. Uwe

Re: lyx2lyx back convertion to 1.4

2007-07-19 Thread Jürgen Spitzmüller
José Matos wrote:  The remaining tasks are: - convert layout files to utf8 - convert documentation to latest file format version - update documentation - other (?) There are still some remaining lyx2lyx tasks: http://bugzilla.lyx.org/show_bug.cgi?id=3985#c15

Re: lyx2lyx back convertion to 1.4

2007-07-19 Thread Uwe Stöhr
> I have played a bit with the code in revert_unicode and it seems to > work to me. I have committed it as the improved a lot the time execution. > > Does this produces the right convertion? I tested it hardly and for me all blocker issues are now fixed. But there are these lyx2lyx issues

Re: lyx2lyx back convertion to 1.4

2007-07-19 Thread Uwe Stöhr
Ich schrieb: there are these lyx2lyx issues left: General: - http://bugzilla.lyx.org/show_bug.cgi?id=2945 This one is a regression so this should be considered to fix now. Uwe

Re: lyx2lyx back convertion to 1.4

2007-07-19 Thread Jürgen Spitzmüller
José Matos wrote: >  The remaining tasks are: > - convert layout files to utf8 > - convert documentation to latest file format version > - update documentation > - other (?) There are still some remaining lyx2lyx tasks: