Annotation of loncom/html/adm/jsMath/jsMath-fallback-symbols.js, revision 1.1

1.1     ! albertel    1: /*
        !             2:  *  jsMath-fallback-symbols.js
        !             3:  *  
        !             4:  *  Part of the jsMath package for mathematics on the web.
        !             5:  *
        !             6:  *  This file makes changes needed to use image fonts for symbols
        !             7:  *  but standard native fonts for letters and numbers.
        !             8:  *
        !             9:  *  ---------------------------------------------------------------------
        !            10:  *
        !            11:  *  jsMath is free software; you can redistribute it and/or modify
        !            12:  *  it under the terms of the GNU General Public License as published by
        !            13:  *  the Free Software Foundation; either version 2 of the License, or
        !            14:  *  (at your option) any later version.
        !            15:  *
        !            16:  *  jsMath is distributed in the hope that it will be useful,
        !            17:  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            18:  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            19:  *  GNU General Public License for more details.
        !            20:  *
        !            21:  *  You should have received a copy of the GNU General Public License
        !            22:  *  along with jsMath; if not, write to the Free Software
        !            23:  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
        !            24:  */
        !            25: 
        !            26: jsMath.Add(jsMath.Box,{
        !            27:   
        !            28:   TeX_orig: jsMath.Box.TeX,  // save old TeX routine
        !            29: 
        !            30:   /*
        !            31:    * Replace the standard TeX command with one that
        !            32:    * handles the fact that we don't have the sizes of the
        !            33:    * characters precomputed
        !            34:    */
        !            35:   TeX: function (C,font,style,size) {
        !            36:     c = jsMath.TeX[font][C]; if (!c.tclass) {c.tclass = font}
        !            37:     if (c.img != null) {return this.TeX_orig(C,font,style,size)}
        !            38:     if (c.h != null && c.a == null) {c.a = c.h-1.1*jsMath.TeX.x_height}
        !            39:     var box = this.Text(c.c,c.tclass,style,size,c.a,c.d);
        !            40:     var scale = jsMath.Typeset.TeX(style,size).scale;
        !            41:     if (c.bh != null) {
        !            42:       box.bh = c.bh * scale;
        !            43:       box.bd = c.bd * scale;
        !            44:     } else {
        !            45:       var h = box.bd+box.bh;
        !            46:       var ph = Math.round(h*jsMath.em);
        !            47:       if (h > jsMath.hd) {
        !            48:         box.bd = jsMath.EmBoxFor(jsMath.HTML.Class(c.tclass,c.c)
        !            49:                    + '<IMG SRC="'+jsMath.blank+'" STYLE="'
        !            50:                    + 'width: 1; height: '+ph+'px">').h - h;
        !            51:         box.bh = h - box.bd;
        !            52:       }
        !            53:       c.bh = box.bh/scale;
        !            54:       c.bd = box.bd/scale;
        !            55:     }
        !            56:     if (jsMath.msieFontBug) {
        !            57:       // hack to avoid Font changing back to the default
        !            58:       // font when a unicode reference is not followed
        !            59:       // by a letter or number
        !            60:       box.html += '<SPAN STYLE="display: none">x</SPAN>'
        !            61:     }
        !            62:     return box;
        !            63:   }
        !            64: });
        !            65: 
        !            66: jsMath.Add(jsMath.Img,{
        !            67:   UpdateTeXFonts: function (change) {
        !            68:     for (var font in change) {
        !            69:       for (var code in change[font]) {
        !            70:         jsMath.TeX[font][code] = change[font][code];
        !            71:         jsMath.TeX[font][code].tclass = 'i' + font;
        !            72:       }
        !            73:     }
        !            74:   }
        !            75: });
        !            76: 
        !            77: 
        !            78: jsMath.Img.UpdateTeXFonts({
        !            79:   cmr10:  {
        !            80:     '33': {c: '!', lig: {'96': 60}},
        !            81:     '35': {c: '#'},
        !            82:     '36': {c: '$'},
        !            83:     '37': {c: '%'},
        !            84:     '38': {c: '&amp;'},
        !            85:     '40': {c: '(', d:.2},
        !            86:     '41': {c: ')', d:.2},
        !            87:     '42': {c: '*', d:-.3},
        !            88:     '43': {c: '+', a:.1},
        !            89:     '44': {c: ',', a:-.3},
        !            90:     '45': {c: '-', a:0, lig: {'45': 123}},
        !            91:     '46': {c: '.', a:-.25},
        !            92:     '47': {c: '/'},
        !            93:     '48': {c: '0'},
        !            94:     '49': {c: '1'},
        !            95:     '50': {c: '2'},
        !            96:     '51': {c: '3'},
        !            97:     '52': {c: '4'},
        !            98:     '53': {c: '5'},
        !            99:     '54': {c: '6'},
        !           100:     '55': {c: '7'},
        !           101:     '56': {c: '8'},
        !           102:     '57': {c: '9'},
        !           103:     '58': {c: ':'},
        !           104:     '59': {c: ';'},
        !           105:     '61': {c: '=', a:0, d:-.1},
        !           106:     '63': {c: '?', lig: {'96': 62}},
        !           107:     '64': {c: '@'},
        !           108:     '65': {c: 'A', krn: {'116': -0.0278, '67': -0.0278, '79': -0.0278, '71': -0.0278, '85': -0.0278, '81': -0.0278, '84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
        !           109:     '66': {c: 'B'},
        !           110:     '67': {c: 'C'},
        !           111:     '68': {c: 'D', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
        !           112:     '69': {c: 'E'},
        !           113:     '70': {c: 'F', krn: {'111': -0.0833, '101': -0.0833, '117': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.111, '79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           114:     '71': {c: 'G'},
        !           115:     '72': {c: 'H'},
        !           116:     '73': {c: 'I', krn: {'73': 0.0278}},
        !           117:     '74': {c: 'J'},
        !           118:     '75': {c: 'K', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           119:     '76': {c: 'L', krn: {'84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
        !           120:     '77': {c: 'M'},
        !           121:     '78': {c: 'N'},
        !           122:     '79': {c: 'O', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
        !           123:     '80': {c: 'P', krn: {'65': -0.0833, '111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
        !           124:     '81': {c: 'Q', d: 1},
        !           125:     '82': {c: 'R', krn: {'116': -0.0278, '67': -0.0278, '79': -0.0278, '71': -0.0278, '85': -0.0278, '81': -0.0278, '84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
        !           126:     '83': {c: 'S'},
        !           127:     '84': {c: 'T', krn: {'121': -0.0278, '101': -0.0833, '111': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.0833, '117': -0.0833}},
        !           128:     '85': {c: 'U'},
        !           129:     '86': {c: 'V', ic: 0.0139, krn: {'111': -0.0833, '101': -0.0833, '117': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.111, '79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           130:     '87': {c: 'W', ic: 0.0139, krn: {'111': -0.0833, '101': -0.0833, '117': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.111, '79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           131:     '88': {c: 'X', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           132:     '89': {c: 'Y', ic: 0.025, krn: {'101': -0.0833, '111': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.0833, '117': -0.0833}},
        !           133:     '90': {c: 'Z'},
        !           134:     '91': {c: '[', d:.1},
        !           135:     '93': {c: ']', d:.1},
        !           136:     '97': {c: 'a', a:0, krn: {'118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           137:     '98': {c: 'b', krn: {'101': 0.0278, '111': 0.0278, '120': -0.0278, '100': 0.0278, '99': 0.0278, '113': 0.0278, '118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           138:     '99': {c: 'c', a:0, krn: {'104': -0.0278, '107': -0.0278}},
        !           139:     '100': {c: 'd'},
        !           140:     '101': {c: 'e', a:0},
        !           141:     '102': {c: 'f', ic: 0.0778, krn: {'39': 0.0778, '63': 0.0778, '33': 0.0778, '41': 0.0778, '93': 0.0778}, lig: {'105': 12, '102': 11, '108': 13}},
        !           142:     '103': {c: 'g', a:0, d:1, ic: 0.0139, krn: {'106': 0.0278}},
        !           143:     '104': {c: 'h', krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
        !           144:     '105': {c: 'i'},
        !           145:     '106': {c: 'j', d:1},
        !           146:     '107': {c: 'k', krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
        !           147:     '108': {c: 'l'},
        !           148:     '109': {c: 'm', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
        !           149:     '110': {c: 'n', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
        !           150:     '111': {c: 'o', a:0, krn: {'101': 0.0278, '111': 0.0278, '120': -0.0278, '100': 0.0278, '99': 0.0278, '113': 0.0278, '118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           151:     '112': {c: 'p', a:0, d:1, krn: {'101': 0.0278, '111': 0.0278, '120': -0.0278, '100': 0.0278, '99': 0.0278, '113': 0.0278, '118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           152:     '113': {c: 'q', a:0, d:1},
        !           153:     '114': {c: 'r', a:0},
        !           154:     '115': {c: 's', a:0},
        !           155:     '116': {c: 't', krn: {'121': -0.0278, '119': -0.0278}},
        !           156:     '117': {c: 'u', a:0, krn: {'119': -0.0278}},
        !           157:     '118': {c: 'v', a:0, ic: 0.0139, krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
        !           158:     '119': {c: 'w', a:0, ic: 0.0139, krn: {'101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
        !           159:     '120': {c: 'x', a:0},
        !           160:     '121': {c: 'y', a:0, d:1, ic: 0.0139, krn: {'111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
        !           161:     '122': {c: 'z', a:0}
        !           162:   },
        !           163:   cmmi10:  {
        !           164:     '65': {c: 'A', krn: {'127': 0.139}},
        !           165:     '66': {c: 'B', ic: 0.0502, krn: {'127': 0.0833}},
        !           166:     '67': {c: 'C', ic: 0.0715, krn: {'61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
        !           167:     '68': {c: 'D', ic: 0.0278, krn: {'127': 0.0556}},
        !           168:     '69': {c: 'E', ic: 0.0576, krn: {'127': 0.0833}},
        !           169:     '70': {c: 'F', ic: 0.139, krn: {'61': -0.0556, '59': -0.111, '58': -0.111, '127': 0.0833}},
        !           170:     '71': {c: 'G', krn: {'127': 0.0833}},
        !           171:     '72': {c: 'H', ic: 0.0812, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0556}},
        !           172:     '73': {c: 'I', ic: 0.0785, krn: {'127': 0.111}},
        !           173:     '74': {c: 'J', ic: 0.0962, krn: {'61': -0.0556, '59': -0.111, '58': -0.111, '127': 0.167}},
        !           174:     '75': {c: 'K', ic: 0.0715, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0556}},
        !           175:     '76': {c: 'L', krn: {'127': 0.0278}},
        !           176:     '77': {c: 'M', ic: 0.109, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
        !           177:     '78': {c: 'N', ic: 0.109, krn: {'61': -0.0833, '61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
        !           178:     '79': {c: 'O', ic: 0.0278, krn: {'127': 0.0833}},
        !           179:     '80': {c: 'P', ic: 0.139, krn: {'61': -0.0556, '59': -0.111, '58': -0.111, '127': 0.0833}},
        !           180:     '81': {c: 'Q', d:1, krn: {'127': 0.0833}},
        !           181:     '82': {c: 'R', ic: 0.00773, krn: {'127': 0.0833}},
        !           182:     '83': {c: 'S', ic: 0.0576, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
        !           183:     '84': {c: 'T', ic: 0.139, krn: {'61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
        !           184:     '85': {c: 'U', ic: 0.109, krn: {'59': -0.111, '58': -0.111, '61': -0.0556, '127': 0.0278}},
        !           185:     '86': {c: 'V', ic: 0.222, krn: {'59': -0.167, '58': -0.167, '61': -0.111}},
        !           186:     '87': {c: 'W', ic: 0.139, krn: {'59': -0.167, '58': -0.167, '61': -0.111}},
        !           187:     '88': {c: 'X', ic: 0.0785, krn: {'61': -0.0833, '61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
        !           188:     '89': {c: 'Y', ic: 0.222, krn: {'59': -0.167, '58': -0.167, '61': -0.111}},
        !           189:     '90': {c: 'Z', ic: 0.0715, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
        !           190:     '97': {c: 'a', a:0},
        !           191:     '98': {c: 'b'},
        !           192:     '99': {c: 'c', a:0, krn: {'127': 0.0556}},
        !           193:     '100': {c: 'd', krn: {'89': 0.0556, '90': -0.0556, '106': -0.111, '102': -0.167, '127': 0.167}},
        !           194:     '101': {c: 'e', a:0, krn: {'127': 0.0556}},
        !           195:     '102': {c: 'f', d:1, ic: 0.108, krn: {'59': -0.0556, '58': -0.0556, '127': 0.167}},
        !           196:     '103': {c: 'g', a:0, d:1, ic: 0.0359, krn: {'127': 0.0278}},
        !           197:     '104': {c: 'h', krn: {'127': -0.0278}},
        !           198:     '105': {c: 'i'},
        !           199:     '106': {c: 'j', d:1, ic: 0.0572, krn: {'59': -0.0556, '58': -0.0556}},
        !           200:     '107': {c: 'k', ic: 0.0315},
        !           201:     '108': {c: 'l', ic: 0.0197, krn: {'127': 0.0833}},
        !           202:     '109': {c: 'm', a:0},
        !           203:     '110': {c: 'n', a:0},
        !           204:     '111': {c: 'o', a:0, krn: {'127': 0.0556}},
        !           205:     '112': {c: 'p', a:0, d:1, krn: {'127': 0.0833}},
        !           206:     '113': {c: 'q', a:0, d:1, ic: 0.0359, krn: {'127': 0.0833}},
        !           207:     '114': {c: 'r', a:0, ic: 0.0278, krn: {'59': -0.0556, '58': -0.0556, '127': 0.0556}},
        !           208:     '115': {c: 's', a:0, krn: {'127': 0.0556}},
        !           209:     '116': {c: 't', krn: {'127': 0.0833}},
        !           210:     '117': {c: 'u', a:0, krn: {'127': 0.0278}},
        !           211:     '118': {c: 'v', a:0, ic: 0.0359, krn: {'127': 0.0278}},
        !           212:     '119': {c: 'w', a:0, ic: 0.0269, krn: {'127': 0.0833}},
        !           213:     '120': {c: 'x', a:0, krn: {'127': 0.0278}},
        !           214:     '121': {c: 'y', a:0, d:1, ic: 0.0359, krn: {'127': 0.0556}},
        !           215:     '122': {c: 'z', a:0, ic: 0.044, krn: {'127': 0.0556}}
        !           216:   },
        !           217:   cmsy10: {
        !           218:     '0': {c:'&#8211;', a:.1}
        !           219:   },
        !           220:   cmti10: {
        !           221:     '33': {c: '!', lig: {'96': 60}},
        !           222:     '35': {c: '#', ic: 0.0662},
        !           223:     '37': {c: '%', ic: 0.136},
        !           224:     '38': {c: '&amp;', ic: 0.0969},
        !           225:     '40': {c: '(', d:.2, ic: 0.162},
        !           226:     '41': {c: ')', d:.2, ic: 0.0369},
        !           227:     '42': {c: '*', ic: 0.149},
        !           228:     '43': {c: '+', a:.1, ic: 0.0369},
        !           229:     '44': {c: ',', a:-.3, d:.2, w: 0.278},
        !           230:     '45': {c: '-', a:0, ic: 0.0283, lig: {'45': 123}},
        !           231:     '46': {c: '.', a:-.25},
        !           232:     '47': {c: '/', ic: 0.162},
        !           233:     '48': {c: '0', ic: 0.136},
        !           234:     '49': {c: '1', ic: 0.136},
        !           235:     '50': {c: '2', ic: 0.136},
        !           236:     '51': {c: '3', ic: 0.136},
        !           237:     '52': {c: '4', ic: 0.136},
        !           238:     '53': {c: '5', ic: 0.136},
        !           239:     '54': {c: '6', ic: 0.136},
        !           240:     '55': {c: '7', ic: 0.136},
        !           241:     '56': {c: '8', ic: 0.136},
        !           242:     '57': {c: '9', ic: 0.136},
        !           243:     '58': {c: ':', ic: 0.0582},
        !           244:     '59': {c: ';', ic: 0.0582},
        !           245:     '61': {c: '=', a:0, d:-.1, ic: 0.0662},
        !           246:     '63': {c: '?', ic: 0.122, lig: {'96': 62}},
        !           247:     '64': {c: '@', ic: 0.096},
        !           248:     '65': {c: 'A', krn: {'110': -0.0256, '108': -0.0256, '114': -0.0256, '117': -0.0256, '109': -0.0256, '116': -0.0256, '105': -0.0256, '67': -0.0256, '79': -0.0256, '71': -0.0256, '104': -0.0256, '98': -0.0256, '85': -0.0256, '107': -0.0256, '118': -0.0256, '119': -0.0256, '81': -0.0256, '84': -0.0767, '89': -0.0767, '86': -0.102, '87': -0.102, '101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           249:     '66': {c: 'B', ic: 0.103},
        !           250:     '67': {c: 'C', ic: 0.145},
        !           251:     '68': {c: 'D', ic: 0.094, krn: {'88': -0.0256, '87': -0.0256, '65': -0.0256, '86': -0.0256, '89': -0.0256}},
        !           252:     '69': {c: 'E', ic: 0.12},
        !           253:     '70': {c: 'F', ic: 0.133, krn: {'111': -0.0767, '101': -0.0767, '117': -0.0767, '114': -0.0767, '97': -0.0767, '65': -0.102, '79': -0.0256, '67': -0.0256, '71': -0.0256, '81': -0.0256}},
        !           254:     '71': {c: 'G', ic: 0.0872},
        !           255:     '72': {c: 'H', ic: 0.164},
        !           256:     '73': {c: 'I', ic: 0.158},
        !           257:     '74': {c: 'J', ic: 0.14},
        !           258:     '75': {c: 'K', ic: 0.145, krn: {'79': -0.0256, '67': -0.0256, '71': -0.0256, '81': -0.0256}},
        !           259:     '76': {c: 'L', krn: {'84': -0.0767, '89': -0.0767, '86': -0.102, '87': -0.102, '101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           260:     '77': {c: 'M', ic: 0.164},
        !           261:     '78': {c: 'N', ic: 0.164},
        !           262:     '79': {c: 'O', ic: 0.094, krn: {'88': -0.0256, '87': -0.0256, '65': -0.0256, '86': -0.0256, '89': -0.0256}},
        !           263:     '80': {c: 'P', ic: 0.103, krn: {'65': -0.0767}},
        !           264:     '81': {c: 'Q', d: 1, ic: 0.094},
        !           265:     '82': {c: 'R', ic: 0.0387, krn: {'110': -0.0256, '108': -0.0256, '114': -0.0256, '117': -0.0256, '109': -0.0256, '116': -0.0256, '105': -0.0256, '67': -0.0256, '79': -0.0256, '71': -0.0256, '104': -0.0256, '98': -0.0256, '85': -0.0256, '107': -0.0256, '118': -0.0256, '119': -0.0256, '81': -0.0256, '84': -0.0767, '89': -0.0767, '86': -0.102, '87': -0.102, '101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           266:     '83': {c: 'S', ic: 0.12},
        !           267:     '84': {c: 'T', ic: 0.133, krn: {'121': -0.0767, '101': -0.0767, '111': -0.0767, '114': -0.0767, '97': -0.0767, '117': -0.0767, '65': -0.0767}},
        !           268:     '85': {c: 'U', ic: 0.164},
        !           269:     '86': {c: 'V', ic: 0.184, krn: {'111': -0.0767, '101': -0.0767, '117': -0.0767, '114': -0.0767, '97': -0.0767, '65': -0.102, '79': -0.0256, '67': -0.0256, '71': -0.0256, '81': -0.0256}},
        !           270:     '87': {c: 'W', ic: 0.184, krn: {'65': -0.0767}},
        !           271:     '88': {c: 'X', ic: 0.158, krn: {'79': -0.0256, '67': -0.0256, '71': -0.0256, '81': -0.0256}},
        !           272:     '89': {c: 'Y', ic: 0.194, krn: {'101': -0.0767, '111': -0.0767, '114': -0.0767, '97': -0.0767, '117': -0.0767, '65': -0.0767}},
        !           273:     '90': {c: 'Z', ic: 0.145},
        !           274:     '91': {c: '[', d:.1, ic: 0.188},
        !           275:     '93': {c: ']', d:.1, ic: 0.105},
        !           276:     '97': {c: 'a', a:0, ic: 0.0767},
        !           277:     '98': {c: 'b', ic: 0.0631, krn: {'101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           278:     '99': {c: 'c', a:0, ic: 0.0565, krn: {'101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           279:     '100': {c: 'd', ic: 0.103, krn: {'108': 0.0511}},
        !           280:     '101': {c: 'e', a:0, ic: 0.0751, krn: {'101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           281:     '102': {c: 'f', ic: 0.212, krn: {'39': 0.104, '63': 0.104, '33': 0.104, '41': 0.104, '93': 0.104}, lig: {'105': 12, '102': 11, '108': 13}},
        !           282:     '103': {c: 'g', a:0, d:1, ic: 0.0885},
        !           283:     '104': {c: 'h', ic: 0.0767},
        !           284:     '105': {c: 'i', ic: 0.102},
        !           285:     '106': {c: 'j', d:1, ic: 0.145},
        !           286:     '107': {c: 'k', ic: 0.108},
        !           287:     '108': {c: 'l', ic: 0.103, krn: {'108': 0.0511}},
        !           288:     '109': {c: 'm', a:0, ic: 0.0767},
        !           289:     '110': {c: 'n', a:0, ic: 0.0767, krn: {'39': -0.102}},
        !           290:     '111': {c: 'o', a:0, ic: 0.0631, krn: {'101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           291:     '112': {c: 'p', a:0, d:1, ic: 0.0631, krn: {'101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           292:     '113': {c: 'q', a:0, d:1, ic: 0.0885},
        !           293:     '114': {c: 'r', a:0, ic: 0.108, krn: {'101': -0.0511, '97': -0.0511, '111': -0.0511, '100': -0.0511, '99': -0.0511, '103': -0.0511, '113': -0.0511}},
        !           294:     '115': {c: 's', a:0, ic: 0.0821},
        !           295:     '116': {c: 't', ic: 0.0949},
        !           296:     '117': {c: 'u', a:0, ic: 0.0767},
        !           297:     '118': {c: 'v', a:0, ic: 0.108},
        !           298:     '119': {c: 'w', a:0, ic: 0.108, krn: {'108': 0.0511}},
        !           299:     '120': {c: 'x', a:0, ic: 0.12},
        !           300:     '121': {c: 'y', a:0, d:1, ic: 0.0885},
        !           301:     '122': {c: 'z', a:0, ic: 0.123}
        !           302:   },
        !           303:   cmbx10: {
        !           304:     '33': {c: '!', lig: {'96': 60}},
        !           305:     '35': {c: '#'},
        !           306:     '36': {c: '$'},
        !           307:     '37': {c: '%'},
        !           308:     '38': {c: '&amp;'},
        !           309:     '40': {c: '(', d:.2},
        !           310:     '41': {c: ')', d:.2},
        !           311:     '42': {c: '*'},
        !           312:     '43': {c: '+', a:.1},
        !           313:     '44': {c: ',', a:-.3, d:.2, w: 0.278},
        !           314:     '45': {c: '-', a:0, lig: {'45': 123}},
        !           315:     '46': {c: '.', a:-.25},
        !           316:     '47': {c: '/'},
        !           317:     '48': {c: '0'},
        !           318:     '49': {c: '1'},
        !           319:     '50': {c: '2'},
        !           320:     '51': {c: '3'},
        !           321:     '52': {c: '4'},
        !           322:     '53': {c: '5'},
        !           323:     '54': {c: '6'},
        !           324:     '55': {c: '7'},
        !           325:     '56': {c: '8'},
        !           326:     '57': {c: '9'},
        !           327:     '58': {c: ':'},
        !           328:     '59': {c: ';'},
        !           329:     '61': {c: '=', a:0, d:-.1},
        !           330:     '63': {c: '?', lig: {'96': 62}},
        !           331:     '64': {c: '@'},
        !           332:     '65': {c: 'A', krn: {'116': -0.0278, '67': -0.0278, '79': -0.0278, '71': -0.0278, '85': -0.0278, '81': -0.0278, '84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
        !           333:     '66': {c: 'B'},
        !           334:     '67': {c: 'C'},
        !           335:     '68': {c: 'D', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
        !           336:     '69': {c: 'E'},
        !           337:     '70': {c: 'F', krn: {'111': -0.0833, '101': -0.0833, '117': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.111, '79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           338:     '71': {c: 'G'},
        !           339:     '72': {c: 'H'},
        !           340:     '73': {c: 'I', krn: {'73': 0.0278}},
        !           341:     '74': {c: 'J'},
        !           342:     '75': {c: 'K', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           343:     '76': {c: 'L', krn: {'84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
        !           344:     '77': {c: 'M'},
        !           345:     '78': {c: 'N'},
        !           346:     '79': {c: 'O', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
        !           347:     '80': {c: 'P', krn: {'65': -0.0833, '111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
        !           348:     '81': {c: 'Q', d: 1},
        !           349:     '82': {c: 'R', krn: {'116': -0.0278, '67': -0.0278, '79': -0.0278, '71': -0.0278, '85': -0.0278, '81': -0.0278, '84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
        !           350:     '83': {c: 'S'},
        !           351:     '84': {c: 'T', krn: {'121': -0.0278, '101': -0.0833, '111': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.0833, '117': -0.0833}},
        !           352:     '85': {c: 'U'},
        !           353:     '86': {c: 'V', ic: 0.0139, krn: {'111': -0.0833, '101': -0.0833, '117': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.111, '79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           354:     '87': {c: 'W', ic: 0.0139, krn: {'111': -0.0833, '101': -0.0833, '117': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.111, '79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           355:     '88': {c: 'X', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
        !           356:     '89': {c: 'Y', ic: 0.025, krn: {'101': -0.0833, '111': -0.0833, '114': -0.0833, '97': -0.0833, '65': -0.0833, '117': -0.0833}},
        !           357:     '90': {c: 'Z'},
        !           358:     '91': {c: '[', d:.1},
        !           359:     '93': {c: ']', d:.1},
        !           360:     '97': {c: 'a', a:0, krn: {'118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           361:     '98': {c: 'b', krn: {'101': 0.0278, '111': 0.0278, '120': -0.0278, '100': 0.0278, '99': 0.0278, '113': 0.0278, '118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           362:     '99': {c: 'c', a:0, krn: {'104': -0.0278, '107': -0.0278}},
        !           363:     '100': {c: 'd'},
        !           364:     '101': {c: 'e', a:0},
        !           365:     '102': {c: 'f', ic: 0.0778, krn: {'39': 0.0778, '63': 0.0778, '33': 0.0778, '41': 0.0778, '93': 0.0778}, lig: {'105': 12, '102': 11, '108': 13}},
        !           366:     '103': {c: 'g', a:0, d:1, ic: 0.0139, krn: {'106': 0.0278}},
        !           367:     '104': {c: 'h', krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
        !           368:     '105': {c: 'i'},
        !           369:     '106': {c: 'j', d:1},
        !           370:     '107': {c: 'k', krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
        !           371:     '108': {c: 'l'},
        !           372:     '109': {c: 'm', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
        !           373:     '110': {c: 'n', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
        !           374:     '111': {c: 'o', a:0, krn: {'101': 0.0278, '111': 0.0278, '120': -0.0278, '100': 0.0278, '99': 0.0278, '113': 0.0278, '118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           375:     '112': {c: 'p', a:0, d:1, krn: {'101': 0.0278, '111': 0.0278, '120': -0.0278, '100': 0.0278, '99': 0.0278, '113': 0.0278, '118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
        !           376:     '113': {c: 'q', a:0, d:1},
        !           377:     '114': {c: 'r', a:0},
        !           378:     '115': {c: 's', a:0},
        !           379:     '116': {c: 't', krn: {'121': -0.0278, '119': -0.0278}},
        !           380:     '117': {c: 'u', a:0, krn: {'119': -0.0278}},
        !           381:     '118': {c: 'v', a:0, ic: 0.0139, krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
        !           382:     '119': {c: 'w', a:0, ic: 0.0139, krn: {'101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
        !           383:     '120': {c: 'x', a:0},
        !           384:     '121': {c: 'y', a:0, d:1, ic: 0.0139, krn: {'111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
        !           385:     '122': {c: 'z', a:0}
        !           386:   }
        !           387: });
        !           388: 
        !           389: 
        !           390: if (jsMath.browser == 'MSIE' && navigator.platform == 'MacPPC') {
        !           391:   jsMath.Update.Styles({
        !           392:     '.math':       'font-style: normal',
        !           393:     '.typeset':    'font-style: normal',
        !           394:     '.icmr10':     'font-family: Times',
        !           395:     '.icmmi10':    'font-family: Times; font-style:italic',
        !           396:     '.icmbx10':    'font-family: Times; font-weight:bold',
        !           397:     '.icmti10':    'font-family: Times; font-style:italic'
        !           398:   });
        !           399: } else {
        !           400:   jsMath.Update.Styles({
        !           401:     '.math':       'font-style: normal',
        !           402:     '.typeset':    'font-style: normal',
        !           403:     '.icmr10':     'font-family: serif',
        !           404:     '.icmmi10':    'font-family: serif; font-style:italic',
        !           405:     '.icmbx10':    'font-family: serif; font-weight:bold',
        !           406:     '.icmti10':    'font-family: serif; font-style:italic'
        !           407:   });
        !           408: }
        !           409: 
        !           410: 
        !           411: jsMath.Add(jsMath.Img,{
        !           412:   symbols: [
        !           413:       0,  1,  2,  3,  4,  5,  6,  7,    8,  9, 10, 11, 12, 13, 14, 15,
        !           414:      16, 17, 18, 19, 20, 21, 22, 23,   24, 25, 26, 27, 28, 29, 30, 31,
        !           415:      32,     34,                 39,
        !           416:                                                        60,     62,
        !           417: 
        !           418:                                                        92,     94, 95,
        !           419:      96,
        !           420:                                                   123,124,125,126,127
        !           421:   ]
        !           422: });
        !           423: 
        !           424: /*
        !           425:  *  for now, use images for everything
        !           426:  */
        !           427: jsMath.Img.SetFont({
        !           428:    cmr10:  jsMath.Img.symbols,
        !           429:    cmmi10: [
        !           430:       0,  1,  2,  3,  4,  5,  6,  7,    8,  9, 10, 11, 12, 13, 14, 15,
        !           431:      16, 17, 18, 19, 20, 21, 22, 23,   24, 25, 26, 27, 28, 29, 30, 31,
        !           432:      32, 33, 34, 35, 36, 37, 38, 39,   40, 41, 42, 43, 44, 45, 46, 47,
        !           433:      48, 49, 50, 51, 52, 53, 54, 55,   56, 57, 58, 59, 60, 61, 62, 63,
        !           434:      64, 
        !           435:                                                    91, 92, 93, 94, 95,
        !           436:      96,
        !           437:                                                   123,124,125,126,127
        !           438:    ],
        !           439:    cmsy10: [
        !           440:           1,  2,  3,  4,  5,  6,  7,    8,  9, 10, 11, 12, 13, 14, 15,
        !           441:      16, 17, 18, 19, 20, 21, 22, 23,   24, 25, 26, 27, 28, 29, 30, 31,
        !           442:      32, 33, 34, 35, 36, 37, 38, 39,   40, 41, 42, 43, 44, 45, 46, 47,
        !           443:      48, 49, 50, 51, 52, 53, 54, 55,   56, 57, 58, 59, 60, 61, 62, 63,
        !           444:      64, 65, 66, 67, 68, 69, 70, 71,   72, 73, 74, 75, 76, 77, 78, 79,
        !           445:      80, 81, 82, 83, 84, 85, 86, 87,   88, 89, 90, 91, 92, 93, 94, 95,
        !           446:      96, 97, 98, 99,100,101,102,103,  104,105,106,107,108,109,110,111,
        !           447:     112,113,114,115,116,117,118,119,  120,121,122,123,124,125,126,127
        !           448:    ],
        !           449:    cmex10: ['all'],
        !           450:    cmti10: jsMath.Img.symbols.concat(36),
        !           451:    cmbx10: jsMath.Img.symbols
        !           452: });
        !           453: 
        !           454: jsMath.Img.LoadFont('cm-fonts');
        !           455: 
        !           456: jsMath.Setup.Styles();
        !           457: jsMath.Setup.TeXfonts();

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>