kformula/flake

Dictionary.cpp

Go to the documentation of this file.
00001 // Created: Wed Sep 12 13:13:23 2007
00002 // WARNING! All changes made in this file will be lost!
00003 
00004 /* This file is part of the KDE project
00005    Copyright (C) 2007 <hubipete@gmx.net>
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; either
00010    version 2 of the License, or (at your option) any later version.
00011  
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016  
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020    Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #include "Dictionary.h"
00024 
00025 Dictionary::Dictionary()
00026 {
00027     m_lspace = "thickmathspace";
00028     m_rspace = "thickmathspace";
00029     m_maxsize = "infinity";
00030     m_minsize = "1";
00031     m_fence = false;
00032     m_separator = false;
00033     m_stretchy = false;
00034     m_symmetric = true;
00035     m_largeop = false;
00036     m_movablelimits = false;
00037     m_accent = false;
00038 }
00039 QString Dictionary::lSpace() const
00040 {
00041     return m_lspace;
00042 }
00043 
00044 QString Dictionary::rSpace() const
00045 {
00046     return m_rspace;
00047 }
00048 
00049 bool Dictionary::stretchy() const
00050 {
00051     return m_stretchy;
00052 }
00053 
00054 QChar Dictionary::mapEntity( const QString& entity )
00055 {
00056     if( entity.isEmpty() ) return QChar();
00057     switch( entity[0].toLower().toAscii() ) {
00058         case 'a':
00059             if( entity == "Aacute" ) return QChar( 0x000C1 );
00060             if( entity == "aacute" ) return QChar( 0x000E1 );
00061             if( entity == "Abreve" ) return QChar( 0x00102 );
00062             if( entity == "abreve" ) return QChar( 0x00103 );
00063             if( entity == "ac" ) return QChar( 0x0223E );
00064             if( entity == "acd" ) return QChar( 0x0223F );
00065             if( entity == "Acirc" ) return QChar( 0x000C2 );
00066             if( entity == "acirc" ) return QChar( 0x000E2 );
00067             if( entity == "acute" ) return QChar( 0x000B4 );
00068             if( entity == "Acy" ) return QChar( 0x00410 );
00069             if( entity == "acy" ) return QChar( 0x00430 );
00070             if( entity == "AElig" ) return QChar( 0x000C6 );
00071             if( entity == "aelig" ) return QChar( 0x000E6 );
00072             if( entity == "af" ) return QChar( 0x02061 );
00073             if( entity == "Afr" ) return QChar( 0x1D504 );
00074             if( entity == "afr" ) return QChar( 0x1D51E );
00075             if( entity == "Agrave" ) return QChar( 0x000C0 );
00076             if( entity == "agrave" ) return QChar( 0x000E0 );
00077             if( entity == "aleph" ) return QChar( 0x02135 );
00078             if( entity == "alpha" ) return QChar( 0x003B1 );
00079             if( entity == "Amacr" ) return QChar( 0x00100 );
00080             if( entity == "amacr" ) return QChar( 0x00101 );
00081             if( entity == "amalg" ) return QChar( 0x02A3F );
00082             if( entity == "amp" ) return QChar( 0x00026 );
00083             if( entity == "And" ) return QChar( 0x02A53 );
00084             if( entity == "and" ) return QChar( 0x02227 );
00085             if( entity == "andand" ) return QChar( 0x02A55 );
00086             if( entity == "andd" ) return QChar( 0x02A5C );
00087             if( entity == "andslope" ) return QChar( 0x02A58 );
00088             if( entity == "andv" ) return QChar( 0x02A5A );
00089             if( entity == "ang" ) return QChar( 0x02220 );
00090             if( entity == "ange" ) return QChar( 0x029A4 );
00091             if( entity == "angle" ) return QChar( 0x02220 );
00092             if( entity == "angmsd" ) return QChar( 0x02221 );
00093             if( entity == "angmsdaa" ) return QChar( 0x029A8 );
00094             if( entity == "angmsdab" ) return QChar( 0x029A9 );
00095             if( entity == "angmsdac" ) return QChar( 0x029AA );
00096             if( entity == "angmsdad" ) return QChar( 0x029AB );
00097             if( entity == "angmsdae" ) return QChar( 0x029AC );
00098             if( entity == "angmsdaf" ) return QChar( 0x029AD );
00099             if( entity == "angmsdag" ) return QChar( 0x029AE );
00100             if( entity == "angmsdah" ) return QChar( 0x029AF );
00101             if( entity == "angrt" ) return QChar( 0x0221F );
00102             if( entity == "angrtvb" ) return QChar( 0x022BE );
00103             if( entity == "angrtvbd" ) return QChar( 0x0299D );
00104             if( entity == "angsph" ) return QChar( 0x02222 );
00105             if( entity == "angst" ) return QChar( 0x0212B );
00106             if( entity == "angzarr" ) return QChar( 0x0237C );
00107             if( entity == "Aogon" ) return QChar( 0x00104 );
00108             if( entity == "aogon" ) return QChar( 0x00105 );
00109             if( entity == "Aopf" ) return QChar( 0x1D538 );
00110             if( entity == "aopf" ) return QChar( 0x1D552 );
00111             if( entity == "ap" ) return QChar( 0x02248 );
00112             if( entity == "apacir" ) return QChar( 0x02A6F );
00113             if( entity == "apE" ) return QChar( 0x02A70 );
00114             if( entity == "ape" ) return QChar( 0x0224A );
00115             if( entity == "apid" ) return QChar( 0x0224B );
00116             if( entity == "apos" ) return QChar( 0x00027 );
00117             if( entity == "ApplyFunction" ) return QChar( 0x02061 );
00118             if( entity == "approx" ) return QChar( 0x02248 );
00119             if( entity == "approxeq" ) return QChar( 0x0224A );
00120             if( entity == "Aring" ) return QChar( 0x000C5 );
00121             if( entity == "aring" ) return QChar( 0x000E5 );
00122             if( entity == "Ascr" ) return QChar( 0x1D49C );
00123             if( entity == "ascr" ) return QChar( 0x1D4B6 );
00124             if( entity == "Assign" ) return QChar( 0x02254 );
00125             if( entity == "ast" ) return QChar( 0x0002A );
00126             if( entity == "asymp" ) return QChar( 0x02248 );
00127             if( entity == "asympeq" ) return QChar( 0x0224D );
00128             if( entity == "Atilde" ) return QChar( 0x000C3 );
00129             if( entity == "atilde" ) return QChar( 0x000E3 );
00130             if( entity == "Auml" ) return QChar( 0x000C4 );
00131             if( entity == "auml" ) return QChar( 0x000E4 );
00132             if( entity == "awconint" ) return QChar( 0x02233 );
00133             if( entity == "awint" ) return QChar( 0x02A11 );
00134             break;
00135         case 'b':
00136             if( entity == "backcong" ) return QChar( 0x0224C );
00137             if( entity == "backepsilon" ) return QChar( 0x003F6 );
00138             if( entity == "backprime" ) return QChar( 0x02035 );
00139             if( entity == "backsim" ) return QChar( 0x0223D );
00140             if( entity == "backsimeq" ) return QChar( 0x022CD );
00141             if( entity == "Backslash" ) return QChar( 0x02216 );
00142             if( entity == "Barv" ) return QChar( 0x02AE7 );
00143             if( entity == "barvee" ) return QChar( 0x022BD );
00144             if( entity == "Barwed" ) return QChar( 0x02306 );
00145             if( entity == "barwed" ) return QChar( 0x02305 );
00146             if( entity == "barwedge" ) return QChar( 0x02305 );
00147             if( entity == "bbrk" ) return QChar( 0x023B5 );
00148             if( entity == "bbrktbrk" ) return QChar( 0x023B6 );
00149             if( entity == "bcong" ) return QChar( 0x0224C );
00150             if( entity == "Bcy" ) return QChar( 0x00411 );
00151             if( entity == "bcy" ) return QChar( 0x00431 );
00152             if( entity == "becaus" ) return QChar( 0x02235 );
00153             if( entity == "Because" ) return QChar( 0x02235 );
00154             if( entity == "because" ) return QChar( 0x02235 );
00155             if( entity == "bemptyv" ) return QChar( 0x029B0 );
00156             if( entity == "bepsi" ) return QChar( 0x003F6 );
00157             if( entity == "bernou" ) return QChar( 0x0212C );
00158             if( entity == "Bernoullis" ) return QChar( 0x0212C );
00159             if( entity == "beta" ) return QChar( 0x003B2 );
00160             if( entity == "beth" ) return QChar( 0x02136 );
00161             if( entity == "between" ) return QChar( 0x0226C );
00162             if( entity == "Bfr" ) return QChar( 0x1D505 );
00163             if( entity == "bfr" ) return QChar( 0x1D51F );
00164             if( entity == "bigcap" ) return QChar( 0x022C2 );
00165             if( entity == "bigcirc" ) return QChar( 0x025EF );
00166             if( entity == "bigcup" ) return QChar( 0x022C3 );
00167             if( entity == "bigodot" ) return QChar( 0x02A00 );
00168             if( entity == "bigoplus" ) return QChar( 0x02A01 );
00169             if( entity == "bigotimes" ) return QChar( 0x02A02 );
00170             if( entity == "bigsqcup" ) return QChar( 0x02A06 );
00171             if( entity == "bigstar" ) return QChar( 0x02605 );
00172             if( entity == "bigtriangledown" ) return QChar( 0x025BD );
00173             if( entity == "bigtriangleup" ) return QChar( 0x025B3 );
00174             if( entity == "biguplus" ) return QChar( 0x02A04 );
00175             if( entity == "bigvee" ) return QChar( 0x022C1 );
00176             if( entity == "bigwedge" ) return QChar( 0x022C0 );
00177             if( entity == "bkarow" ) return QChar( 0x0290D );
00178             if( entity == "blacklozenge" ) return QChar( 0x029EB );
00179             if( entity == "blacksquare" ) return QChar( 0x025AA );
00180             if( entity == "blacktriangle" ) return QChar( 0x025B4 );
00181             if( entity == "blacktriangledown" ) return QChar( 0x025BE );
00182             if( entity == "blacktriangleleft" ) return QChar( 0x025C2 );
00183             if( entity == "blacktriangleright" ) return QChar( 0x025B8 );
00184             if( entity == "blank" ) return QChar( 0x02423 );
00185             if( entity == "blk12" ) return QChar( 0x02592 );
00186             if( entity == "blk14" ) return QChar( 0x02591 );
00187             if( entity == "blk34" ) return QChar( 0x02593 );
00188             if( entity == "block" ) return QChar( 0x02588 );
00189             if( entity == "bNot" ) return QChar( 0x02AED );
00190             if( entity == "bnot" ) return QChar( 0x02310 );
00191             if( entity == "Bopf" ) return QChar( 0x1D539 );
00192             if( entity == "bopf" ) return QChar( 0x1D553 );
00193             if( entity == "bot" ) return QChar( 0x022A5 );
00194             if( entity == "bottom" ) return QChar( 0x022A5 );
00195             if( entity == "bowtie" ) return QChar( 0x022C8 );
00196             if( entity == "boxbox" ) return QChar( 0x029C9 );
00197             if( entity == "boxDL" ) return QChar( 0x02557 );
00198             if( entity == "boxDl" ) return QChar( 0x02556 );
00199             if( entity == "boxdL" ) return QChar( 0x02555 );
00200             if( entity == "boxdl" ) return QChar( 0x02510 );
00201             if( entity == "boxDR" ) return QChar( 0x02554 );
00202             if( entity == "boxDr" ) return QChar( 0x02553 );
00203             if( entity == "boxdR" ) return QChar( 0x02552 );
00204             if( entity == "boxdr" ) return QChar( 0x0250C );
00205             if( entity == "boxH" ) return QChar( 0x02550 );
00206             if( entity == "boxh" ) return QChar( 0x02500 );
00207             if( entity == "boxHD" ) return QChar( 0x02566 );
00208             if( entity == "boxHd" ) return QChar( 0x02564 );
00209             if( entity == "boxhD" ) return QChar( 0x02565 );
00210             if( entity == "boxhd" ) return QChar( 0x0252C );
00211             if( entity == "boxHU" ) return QChar( 0x02569 );
00212             if( entity == "boxHu" ) return QChar( 0x02567 );
00213             if( entity == "boxhU" ) return QChar( 0x02568 );
00214             if( entity == "boxhu" ) return QChar( 0x02534 );
00215             if( entity == "boxminus" ) return QChar( 0x0229F );
00216             if( entity == "boxplus" ) return QChar( 0x0229E );
00217             if( entity == "boxtimes" ) return QChar( 0x022A0 );
00218             if( entity == "boxUL" ) return QChar( 0x0255D );
00219             if( entity == "boxUl" ) return QChar( 0x0255C );
00220             if( entity == "boxuL" ) return QChar( 0x0255B );
00221             if( entity == "boxul" ) return QChar( 0x02518 );
00222             if( entity == "boxUR" ) return QChar( 0x0255A );
00223             if( entity == "boxUr" ) return QChar( 0x02559 );
00224             if( entity == "boxuR" ) return QChar( 0x02558 );
00225             if( entity == "boxur" ) return QChar( 0x02514 );
00226             if( entity == "boxV" ) return QChar( 0x02551 );
00227             if( entity == "boxv" ) return QChar( 0x02502 );
00228             if( entity == "boxVH" ) return QChar( 0x0256C );
00229             if( entity == "boxVh" ) return QChar( 0x0256B );
00230             if( entity == "boxvH" ) return QChar( 0x0256A );
00231             if( entity == "boxvh" ) return QChar( 0x0253C );
00232             if( entity == "boxVL" ) return QChar( 0x02563 );
00233             if( entity == "boxVl" ) return QChar( 0x02562 );
00234             if( entity == "boxvL" ) return QChar( 0x02561 );
00235             if( entity == "boxvl" ) return QChar( 0x02524 );
00236             if( entity == "boxVR" ) return QChar( 0x02560 );
00237             if( entity == "boxVr" ) return QChar( 0x0255F );
00238             if( entity == "boxvR" ) return QChar( 0x0255E );
00239             if( entity == "boxvr" ) return QChar( 0x0251C );
00240             if( entity == "bprime" ) return QChar( 0x02035 );
00241             if( entity == "Breve" ) return QChar( 0x002D8 );
00242             if( entity == "breve" ) return QChar( 0x002D8 );
00243             if( entity == "brvbar" ) return QChar( 0x000A6 );
00244             if( entity == "Bscr" ) return QChar( 0x0212C );
00245             if( entity == "bscr" ) return QChar( 0x1D4B7 );
00246             if( entity == "bsemi" ) return QChar( 0x0204F );
00247             if( entity == "bsim" ) return QChar( 0x0223D );
00248             if( entity == "bsime" ) return QChar( 0x022CD );
00249             if( entity == "bsol" ) return QChar( 0x0005C );
00250             if( entity == "bsolb" ) return QChar( 0x029C5 );
00251             if( entity == "bull" ) return QChar( 0x02022 );
00252             if( entity == "bullet" ) return QChar( 0x02022 );
00253             if( entity == "bump" ) return QChar( 0x0224E );
00254             if( entity == "bumpE" ) return QChar( 0x02AAE );
00255             if( entity == "bumpe" ) return QChar( 0x0224F );
00256             if( entity == "Bumpeq" ) return QChar( 0x0224E );
00257             if( entity == "bumpeq" ) return QChar( 0x0224F );
00258             break;
00259         case 'c':
00260             if( entity == "Cacute" ) return QChar( 0x00106 );
00261             if( entity == "cacute" ) return QChar( 0x00107 );
00262             if( entity == "Cap" ) return QChar( 0x022D2 );
00263             if( entity == "cap" ) return QChar( 0x02229 );
00264             if( entity == "capand" ) return QChar( 0x02A44 );
00265             if( entity == "capbrcup" ) return QChar( 0x02A49 );
00266             if( entity == "capcap" ) return QChar( 0x02A4B );
00267             if( entity == "capcup" ) return QChar( 0x02A47 );
00268             if( entity == "capdot" ) return QChar( 0x02A40 );
00269             if( entity == "CapitalDifferentialD" ) return QChar( 0x02145 );
00270             if( entity == "caret" ) return QChar( 0x02041 );
00271             if( entity == "caron" ) return QChar( 0x002C7 );
00272             if( entity == "Cayleys" ) return QChar( 0x0212D );
00273             if( entity == "ccaps" ) return QChar( 0x02A4D );
00274             if( entity == "Ccaron" ) return QChar( 0x0010C );
00275             if( entity == "ccaron" ) return QChar( 0x0010D );
00276             if( entity == "Ccedil" ) return QChar( 0x000C7 );
00277             if( entity == "ccedil" ) return QChar( 0x000E7 );
00278             if( entity == "Ccirc" ) return QChar( 0x00108 );
00279             if( entity == "ccirc" ) return QChar( 0x00109 );
00280             if( entity == "Cconint" ) return QChar( 0x02230 );
00281             if( entity == "ccups" ) return QChar( 0x02A4C );
00282             if( entity == "ccupssm" ) return QChar( 0x02A50 );
00283             if( entity == "Cdot" ) return QChar( 0x0010A );
00284             if( entity == "cdot" ) return QChar( 0x0010B );
00285             if( entity == "cedil" ) return QChar( 0x000B8 );
00286             if( entity == "Cedilla" ) return QChar( 0x000B8 );
00287             if( entity == "cemptyv" ) return QChar( 0x029B2 );
00288             if( entity == "cent" ) return QChar( 0x000A2 );
00289             if( entity == "CenterDot" ) return QChar( 0x000B7 );
00290             if( entity == "centerdot" ) return QChar( 0x000B7 );
00291             if( entity == "Cfr" ) return QChar( 0x0212D );
00292             if( entity == "cfr" ) return QChar( 0x1D520 );
00293             if( entity == "CHcy" ) return QChar( 0x00427 );
00294             if( entity == "chcy" ) return QChar( 0x00447 );
00295             if( entity == "check" ) return QChar( 0x02713 );
00296             if( entity == "checkmark" ) return QChar( 0x02713 );
00297             if( entity == "chi" ) return QChar( 0x003C7 );
00298             if( entity == "cir" ) return QChar( 0x025CB );
00299             if( entity == "circ" ) return QChar( 0x002C6 );
00300             if( entity == "circeq" ) return QChar( 0x02257 );
00301             if( entity == "circlearrowleft" ) return QChar( 0x021BA );
00302             if( entity == "circlearrowright" ) return QChar( 0x021BB );
00303             if( entity == "circledast" ) return QChar( 0x0229B );
00304             if( entity == "circledcirc" ) return QChar( 0x0229A );
00305             if( entity == "circleddash" ) return QChar( 0x0229D );
00306             if( entity == "CircleDot" ) return QChar( 0x02299 );
00307             if( entity == "circledR" ) return QChar( 0x000AE );
00308             if( entity == "circledS" ) return QChar( 0x024C8 );
00309             if( entity == "CircleMinus" ) return QChar( 0x02296 );
00310             if( entity == "CirclePlus" ) return QChar( 0x02295 );
00311             if( entity == "CircleTimes" ) return QChar( 0x02297 );
00312             if( entity == "cirE" ) return QChar( 0x029C3 );
00313             if( entity == "cire" ) return QChar( 0x02257 );
00314             if( entity == "cirfnint" ) return QChar( 0x02A10 );
00315             if( entity == "cirmid" ) return QChar( 0x02AEF );
00316             if( entity == "cirscir" ) return QChar( 0x029C2 );
00317             if( entity == "ClockwiseContourIntegral" ) return QChar( 0x02232 );
00318             if( entity == "CloseCurlyDoubleQuote" ) return QChar( 0x0201D );
00319             if( entity == "CloseCurlyQuote" ) return QChar( 0x02019 );
00320             if( entity == "clubs" ) return QChar( 0x02663 );
00321             if( entity == "clubsuit" ) return QChar( 0x02663 );
00322             if( entity == "Colon" ) return QChar( 0x02237 );
00323             if( entity == "colon" ) return QChar( 0x0003A );
00324             if( entity == "Colone" ) return QChar( 0x02A74 );
00325             if( entity == "colone" ) return QChar( 0x02254 );
00326             if( entity == "coloneq" ) return QChar( 0x02254 );
00327             if( entity == "comma" ) return QChar( 0x0002C );
00328             if( entity == "commat" ) return QChar( 0x00040 );
00329             if( entity == "comp" ) return QChar( 0x02201 );
00330             if( entity == "compfn" ) return QChar( 0x02218 );
00331             if( entity == "complement" ) return QChar( 0x02201 );
00332             if( entity == "complexes" ) return QChar( 0x02102 );
00333             if( entity == "cong" ) return QChar( 0x02245 );
00334             if( entity == "congdot" ) return QChar( 0x02A6D );
00335             if( entity == "Congruent" ) return QChar( 0x02261 );
00336             if( entity == "Conint" ) return QChar( 0x0222F );
00337             if( entity == "conint" ) return QChar( 0x0222E );
00338             if( entity == "ContourIntegral" ) return QChar( 0x0222E );
00339             if( entity == "Copf" ) return QChar( 0x02102 );
00340             if( entity == "copf" ) return QChar( 0x1D554 );
00341             if( entity == "coprod" ) return QChar( 0x02210 );
00342             if( entity == "Coproduct" ) return QChar( 0x02210 );
00343             if( entity == "copy" ) return QChar( 0x000A9 );
00344             if( entity == "copysr" ) return QChar( 0x02117 );
00345             if( entity == "CounterClockwiseContourIntegral" ) return QChar( 0x02233 );
00346             if( entity == "Cross" ) return QChar( 0x02A2F );
00347             if( entity == "cross" ) return QChar( 0x02717 );
00348             if( entity == "Cscr" ) return QChar( 0x1D49E );
00349             if( entity == "cscr" ) return QChar( 0x1D4B8 );
00350             if( entity == "csub" ) return QChar( 0x02ACF );
00351             if( entity == "csube" ) return QChar( 0x02AD1 );
00352             if( entity == "csup" ) return QChar( 0x02AD0 );
00353             if( entity == "csupe" ) return QChar( 0x02AD2 );
00354             if( entity == "ctdot" ) return QChar( 0x022EF );
00355             if( entity == "cudarrl" ) return QChar( 0x02938 );
00356             if( entity == "cudarrr" ) return QChar( 0x02935 );
00357             if( entity == "cuepr" ) return QChar( 0x022DE );
00358             if( entity == "cuesc" ) return QChar( 0x022DF );
00359             if( entity == "cularr" ) return QChar( 0x021B6 );
00360             if( entity == "cularrp" ) return QChar( 0x0293D );
00361             if( entity == "Cup" ) return QChar( 0x022D3 );
00362             if( entity == "cup" ) return QChar( 0x0222A );
00363             if( entity == "cupbrcap" ) return QChar( 0x02A48 );
00364             if( entity == "CupCap" ) return QChar( 0x0224D );
00365             if( entity == "cupcap" ) return QChar( 0x02A46 );
00366             if( entity == "cupcup" ) return QChar( 0x02A4A );
00367             if( entity == "cupdot" ) return QChar( 0x0228D );
00368             if( entity == "cupor" ) return QChar( 0x02A45 );
00369             if( entity == "curarr" ) return QChar( 0x021B7 );
00370             if( entity == "curarrm" ) return QChar( 0x0293C );
00371             if( entity == "curlyeqprec" ) return QChar( 0x022DE );
00372             if( entity == "curlyeqsucc" ) return QChar( 0x022DF );
00373             if( entity == "curlyvee" ) return QChar( 0x022CE );
00374             if( entity == "curlywedge" ) return QChar( 0x022CF );
00375             if( entity == "curren" ) return QChar( 0x000A4 );
00376             if( entity == "curvearrowleft" ) return QChar( 0x021B6 );
00377             if( entity == "curvearrowright" ) return QChar( 0x021B7 );
00378             if( entity == "cuvee" ) return QChar( 0x022CE );
00379             if( entity == "cuwed" ) return QChar( 0x022CF );
00380             if( entity == "cwconint" ) return QChar( 0x02232 );
00381             if( entity == "cwint" ) return QChar( 0x02231 );
00382             if( entity == "cylcty" ) return QChar( 0x0232D );
00383             break;
00384         case 'd':
00385             if( entity == "Dagger" ) return QChar( 0x02021 );
00386             if( entity == "Dagger" ) return QChar( 0x02021 );
00387             if( entity == "dagger" ) return QChar( 0x02020 );
00388             if( entity == "dagger" ) return QChar( 0x02020 );
00389             if( entity == "daleth" ) return QChar( 0x02138 );
00390             if( entity == "Darr" ) return QChar( 0x021A1 );
00391             if( entity == "dArr" ) return QChar( 0x021D3 );
00392             if( entity == "darr" ) return QChar( 0x02193 );
00393             if( entity == "dash" ) return QChar( 0x02010 );
00394             if( entity == "Dashv" ) return QChar( 0x02AE4 );
00395             if( entity == "dashv" ) return QChar( 0x022A3 );
00396             if( entity == "dbkarow" ) return QChar( 0x0290F );
00397             if( entity == "dblac" ) return QChar( 0x002DD );
00398             if( entity == "Dcaron" ) return QChar( 0x0010E );
00399             if( entity == "dcaron" ) return QChar( 0x0010F );
00400             if( entity == "Dcy" ) return QChar( 0x00414 );
00401             if( entity == "dcy" ) return QChar( 0x00434 );
00402             if( entity == "DD" ) return QChar( 0x02145 );
00403             if( entity == "dd" ) return QChar( 0x02146 );
00404             if( entity == "ddagger" ) return QChar( 0x02021 );
00405             if( entity == "ddarr" ) return QChar( 0x021CA );
00406             if( entity == "DDotrahd" ) return QChar( 0x02911 );
00407             if( entity == "ddotseq" ) return QChar( 0x02A77 );
00408             if( entity == "deg" ) return QChar( 0x000B0 );
00409             if( entity == "Del" ) return QChar( 0x02207 );
00410             if( entity == "Delta" ) return QChar( 0x00394 );
00411             if( entity == "delta" ) return QChar( 0x003B4 );
00412             if( entity == "demptyv" ) return QChar( 0x029B1 );
00413             if( entity == "dfisht" ) return QChar( 0x0297F );
00414             if( entity == "Dfr" ) return QChar( 0x1D507 );
00415             if( entity == "dfr" ) return QChar( 0x1D521 );
00416             if( entity == "dHar" ) return QChar( 0x02965 );
00417             if( entity == "dharl" ) return QChar( 0x021C3 );
00418             if( entity == "dharr" ) return QChar( 0x021C2 );
00419             if( entity == "DiacriticalAcute" ) return QChar( 0x000B4 );
00420             if( entity == "DiacriticalDot" ) return QChar( 0x002D9 );
00421             if( entity == "DiacriticalDoubleAcute" ) return QChar( 0x002DD );
00422             if( entity == "DiacriticalGrave" ) return QChar( 0x00060 );
00423             if( entity == "DiacriticalTilde" ) return QChar( 0x002DC );
00424             if( entity == "diam" ) return QChar( 0x022C4 );
00425             if( entity == "Diamond" ) return QChar( 0x022C4 );
00426             if( entity == "diamond" ) return QChar( 0x022C4 );
00427             if( entity == "diamondsuit" ) return QChar( 0x02666 );
00428             if( entity == "diams" ) return QChar( 0x02666 );
00429             if( entity == "die" ) return QChar( 0x000A8 );
00430             if( entity == "DifferentialD" ) return QChar( 0x02146 );
00431             if( entity == "digamma" ) return QChar( 0x003DD );
00432             if( entity == "disin" ) return QChar( 0x022F2 );
00433             if( entity == "div" ) return QChar( 0x000F7 );
00434             if( entity == "divide" ) return QChar( 0x000F7 );
00435             if( entity == "divideontimes" ) return QChar( 0x022C7 );
00436             if( entity == "divonx" ) return QChar( 0x022C7 );
00437             if( entity == "DJcy" ) return QChar( 0x00402 );
00438             if( entity == "djcy" ) return QChar( 0x00452 );
00439             if( entity == "dlcorn" ) return QChar( 0x0231E );
00440             if( entity == "dlcrop" ) return QChar( 0x0230D );
00441             if( entity == "dollar" ) return QChar( 0x00024 );
00442             if( entity == "Dopf" ) return QChar( 0x1D53B );
00443             if( entity == "dopf" ) return QChar( 0x1D555 );
00444             if( entity == "Dot" ) return QChar( 0x000A8 );
00445             if( entity == "dot" ) return QChar( 0x002D9 );
00446             if( entity == "DotDot" ) return QChar( 0x020DC );
00447             if( entity == "doteq" ) return QChar( 0x02250 );
00448             if( entity == "doteqdot" ) return QChar( 0x02251 );
00449             if( entity == "DotEqual" ) return QChar( 0x02250 );
00450             if( entity == "dotminus" ) return QChar( 0x02238 );
00451             if( entity == "dotplus" ) return QChar( 0x02214 );
00452             if( entity == "dotsquare" ) return QChar( 0x022A1 );
00453             if( entity == "doublebarwedge" ) return QChar( 0x02306 );
00454             if( entity == "DoubleContourIntegral" ) return QChar( 0x0222F );
00455             if( entity == "DoubleDot" ) return QChar( 0x000A8 );
00456             if( entity == "DoubleDownArrow" ) return QChar( 0x021D3 );
00457             if( entity == "DoubleLeftArrow" ) return QChar( 0x021D0 );
00458             if( entity == "DoubleLeftRightArrow" ) return QChar( 0x021D4 );
00459             if( entity == "DoubleLeftTee" ) return QChar( 0x02AE4 );
00460             if( entity == "DoubleLongLeftArrow" ) return QChar( 0x027F8 );
00461             if( entity == "DoubleLongLeftRightArrow" ) return QChar( 0x027FA );
00462             if( entity == "DoubleLongRightArrow" ) return QChar( 0x027F9 );
00463             if( entity == "DoubleRightArrow" ) return QChar( 0x021D2 );
00464             if( entity == "DoubleRightTee" ) return QChar( 0x022A8 );
00465             if( entity == "DoubleUpArrow" ) return QChar( 0x021D1 );
00466             if( entity == "DoubleUpDownArrow" ) return QChar( 0x021D5 );
00467             if( entity == "DoubleVerticalBar" ) return QChar( 0x02225 );
00468             if( entity == "DownArrow" ) return QChar( 0x02193 );
00469             if( entity == "Downarrow" ) return QChar( 0x021D3 );
00470             if( entity == "downarrow" ) return QChar( 0x02193 );
00471             if( entity == "DownArrowBar" ) return QChar( 0x02913 );
00472             if( entity == "DownArrowUpArrow" ) return QChar( 0x021F5 );
00473             if( entity == "DownBreve" ) return QChar( 0x00311 );
00474             if( entity == "downdownarrows" ) return QChar( 0x021CA );
00475             if( entity == "downharpoonleft" ) return QChar( 0x021C3 );
00476             if( entity == "downharpoonright" ) return QChar( 0x021C2 );
00477             if( entity == "DownLeftRightVector" ) return QChar( 0x02950 );
00478             if( entity == "DownLeftTeeVector" ) return QChar( 0x0295E );
00479             if( entity == "DownLeftVector" ) return QChar( 0x021BD );
00480             if( entity == "DownLeftVectorBar" ) return QChar( 0x02956 );
00481             if( entity == "DownRightTeeVector" ) return QChar( 0x0295F );
00482             if( entity == "DownRightVector" ) return QChar( 0x021C1 );
00483             if( entity == "DownRightVectorBar" ) return QChar( 0x02957 );
00484             if( entity == "DownTee" ) return QChar( 0x022A4 );
00485             if( entity == "DownTeeArrow" ) return QChar( 0x021A7 );
00486             if( entity == "drbkarow" ) return QChar( 0x02910 );
00487             if( entity == "drcorn" ) return QChar( 0x0231F );
00488             if( entity == "drcrop" ) return QChar( 0x0230C );
00489             if( entity == "Dscr" ) return QChar( 0x1D49F );
00490             if( entity == "dscr" ) return QChar( 0x1D4B9 );
00491             if( entity == "DScy" ) return QChar( 0x00405 );
00492             if( entity == "dscy" ) return QChar( 0x00455 );
00493             if( entity == "dsol" ) return QChar( 0x029F6 );
00494             if( entity == "Dstrok" ) return QChar( 0x00110 );
00495             if( entity == "dstrok" ) return QChar( 0x00111 );
00496             if( entity == "dtdot" ) return QChar( 0x022F1 );
00497             if( entity == "dtri" ) return QChar( 0x025BF );
00498             if( entity == "dtrif" ) return QChar( 0x025BE );
00499             if( entity == "duarr" ) return QChar( 0x021F5 );
00500             if( entity == "duhar" ) return QChar( 0x0296F );
00501             if( entity == "dwangle" ) return QChar( 0x029A6 );
00502             if( entity == "DZcy" ) return QChar( 0x0040F );
00503             if( entity == "dzcy" ) return QChar( 0x0045F );
00504             if( entity == "dzigrarr" ) return QChar( 0x027FF );
00505             break;
00506         case 'e':
00507             if( entity == "Eacute" ) return QChar( 0x000C9 );
00508             if( entity == "eacute" ) return QChar( 0x000E9 );
00509             if( entity == "easter" ) return QChar( 0x02A6E );
00510             if( entity == "Ecaron" ) return QChar( 0x0011A );
00511             if( entity == "ecaron" ) return QChar( 0x0011B );
00512             if( entity == "ecir" ) return QChar( 0x02256 );
00513             if( entity == "Ecirc" ) return QChar( 0x000CA );
00514             if( entity == "ecirc" ) return QChar( 0x000EA );
00515             if( entity == "ecolon" ) return QChar( 0x02255 );
00516             if( entity == "Ecy" ) return QChar( 0x0042D );
00517             if( entity == "ecy" ) return QChar( 0x0044D );
00518             if( entity == "eDDot" ) return QChar( 0x02A77 );
00519             if( entity == "Edot" ) return QChar( 0x00116 );
00520             if( entity == "eDot" ) return QChar( 0x02251 );
00521             if( entity == "edot" ) return QChar( 0x00117 );
00522             if( entity == "ee" ) return QChar( 0x02147 );
00523             if( entity == "efDot" ) return QChar( 0x02252 );
00524             if( entity == "Efr" ) return QChar( 0x1D508 );
00525             if( entity == "efr" ) return QChar( 0x1D522 );
00526             if( entity == "eg" ) return QChar( 0x02A9A );
00527             if( entity == "Egrave" ) return QChar( 0x000C8 );
00528             if( entity == "egrave" ) return QChar( 0x000E8 );
00529             if( entity == "egs" ) return QChar( 0x02A96 );
00530             if( entity == "egsdot" ) return QChar( 0x02A98 );
00531             if( entity == "el" ) return QChar( 0x02A99 );
00532             if( entity == "Element" ) return QChar( 0x02208 );
00533             if( entity == "elinters" ) return QChar( 0x0FFFD );
00534             if( entity == "ell" ) return QChar( 0x02113 );
00535             if( entity == "els" ) return QChar( 0x02A95 );
00536             if( entity == "elsdot" ) return QChar( 0x02A97 );
00537             if( entity == "Emacr" ) return QChar( 0x00112 );
00538             if( entity == "emacr" ) return QChar( 0x00113 );
00539             if( entity == "empty" ) return QChar( 0x02205 );
00540             if( entity == "emptyset" ) return QChar( 0x02205 );
00541             if( entity == "EmptySmallSquare" ) return QChar( 0x025FB );
00542             if( entity == "emptyv" ) return QChar( 0x02205 );
00543             if( entity == "EmptyVerySmallSquare" ) return QChar( 0x025AB );
00544             if( entity == "emsp" ) return QChar( 0x02003 );
00545             if( entity == "emsp13" ) return QChar( 0x02004 );
00546             if( entity == "emsp14" ) return QChar( 0x02005 );
00547             if( entity == "ENG" ) return QChar( 0x0014A );
00548             if( entity == "eng" ) return QChar( 0x0014B );
00549             if( entity == "ensp" ) return QChar( 0x02002 );
00550             if( entity == "Eogon" ) return QChar( 0x00118 );
00551             if( entity == "eogon" ) return QChar( 0x00119 );
00552             if( entity == "Eopf" ) return QChar( 0x1D53C );
00553             if( entity == "eopf" ) return QChar( 0x1D556 );
00554             if( entity == "epar" ) return QChar( 0x022D5 );
00555             if( entity == "eparsl" ) return QChar( 0x029E3 );
00556             if( entity == "eplus" ) return QChar( 0x02A71 );
00557             if( entity == "epsi" ) return QChar( 0x003F5 );
00558             if( entity == "epsiv" ) return QChar( 0x003B5 );
00559             if( entity == "eqcirc" ) return QChar( 0x02256 );
00560             if( entity == "eqcolon" ) return QChar( 0x02255 );
00561             if( entity == "eqsim" ) return QChar( 0x02242 );
00562             if( entity == "eqslantgtr" ) return QChar( 0x02A96 );
00563             if( entity == "eqslantless" ) return QChar( 0x02A95 );
00564             if( entity == "Equal" ) return QChar( 0x02A75 );
00565             if( entity == "equals" ) return QChar( 0x0003D );
00566             if( entity == "EqualTilde" ) return QChar( 0x02242 );
00567             if( entity == "equest" ) return QChar( 0x0225F );
00568             if( entity == "Equilibrium" ) return QChar( 0x021CC );
00569             if( entity == "equiv" ) return QChar( 0x02261 );
00570             if( entity == "equivDD" ) return QChar( 0x02A78 );
00571             if( entity == "eqvparsl" ) return QChar( 0x029E5 );
00572             if( entity == "erarr" ) return QChar( 0x02971 );
00573             if( entity == "erDot" ) return QChar( 0x02253 );
00574             if( entity == "Escr" ) return QChar( 0x02130 );
00575             if( entity == "escr" ) return QChar( 0x0212F );
00576             if( entity == "esdot" ) return QChar( 0x02250 );
00577             if( entity == "Esim" ) return QChar( 0x02A73 );
00578             if( entity == "esim" ) return QChar( 0x02242 );
00579             if( entity == "eta" ) return QChar( 0x003B7 );
00580             if( entity == "ETH" ) return QChar( 0x000D0 );
00581             if( entity == "eth" ) return QChar( 0x000F0 );
00582             if( entity == "Euml" ) return QChar( 0x000CB );
00583             if( entity == "euml" ) return QChar( 0x000EB );
00584             if( entity == "excl" ) return QChar( 0x00021 );
00585             if( entity == "exist" ) return QChar( 0x02203 );
00586             if( entity == "Exists" ) return QChar( 0x02203 );
00587             if( entity == "expectation" ) return QChar( 0x02130 );
00588             if( entity == "ExponentialE" ) return QChar( 0x02147 );
00589             if( entity == "exponentiale" ) return QChar( 0x02147 );
00590             break;
00591         case 'f':
00592             if( entity == "fallingdotseq" ) return QChar( 0x02252 );
00593             if( entity == "Fcy" ) return QChar( 0x00424 );
00594             if( entity == "fcy" ) return QChar( 0x00444 );
00595             if( entity == "female" ) return QChar( 0x02640 );
00596             if( entity == "ffilig" ) return QChar( 0x0FB03 );
00597             if( entity == "fflig" ) return QChar( 0x0FB00 );
00598             if( entity == "ffllig" ) return QChar( 0x0FB04 );
00599             if( entity == "Ffr" ) return QChar( 0x1D509 );
00600             if( entity == "ffr" ) return QChar( 0x1D523 );
00601             if( entity == "filig" ) return QChar( 0x0FB01 );
00602             if( entity == "FilledSmallSquare" ) return QChar( 0x025FC );
00603             if( entity == "FilledVerySmallSquare" ) return QChar( 0x025AA );
00604             if( entity == "flat" ) return QChar( 0x0266D );
00605             if( entity == "fllig" ) return QChar( 0x0FB02 );
00606             if( entity == "fltns" ) return QChar( 0x025B1 );
00607             if( entity == "fnof" ) return QChar( 0x00192 );
00608             if( entity == "Fopf" ) return QChar( 0x1D53D );
00609             if( entity == "fopf" ) return QChar( 0x1D557 );
00610             if( entity == "ForAll" ) return QChar( 0x02200 );
00611             if( entity == "forall" ) return QChar( 0x02200 );
00612             if( entity == "fork" ) return QChar( 0x022D4 );
00613             if( entity == "forkv" ) return QChar( 0x02AD9 );
00614             if( entity == "Fouriertrf" ) return QChar( 0x02131 );
00615             if( entity == "fpartint" ) return QChar( 0x02A0D );
00616             if( entity == "frac12" ) return QChar( 0x000BD );
00617             if( entity == "frac13" ) return QChar( 0x02153 );
00618             if( entity == "frac14" ) return QChar( 0x000BC );
00619             if( entity == "frac15" ) return QChar( 0x02155 );
00620             if( entity == "frac16" ) return QChar( 0x02159 );
00621             if( entity == "frac18" ) return QChar( 0x0215B );
00622             if( entity == "frac23" ) return QChar( 0x02154 );
00623             if( entity == "frac25" ) return QChar( 0x02156 );
00624             if( entity == "frac34" ) return QChar( 0x000BE );
00625             if( entity == "frac35" ) return QChar( 0x02157 );
00626             if( entity == "frac38" ) return QChar( 0x0215C );
00627             if( entity == "frac45" ) return QChar( 0x02158 );
00628             if( entity == "frac56" ) return QChar( 0x0215A );
00629             if( entity == "frac58" ) return QChar( 0x0215D );
00630             if( entity == "frac78" ) return QChar( 0x0215E );
00631             if( entity == "frown" ) return QChar( 0x02322 );
00632             if( entity == "Fscr" ) return QChar( 0x02131 );
00633             if( entity == "fscr" ) return QChar( 0x1D4BB );
00634             break;
00635         case 'g':
00636             if( entity == "gacute" ) return QChar( 0x001F5 );
00637             if( entity == "Gamma" ) return QChar( 0x00393 );
00638             if( entity == "gamma" ) return QChar( 0x003B3 );
00639             if( entity == "Gammad" ) return QChar( 0x003DC );
00640             if( entity == "gammad" ) return QChar( 0x003DD );
00641             if( entity == "gap" ) return QChar( 0x02A86 );
00642             if( entity == "Gbreve" ) return QChar( 0x0011E );
00643             if( entity == "gbreve" ) return QChar( 0x0011F );
00644             if( entity == "Gcedil" ) return QChar( 0x00122 );
00645             if( entity == "Gcirc" ) return QChar( 0x0011C );
00646             if( entity == "gcirc" ) return QChar( 0x0011D );
00647             if( entity == "Gcy" ) return QChar( 0x00413 );
00648             if( entity == "gcy" ) return QChar( 0x00433 );
00649             if( entity == "Gdot" ) return QChar( 0x00120 );
00650             if( entity == "gdot" ) return QChar( 0x00121 );
00651             if( entity == "gE" ) return QChar( 0x02267 );
00652             if( entity == "ge" ) return QChar( 0x02265 );
00653             if( entity == "gEl" ) return QChar( 0x02A8C );
00654             if( entity == "gel" ) return QChar( 0x022DB );
00655             if( entity == "geq" ) return QChar( 0x02265 );
00656             if( entity == "geqq" ) return QChar( 0x02267 );
00657             if( entity == "geqslant" ) return QChar( 0x02A7E );
00658             if( entity == "ges" ) return QChar( 0x02A7E );
00659             if( entity == "gescc" ) return QChar( 0x02AA9 );
00660             if( entity == "gesdot" ) return QChar( 0x02A80 );
00661             if( entity == "gesdoto" ) return QChar( 0x02A82 );
00662             if( entity == "gesdotol" ) return QChar( 0x02A84 );
00663             if( entity == "gesles" ) return QChar( 0x02A94 );
00664             if( entity == "Gfr" ) return QChar( 0x1D50A );
00665             if( entity == "gfr" ) return QChar( 0x1D524 );
00666             if( entity == "Gg" ) return QChar( 0x022D9 );
00667             if( entity == "gg" ) return QChar( 0x0226B );
00668             if( entity == "ggg" ) return QChar( 0x022D9 );
00669             if( entity == "gimel" ) return QChar( 0x02137 );
00670             if( entity == "GJcy" ) return QChar( 0x00403 );
00671             if( entity == "gjcy" ) return QChar( 0x00453 );
00672             if( entity == "gl" ) return QChar( 0x02277 );
00673             if( entity == "gla" ) return QChar( 0x02AA5 );
00674             if( entity == "glE" ) return QChar( 0x02A92 );
00675             if( entity == "glj" ) return QChar( 0x02AA4 );
00676             if( entity == "gnap" ) return QChar( 0x02A8A );
00677             if( entity == "gnapprox" ) return QChar( 0x02A8A );
00678             if( entity == "gnE" ) return QChar( 0x02269 );
00679             if( entity == "gne" ) return QChar( 0x02A88 );
00680             if( entity == "gneq" ) return QChar( 0x02A88 );
00681             if( entity == "gneqq" ) return QChar( 0x02269 );
00682             if( entity == "gnsim" ) return QChar( 0x022E7 );
00683             if( entity == "Gopf" ) return QChar( 0x1D53E );
00684             if( entity == "gopf" ) return QChar( 0x1D558 );
00685             if( entity == "grave" ) return QChar( 0x00060 );
00686             if( entity == "GreaterEqual" ) return QChar( 0x02265 );
00687             if( entity == "GreaterEqualLess" ) return QChar( 0x022DB );
00688             if( entity == "GreaterFullEqual" ) return QChar( 0x02267 );
00689             if( entity == "GreaterGreater" ) return QChar( 0x02AA2 );
00690             if( entity == "GreaterLess" ) return QChar( 0x02277 );
00691             if( entity == "GreaterSlantEqual" ) return QChar( 0x02A7E );
00692             if( entity == "GreaterTilde" ) return QChar( 0x02273 );
00693             if( entity == "Gscr" ) return QChar( 0x1D4A2 );
00694             if( entity == "gscr" ) return QChar( 0x0210A );
00695             if( entity == "gsim" ) return QChar( 0x02273 );
00696             if( entity == "gsime" ) return QChar( 0x02A8E );
00697             if( entity == "gsiml" ) return QChar( 0x02A90 );
00698             if( entity == "Gt" ) return QChar( 0x0226B );
00699             if( entity == "gt" ) return QChar( 0x0003E );
00700             if( entity == "gtcc" ) return QChar( 0x02AA7 );
00701             if( entity == "gtcir" ) return QChar( 0x02A7A );
00702             if( entity == "gtdot" ) return QChar( 0x022D7 );
00703             if( entity == "gtlPar" ) return QChar( 0x02995 );
00704             if( entity == "gtquest" ) return QChar( 0x02A7C );
00705             if( entity == "gtrapprox" ) return QChar( 0x02A86 );
00706             if( entity == "gtrarr" ) return QChar( 0x02978 );
00707             if( entity == "gtrdot" ) return QChar( 0x022D7 );
00708             if( entity == "gtreqless" ) return QChar( 0x022DB );
00709             if( entity == "gtreqqless" ) return QChar( 0x02A8C );
00710             if( entity == "gtrless" ) return QChar( 0x02277 );
00711             if( entity == "gtrsim" ) return QChar( 0x02273 );
00712             break;
00713         case 'h':
00714             if( entity == "Hacek" ) return QChar( 0x002C7 );
00715             if( entity == "hairsp" ) return QChar( 0x0200A );
00716             if( entity == "half" ) return QChar( 0x000BD );
00717             if( entity == "hamilt" ) return QChar( 0x0210B );
00718             if( entity == "HARDcy" ) return QChar( 0x0042A );
00719             if( entity == "hardcy" ) return QChar( 0x0044A );
00720             if( entity == "hArr" ) return QChar( 0x021D4 );
00721             if( entity == "harr" ) return QChar( 0x02194 );
00722             if( entity == "harrcir" ) return QChar( 0x02948 );
00723             if( entity == "harrw" ) return QChar( 0x021AD );
00724             if( entity == "Hat" ) return QChar( 0x0005E );
00725             if( entity == "hbar" ) return QChar( 0x0210F );
00726             if( entity == "Hcirc" ) return QChar( 0x00124 );
00727             if( entity == "hcirc" ) return QChar( 0x00125 );
00728             if( entity == "hearts" ) return QChar( 0x02665 );
00729             if( entity == "heartsuit" ) return QChar( 0x02665 );
00730             if( entity == "hellip" ) return QChar( 0x02026 );
00731             if( entity == "hercon" ) return QChar( 0x022B9 );
00732             if( entity == "Hfr" ) return QChar( 0x0210C );
00733             if( entity == "hfr" ) return QChar( 0x1D525 );
00734             if( entity == "HilbertSpace" ) return QChar( 0x0210B );
00735             if( entity == "hksearow" ) return QChar( 0x02925 );
00736             if( entity == "hkswarow" ) return QChar( 0x02926 );
00737             if( entity == "hoarr" ) return QChar( 0x021FF );
00738             if( entity == "homtht" ) return QChar( 0x0223B );
00739             if( entity == "hookleftarrow" ) return QChar( 0x021A9 );
00740             if( entity == "hookrightarrow" ) return QChar( 0x021AA );
00741             if( entity == "Hopf" ) return QChar( 0x0210D );
00742             if( entity == "hopf" ) return QChar( 0x1D559 );
00743             if( entity == "horbar" ) return QChar( 0x02015 );
00744             if( entity == "HorizontalLine" ) return QChar( 0x02500 );
00745             if( entity == "Hscr" ) return QChar( 0x0210B );
00746             if( entity == "hscr" ) return QChar( 0x1D4BD );
00747             if( entity == "hslash" ) return QChar( 0x0210F );
00748             if( entity == "Hstrok" ) return QChar( 0x00126 );
00749             if( entity == "hstrok" ) return QChar( 0x00127 );
00750             if( entity == "HumpDownHump" ) return QChar( 0x0224E );
00751             if( entity == "HumpEqual" ) return QChar( 0x0224F );
00752             if( entity == "hybull" ) return QChar( 0x02043 );
00753             if( entity == "hyphen" ) return QChar( 0x02010 );
00754             break;
00755         case 'i':
00756             if( entity == "Iacute" ) return QChar( 0x000CD );
00757             if( entity == "iacute" ) return QChar( 0x000ED );
00758             if( entity == "ic" ) return QChar( 0x02063 );
00759             if( entity == "Icirc" ) return QChar( 0x000CE );
00760             if( entity == "icirc" ) return QChar( 0x000EE );
00761             if( entity == "Icy" ) return QChar( 0x00418 );
00762             if( entity == "icy" ) return QChar( 0x00438 );
00763             if( entity == "Idot" ) return QChar( 0x00130 );
00764             if( entity == "IEcy" ) return QChar( 0x00415 );
00765             if( entity == "iecy" ) return QChar( 0x00435 );
00766             if( entity == "iexcl" ) return QChar( 0x000A1 );
00767             if( entity == "iff" ) return QChar( 0x021D4 );
00768             if( entity == "Ifr" ) return QChar( 0x02111 );
00769             if( entity == "ifr" ) return QChar( 0x1D526 );
00770             if( entity == "Igrave" ) return QChar( 0x000CC );
00771             if( entity == "igrave" ) return QChar( 0x000EC );
00772             if( entity == "ii" ) return QChar( 0x02148 );
00773             if( entity == "iiiint" ) return QChar( 0x02A0C );
00774             if( entity == "iiint" ) return QChar( 0x0222D );
00775             if( entity == "iinfin" ) return QChar( 0x029DC );
00776             if( entity == "iiota" ) return QChar( 0x02129 );
00777             if( entity == "IJlig" ) return QChar( 0x00132 );
00778             if( entity == "ijlig" ) return QChar( 0x00133 );
00779             if( entity == "Im" ) return QChar( 0x02111 );
00780             if( entity == "Imacr" ) return QChar( 0x0012A );
00781             if( entity == "imacr" ) return QChar( 0x0012B );
00782             if( entity == "image" ) return QChar( 0x02111 );
00783             if( entity == "ImaginaryI" ) return QChar( 0x02148 );
00784             if( entity == "imagline" ) return QChar( 0x02110 );
00785             if( entity == "imagpart" ) return QChar( 0x02111 );
00786             if( entity == "imath" ) return QChar( 0x00131 );
00787             if( entity == "imof" ) return QChar( 0x022B7 );
00788             if( entity == "imped" ) return QChar( 0x001B5 );
00789             if( entity == "Implies" ) return QChar( 0x021D2 );
00790             if( entity == "in" ) return QChar( 0x02208 );
00791             if( entity == "incare" ) return QChar( 0x02105 );
00792             if( entity == "infin" ) return QChar( 0x0221E );
00793             if( entity == "infintie" ) return QChar( 0x029DD );
00794             if( entity == "inodot" ) return QChar( 0x00131 );
00795             if( entity == "Int" ) return QChar( 0x0222C );
00796             if( entity == "int" ) return QChar( 0x0222B );
00797             if( entity == "intcal" ) return QChar( 0x022BA );
00798             if( entity == "integers" ) return QChar( 0x02124 );
00799             if( entity == "Integral" ) return QChar( 0x0222B );
00800             if( entity == "intercal" ) return QChar( 0x022BA );
00801             if( entity == "Intersection" ) return QChar( 0x022C2 );
00802             if( entity == "intlarhk" ) return QChar( 0x02A17 );
00803             if( entity == "intprod" ) return QChar( 0x02A3C );
00804             if( entity == "InvisibleComma" ) return QChar( 0x02063 );
00805             if( entity == "InvisibleTimes" ) return QChar( 0x02062 );
00806             if( entity == "IOcy" ) return QChar( 0x00401 );
00807             if( entity == "iocy" ) return QChar( 0x00451 );
00808             if( entity == "Iogon" ) return QChar( 0x0012E );
00809             if( entity == "iogon" ) return QChar( 0x0012F );
00810             if( entity == "Iopf" ) return QChar( 0x1D540 );
00811             if( entity == "iopf" ) return QChar( 0x1D55A );
00812             if( entity == "iota" ) return QChar( 0x003B9 );
00813             if( entity == "iprod" ) return QChar( 0x02A3C );
00814             if( entity == "iquest" ) return QChar( 0x000BF );
00815             if( entity == "Iscr" ) return QChar( 0x02110 );
00816             if( entity == "iscr" ) return QChar( 0x1D4BE );
00817             if( entity == "isin" ) return QChar( 0x02208 );
00818             if( entity == "isindot" ) return QChar( 0x022F5 );
00819             if( entity == "isinE" ) return QChar( 0x022F9 );
00820             if( entity == "isins" ) return QChar( 0x022F4 );
00821             if( entity == "isinsv" ) return QChar( 0x022F3 );
00822             if( entity == "isinv" ) return QChar( 0x02208 );
00823             if( entity == "it" ) return QChar( 0x02062 );
00824             if( entity == "Itilde" ) return QChar( 0x00128 );
00825             if( entity == "itilde" ) return QChar( 0x00129 );
00826             if( entity == "Iukcy" ) return QChar( 0x00406 );
00827             if( entity == "iukcy" ) return QChar( 0x00456 );
00828             if( entity == "Iuml" ) return QChar( 0x000CF );
00829             if( entity == "iuml" ) return QChar( 0x000EF );
00830             break;
00831         case 'j':
00832             if( entity == "Jcirc" ) return QChar( 0x00134 );
00833             if( entity == "jcirc" ) return QChar( 0x00135 );
00834             if( entity == "Jcy" ) return QChar( 0x00419 );
00835             if( entity == "jcy" ) return QChar( 0x00439 );
00836             if( entity == "Jfr" ) return QChar( 0x1D50D );
00837             if( entity == "jfr" ) return QChar( 0x1D527 );
00838             if( entity == "jmath" ) return QChar( 0x0006A );
00839             if( entity == "Jopf" ) return QChar( 0x1D541 );
00840             if( entity == "jopf" ) return QChar( 0x1D55B );
00841             if( entity == "Jscr" ) return QChar( 0x1D4A5 );
00842             if( entity == "jscr" ) return QChar( 0x1D4BF );
00843             if( entity == "Jsercy" ) return QChar( 0x00408 );
00844             if( entity == "jsercy" ) return QChar( 0x00458 );
00845             if( entity == "Jukcy" ) return QChar( 0x00404 );
00846             if( entity == "jukcy" ) return QChar( 0x00454 );
00847             break;
00848         case 'k':
00849             if( entity == "kappa" ) return QChar( 0x003BA );
00850             if( entity == "kappav" ) return QChar( 0x003F0 );
00851             if( entity == "Kcedil" ) return QChar( 0x00136 );
00852             if( entity == "kcedil" ) return QChar( 0x00137 );
00853             if( entity == "Kcy" ) return QChar( 0x0041A );
00854             if( entity == "kcy" ) return QChar( 0x0043A );
00855             if( entity == "Kfr" ) return QChar( 0x1D50E );
00856             if( entity == "kfr" ) return QChar( 0x1D528 );
00857             if( entity == "kgreen" ) return QChar( 0x00138 );
00858             if( entity == "KHcy" ) return QChar( 0x00425 );
00859             if( entity == "khcy" ) return QChar( 0x00445 );
00860             if( entity == "KJcy" ) return QChar( 0x0040C );
00861             if( entity == "kjcy" ) return QChar( 0x0045C );
00862             if( entity == "Kopf" ) return QChar( 0x1D542 );
00863             if( entity == "kopf" ) return QChar( 0x1D55C );
00864             if( entity == "Kscr" ) return QChar( 0x1D4A6 );
00865             if( entity == "kscr" ) return QChar( 0x1D4C0 );
00866             break;
00867         case 'l':
00868             if( entity == "lAarr" ) return QChar( 0x021DA );
00869             if( entity == "Lacute" ) return QChar( 0x00139 );
00870             if( entity == "lacute" ) return QChar( 0x0013A );
00871             if( entity == "laemptyv" ) return QChar( 0x029B4 );
00872             if( entity == "lagran" ) return QChar( 0x02112 );
00873             if( entity == "Lambda" ) return QChar( 0x0039B );
00874             if( entity == "lambda" ) return QChar( 0x003BB );
00875             if( entity == "Lang" ) return QChar( 0x0300A );
00876             if( entity == "lang" ) return QChar( 0x02329 );
00877             if( entity == "langd" ) return QChar( 0x02991 );
00878             if( entity == "langle" ) return QChar( 0x02329 );
00879             if( entity == "lap" ) return QChar( 0x02A85 );
00880             if( entity == "Laplacetrf" ) return QChar( 0x02112 );
00881             if( entity == "laquo" ) return QChar( 0x000AB );
00882             if( entity == "Larr" ) return QChar( 0x0219E );
00883             if( entity == "lArr" ) return QChar( 0x021D0 );
00884             if( entity == "larr" ) return QChar( 0x02190 );
00885             if( entity == "larrb" ) return QChar( 0x021E4 );
00886             if( entity == "larrbfs" ) return QChar( 0x0291F );
00887             if( entity == "larrfs" ) return QChar( 0x0291D );
00888             if( entity == "larrhk" ) return QChar( 0x021A9 );
00889             if( entity == "larrlp" ) return QChar( 0x021AB );
00890             if( entity == "larrpl" ) return QChar( 0x02939 );
00891             if( entity == "larrsim" ) return QChar( 0x02973 );
00892             if( entity == "larrtl" ) return QChar( 0x021A2 );
00893             if( entity == "lat" ) return QChar( 0x02AAB );
00894             if( entity == "lAtail" ) return QChar( 0x0291B );
00895             if( entity == "latail" ) return QChar( 0x02919 );
00896             if( entity == "late" ) return QChar( 0x02AAD );
00897             if( entity == "lBarr" ) return QChar( 0x0290E );
00898             if( entity == "lbarr" ) return QChar( 0x0290C );
00899             if( entity == "lbbrk" ) return QChar( 0x03014 );
00900             if( entity == "lbrace" ) return QChar( 0x0007B );
00901             if( entity == "lbrack" ) return QChar( 0x0005B );
00902             if( entity == "lbrke" ) return QChar( 0x0298B );
00903             if( entity == "lbrksld" ) return QChar( 0x0298F );
00904             if( entity == "lbrkslu" ) return QChar( 0x0298D );
00905             if( entity == "Lcaron" ) return QChar( 0x0013D );
00906             if( entity == "lcaron" ) return QChar( 0x0013E );
00907             if( entity == "Lcedil" ) return QChar( 0x0013B );
00908             if( entity == "lcedil" ) return QChar( 0x0013C );
00909             if( entity == "lceil" ) return QChar( 0x02308 );
00910             if( entity == "lcub" ) return QChar( 0x0007B );
00911             if( entity == "Lcy" ) return QChar( 0x0041B );
00912             if( entity == "lcy" ) return QChar( 0x0043B );
00913             if( entity == "ldca" ) return QChar( 0x02936 );
00914             if( entity == "ldquo" ) return QChar( 0x0201C );
00915             if( entity == "ldquor" ) return QChar( 0x0201E );
00916             if( entity == "ldrdhar" ) return QChar( 0x02967 );
00917             if( entity == "ldrushar" ) return QChar( 0x0294B );
00918             if( entity == "ldsh" ) return QChar( 0x021B2 );
00919             if( entity == "lE" ) return QChar( 0x02266 );
00920             if( entity == "le" ) return QChar( 0x02264 );
00921             if( entity == "LeftAngleBracket" ) return QChar( 0x02329 );
00922             if( entity == "LeftArrow" ) return QChar( 0x02190 );
00923             if( entity == "Leftarrow" ) return QChar( 0x021D0 );
00924             if( entity == "leftarrow" ) return QChar( 0x02190 );
00925             if( entity == "LeftArrowBar" ) return QChar( 0x021E4 );
00926             if( entity == "LeftArrowRightArrow" ) return QChar( 0x021C6 );
00927             if( entity == "leftarrowtail" ) return QChar( 0x021A2 );
00928             if( entity == "LeftCeiling" ) return QChar( 0x02308 );
00929             if( entity == "LeftDoubleBracket" ) return QChar( 0x0301A );
00930             if( entity == "LeftDownTeeVector" ) return QChar( 0x02961 );
00931             if( entity == "LeftDownVector" ) return QChar( 0x021C3 );
00932             if( entity == "LeftDownVectorBar" ) return QChar( 0x02959 );
00933             if( entity == "LeftFloor" ) return QChar( 0x0230A );
00934             if( entity == "leftharpoondown" ) return QChar( 0x021BD );
00935             if( entity == "leftharpoonup" ) return QChar( 0x021BC );
00936             if( entity == "leftleftarrows" ) return QChar( 0x021C7 );
00937             if( entity == "LeftRightArrow" ) return QChar( 0x02194 );
00938             if( entity == "Leftrightarrow" ) return QChar( 0x021D4 );
00939             if( entity == "leftrightarrow" ) return QChar( 0x02194 );
00940             if( entity == "leftrightarrows" ) return QChar( 0x021C6 );
00941             if( entity == "leftrightharpoons" ) return QChar( 0x021CB );
00942             if( entity == "leftrightsquigarrow" ) return QChar( 0x021AD );
00943             if( entity == "LeftRightVector" ) return QChar( 0x0294E );
00944             if( entity == "LeftTee" ) return QChar( 0x022A3 );
00945             if( entity == "LeftTeeArrow" ) return QChar( 0x021A4 );
00946             if( entity == "LeftTeeVector" ) return QChar( 0x0295A );
00947             if( entity == "leftthreetimes" ) return QChar( 0x022CB );
00948             if( entity == "LeftTriangle" ) return QChar( 0x022B2 );
00949             if( entity == "LeftTriangleBar" ) return QChar( 0x029CF );
00950             if( entity == "LeftTriangleEqual" ) return QChar( 0x022B4 );
00951             if( entity == "LeftUpDownVector" ) return QChar( 0x02951 );
00952             if( entity == "LeftUpTeeVector" ) return QChar( 0x02960 );
00953             if( entity == "LeftUpVector" ) return QChar( 0x021BF );
00954             if( entity == "LeftUpVectorBar" ) return QChar( 0x02958 );
00955             if( entity == "LeftVector" ) return QChar( 0x021BC );
00956             if( entity == "LeftVectorBar" ) return QChar( 0x02952 );
00957             if( entity == "lEg" ) return QChar( 0x02A8B );
00958             if( entity == "leg" ) return QChar( 0x022DA );
00959             if( entity == "leq" ) return QChar( 0x02264 );
00960             if( entity == "leqq" ) return QChar( 0x02266 );
00961             if( entity == "leqslant" ) return QChar( 0x02A7D );
00962             if( entity == "les" ) return QChar( 0x02A7D );
00963             if( entity == "lescc" ) return QChar( 0x02AA8 );
00964             if( entity == "lesdot" ) return QChar( 0x02A7F );
00965             if( entity == "lesdoto" ) return QChar( 0x02A81 );
00966             if( entity == "lesdotor" ) return QChar( 0x02A83 );
00967             if( entity == "lesges" ) return QChar( 0x02A93 );
00968             if( entity == "lessapprox" ) return QChar( 0x02A85 );
00969             if( entity == "lessdot" ) return QChar( 0x022D6 );
00970             if( entity == "lesseqgtr" ) return QChar( 0x022DA );
00971             if( entity == "lesseqqgtr" ) return QChar( 0x02A8B );
00972             if( entity == "LessEqualGreater" ) return QChar( 0x022DA );
00973             if( entity == "LessFullEqual" ) return QChar( 0x02266 );
00974             if( entity == "LessGreater" ) return QChar( 0x02276 );
00975             if( entity == "lessgtr" ) return QChar( 0x02276 );
00976             if( entity == "LessLess" ) return QChar( 0x02AA1 );
00977             if( entity == "lesssim" ) return QChar( 0x02272 );
00978             if( entity == "LessSlantEqual" ) return QChar( 0x02A7D );
00979             if( entity == "LessTilde" ) return QChar( 0x02272 );
00980             if( entity == "lfisht" ) return QChar( 0x0297C );
00981             if( entity == "lfloor" ) return QChar( 0x0230A );
00982             if( entity == "Lfr" ) return QChar( 0x1D50F );
00983             if( entity == "lfr" ) return QChar( 0x1D529 );
00984             if( entity == "lg" ) return QChar( 0x02276 );
00985             if( entity == "lgE" ) return QChar( 0x02A91 );
00986             if( entity == "lHar" ) return QChar( 0x02962 );
00987             if( entity == "lhard" ) return QChar( 0x021BD );
00988             if( entity == "lharu" ) return QChar( 0x021BC );
00989             if( entity == "lharul" ) return QChar( 0x0296A );
00990             if( entity == "lhblk" ) return QChar( 0x02584 );
00991             if( entity == "LJcy" ) return QChar( 0x00409 );
00992             if( entity == "ljcy" ) return QChar( 0x00459 );
00993             if( entity == "Ll" ) return QChar( 0x022D8 );
00994             if( entity == "ll" ) return QChar( 0x0226A );
00995             if( entity == "llarr" ) return QChar( 0x021C7 );
00996             if( entity == "llcorner" ) return QChar( 0x0231E );
00997             if( entity == "Lleftarrow" ) return QChar( 0x021DA );
00998             if( entity == "llhard" ) return QChar( 0x0296B );
00999             if( entity == "lltri" ) return QChar( 0x025FA );
01000             if( entity == "Lmidot" ) return QChar( 0x0013F );
01001             if( entity == "lmidot" ) return QChar( 0x00140 );
01002             if( entity == "lmoust" ) return QChar( 0x023B0 );
01003             if( entity == "lmoustache" ) return QChar( 0x023B0 );
01004             if( entity == "lnap" ) return QChar( 0x02A89 );
01005             if( entity == "lnapprox" ) return QChar( 0x02A89 );
01006             if( entity == "lnE" ) return QChar( 0x02268 );
01007             if( entity == "lne" ) return QChar( 0x02A87 );
01008             if( entity == "lneq" ) return QChar( 0x02A87 );
01009             if( entity == "lneqq" ) return QChar( 0x02268 );
01010             if( entity == "lnsim" ) return QChar( 0x022E6 );
01011             if( entity == "loang" ) return QChar( 0x03018 );
01012             if( entity == "loarr" ) return QChar( 0x021FD );
01013             if( entity == "lobrk" ) return QChar( 0x0301A );
01014             if( entity == "LongLeftArrow" ) return QChar( 0x027F5 );
01015             if( entity == "Longleftarrow" ) return QChar( 0x027F8 );
01016             if( entity == "longleftarrow" ) return QChar( 0x027F5 );
01017             if( entity == "LongLeftRightArrow" ) return QChar( 0x027F7 );
01018             if( entity == "Longleftrightarrow" ) return QChar( 0x027FA );
01019             if( entity == "longleftrightarrow" ) return QChar( 0x027F7 );
01020             if( entity == "longmapsto" ) return QChar( 0x027FC );
01021             if( entity == "LongRightArrow" ) return QChar( 0x027F6 );
01022             if( entity == "Longrightarrow" ) return QChar( 0x027F9 );
01023             if( entity == "longrightarrow" ) return QChar( 0x027F6 );
01024             if( entity == "looparrowleft" ) return QChar( 0x021AB );
01025             if( entity == "looparrowright" ) return QChar( 0x021AC );
01026             if( entity == "lopar" ) return QChar( 0x02985 );
01027             if( entity == "Lopf" ) return QChar( 0x1D543 );
01028             if( entity == "lopf" ) return QChar( 0x1D55D );
01029             if( entity == "loplus" ) return QChar( 0x02A2D );
01030             if( entity == "lotimes" ) return QChar( 0x02A34 );
01031             if( entity == "lowast" ) return QChar( 0x02217 );
01032             if( entity == "lowbar" ) return QChar( 0x0005F );
01033             if( entity == "LowerLeftArrow" ) return QChar( 0x02199 );
01034             if( entity == "LowerRightArrow" ) return QChar( 0x02198 );
01035             if( entity == "loz" ) return QChar( 0x025CA );
01036             if( entity == "lozenge" ) return QChar( 0x025CA );
01037             if( entity == "lozf" ) return QChar( 0x029EB );
01038             if( entity == "lpar" ) return QChar( 0x00028 );
01039             if( entity == "lparlt" ) return QChar( 0x02993 );
01040             if( entity == "lrarr" ) return QChar( 0x021C6 );
01041             if( entity == "lrcorner" ) return QChar( 0x0231F );
01042             if( entity == "lrhar" ) return QChar( 0x021CB );
01043             if( entity == "lrhard" ) return QChar( 0x0296D );
01044             if( entity == "lrtri" ) return QChar( 0x022BF );
01045             if( entity == "Lscr" ) return QChar( 0x02112 );
01046             if( entity == "lscr" ) return QChar( 0x1D4C1 );
01047             if( entity == "Lsh" ) return QChar( 0x021B0 );
01048             if( entity == "lsh" ) return QChar( 0x021B0 );
01049             if( entity == "lsim" ) return QChar( 0x02272 );
01050             if( entity == "lsime" ) return QChar( 0x02A8D );
01051             if( entity == "lsimg" ) return QChar( 0x02A8F );
01052             if( entity == "lsqb" ) return QChar( 0x0005B );
01053             if( entity == "lsquo" ) return QChar( 0x02018 );
01054             if( entity == "lsquor" ) return QChar( 0x0201A );
01055             if( entity == "Lstrok" ) return QChar( 0x00141 );
01056             if( entity == "lstrok" ) return QChar( 0x00142 );
01057             if( entity == "Lt" ) return QChar( 0x0226A );
01058             if( entity == "lt" ) return QChar( 0x0003C );
01059             if( entity == "ltcc" ) return QChar( 0x02AA6 );
01060             if( entity == "ltcir" ) return QChar( 0x02A79 );
01061             if( entity == "ltdot" ) return QChar( 0x022D6 );
01062             if( entity == "lthree" ) return QChar( 0x022CB );
01063             if( entity == "ltimes" ) return QChar( 0x022C9 );
01064             if( entity == "ltlarr" ) return QChar( 0x02976 );
01065             if( entity == "ltquest" ) return QChar( 0x02A7B );
01066             if( entity == "ltri" ) return QChar( 0x025C3 );
01067             if( entity == "ltrie" ) return QChar( 0x022B4 );
01068             if( entity == "ltrif" ) return QChar( 0x025C2 );
01069             if( entity == "ltrPar" ) return QChar( 0x02996 );
01070             if( entity == "lurdshar" ) return QChar( 0x0294A );
01071             if( entity == "luruhar" ) return QChar( 0x02966 );
01072             break;
01073         case 'm':
01074             if( entity == "macr" ) return QChar( 0x000AF );
01075             if( entity == "male" ) return QChar( 0x02642 );
01076             if( entity == "malt" ) return QChar( 0x02720 );
01077             if( entity == "maltese" ) return QChar( 0x02720 );
01078             if( entity == "Map" ) return QChar( 0x02905 );
01079             if( entity == "map" ) return QChar( 0x021A6 );
01080             if( entity == "mapsto" ) return QChar( 0x021A6 );
01081             if( entity == "mapstodown" ) return QChar( 0x021A7 );
01082             if( entity == "mapstoleft" ) return QChar( 0x021A4 );
01083             if( entity == "mapstoup" ) return QChar( 0x021A5 );
01084             if( entity == "marker" ) return QChar( 0x025AE );
01085             if( entity == "mcomma" ) return QChar( 0x02A29 );
01086             if( entity == "Mcy" ) return QChar( 0x0041C );
01087             if( entity == "mcy" ) return QChar( 0x0043C );
01088             if( entity == "mdash" ) return QChar( 0x02014 );
01089             if( entity == "mDDot" ) return QChar( 0x0223A );
01090             if( entity == "measuredangle" ) return QChar( 0x02221 );
01091             if( entity == "MediumSpace" ) return QChar( 0x0205F );
01092             if( entity == "Mellintrf" ) return QChar( 0x02133 );
01093             if( entity == "Mfr" ) return QChar( 0x1D510 );
01094             if( entity == "mfr" ) return QChar( 0x1D52A );
01095             if( entity == "mho" ) return QChar( 0x02127 );
01096             if( entity == "micro" ) return QChar( 0x000B5 );
01097             if( entity == "mid" ) return QChar( 0x02223 );
01098             if( entity == "midast" ) return QChar( 0x0002A );
01099             if( entity == "midcir" ) return QChar( 0x02AF0 );
01100             if( entity == "middot" ) return QChar( 0x000B7 );
01101             if( entity == "minus" ) return QChar( 0x02212 );
01102             if( entity == "minusb" ) return QChar( 0x0229F );
01103             if( entity == "minusd" ) return QChar( 0x02238 );
01104             if( entity == "minusdu" ) return QChar( 0x02A2A );
01105             if( entity == "MinusPlus" ) return QChar( 0x02213 );
01106             if( entity == "mlcp" ) return QChar( 0x02ADB );
01107             if( entity == "mldr" ) return QChar( 0x02026 );
01108             if( entity == "mnplus" ) return QChar( 0x02213 );
01109             if( entity == "models" ) return QChar( 0x022A7 );
01110             if( entity == "Mopf" ) return QChar( 0x1D544 );
01111             if( entity == "mopf" ) return QChar( 0x1D55E );
01112             if( entity == "mp" ) return QChar( 0x02213 );
01113             if( entity == "Mscr" ) return QChar( 0x02133 );
01114             if( entity == "mscr" ) return QChar( 0x1D4C2 );
01115             if( entity == "mstpos" ) return QChar( 0x0223E );
01116             if( entity == "mu" ) return QChar( 0x003BC );
01117             if( entity == "multimap" ) return QChar( 0x022B8 );
01118             if( entity == "mumap" ) return QChar( 0x022B8 );
01119             break;
01120         case 'n':
01121             if( entity == "nabla" ) return QChar( 0x02207 );
01122             if( entity == "Nacute" ) return QChar( 0x00143 );
01123             if( entity == "nacute" ) return QChar( 0x00144 );
01124             if( entity == "nap" ) return QChar( 0x02249 );
01125             if( entity == "napos" ) return QChar( 0x00149 );
01126             if( entity == "napprox" ) return QChar( 0x02249 );
01127             if( entity == "natur" ) return QChar( 0x0266E );
01128             if( entity == "natural" ) return QChar( 0x0266E );
01129             if( entity == "naturals" ) return QChar( 0x02115 );
01130             if( entity == "nbsp" ) return QChar( 0x000A0 );
01131             if( entity == "ncap" ) return QChar( 0x02A43 );
01132             if( entity == "Ncaron" ) return QChar( 0x00147 );
01133             if( entity == "ncaron" ) return QChar( 0x00148 );
01134             if( entity == "Ncedil" ) return QChar( 0x00145 );
01135             if( entity == "ncedil" ) return QChar( 0x00146 );
01136             if( entity == "ncong" ) return QChar( 0x02247 );
01137             if( entity == "ncup" ) return QChar( 0x02A42 );
01138             if( entity == "Ncy" ) return QChar( 0x0041D );
01139             if( entity == "ncy" ) return QChar( 0x0043D );
01140             if( entity == "ndash" ) return QChar( 0x02013 );
01141             if( entity == "ne" ) return QChar( 0x02260 );
01142             if( entity == "nearhk" ) return QChar( 0x02924 );
01143             if( entity == "neArr" ) return QChar( 0x021D7 );
01144             if( entity == "nearr" ) return QChar( 0x02197 );
01145             if( entity == "nearrow" ) return QChar( 0x02197 );
01146             if( entity == "NegativeMediumSpace" ) return QChar( 0x0200B );
01147             if( entity == "NegativeThickSpace" ) return QChar( 0x0200B );
01148             if( entity == "NegativeThinSpace" ) return QChar( 0x0200B );
01149             if( entity == "NegativeVeryThinSpace" ) return QChar( 0x0200B );
01150             if( entity == "nequiv" ) return QChar( 0x02262 );
01151             if( entity == "nesear" ) return QChar( 0x02928 );
01152             if( entity == "NestedGreaterGreater" ) return QChar( 0x0226B );
01153             if( entity == "NestedLessLess" ) return QChar( 0x0226A );
01154             if( entity == "NewLine" ) return QChar( 0x0000A );
01155             if( entity == "nexist" ) return QChar( 0x02204 );
01156             if( entity == "nexists" ) return QChar( 0x02204 );
01157             if( entity == "Nfr" ) return QChar( 0x1D511 );
01158             if( entity == "nfr" ) return QChar( 0x1D52B );
01159             if( entity == "nge" ) return QChar( 0x02271 );
01160             if( entity == "ngeq" ) return QChar( 0x02271 );
01161             if( entity == "ngsim" ) return QChar( 0x02275 );
01162             if( entity == "ngt" ) return QChar( 0x0226F );
01163             if( entity == "ngtr" ) return QChar( 0x0226F );
01164             if( entity == "nhArr" ) return QChar( 0x021CE );
01165             if( entity == "nharr" ) return QChar( 0x021AE );
01166             if( entity == "nhpar" ) return QChar( 0x02AF2 );
01167             if( entity == "ni" ) return QChar( 0x0220B );
01168             if( entity == "nis" ) return QChar( 0x022FC );
01169             if( entity == "nisd" ) return QChar( 0x022FA );
01170             if( entity == "niv" ) return QChar( 0x0220B );
01171             if( entity == "NJcy" ) return QChar( 0x0040A );
01172             if( entity == "njcy" ) return QChar( 0x0045A );
01173             if( entity == "nlArr" ) return QChar( 0x021CD );
01174             if( entity == "nlarr" ) return QChar( 0x0219A );
01175             if( entity == "nldr" ) return QChar( 0x02025 );
01176             if( entity == "nle" ) return QChar( 0x02270 );
01177             if( entity == "nLeftarrow" ) return QChar( 0x021CD );
01178             if( entity == "nleftarrow" ) return QChar( 0x0219A );
01179             if( entity == "nLeftrightarrow" ) return QChar( 0x021CE );
01180             if( entity == "nleftrightarrow" ) return QChar( 0x021AE );
01181             if( entity == "nleq" ) return QChar( 0x02270 );
01182             if( entity == "nless" ) return QChar( 0x0226E );
01183             if( entity == "nlsim" ) return QChar( 0x02274 );
01184             if( entity == "nlt" ) return QChar( 0x0226E );
01185             if( entity == "nltri" ) return QChar( 0x022EA );
01186             if( entity == "nltrie" ) return QChar( 0x022EC );
01187             if( entity == "nmid" ) return QChar( 0x02224 );
01188             if( entity == "NoBreak" ) return QChar( 0x02060 );
01189             if( entity == "NonBreakingSpace" ) return QChar( 0x000A0 );
01190             if( entity == "Nopf" ) return QChar( 0x02115 );
01191             if( entity == "nopf" ) return QChar( 0x1D55F );
01192             if( entity == "Not" ) return QChar( 0x02AEC );
01193             if( entity == "not" ) return QChar( 0x000AC );
01194             if( entity == "NotCongruent" ) return QChar( 0x02262 );
01195             if( entity == "NotCupCap" ) return QChar( 0x0226D );
01196             if( entity == "NotDoubleVerticalBar" ) return QChar( 0x02226 );
01197             if( entity == "NotElement" ) return QChar( 0x02209 );
01198             if( entity == "NotEqual" ) return QChar( 0x02260 );
01199             if( entity == "NotExists" ) return QChar( 0x02204 );
01200             if( entity == "NotGreater" ) return QChar( 0x0226F );
01201             if( entity == "NotGreaterEqual" ) return QChar( 0x02271 );
01202             if( entity == "NotGreaterLess" ) return QChar( 0x02279 );
01203             if( entity == "NotGreaterTilde" ) return QChar( 0x02275 );
01204             if( entity == "notin" ) return QChar( 0x02209 );
01205             if( entity == "notinva" ) return QChar( 0x02209 );
01206             if( entity == "notinvb" ) return QChar( 0x022F7 );
01207             if( entity == "notinvc" ) return QChar( 0x022F6 );
01208             if( entity == "NotLeftTriangle" ) return QChar( 0x022EA );
01209             if( entity == "NotLeftTriangleEqual" ) return QChar( 0x022EC );
01210             if( entity == "NotLess" ) return QChar( 0x0226E );
01211             if( entity == "NotLessEqual" ) return QChar( 0x02270 );
01212             if( entity == "NotLessGreater" ) return QChar( 0x02278 );
01213             if( entity == "NotLessTilde" ) return QChar( 0x02274 );
01214             if( entity == "notni" ) return QChar( 0x0220C );
01215             if( entity == "notniva" ) return QChar( 0x0220C );
01216             if( entity == "notnivb" ) return QChar( 0x022FE );
01217             if( entity == "notnivc" ) return QChar( 0x022FD );
01218             if( entity == "NotPrecedes" ) return QChar( 0x02280 );
01219             if( entity == "NotPrecedesSlantEqual" ) return QChar( 0x022E0 );
01220             if( entity == "NotReverseElement" ) return QChar( 0x0220C );
01221             if( entity == "NotRightTriangle" ) return QChar( 0x022EB );
01222             if( entity == "NotRightTriangleEqual" ) return QChar( 0x022ED );
01223             if( entity == "NotSquareSubsetEqual" ) return QChar( 0x022E2 );
01224             if( entity == "NotSquareSupersetEqual" ) return QChar( 0x022E3 );
01225             if( entity == "NotSubsetEqual" ) return QChar( 0x02288 );
01226             if( entity == "NotSucceeds" ) return QChar( 0x02281 );
01227             if( entity == "NotSucceedsSlantEqual" ) return QChar( 0x022E1 );
01228             if( entity == "NotSupersetEqual" ) return QChar( 0x02289 );
01229             if( entity == "NotTilde" ) return QChar( 0x02241 );
01230             if( entity == "NotTildeEqual" ) return QChar( 0x02244 );
01231             if( entity == "NotTildeFullEqual" ) return QChar( 0x02247 );
01232             if( entity == "NotTildeTilde" ) return QChar( 0x02249 );
01233             if( entity == "NotVerticalBar" ) return QChar( 0x02224 );
01234             if( entity == "npar" ) return QChar( 0x02226 );
01235             if( entity == "nparallel" ) return QChar( 0x02226 );
01236             if( entity == "npolint" ) return QChar( 0x02A14 );
01237             if( entity == "npr" ) return QChar( 0x02280 );
01238             if( entity == "nprcue" ) return QChar( 0x022E0 );
01239             if( entity == "nprec" ) return QChar( 0x02280 );
01240             if( entity == "nrArr" ) return QChar( 0x021CF );
01241             if( entity == "nrarr" ) return QChar( 0x0219B );
01242             if( entity == "nRightarrow" ) return QChar( 0x021CF );
01243             if( entity == "nrightarrow" ) return QChar( 0x0219B );
01244             if( entity == "nrtri" ) return QChar( 0x022EB );
01245             if( entity == "nrtrie" ) return QChar( 0x022ED );
01246             if( entity == "nsc" ) return QChar( 0x02281 );
01247             if( entity == "nsccue" ) return QChar( 0x022E1 );
01248             if( entity == "Nscr" ) return QChar( 0x1D4A9 );
01249             if( entity == "nscr" ) return QChar( 0x1D4C3 );
01250             if( entity == "nshortmid" ) return QChar( 0x02224 );
01251             if( entity == "nshortparallel" ) return QChar( 0x02226 );
01252             if( entity == "nsim" ) return QChar( 0x02241 );
01253             if( entity == "nsime" ) return QChar( 0x02244 );
01254             if( entity == "nsimeq" ) return QChar( 0x02244 );
01255             if( entity == "nsmid" ) return QChar( 0x02224 );
01256             if( entity == "nspar" ) return QChar( 0x02226 );
01257             if( entity == "nsqsube" ) return QChar( 0x022E2 );
01258             if( entity == "nsqsupe" ) return QChar( 0x022E3 );
01259             if( entity == "nsub" ) return QChar( 0x02284 );
01260             if( entity == "nsube" ) return QChar( 0x02288 );
01261             if( entity == "nsubseteq" ) return QChar( 0x02288 );
01262             if( entity == "nsucc" ) return QChar( 0x02281 );
01263             if( entity == "nsup" ) return QChar( 0x02285 );
01264             if( entity == "nsupe" ) return QChar( 0x02289 );
01265             if( entity == "nsupseteq" ) return QChar( 0x02289 );
01266             if( entity == "ntgl" ) return QChar( 0x02279 );
01267             if( entity == "Ntilde" ) return QChar( 0x000D1 );
01268             if( entity == "ntilde" ) return QChar( 0x000F1 );
01269             if( entity == "ntlg" ) return QChar( 0x02278 );
01270             if( entity == "ntriangleleft" ) return QChar( 0x022EA );
01271             if( entity == "ntrianglelefteq" ) return QChar( 0x022EC );
01272             if( entity == "ntriangleright" ) return QChar( 0x022EB );
01273             if( entity == "ntrianglerighteq" ) return QChar( 0x022ED );
01274             if( entity == "nu" ) return QChar( 0x003BD );
01275             if( entity == "num" ) return QChar( 0x00023 );
01276             if( entity == "numero" ) return QChar( 0x02116 );
01277             if( entity == "numsp" ) return QChar( 0x02007 );
01278             if( entity == "nVDash" ) return QChar( 0x022AF );
01279             if( entity == "nVdash" ) return QChar( 0x022AE );
01280             if( entity == "nvDash" ) return QChar( 0x022AD );
01281             if( entity == "nvdash" ) return QChar( 0x022AC );
01282             if( entity == "nvHarr" ) return QChar( 0x02904 );
01283             if( entity == "nvinfin" ) return QChar( 0x029DE );
01284             if( entity == "nvlArr" ) return QChar( 0x02902 );
01285             if( entity == "nvrArr" ) return QChar( 0x02903 );
01286             if( entity == "nwarhk" ) return QChar( 0x02923 );
01287             if( entity == "nwArr" ) return QChar( 0x021D6 );
01288             if( entity == "nwarr" ) return QChar( 0x02196 );
01289             if( entity == "nwarrow" ) return QChar( 0x02196 );
01290             if( entity == "nwnear" ) return QChar( 0x02927 );
01291             break;
01292         case 'o':
01293             if( entity == "Oacute" ) return QChar( 0x000D3 );
01294             if( entity == "oacute" ) return QChar( 0x000F3 );
01295             if( entity == "oast" ) return QChar( 0x0229B );
01296             if( entity == "ocir" ) return QChar( 0x0229A );
01297             if( entity == "Ocirc" ) return QChar( 0x000D4 );
01298             if( entity == "ocirc" ) return QChar( 0x000F4 );
01299             if( entity == "Ocy" ) return QChar( 0x0041E );
01300             if( entity == "ocy" ) return QChar( 0x0043E );
01301             if( entity == "odash" ) return QChar( 0x0229D );
01302             if( entity == "Odblac" ) return QChar( 0x00150 );
01303             if( entity == "odblac" ) return QChar( 0x00151 );
01304             if( entity == "odiv" ) return QChar( 0x02A38 );
01305             if( entity == "odot" ) return QChar( 0x02299 );
01306             if( entity == "odsold" ) return QChar( 0x029BC );
01307             if( entity == "OElig" ) return QChar( 0x00152 );
01308             if( entity == "oelig" ) return QChar( 0x00153 );
01309             if( entity == "ofcir" ) return QChar( 0x029BF );
01310             if( entity == "Ofr" ) return QChar( 0x1D512 );
01311             if( entity == "ofr" ) return QChar( 0x1D52C );
01312             if( entity == "ogon" ) return QChar( 0x002DB );
01313             if( entity == "Ograve" ) return QChar( 0x000D2 );
01314             if( entity == "ograve" ) return QChar( 0x000F2 );
01315             if( entity == "ogt" ) return QChar( 0x029C1 );
01316             if( entity == "ohbar" ) return QChar( 0x029B5 );
01317             if( entity == "ohm" ) return QChar( 0x02126 );
01318             if( entity == "oint" ) return QChar( 0x0222E );
01319             if( entity == "olarr" ) return QChar( 0x021BA );
01320             if( entity == "olcir" ) return QChar( 0x029BE );
01321             if( entity == "olcross" ) return QChar( 0x029BB );
01322             if( entity == "olt" ) return QChar( 0x029C0 );
01323             if( entity == "Omacr" ) return QChar( 0x0014C );
01324             if( entity == "omacr" ) return QChar( 0x0014D );
01325             if( entity == "Omega" ) return QChar( 0x003A9 );
01326             if( entity == "omega" ) return QChar( 0x003C9 );
01327             if( entity == "omid" ) return QChar( 0x029B6 );
01328             if( entity == "ominus" ) return QChar( 0x02296 );
01329             if( entity == "Oopf" ) return QChar( 0x1D546 );
01330             if( entity == "oopf" ) return QChar( 0x1D560 );
01331             if( entity == "opar" ) return QChar( 0x029B7 );
01332             if( entity == "OpenCurlyDoubleQuote" ) return QChar( 0x0201C );
01333             if( entity == "OpenCurlyQuote" ) return QChar( 0x02018 );
01334             if( entity == "operp" ) return QChar( 0x029B9 );
01335             if( entity == "oplus" ) return QChar( 0x02295 );
01336             if( entity == "Or" ) return QChar( 0x02A54 );
01337             if( entity == "or" ) return QChar( 0x02228 );
01338             if( entity == "orarr" ) return QChar( 0x021BB );
01339             if( entity == "ord" ) return QChar( 0x02A5D );
01340             if( entity == "order" ) return QChar( 0x02134 );
01341             if( entity == "orderof" ) return QChar( 0x02134 );
01342             if( entity == "ordf" ) return QChar( 0x000AA );
01343             if( entity == "ordm" ) return QChar( 0x000BA );
01344             if( entity == "origof" ) return QChar( 0x022B6 );
01345             if( entity == "oror" ) return QChar( 0x02A56 );
01346             if( entity == "orslope" ) return QChar( 0x02A57 );
01347             if( entity == "orv" ) return QChar( 0x02A5B );
01348             if( entity == "oS" ) return QChar( 0x024C8 );
01349             if( entity == "Oscr" ) return QChar( 0x1D4AA );
01350             if( entity == "oscr" ) return QChar( 0x02134 );
01351             if( entity == "Oslash" ) return QChar( 0x000D8 );
01352             if( entity == "oslash" ) return QChar( 0x000F8 );
01353             if( entity == "osol" ) return QChar( 0x02298 );
01354             if( entity == "Otilde" ) return QChar( 0x000D5 );
01355             if( entity == "otilde" ) return QChar( 0x000F5 );
01356             if( entity == "Otimes" ) return QChar( 0x02A37 );
01357             if( entity == "otimes" ) return QChar( 0x02297 );
01358             if( entity == "otimesas" ) return QChar( 0x02A36 );
01359             if( entity == "Ouml" ) return QChar( 0x000D6 );
01360             if( entity == "ouml" ) return QChar( 0x000F6 );
01361             if( entity == "ovbar" ) return QChar( 0x0233D );
01362             if( entity == "OverBar" ) return QChar( 0x000AF );
01363             if( entity == "OverBrace" ) return QChar( 0x0FE37 );
01364             if( entity == "OverBracket" ) return QChar( 0x023B4 );
01365             if( entity == "OverParenthesis" ) return QChar( 0x0FE35 );
01366             break;
01367         case 'p':
01368             if( entity == "par" ) return QChar( 0x02225 );
01369             if( entity == "para" ) return QChar( 0x000B6 );
01370             if( entity == "parallel" ) return QChar( 0x02225 );
01371             if( entity == "parsim" ) return QChar( 0x02AF3 );
01372             if( entity == "parsl" ) return QChar( 0x02AFD );
01373             if( entity == "part" ) return QChar( 0x02202 );
01374             if( entity == "PartialD" ) return QChar( 0x02202 );
01375             if( entity == "Pcy" ) return QChar( 0x0041F );
01376             if( entity == "pcy" ) return QChar( 0x0043F );
01377             if( entity == "percnt" ) return QChar( 0x00025 );
01378             if( entity == "period" ) return QChar( 0x0002E );
01379             if( entity == "permil" ) return QChar( 0x02030 );
01380             if( entity == "perp" ) return QChar( 0x022A5 );
01381             if( entity == "pertenk" ) return QChar( 0x02031 );
01382             if( entity == "Pfr" ) return QChar( 0x1D513 );
01383             if( entity == "pfr" ) return QChar( 0x1D52D );
01384             if( entity == "Phi" ) return QChar( 0x003A6 );
01385             if( entity == "phi" ) return QChar( 0x003D5 );
01386             if( entity == "phiv" ) return QChar( 0x003C6 );
01387             if( entity == "phmmat" ) return QChar( 0x02133 );
01388             if( entity == "phone" ) return QChar( 0x0260E );
01389             if( entity == "Pi" ) return QChar( 0x003A0 );
01390             if( entity == "pi" ) return QChar( 0x003C0 );
01391             if( entity == "pitchfork" ) return QChar( 0x022D4 );
01392             if( entity == "piv" ) return QChar( 0x003D6 );
01393             if( entity == "planck" ) return QChar( 0x0210F );
01394             if( entity == "planckh" ) return QChar( 0x0210E );
01395             if( entity == "plankv" ) return QChar( 0x0210F );
01396             if( entity == "plus" ) return QChar( 0x0002B );
01397             if( entity == "plusacir" ) return QChar( 0x02A23 );
01398             if( entity == "plusb" ) return QChar( 0x0229E );
01399             if( entity == "pluscir" ) return QChar( 0x02A22 );
01400             if( entity == "plusdo" ) return QChar( 0x02214 );
01401             if( entity == "plusdu" ) return QChar( 0x02A25 );
01402             if( entity == "pluse" ) return QChar( 0x02A72 );
01403             if( entity == "PlusMinus" ) return QChar( 0x000B1 );
01404             if( entity == "plusmn" ) return QChar( 0x000B1 );
01405             if( entity == "plussim" ) return QChar( 0x02A26 );
01406             if( entity == "plustwo" ) return QChar( 0x02A27 );
01407             if( entity == "pm" ) return QChar( 0x000B1 );
01408             if( entity == "Poincareplane" ) return QChar( 0x0210C );
01409             if( entity == "pointint" ) return QChar( 0x02A15 );
01410             if( entity == "Popf" ) return QChar( 0x02119 );
01411             if( entity == "popf" ) return QChar( 0x1D561 );
01412             if( entity == "pound" ) return QChar( 0x000A3 );
01413             if( entity == "Pr" ) return QChar( 0x02ABB );
01414             if( entity == "pr" ) return QChar( 0x0227A );
01415             if( entity == "prap" ) return QChar( 0x02AB7 );
01416             if( entity == "prcue" ) return QChar( 0x0227C );
01417             if( entity == "prE" ) return QChar( 0x02AB3 );
01418             if( entity == "pre" ) return QChar( 0x02AAF );
01419             if( entity == "prec" ) return QChar( 0x0227A );
01420             if( entity == "precapprox" ) return QChar( 0x02AB7 );
01421             if( entity == "preccurlyeq" ) return QChar( 0x0227C );
01422             if( entity == "Precedes" ) return QChar( 0x0227A );
01423             if( entity == "PrecedesEqual" ) return QChar( 0x02AAF );
01424             if( entity == "PrecedesSlantEqual" ) return QChar( 0x0227C );
01425             if( entity == "PrecedesTilde" ) return QChar( 0x0227E );
01426             if( entity == "preceq" ) return QChar( 0x02AAF );
01427             if( entity == "precnapprox" ) return QChar( 0x02AB9 );
01428             if( entity == "precneqq" ) return QChar( 0x02AB5 );
01429             if( entity == "precnsim" ) return QChar( 0x022E8 );
01430             if( entity == "precsim" ) return QChar( 0x0227E );
01431             if( entity == "Prime" ) return QChar( 0x02033 );
01432             if( entity == "prime" ) return QChar( 0x02032 );
01433             if( entity == "primes" ) return QChar( 0x02119 );
01434             if( entity == "prnap" ) return QChar( 0x02AB9 );
01435             if( entity == "prnE" ) return QChar( 0x02AB5 );
01436             if( entity == "prnsim" ) return QChar( 0x022E8 );
01437             if( entity == "prod" ) return QChar( 0x0220F );
01438             if( entity == "Product" ) return QChar( 0x0220F );
01439             if( entity == "profalar" ) return QChar( 0x0232E );
01440             if( entity == "profline" ) return QChar( 0x02312 );
01441             if( entity == "profsurf" ) return QChar( 0x02313 );
01442             if( entity == "prop" ) return QChar( 0x0221D );
01443             if( entity == "Proportion" ) return QChar( 0x02237 );
01444             if( entity == "Proportional" ) return QChar( 0x0221D );
01445             if( entity == "propto" ) return QChar( 0x0221D );
01446             if( entity == "prsim" ) return QChar( 0x0227E );
01447             if( entity == "prurel" ) return QChar( 0x022B0 );
01448             if( entity == "Pscr" ) return QChar( 0x1D4AB );
01449             if( entity == "pscr" ) return QChar( 0x1D4C5 );
01450             if( entity == "Psi" ) return QChar( 0x003A8 );
01451             if( entity == "psi" ) return QChar( 0x003C8 );
01452             if( entity == "puncsp" ) return QChar( 0x02008 );
01453             break;
01454         case 'q':
01455             if( entity == "Qfr" ) return QChar( 0x1D514 );
01456             if( entity == "qfr" ) return QChar( 0x1D52E );
01457             if( entity == "qint" ) return QChar( 0x02A0C );
01458             if( entity == "Qopf" ) return QChar( 0x0211A );
01459             if( entity == "qopf" ) return QChar( 0x1D562 );
01460             if( entity == "qprime" ) return QChar( 0x02057 );
01461             if( entity == "Qscr" ) return QChar( 0x1D4AC );
01462             if( entity == "qscr" ) return QChar( 0x1D4C6 );
01463             if( entity == "quaternions" ) return QChar( 0x0210D );
01464             if( entity == "quatint" ) return QChar( 0x02A16 );
01465             if( entity == "quest" ) return QChar( 0x0003F );
01466             if( entity == "questeq" ) return QChar( 0x0225F );
01467             if( entity == "quot" ) return QChar( 0x00022 );
01468             break;
01469         case 'r':
01470             if( entity == "rAarr" ) return QChar( 0x021DB );
01471             if( entity == "race" ) return QChar( 0x029DA );
01472             if( entity == "Racute" ) return QChar( 0x00154 );
01473             if( entity == "racute" ) return QChar( 0x00155 );
01474             if( entity == "radic" ) return QChar( 0x0221A );
01475             if( entity == "raemptyv" ) return QChar( 0x029B3 );
01476             if( entity == "Rang" ) return QChar( 0x0300B );
01477             if( entity == "rang" ) return QChar( 0x0232A );
01478             if( entity == "rangd" ) return QChar( 0x02992 );
01479             if( entity == "range" ) return QChar( 0x029A5 );
01480             if( entity == "rangle" ) return QChar( 0x0232A );
01481             if( entity == "raquo" ) return QChar( 0x000BB );
01482             if( entity == "Rarr" ) return QChar( 0x021A0 );
01483             if( entity == "rArr" ) return QChar( 0x021D2 );
01484             if( entity == "rarr" ) return QChar( 0x02192 );
01485             if( entity == "rarrap" ) return QChar( 0x02975 );
01486             if( entity == "rarrb" ) return QChar( 0x021E5 );
01487             if( entity == "rarrbfs" ) return QChar( 0x02920 );
01488             if( entity == "rarrc" ) return QChar( 0x02933 );
01489             if( entity == "rarrfs" ) return QChar( 0x0291E );
01490             if( entity == "rarrhk" ) return QChar( 0x021AA );
01491             if( entity == "rarrlp" ) return QChar( 0x021AC );
01492             if( entity == "rarrpl" ) return QChar( 0x02945 );
01493             if( entity == "rarrsim" ) return QChar( 0x02974 );
01494             if( entity == "Rarrtl" ) return QChar( 0x02916 );
01495             if( entity == "rarrtl" ) return QChar( 0x021A3 );
01496             if( entity == "rarrw" ) return QChar( 0x0219D );
01497             if( entity == "rAtail" ) return QChar( 0x0291C );
01498             if( entity == "ratail" ) return QChar( 0x0291A );
01499             if( entity == "ratio" ) return QChar( 0x02236 );
01500             if( entity == "rationals" ) return QChar( 0x0211A );
01501             if( entity == "RBarr" ) return QChar( 0x02910 );
01502             if( entity == "rBarr" ) return QChar( 0x0290F );
01503             if( entity == "rbarr" ) return QChar( 0x0290D );
01504             if( entity == "rbbrk" ) return QChar( 0x03015 );
01505             if( entity == "rbrace" ) return QChar( 0x0007D );
01506             if( entity == "rbrack" ) return QChar( 0x0005D );
01507             if( entity == "rbrke" ) return QChar( 0x0298C );
01508             if( entity == "rbrksld" ) return QChar( 0x0298E );
01509             if( entity == "rbrkslu" ) return QChar( 0x02990 );
01510             if( entity == "Rcaron" ) return QChar( 0x00158 );
01511             if( entity == "rcaron" ) return QChar( 0x00159 );
01512             if( entity == "Rcedil" ) return QChar( 0x00156 );
01513             if( entity == "rcedil" ) return QChar( 0x00157 );
01514             if( entity == "rceil" ) return QChar( 0x02309 );
01515             if( entity == "rcub" ) return QChar( 0x0007D );
01516             if( entity == "Rcy" ) return QChar( 0x00420 );
01517             if( entity == "rcy" ) return QChar( 0x00440 );
01518             if( entity == "rdca" ) return QChar( 0x02937 );
01519             if( entity == "rdldhar" ) return QChar( 0x02969 );
01520             if( entity == "rdquo" ) return QChar( 0x0201D );
01521             if( entity == "rdquor" ) return QChar( 0x0201D );
01522             if( entity == "rdsh" ) return QChar( 0x021B3 );
01523             if( entity == "Re" ) return QChar( 0x0211C );
01524             if( entity == "real" ) return QChar( 0x0211C );
01525             if( entity == "realine" ) return QChar( 0x0211B );
01526             if( entity == "realpart" ) return QChar( 0x0211C );
01527             if( entity == "reals" ) return QChar( 0x0211D );
01528             if( entity == "rect" ) return QChar( 0x025AD );
01529             if( entity == "reg" ) return QChar( 0x000AE );
01530             if( entity == "ReverseElement" ) return QChar( 0x0220B );
01531             if( entity == "ReverseEquilibrium" ) return QChar( 0x021CB );
01532             if( entity == "ReverseUpEquilibrium" ) return QChar( 0x0296F );
01533             if( entity == "rfisht" ) return QChar( 0x0297D );
01534             if( entity == "rfloor" ) return QChar( 0x0230B );
01535             if( entity == "Rfr" ) return QChar( 0x0211C );
01536             if( entity == "rfr" ) return QChar( 0x1D52F );
01537             if( entity == "rHar" ) return QChar( 0x02964 );
01538             if( entity == "rhard" ) return QChar( 0x021C1 );
01539             if( entity == "rharu" ) return QChar( 0x021C0 );
01540             if( entity == "rharul" ) return QChar( 0x0296C );
01541             if( entity == "rho" ) return QChar( 0x003C1 );
01542             if( entity == "rhov" ) return QChar( 0x003F1 );
01543             if( entity == "RightAngleBracket" ) return QChar( 0x0232A );
01544             if( entity == "RightArrow" ) return QChar( 0x02192 );
01545             if( entity == "Rightarrow" ) return QChar( 0x021D2 );
01546             if( entity == "rightarrow" ) return QChar( 0x02192 );
01547             if( entity == "RightArrowBar" ) return QChar( 0x021E5 );
01548             if( entity == "RightArrowLeftArrow" ) return QChar( 0x021C4 );
01549             if( entity == "rightarrowtail" ) return QChar( 0x021A3 );
01550             if( entity == "RightCeiling" ) return QChar( 0x02309 );
01551             if( entity == "RightDoubleBracket" ) return QChar( 0x0301B );
01552             if( entity == "RightDownTeeVector" ) return QChar( 0x0295D );
01553             if( entity == "RightDownVector" ) return QChar( 0x021C2 );
01554             if( entity == "RightDownVectorBar" ) return QChar( 0x02955 );
01555             if( entity == "RightFloor" ) return QChar( 0x0230B );
01556             if( entity == "rightharpoondown" ) return QChar( 0x021C1 );
01557             if( entity == "rightharpoonup" ) return QChar( 0x021C0 );
01558             if( entity == "rightleftarrows" ) return QChar( 0x021C4 );
01559             if( entity == "rightleftharpoons" ) return QChar( 0x021CC );
01560             if( entity == "rightrightarrows" ) return QChar( 0x021C9 );
01561             if( entity == "rightsquigarrow" ) return QChar( 0x0219D );
01562             if( entity == "RightTee" ) return QChar( 0x022A2 );
01563             if( entity == "RightTeeArrow" ) return QChar( 0x021A6 );
01564             if( entity == "RightTeeVector" ) return QChar( 0x0295B );
01565             if( entity == "rightthreetimes" ) return QChar( 0x022CC );
01566             if( entity == "RightTriangle" ) return QChar( 0x022B3 );
01567             if( entity == "RightTriangleBar" ) return QChar( 0x029D0 );
01568             if( entity == "RightTriangleEqual" ) return QChar( 0x022B5 );
01569             if( entity == "RightUpDownVector" ) return QChar( 0x0294F );
01570             if( entity == "RightUpTeeVector" ) return QChar( 0x0295C );
01571             if( entity == "RightUpVector" ) return QChar( 0x021BE );
01572             if( entity == "RightUpVectorBar" ) return QChar( 0x02954 );
01573             if( entity == "RightVector" ) return QChar( 0x021C0 );
01574             if( entity == "RightVectorBar" ) return QChar( 0x02953 );
01575             if( entity == "ring" ) return QChar( 0x002DA );
01576             if( entity == "risingdotseq" ) return QChar( 0x02253 );
01577             if( entity == "rlarr" ) return QChar( 0x021C4 );
01578             if( entity == "rlhar" ) return QChar( 0x021CC );
01579             if( entity == "rmoust" ) return QChar( 0x023B1 );
01580             if( entity == "rmoustache" ) return QChar( 0x023B1 );
01581             if( entity == "rnmid" ) return QChar( 0x02AEE );
01582             if( entity == "roang" ) return QChar( 0x03019 );
01583             if( entity == "roarr" ) return QChar( 0x021FE );
01584             if( entity == "robrk" ) return QChar( 0x0301B );
01585             if( entity == "ropar" ) return QChar( 0x02986 );
01586             if( entity == "Ropf" ) return QChar( 0x0211D );
01587             if( entity == "ropf" ) return QChar( 0x1D563 );
01588             if( entity == "roplus" ) return QChar( 0x02A2E );
01589             if( entity == "rotimes" ) return QChar( 0x02A35 );
01590             if( entity == "RoundImplies" ) return QChar( 0x02970 );
01591             if( entity == "rpar" ) return QChar( 0x00029 );
01592             if( entity == "rpargt" ) return QChar( 0x02994 );
01593             if( entity == "rppolint" ) return QChar( 0x02A12 );
01594             if( entity == "rrarr" ) return QChar( 0x021C9 );
01595             if( entity == "Rrightarrow" ) return QChar( 0x021DB );
01596             if( entity == "Rscr" ) return QChar( 0x0211B );
01597             if( entity == "rscr" ) return QChar( 0x1D4C7 );
01598             if( entity == "Rsh" ) return QChar( 0x021B1 );
01599             if( entity == "rsh" ) return QChar( 0x021B1 );
01600             if( entity == "rsqb" ) return QChar( 0x0005D );
01601             if( entity == "rsquo" ) return QChar( 0x02019 );
01602             if( entity == "rsquor" ) return QChar( 0x02019 );
01603             if( entity == "rthree" ) return QChar( 0x022CC );
01604             if( entity == "rtimes" ) return QChar( 0x022CA );
01605             if( entity == "rtri" ) return QChar( 0x025B9 );
01606             if( entity == "rtrie" ) return QChar( 0x022B5 );
01607             if( entity == "rtrif" ) return QChar( 0x025B8 );
01608             if( entity == "rtriltri" ) return QChar( 0x029CE );
01609             if( entity == "RuleDelayed" ) return QChar( 0x029F4 );
01610             if( entity == "ruluhar" ) return QChar( 0x02968 );
01611             if( entity == "rx" ) return QChar( 0x0211E );
01612             break;
01613         case 's':
01614             if( entity == "Sacute" ) return QChar( 0x0015A );
01615             if( entity == "sacute" ) return QChar( 0x0015B );
01616             if( entity == "Sc" ) return QChar( 0x02ABC );
01617             if( entity == "sc" ) return QChar( 0x0227B );
01618             if( entity == "scap" ) return QChar( 0x02AB8 );
01619             if( entity == "Scaron" ) return QChar( 0x00160 );
01620             if( entity == "scaron" ) return QChar( 0x00161 );
01621             if( entity == "sccue" ) return QChar( 0x0227D );
01622             if( entity == "scE" ) return QChar( 0x02AB4 );
01623             if( entity == "sce" ) return QChar( 0x02AB0 );
01624             if( entity == "Scedil" ) return QChar( 0x0015E );
01625             if( entity == "scedil" ) return QChar( 0x0015F );
01626             if( entity == "Scirc" ) return QChar( 0x0015C );
01627             if( entity == "scirc" ) return QChar( 0x0015D );
01628             if( entity == "scnap" ) return QChar( 0x02ABA );
01629             if( entity == "scnE" ) return QChar( 0x02AB6 );
01630             if( entity == "scnsim" ) return QChar( 0x022E9 );
01631             if( entity == "scpolint" ) return QChar( 0x02A13 );
01632             if( entity == "scsim" ) return QChar( 0x0227F );
01633             if( entity == "Scy" ) return QChar( 0x00421 );
01634             if( entity == "scy" ) return QChar( 0x00441 );
01635             if( entity == "sdot" ) return QChar( 0x022C5 );
01636             if( entity == "sdotb" ) return QChar( 0x022A1 );
01637             if( entity == "sdote" ) return QChar( 0x02A66 );
01638             if( entity == "searhk" ) return QChar( 0x02925 );
01639             if( entity == "seArr" ) return QChar( 0x021D8 );
01640             if( entity == "searr" ) return QChar( 0x02198 );
01641             if( entity == "searrow" ) return QChar( 0x02198 );
01642             if( entity == "sect" ) return QChar( 0x000A7 );
01643             if( entity == "semi" ) return QChar( 0x0003B );
01644             if( entity == "seswar" ) return QChar( 0x02929 );
01645             if( entity == "setminus" ) return QChar( 0x02216 );
01646             if( entity == "setmn" ) return QChar( 0x02216 );
01647             if( entity == "sext" ) return QChar( 0x02736 );
01648             if( entity == "Sfr" ) return QChar( 0x1D516 );
01649             if( entity == "sfr" ) return QChar( 0x1D530 );
01650             if( entity == "sfrown" ) return QChar( 0x02322 );
01651             if( entity == "sharp" ) return QChar( 0x0266F );
01652             if( entity == "SHCHcy" ) return QChar( 0x00429 );
01653             if( entity == "shchcy" ) return QChar( 0x00449 );
01654             if( entity == "SHcy" ) return QChar( 0x00428 );
01655             if( entity == "shcy" ) return QChar( 0x00448 );
01656             if( entity == "ShortDownArrow" ) return QChar( 0x02193 );
01657             if( entity == "ShortLeftArrow" ) return QChar( 0x02190 );
01658             if( entity == "shortmid" ) return QChar( 0x02223 );
01659             if( entity == "shortparallel" ) return QChar( 0x02225 );
01660             if( entity == "ShortRightArrow" ) return QChar( 0x02192 );
01661             if( entity == "ShortUpArrow" ) return QChar( 0x02191 );
01662             if( entity == "shy" ) return QChar( 0x000AD );
01663             if( entity == "Sigma" ) return QChar( 0x003A3 );
01664             if( entity == "sigma" ) return QChar( 0x003C3 );
01665             if( entity == "sigmav" ) return QChar( 0x003C2 );
01666             if( entity == "sim" ) return QChar( 0x0223C );
01667             if( entity == "simdot" ) return QChar( 0x02A6A );
01668             if( entity == "sime" ) return QChar( 0x02243 );
01669             if( entity == "simeq" ) return QChar( 0x02243 );
01670             if( entity == "simg" ) return QChar( 0x02A9E );
01671             if( entity == "simgE" ) return QChar( 0x02AA0 );
01672             if( entity == "siml" ) return QChar( 0x02A9D );
01673             if( entity == "simlE" ) return QChar( 0x02A9F );
01674             if( entity == "simne" ) return QChar( 0x02246 );
01675             if( entity == "simplus" ) return QChar( 0x02A24 );
01676             if( entity == "simrarr" ) return QChar( 0x02972 );
01677             if( entity == "slarr" ) return QChar( 0x02190 );
01678             if( entity == "SmallCircle" ) return QChar( 0x02218 );
01679             if( entity == "smallsetminus" ) return QChar( 0x02216 );
01680             if( entity == "smashp" ) return QChar( 0x02A33 );
01681             if( entity == "smeparsl" ) return QChar( 0x029E4 );
01682             if( entity == "smid" ) return QChar( 0x02223 );
01683             if( entity == "smile" ) return QChar( 0x02323 );
01684             if( entity == "smt" ) return QChar( 0x02AAA );
01685             if( entity == "smte" ) return QChar( 0x02AAC );
01686             if( entity == "SOFTcy" ) return QChar( 0x0042C );
01687             if( entity == "softcy" ) return QChar( 0x0044C );
01688             if( entity == "sol" ) return QChar( 0x0002F );
01689             if( entity == "solb" ) return QChar( 0x029C4 );
01690             if( entity == "solbar" ) return QChar( 0x0233F );
01691             if( entity == "Sopf" ) return QChar( 0x1D54A );
01692             if( entity == "sopf" ) return QChar( 0x1D564 );
01693             if( entity == "spades" ) return QChar( 0x02660 );
01694             if( entity == "spadesuit" ) return QChar( 0x02660 );
01695             if( entity == "spar" ) return QChar( 0x02225 );
01696             if( entity == "sqcap" ) return QChar( 0x02293 );
01697             if( entity == "sqcup" ) return QChar( 0x02294 );
01698             if( entity == "Sqrt" ) return QChar( 0x0221A );
01699             if( entity == "sqsub" ) return QChar( 0x0228F );
01700             if( entity == "sqsube" ) return QChar( 0x02291 );
01701             if( entity == "sqsubset" ) return QChar( 0x0228F );
01702             if( entity == "sqsubseteq" ) return QChar( 0x02291 );
01703             if( entity == "sqsup" ) return QChar( 0x02290 );
01704