Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-24 Thread Jean-Marc Lasgouttes
Le 24 avr. 09 à 01:57, Uwe Stöhr a écrit : Uwe Stöhr schrieb: Where does your iconv come from BTW? Is there some documentation attached to it? It is version 1.11 of iconv provided as dll I now found iconv version 1.9.2 for Windows. But also with this version I get the same problem without y

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-23 Thread Uwe Stöhr
Uwe Stöhr schrieb: Where does your iconv come from BTW? Is there some documentation attached to it? It is version 1.11 of iconv provided as dll I now found iconv version 1.9.2 for Windows. But also with this version I get the same problem without you patch. Btw. what is more recent iconv 1.

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-23 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: OK, something different now. The issue seems to be that iconv returns an error qnd then the stream is set to fail() forever. This patch sets avoid setting an error condition when iconv signal an error with errno==0. You found the fix! Formulas are correctly parse

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-23 Thread Jean-Marc Lasgouttes
Le 23 avr. 09 à 23:23, Uwe Stöhr a écrit : Jean-Marc Lasgouttes schrieb: While we are at it, here is my next try. You can revert all other patches I made you apply, BTW. Still the same problem :-( OK, something different now. The issue seems to be that iconv returns an error qnd then the

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-23 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: While we are at it, here is my next try. You can revert all other patches I made you apply, BTW. Still the same problem :-( regards Uwe

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-23 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: I do not have the file I sent anymore. Was there something after the accented character? Yes, some characters like "aabb" behind the comment. regards Uwe

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-23 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes writes: > Uwe Stöhr writes: > >> Jean-Marc Lasgouttes schrieb: >> >>> Do you have problems with importing the following file (an accent in >>> a comment) >> >> Yes, absolutely: tex2lyx vanishes the character and everything behind it, >> see the attached result. > > I do not

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-23 Thread Jean-Marc Lasgouttes
Uwe Stöhr writes: > Jean-Marc Lasgouttes schrieb: > >> Do you have problems with importing the following file (an accent in >> a comment) > > Yes, absolutely: tex2lyx vanishes the character and everything behind it, see > the attached result. I do not have the file I sent anymore. Was there som

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-22 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: Do you have problems with importing the following file (an accent in a comment) Yes, absolutely: tex2lyx vanishes the character and everything behind it, see the attached result. regards Uwe utfcomment.lyx Description: application/lyx

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-22 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: The first error disappears when I delete the character "é" of the name "André" in line 681 of syntax.default. Then tex2lyx again parses formulas correctly. If you keep the é, does the attached patch help? No. regards Uwe

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-22 Thread Jean-Marc Lasgouttes
Uwe Stöhr writes: > The first error disappears when I delete the character "é" of the name > "André" in line 681 of syntax.default. Then tex2lyx again parses > formulas correctly. If you keep the é, does the attached patch help? > But then I still get the second error message: > > Overwriting ex

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-21 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: It is more worse now. I checked out trunk, compiled it, and now LyX crashes immediately whenever I want to import a LaTeX file, even when the LaTeX file contains only a single ASCII word like "Hello". This crash is just an oversight in the new multi-index support.

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-21 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes writes: > And could you try with the updated trunk (where the other patch should > not be necessary)? If trunk does not work (which is probably the case), please try the following debug patch. Note that it contains code that may cure your comment from an earlier thread: I

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-21 Thread Jean-Marc Lasgouttes
Uwe Stöhr writes: > Jean-Marc Lasgouttes schrieb: > >>> Could you tell me whether you can import a document with only a few >>> words but some accented? I want to check whether the problem is with the >>> idocstream. > > It is more worse now. I checked out trunk, compiled it, and now LyX > crashes

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-20 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: Could you tell me whether you can import a document with only a few words but some accented? I want to check whether the problem is with the idocstream. It is more worse now. I checked out trunk, compiled it, and now LyX crashes immediately whenever I want to imp

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-20 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes writes: > Jean-Marc Lasgouttes writes: > >>> I'm not able to figure our why this bug happens (that tex2lyx no >>> longer reads the syntax.default file), but I can verify that when I >>> revert r28858 and recompile tex2lyx then it can again parse >>> formulas. >> >> I'll take

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-20 Thread Jean-Marc Lasgouttes
Uwe Stöhr writes: > Jean-Marc Lasgouttes schrieb: > >>> Btw. I cannot compile trunk because of this: >>> D:\LyXSVN\lyx-devel\src\Counters.cpp(449) : error C3861: 'find': >>> identifier not found >> >> Is it better now? > > No, now I get: > > Counters.cpp > d:\lyxsvn\lyx-devel\src\counters.cpp(157

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-20 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes writes: >> I'm not able to figure our why this bug happens (that tex2lyx no >> longer reads the syntax.default file), but I can verify that when I >> revert r28858 and recompile tex2lyx then it can again parse >> formulas. > > I'll take another look. Could you tell me whethe

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-19 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > > Log: > > improve tex2lyx Usage display (on error...); describe option -e on > > man page; remove non-implemented -p and -r options > > Juergen, can this go to branch too? Yes. Jürgen

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-19 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: Btw. I cannot compile trunk because of this: D:\LyXSVN\lyx-devel\src\Counters.cpp(449) : error C3861: 'find': identifier not found Is it better now? No, now I get: Counters.cpp d:\lyxsvn\lyx-devel\src\counters.cpp(157) : error C4716: 'lyx::Counter::setFlatLabe

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-19 Thread Jean-Marc Lasgouttes
Le 20 avr. 09 à 00:42, Uwe Stöhr a écrit : before we add new features, the text2lyx regression needs to be fixed: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg149507.html I do not add new features, I document existing ones and do a long due cleanup on the man page. tex2lyx from br

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-19 Thread Uwe Stöhr
Hi JMarc, before we add new features, the text2lyx regression needs to be fixed: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg149507.html tex2lyx from branch still doesn't parse formulas while tex2lyx from LyX 1.6.2 does. To test I only replaces the tex2lyx.exe and left everything els

Re: r29346 - lyx-devel/trunk/src/tex2lyx

2009-04-19 Thread Jean-Marc Lasgouttes
Le 20 avr. 09 à 00:13, lasgout...@lyx.org a écrit : Log: improve tex2lyx Usage display (on error...); describe option -e on man page; remove non-implemented -p and -r options Juergen, can this go to branch too? JMarc Modified: lyx-devel/trunk/src/tex2lyx/tex2lyx.1in lyx-devel/trunk/src