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 i think: > > > >http://www.stixfonts.org/charactertable.html > > Thanks. > > 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<docstring, char_type> 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 expressive, in fact more robust as the compiler will recognize spelling errors, and no waste of cycles. Andre'