Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Andre Poenitz
On Sat, Apr 07, 2007 at 12:16:22AM +0200, Abdelrazak Younes wrote: > Andre Poenitz wrote: > >On Fri, Apr 06, 2007 at 11:31:31AM +0200, Abdelrazak Younes wrote: > >>map MathSymbols; > >> > >>MathSymbols["\\lceil"] = 0x2308; > >>MathSymbols["\\rceil"] = 0x2309; > >>MathSymbols["\\lfloor"] = 0x230A; >

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Andre Poenitz wrote: On Fri, Apr 06, 2007 at 11:17:53AM +0200, Abdelrazak Younes wrote: There is no 'slash' or 'backslash' in there. Both are even in 7 bit ASCII. Year, I just replaced that with / and \, easier and more expressive as you say ;-) Abdel.

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Andre Poenitz wrote: On Fri, Apr 06, 2007 at 12:49:06PM +0200, Georg Baum wrote: We should not change the configuration files of a stable release. We did this with the new vector flag for the formats in 1.4.4, and the result is that the windows installer still ships a broken lyxrc.dist. But i

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Andre Poenitz wrote: On Fri, Apr 06, 2007 at 11:31:31AM +0200, Abdelrazak Younes wrote: map MathSymbols; MathSymbols["\\lceil"] = 0x2308; MathSymbols["\\rceil"] = 0x2309; MathSymbols["\\lfloor"] = 0x230A; ... What do you think? I don't like it. static int const lceil = 0x2308; At least as

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 01:55:39PM +0200, Abdelrazak Younes wrote: > Anyway, I give up. Fine, so you may ignore my comments. Andre'

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 12:49:06PM +0200, Georg Baum wrote: > We should not change the configuration files of a stable release. We did > this with the new vector flag for the formats in 1.4.4, and the result is > that the windows installer still ships a broken lyxrc.dist. > > > But it is clear t

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 11:59:24AM +0200, Abdelrazak Younes wrote: > Georg Baum wrote: > >Am Freitag, 6. April 2007 11:44 schrieb Abdelrazak Younes: > > > >>How can I access the symbols defined in there (I know, I could read the > >>source but as I have your attention now it is quicker this way ;-

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 11:31:31AM +0200, Abdelrazak Younes wrote: > Edwin Leuven wrote: > >Abdelrazak Younes wrote: > >>>One question George, I've found this page which nicely map TeX > >>>characters to their unicode counterparts: > >>There is no 'slash' or 'backslash' in there. > > > >more here

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 11:17:53AM +0200, Abdelrazak Younes wrote: > There is no 'slash' or 'backslash' in there. Both are even in 7 bit ASCII. Andre'

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 11:00:05AM +0200, Abdelrazak Younes wrote: > One question George, I've found this page which nicely map TeX > characters to their unicode counterparts: > > http://www.cl.cam.ac.uk/~mgk25/ucs/examples/TeX.txt > > Shall I put the unicode characters in the source file as-is

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-06 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 10:48:20AM +0200, Abdelrazak Younes wrote: > >Another point: As all the delimiters are unicode characters there are no > >pre-computed pixmaps needed at all. Would have the nice side effect that > >line thickness is consistent. > > Agreed, that was next on my plan. I would

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 6. April 2007 16:15 schrieb Abdelrazak Younes: So, I've hard-coded the needed math symbol in ControlMath.C (see attached). As soon as the lib/symbols file is cleaned up to associate the math symbols with unicode (as I understand, it can't now because mathed use t

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Georg Baum
Am Freitag, 6. April 2007 16:15 schrieb Abdelrazak Younes: > So, I've hard-coded the needed math symbol in ControlMath.C (see > attached). As soon as the lib/symbols file is cleaned up to associate > the math symbols with unicode (as I understand, it can't now because > mathed use these fonts),

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 6. April 2007 13:55 schrieb Abdelrazak Younes: Georg Baum wrote: Am Freitag, 6. April 2007 12:28 schrieb Abdelrazak Younes: We should not change the configuration files of a stable release. We did this with the new vector flag for the formats in 1.4.4, and the re

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Georg Baum
Am Freitag, 6. April 2007 13:55 schrieb Abdelrazak Younes: > Georg Baum wrote: > > Am Freitag, 6. April 2007 12:28 schrieb Abdelrazak Younes: > > > We should not change the configuration files of a stable release. We did > > this with the new vector flag for the formats in 1.4.4, and the result

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 6. April 2007 12:28 schrieb Abdelrazak Younes: We should not change the configuration files of a stable release. We did this with the new vector flag for the formats in 1.4.4, and the result is that the windows installer still ships a broken lyxrc.dist. Are you

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Georg Baum
Am Freitag, 6. April 2007 12:28 schrieb Abdelrazak Younes: > Georg Baum wrote: > > This file contains different things. Those that are not real symbols, e.g. > > with inset == "decoration" or inset == "matrix" could be left alone. Only > > those that are drawn be InsetMathSymbol (where inset is

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 6. April 2007 11:59 schrieb Abdelrazak Younes: Georg Baum wrote: Am Freitag, 6. April 2007 11:44 schrieb Abdelrazak Younes: How can I access the symbols defined in there (I know, I could read the source but as I have your attention now it is quicker this way ;-

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Georg Baum
Am Freitag, 6. April 2007 11:59 schrieb Abdelrazak Younes: > Georg Baum wrote: > > Am Freitag, 6. April 2007 11:44 schrieb Abdelrazak Younes: > > > >> How can I access the symbols defined in there (I know, I could read the > >> source but as I have your attention now it is quicker this way ;-) >

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 6. April 2007 11:44 schrieb Abdelrazak Younes: How can I access the symbols defined in there (I know, I could read the source but as I have your attention now it is quicker this way ;-) in_word_set() from MathParser.h. I see. The problem (as you certainly know)

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Georg Baum
Am Freitag, 6. April 2007 11:44 schrieb Abdelrazak Younes: > How can I access the symbols defined in there (I know, I could read the > source but as I have your attention now it is quicker this way ;-) in_word_set() from MathParser.h. But note that the parsing of this file is rather crude. G

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 6. April 2007 11:31 schrieb Abdelrazak Younes: I was beginning to hardcode the delimiters in QDelimiterDialog but then I asked myself if we shouldn't do that more globally for mathed. The idea is to define a globally accessible map of mathed commands: map MathSym

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Georg Baum
Am Freitag, 6. April 2007 11:31 schrieb Abdelrazak Younes: > I was beginning to hardcode the delimiters in QDelimiterDialog but then > I asked myself if we shouldn't do that more globally for mathed. The > idea is to define a globally accessible map of mathed commands: > > map MathSymbols; > >

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Freitag, 6. April 2007 11:17 schrieb Abdelrazak Younes: Abdelrazak Younes wrote: One question George, I've found this page which nicely map TeX characters to their unicode counterparts: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/TeX.txt Shall I put the unicode character

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Edwin Leuven wrote: Abdelrazak Younes wrote: One question George, I've found this page which nicely map TeX characters to their unicode counterparts: There is no 'slash' or 'backslash' in there. more here i think: http://www.stixfonts.org/charactertable.html Thanks. I was beginning to har

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Georg Baum
Am Freitag, 6. April 2007 11:17 schrieb Abdelrazak Younes: > Abdelrazak Younes wrote: > > One question George, I've found this page which nicely map TeX > > characters to their unicode counterparts: > > > > http://www.cl.cam.ac.uk/~mgk25/ucs/examples/TeX.txt > > > > Shall I put the unicode chara

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Edwin Leuven
Abdelrazak Younes wrote: One question George, I've found this page which nicely map TeX characters to their unicode counterparts: There is no 'slash' or 'backslash' in there. more here i think: http://www.stixfonts.org/charactertable.html

Re: Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Andre Poenitz wrote: On Fri, Apr 06, 2007 at 07:08:39AM +0200, Andre Poenitz wrote: On Thu, Apr 05, 2007 at 10:18:08PM +0200, Abdelrazak Younes wrote: Georg Baum wrote: Am Donnerstag, 5. April 2007 14:12 schrieb [EMAIL PROTECTED]: http://www.lyx.org/trac/file/lyx-deve

Unicode char in the C++ source file? (was Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...)

2007-04-06 Thread Abdelrazak Younes
Andre Poenitz wrote: On Fri, Apr 06, 2007 at 07:08:39AM +0200, Andre Poenitz wrote: On Thu, Apr 05, 2007 at 10:18:08PM +0200, Abdelrazak Younes wrote: Georg Baum wrote: Am Donnerstag, 5. April 2007 14:12 schrieb [EMAIL PROTECTED]: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-06 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 5. April 2007 22:18 schrieb Abdelrazak Younes: I reckon that we should unify everything to my standard ;-). I also reckon this is not very important. Yes, it is only minor. Nevertheless we should stay consistent (at least at file level): If you change this, t

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-06 Thread Abdelrazak Younes
Andre Poenitz wrote: On Fri, Apr 06, 2007 at 07:08:39AM +0200, Andre Poenitz wrote: On Thu, Apr 05, 2007 at 10:18:08PM +0200, Abdelrazak Younes wrote: Georg Baum wrote: Am Donnerstag, 5. April 2007 14:12 schrieb [EMAIL PROTECTED]: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-06 Thread Georg Baum
Am Donnerstag, 5. April 2007 22:18 schrieb Abdelrazak Younes: > I reckon that we should unify everything to my standard ;-). I also > reckon this is not very important. Yes, it is only minor. Nevertheless we should stay consistent (at least at file level): If you change this, then please change

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-05 Thread Andre Poenitz
On Fri, Apr 06, 2007 at 07:08:39AM +0200, Andre Poenitz wrote: > On Thu, Apr 05, 2007 at 10:18:08PM +0200, Abdelrazak Younes wrote: > > Georg Baum wrote: > > >Am Donnerstag, 5. April 2007 14:12 schrieb [EMAIL PROTECTED]: > > >http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/QDelimiter

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-05 Thread Andre Poenitz
On Thu, Apr 05, 2007 at 10:18:08PM +0200, Abdelrazak Younes wrote: > Georg Baum wrote: > >Am Donnerstag, 5. April 2007 14:12 schrieb [EMAIL PROTECTED]: > >http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/QDelimiterDialog.C?rev=17731 > >=

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-05 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 5. April 2007 14:12 schrieb [EMAIL PROTECTED]: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/QDelimiterDialog.C?rev=17731 == --- lyx-devel/trunk/src/frontends/qt4/QDelimi

Re: [Cvslog] r17731 - in /lyx-devel/trunk/src/frontends/qt4: QDelimite...

2007-04-05 Thread Georg Baum
Am Donnerstag, 5. April 2007 14:12 schrieb [EMAIL PROTECTED]: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/QDelimiterDialog.C?rev=17731 > == > --- lyx-devel/trunk/src/frontends/qt4/QDelimiterDialog.C (ori