Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-11 Thread Andre Poenitz
On Sun, Nov 05, 2006 at 04:00:39PM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > >On Sun, Nov 05, 2006 at 09:58:28AM +0100, Georg Baum wrote: > >>>I think that we should leave the 256, but if you and others don't agree, > >>>then please also make the corresponding changes to texparse

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-11 Thread Andre Poenitz
On Sun, Nov 05, 2006 at 09:33:42PM +0100, Herbert Voss wrote: > Georg Baum schrieb: > > Am Sonntag, 5. November 2006 19:22 schrieb Herbert Voss: > >> I am interested in seeing how someone will parse a tex source, where > >> _every_ macro or environment can be hide after several other macros > >> or

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Herbert Voss
Georg Baum schrieb: > Am Sonntag, 5. November 2006 19:22 schrieb Herbert Voss: >> I am interested in seeing how someone will parse a tex source, where >> _every_ macro or environment can be hide after several other macros >> or catcode changes ... > > Impossible IMHO. It is possible to create a te

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
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 th

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
Am Sonntag, 5. November 2006 19:22 schrieb Herbert Voss: > I am interested in seeing how someone will parse a tex source, where > _every_ macro or environment can be hide after several other macros > or catcode changes ... Impossible IMHO. It is possible to create a tex2lyx that works perfectly f

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Herbert Voss
Georg Baum schrieb: > Am Sonntag, 5. November 2006 17:25 schrieb Enrico Forestieri: > >> Maybe tex2lyx should be updated to take into account the fact that >> the latex file could be utf8 encoded? > > Yes, as I wrote: tex2lyx almost completely ignores encodings. > >> If I am not wrong, now LyX c

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread 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 bugf

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 06:07:20PM +0100, Herbert Voss wrote: > Enrico Forestieri schrieb: > > On Sun, Nov 05, 2006 at 04:21:47PM +0100, Herbert Voss wrote: > > > >> Enrico Forestieri schrieb: > >> > > I think that we should leave the 256, but if you and others don't agree, > > then pleas

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Herbert Voss
Enrico Forestieri schrieb: > On Sun, Nov 05, 2006 at 04:21:47PM +0100, Herbert Voss wrote: > >> Enrico Forestieri schrieb: >> > I think that we should leave the 256, but if you and others don't agree, > then please also make the corresponding changes to texparser.C only the characters

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
Am Sonntag, 5. November 2006 17:51 schrieb Enrico Forestieri: > On Sun, Nov 05, 2006 at 05:36:56PM +0100, Georg Baum wrote: > > > Am Sonntag, 5. November 2006 17:25 schrieb Enrico Forestieri: > > > > > Maybe tex2lyx should be updated to take into account the fact that > > > the latex file could b

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 05:36:56PM +0100, Georg Baum wrote: > Am Sonntag, 5. November 2006 17:25 schrieb Enrico Forestieri: > > > Maybe tex2lyx should be updated to take into account the fact that > > the latex file could be utf8 encoded? > > Yes, as I wrote: tex2lyx almost completely ignores en

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
Am Sonntag, 5. November 2006 17:25 schrieb Enrico Forestieri: > Maybe tex2lyx should be updated to take into account the fact that > the latex file could be utf8 encoded? Yes, as I wrote: tex2lyx almost completely ignores encodings. > If I am not wrong, now LyX could output such encoding. Yes,

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 04:58:28PM +0100, Georg Baum wrote: > Am Sonntag, 5. November 2006 16:51 schrieb Enrico Forestieri: > > > Then I'll shut up. However, I think that the same change from 256 to 128 > > should also be done in texparser.C, for consistency. > > That would introduce an extra if

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
Am Sonntag, 5. November 2006 16:51 schrieb Enrico Forestieri: > Then I'll shut up. However, I think that the same change from 256 to 128 > should also be done in texparser.C, for consistency. That would introduce an extra if clause. Georg

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 04:34:53PM +0100, Georg Baum wrote: > Am Sonntag, 5. November 2006 15:46 schrieb Enrico Forestieri: > > I am trying to say that, currently, LyX is not correctly tracking > > catcodes > > and if we want to improve on that, then we should maintain the 256. > > Yes, I unders

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
Am Sonntag, 5. November 2006 15:46 schrieb Enrico Forestieri: > I am trying to say that, currently, LyX is not correctly tracking catcodes > and if we want to improve on that, then we should maintain the 256. Yes, I understood that, but I don't think that this will be improved in the near future

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 04:21:47PM +0100, Herbert Voss wrote: > Enrico Forestieri schrieb: > > >>> I think that we should leave the 256, but if you and others don't agree, > >>> then please also make the corresponding changes to texparser.C > >> only the characters 0,13,32,35-38,65-90,92,94,95,97

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Herbert Voss
Enrico Forestieri schrieb: > On Sun, Nov 05, 2006 at 04:00:39PM +0100, Abdelrazak Younes wrote: > >> Enrico Forestieri wrote: >>> On Sun, Nov 05, 2006 at 09:58:28AM +0100, Georg Baum wrote: > I think that we should leave the 256, but if you and others don't agree, > then please also make t

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 04:00:39PM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > > On Sun, Nov 05, 2006 at 09:58:28AM +0100, Georg Baum wrote: > >>> I think that we should leave the 256, but if you and others don't agree, > >>> then please also make the corresponding changes to texp

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
Am Sonntag, 5. November 2006 16:00 schrieb Abdelrazak Younes: > Are you saying that it is allowed to create new catcodes in a latex file? No. You can not create new catcodes, but you can change the catcode of characters. That is what Enrico did. Georg

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Herbert Voss
Enrico Forestieri schrieb: >>> I think that we should leave the 256, but if you and others don't agree, >>> then please also make the corresponding changes to texparser.C >> only the characters 0,13,32,35-38,65-90,92,94,95,97-123,125-127 >> have a catcode other than 12. All others from the 256 pos

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Sun, Nov 05, 2006 at 09:58:28AM +0100, Georg Baum wrote: I think that we should leave the 256, but if you and others don't agree, then please also make the corresponding changes to texparser.C Abdel is right that a table of 256 is not needed, since we never set the c

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 11:09:18AM +0100, Herbert Voss wrote: > Enrico Forestieri schrieb: > > >> If you are sure that there is at least one catcode greater than 128 is > >> classified as something other than catOther, I'll do the change. But > >> from what I read about TeX catcode since then,

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Enrico Forestieri
On Sun, Nov 05, 2006 at 09:58:28AM +0100, Georg Baum wrote: > Am Sonntag, 5. November 2006 00:19 schrieb Enrico Forestieri: > > On Sat, Nov 04, 2006 at 11:27:49PM +0100, Abdelrazak Younes wrote: > > > > > Enrico Forestieri wrote: > > > > This is wrong because \catcode works on 8-bit numbers. Plea

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Herbert Voss
Enrico Forestieri schrieb: >> If you are sure that there is at least one catcode greater than 128 is >> classified as something other than catOther, I'll do the change. But >> from what I read about TeX catcode since then, I doubt it. > > Maybe you are right as, from what I can see, only the ca

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-05 Thread Georg Baum
Am Sonntag, 5. November 2006 00:19 schrieb Enrico Forestieri: > On Sat, Nov 04, 2006 at 11:27:49PM +0100, Abdelrazak Younes wrote: > > > Enrico Forestieri wrote: > > > This is wrong because \catcode works on 8-bit numbers. Please, change > > > the 128 to 256. It was from memory. Obviously I am be

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-04 Thread Enrico Forestieri
On Sat, Nov 04, 2006 at 11:27:49PM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > > On Sat, Nov 04, 2006 at 11:03:16AM -, [EMAIL PROTECTED] wrote: > > > >> Author: younes > >> Date: Sat Nov 4 12:03:14 2006 > >> New Revision: 15728 > >> > >> URL: http://www.lyx.org/trac/changese

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-04 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Sat, Nov 04, 2006 at 11:03:16AM -, [EMAIL PROTECTED] wrote: Author: younes Date: Sat Nov 4 12:03:14 2006 New Revision: 15728 URL: http://www.lyx.org/trac/changeset/15728 Log: Convert to unicode. Modified: lyx-devel/trunk/src/mathed/MathParser.C Modified:

Re: [Cvslog] r15728 - /lyx-devel/trunk/src/mathed/MathParser.C

2006-11-04 Thread Enrico Forestieri
On Sat, Nov 04, 2006 at 11:03:16AM -, [EMAIL PROTECTED] wrote: > Author: younes > Date: Sat Nov 4 12:03:14 2006 > New Revision: 15728 > > URL: http://www.lyx.org/trac/changeset/15728 > Log: > Convert to unicode. > > Modified: > lyx-devel/trunk/src/mathed/MathParser.C > > Modified: lyx-