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

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:  *  Copyright 2004-2006 by Davide P. Cervone
                     12:  * 
                     13:  *  Licensed under the Apache License, Version 2.0 (the "License");
                     14:  *  you may not use this file except in compliance with the License.
                     15:  *  You may obtain a copy of the License at
                     16:  * 
                     17:  *      http://www.apache.org/licenses/LICENSE-2.0
                     18:  * 
                     19:  *  Unless required by applicable law or agreed to in writing, software
                     20:  *  distributed under the License is distributed on an "AS IS" BASIS,
                     21:  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                     22:  *  See the License for the specific language governing permissions and
                     23:  *  limitations under the License.
                     24:  */
                     25: 
                     26: jsMath.Add(jsMath.Img,{
                     27:   UpdateTeXFonts: function (change) {
                     28:     for (var font in change) {
                     29:       for (var code in change[font]) {
                     30:         jsMath.TeX[font][code] = change[font][code];
                     31:         jsMath.TeX[font][code].tclass = 'i' + font;
                     32:       }
                     33:     }
                     34:   }
                     35: });
                     36: 
                     37: 
                     38: jsMath.Img.UpdateTeXFonts({
                     39:   cmr10:  {
                     40:     '33': {c: '!', lig: {'96': 60}},
                     41:     '35': {c: '#'},
                     42:     '36': {c: '$'},
                     43:     '37': {c: '%'},
                     44:     '38': {c: '&'},
                     45:     '40': {c: '(', d:.2},
                     46:     '41': {c: ')', d:.2},
                     47:     '42': {c: '*', d:-.3},
                     48:     '43': {c: '+', a:.1},
                     49:     '44': {c: ',', a:-.3},
                     50:     '45': {c: '-', a:0, lig: {'45': 123}},
                     51:     '46': {c: '.', a:-.25},
                     52:     '47': {c: '/'},
                     53:     '48': {c: '0'},
                     54:     '49': {c: '1'},
                     55:     '50': {c: '2'},
                     56:     '51': {c: '3'},
                     57:     '52': {c: '4'},
                     58:     '53': {c: '5'},
                     59:     '54': {c: '6'},
                     60:     '55': {c: '7'},
                     61:     '56': {c: '8'},
                     62:     '57': {c: '9'},
                     63:     '58': {c: ':'},
                     64:     '59': {c: ';'},
                     65:     '61': {c: '=', a:0, d:-.1},
                     66:     '63': {c: '?', lig: {'96': 62}},
                     67:     '64': {c: '@'},
                     68:     '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}},
                     69:     '66': {c: 'B'},
                     70:     '67': {c: 'C'},
                     71:     '68': {c: 'D', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
                     72:     '69': {c: 'E'},
                     73:     '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}},
                     74:     '71': {c: 'G'},
                     75:     '72': {c: 'H'},
                     76:     '73': {c: 'I', krn: {'73': 0.0278}},
                     77:     '74': {c: 'J'},
                     78:     '75': {c: 'K', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
                     79:     '76': {c: 'L', krn: {'84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
                     80:     '77': {c: 'M'},
                     81:     '78': {c: 'N'},
                     82:     '79': {c: 'O', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
                     83:     '80': {c: 'P', krn: {'65': -0.0833, '111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
                     84:     '81': {c: 'Q', d: 1},
                     85:     '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}},
                     86:     '83': {c: 'S'},
                     87:     '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}},
                     88:     '85': {c: 'U'},
                     89:     '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}},
                     90:     '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}},
                     91:     '88': {c: 'X', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
                     92:     '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}},
                     93:     '90': {c: 'Z'},
                     94:     '91': {c: '[', d:.1},
                     95:     '93': {c: ']', d:.1},
                     96:     '97': {c: 'a', a:0, krn: {'118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
                     97:     '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}},
                     98:     '99': {c: 'c', a:0, krn: {'104': -0.0278, '107': -0.0278}},
                     99:     '100': {c: 'd'},
                    100:     '101': {c: 'e', a:0},
                    101:     '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}},
                    102:     '103': {c: 'g', a:0, d:.2, ic: 0.0139, krn: {'106': 0.0278}},
                    103:     '104': {c: 'h', krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
                    104:     '105': {c: 'i'},
                    105:     '106': {c: 'j', d:1},
                    106:     '107': {c: 'k', krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
                    107:     '108': {c: 'l'},
                    108:     '109': {c: 'm', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
                    109:     '110': {c: 'n', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
                    110:     '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}},
                    111:     '112': {c: 'p', a:0, d:.2, 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}},
                    112:     '113': {c: 'q', a:0, d:1},
                    113:     '114': {c: 'r', a:0},
                    114:     '115': {c: 's', a:0},
                    115:     '116': {c: 't', krn: {'121': -0.0278, '119': -0.0278}},
                    116:     '117': {c: 'u', a:0, krn: {'119': -0.0278}},
                    117:     '118': {c: 'v', a:0, ic: 0.0139, krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
                    118:     '119': {c: 'w', a:0, ic: 0.0139, krn: {'101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
                    119:     '120': {c: 'x', a:0},
                    120:     '121': {c: 'y', a:0, d:.2, ic: 0.0139, krn: {'111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
                    121:     '122': {c: 'z', a:0}
                    122:   },
                    123:   cmmi10:  {
                    124:     '65': {c: 'A', krn: {'127': 0.139}},
                    125:     '66': {c: 'B', ic: 0.0502, krn: {'127': 0.0833}},
                    126:     '67': {c: 'C', ic: 0.0715, krn: {'61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
                    127:     '68': {c: 'D', ic: 0.0278, krn: {'127': 0.0556}},
                    128:     '69': {c: 'E', ic: 0.0576, krn: {'127': 0.0833}},
                    129:     '70': {c: 'F', ic: 0.139, krn: {'61': -0.0556, '59': -0.111, '58': -0.111, '127': 0.0833}},
                    130:     '71': {c: 'G', krn: {'127': 0.0833}},
                    131:     '72': {c: 'H', ic: 0.0812, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0556}},
                    132:     '73': {c: 'I', ic: 0.0785, krn: {'127': 0.111}},
                    133:     '74': {c: 'J', ic: 0.0962, krn: {'61': -0.0556, '59': -0.111, '58': -0.111, '127': 0.167}},
                    134:     '75': {c: 'K', ic: 0.0715, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0556}},
                    135:     '76': {c: 'L', krn: {'127': 0.0278}},
                    136:     '77': {c: 'M', ic: 0.109, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
                    137:     '78': {c: 'N', ic: 0.109, krn: {'61': -0.0833, '61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
                    138:     '79': {c: 'O', ic: 0.0278, krn: {'127': 0.0833}},
                    139:     '80': {c: 'P', ic: 0.139, krn: {'61': -0.0556, '59': -0.111, '58': -0.111, '127': 0.0833}},
                    140:     '81': {c: 'Q', d:.2, krn: {'127': 0.0833}},
                    141:     '82': {c: 'R', ic: 0.00773, krn: {'127': 0.0833}},
                    142:     '83': {c: 'S', ic: 0.0576, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
                    143:     '84': {c: 'T', ic: 0.139, krn: {'61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
                    144:     '85': {c: 'U', ic: 0.109, krn: {'59': -0.111, '58': -0.111, '61': -0.0556, '127': 0.0278}},
                    145:     '86': {c: 'V', ic: 0.222, krn: {'59': -0.167, '58': -0.167, '61': -0.111}},
                    146:     '87': {c: 'W', ic: 0.139, krn: {'59': -0.167, '58': -0.167, '61': -0.111}},
                    147:     '88': {c: 'X', ic: 0.0785, krn: {'61': -0.0833, '61': -0.0278, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
                    148:     '89': {c: 'Y', ic: 0.222, krn: {'59': -0.167, '58': -0.167, '61': -0.111}},
                    149:     '90': {c: 'Z', ic: 0.0715, krn: {'61': -0.0556, '59': -0.0556, '58': -0.0556, '127': 0.0833}},
                    150:     '97': {c: 'a', a:0},
                    151:     '98': {c: 'b'},
                    152:     '99': {c: 'c', a:0, krn: {'127': 0.0556}},
                    153:     '100': {c: 'd', krn: {'89': 0.0556, '90': -0.0556, '106': -0.111, '102': -0.167, '127': 0.167}},
                    154:     '101': {c: 'e', a:0, krn: {'127': 0.0556}},
                    155:     '102': {c: 'f', d:.2, ic: 0.108, krn: {'59': -0.0556, '58': -0.0556, '127': 0.167}},
                    156:     '103': {c: 'g', a:0, d:.2, ic: 0.0359, krn: {'127': 0.0278}},
                    157:     '104': {c: 'h', krn: {'127': -0.0278}},
                    158:     '105': {c: 'i'},
                    159:     '106': {c: 'j', d:.2, ic: 0.0572, krn: {'59': -0.0556, '58': -0.0556}},
                    160:     '107': {c: 'k', ic: 0.0315},
                    161:     '108': {c: 'l', ic: 0.0197, krn: {'127': 0.0833}},
                    162:     '109': {c: 'm', a:0},
                    163:     '110': {c: 'n', a:0},
                    164:     '111': {c: 'o', a:0, krn: {'127': 0.0556}},
                    165:     '112': {c: 'p', a:0, d:.2, krn: {'127': 0.0833}},
                    166:     '113': {c: 'q', a:0, d:.2, ic: 0.0359, krn: {'127': 0.0833}},
                    167:     '114': {c: 'r', a:0, ic: 0.0278, krn: {'59': -0.0556, '58': -0.0556, '127': 0.0556}},
                    168:     '115': {c: 's', a:0, krn: {'127': 0.0556}},
                    169:     '116': {c: 't', krn: {'127': 0.0833}},
                    170:     '117': {c: 'u', a:0, krn: {'127': 0.0278}},
                    171:     '118': {c: 'v', a:0, ic: 0.0359, krn: {'127': 0.0278}},
                    172:     '119': {c: 'w', a:0, ic: 0.0269, krn: {'127': 0.0833}},
                    173:     '120': {c: 'x', a:0, krn: {'127': 0.0278}},
                    174:     '121': {c: 'y', a:0, d:.2, ic: 0.0359, krn: {'127': 0.0556}},
                    175:     '122': {c: 'z', a:0, ic: 0.044, krn: {'127': 0.0556}}
                    176:   },
                    177:   cmsy10: {
                    178:     '0': {c:'–', a:.1}
                    179:   },
                    180:   cmti10: {
                    181:     '33': {c: '!', lig: {'96': 60}},
                    182:     '35': {c: '#', ic: 0.0662},
                    183:     '37': {c: '%', ic: 0.136},
                    184:     '38': {c: '&', ic: 0.0969},
                    185:     '40': {c: '(', d:.2, ic: 0.162},
                    186:     '41': {c: ')', d:.2, ic: 0.0369},
                    187:     '42': {c: '*', ic: 0.149},
                    188:     '43': {c: '+', a:.1, ic: 0.0369},
                    189:     '44': {c: ',', a:-.3, d:.2, w: 0.278},
                    190:     '45': {c: '-', a:0, ic: 0.0283, lig: {'45': 123}},
                    191:     '46': {c: '.', a:-.25},
                    192:     '47': {c: '/', ic: 0.162},
                    193:     '48': {c: '0', ic: 0.136},
                    194:     '49': {c: '1', ic: 0.136},
                    195:     '50': {c: '2', ic: 0.136},
                    196:     '51': {c: '3', ic: 0.136},
                    197:     '52': {c: '4', ic: 0.136},
                    198:     '53': {c: '5', ic: 0.136},
                    199:     '54': {c: '6', ic: 0.136},
                    200:     '55': {c: '7', ic: 0.136},
                    201:     '56': {c: '8', ic: 0.136},
                    202:     '57': {c: '9', ic: 0.136},
                    203:     '58': {c: ':', ic: 0.0582},
                    204:     '59': {c: ';', ic: 0.0582},
                    205:     '61': {c: '=', a:0, d:-.1, ic: 0.0662},
                    206:     '63': {c: '?', ic: 0.122, lig: {'96': 62}},
                    207:     '64': {c: '@', ic: 0.096},
                    208:     '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}},
                    209:     '66': {c: 'B', ic: 0.103},
                    210:     '67': {c: 'C', ic: 0.145},
                    211:     '68': {c: 'D', ic: 0.094, krn: {'88': -0.0256, '87': -0.0256, '65': -0.0256, '86': -0.0256, '89': -0.0256}},
                    212:     '69': {c: 'E', ic: 0.12},
                    213:     '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}},
                    214:     '71': {c: 'G', ic: 0.0872},
                    215:     '72': {c: 'H', ic: 0.164},
                    216:     '73': {c: 'I', ic: 0.158},
                    217:     '74': {c: 'J', ic: 0.14},
                    218:     '75': {c: 'K', ic: 0.145, krn: {'79': -0.0256, '67': -0.0256, '71': -0.0256, '81': -0.0256}},
                    219:     '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}},
                    220:     '77': {c: 'M', ic: 0.164},
                    221:     '78': {c: 'N', ic: 0.164},
                    222:     '79': {c: 'O', ic: 0.094, krn: {'88': -0.0256, '87': -0.0256, '65': -0.0256, '86': -0.0256, '89': -0.0256}},
                    223:     '80': {c: 'P', ic: 0.103, krn: {'65': -0.0767}},
                    224:     '81': {c: 'Q', d:.2, ic: 0.094},
                    225:     '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}},
                    226:     '83': {c: 'S', ic: 0.12},
                    227:     '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}},
                    228:     '85': {c: 'U', ic: 0.164},
                    229:     '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}},
                    230:     '87': {c: 'W', ic: 0.184, krn: {'65': -0.0767}},
                    231:     '88': {c: 'X', ic: 0.158, krn: {'79': -0.0256, '67': -0.0256, '71': -0.0256, '81': -0.0256}},
                    232:     '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}},
                    233:     '90': {c: 'Z', ic: 0.145},
                    234:     '91': {c: '[', d:.1, ic: 0.188},
                    235:     '93': {c: ']', d:.1, ic: 0.105},
                    236:     '97': {c: 'a', a:0, ic: 0.0767},
                    237:     '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}},
                    238:     '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}},
                    239:     '100': {c: 'd', ic: 0.103, krn: {'108': 0.0511}},
                    240:     '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}},
                    241:     '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}},
                    242:     '103': {c: 'g', a:0, d:.2, ic: 0.0885},
                    243:     '104': {c: 'h', ic: 0.0767},
                    244:     '105': {c: 'i', ic: 0.102},
                    245:     '106': {c: 'j', d:.2, ic: 0.145},
                    246:     '107': {c: 'k', ic: 0.108},
                    247:     '108': {c: 'l', ic: 0.103, krn: {'108': 0.0511}},
                    248:     '109': {c: 'm', a:0, ic: 0.0767},
                    249:     '110': {c: 'n', a:0, ic: 0.0767, krn: {'39': -0.102}},
                    250:     '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}},
                    251:     '112': {c: 'p', a:0, d:.2, 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}},
                    252:     '113': {c: 'q', a:0, d:.2, ic: 0.0885},
                    253:     '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}},
                    254:     '115': {c: 's', a:0, ic: 0.0821},
                    255:     '116': {c: 't', ic: 0.0949},
                    256:     '117': {c: 'u', a:0, ic: 0.0767},
                    257:     '118': {c: 'v', a:0, ic: 0.108},
                    258:     '119': {c: 'w', a:0, ic: 0.108, krn: {'108': 0.0511}},
                    259:     '120': {c: 'x', a:0, ic: 0.12},
                    260:     '121': {c: 'y', a:0, d:.2, ic: 0.0885},
                    261:     '122': {c: 'z', a:0, ic: 0.123}
                    262:   },
                    263:   cmbx10: {
                    264:     '33': {c: '!', lig: {'96': 60}},
                    265:     '35': {c: '#'},
                    266:     '36': {c: '$'},
                    267:     '37': {c: '%'},
                    268:     '38': {c: '&'},
                    269:     '40': {c: '(', d:.2},
                    270:     '41': {c: ')', d:.2},
                    271:     '42': {c: '*'},
                    272:     '43': {c: '+', a:.1},
                    273:     '44': {c: ',', a:-.3, d:.2, w: 0.278},
                    274:     '45': {c: '-', a:0, lig: {'45': 123}},
                    275:     '46': {c: '.', a:-.25},
                    276:     '47': {c: '/'},
                    277:     '48': {c: '0'},
                    278:     '49': {c: '1'},
                    279:     '50': {c: '2'},
                    280:     '51': {c: '3'},
                    281:     '52': {c: '4'},
                    282:     '53': {c: '5'},
                    283:     '54': {c: '6'},
                    284:     '55': {c: '7'},
                    285:     '56': {c: '8'},
                    286:     '57': {c: '9'},
                    287:     '58': {c: ':'},
                    288:     '59': {c: ';'},
                    289:     '61': {c: '=', a:0, d:-.1},
                    290:     '63': {c: '?', lig: {'96': 62}},
                    291:     '64': {c: '@'},
                    292:     '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}},
                    293:     '66': {c: 'B'},
                    294:     '67': {c: 'C'},
                    295:     '68': {c: 'D', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
                    296:     '69': {c: 'E'},
                    297:     '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}},
                    298:     '71': {c: 'G'},
                    299:     '72': {c: 'H'},
                    300:     '73': {c: 'I', krn: {'73': 0.0278}},
                    301:     '74': {c: 'J'},
                    302:     '75': {c: 'K', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
                    303:     '76': {c: 'L', krn: {'84': -0.0833, '89': -0.0833, '86': -0.111, '87': -0.111}},
                    304:     '77': {c: 'M'},
                    305:     '78': {c: 'N'},
                    306:     '79': {c: 'O', krn: {'88': -0.0278, '87': -0.0278, '65': -0.0278, '86': -0.0278, '89': -0.0278}},
                    307:     '80': {c: 'P', krn: {'65': -0.0833, '111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
                    308:     '81': {c: 'Q', d: 1},
                    309:     '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}},
                    310:     '83': {c: 'S'},
                    311:     '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}},
                    312:     '85': {c: 'U'},
                    313:     '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}},
                    314:     '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}},
                    315:     '88': {c: 'X', krn: {'79': -0.0278, '67': -0.0278, '71': -0.0278, '81': -0.0278}},
                    316:     '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}},
                    317:     '90': {c: 'Z'},
                    318:     '91': {c: '[', d:.1},
                    319:     '93': {c: ']', d:.1},
                    320:     '97': {c: 'a', a:0, krn: {'118': -0.0278, '106': 0.0556, '121': -0.0278, '119': -0.0278}},
                    321:     '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}},
                    322:     '99': {c: 'c', a:0, krn: {'104': -0.0278, '107': -0.0278}},
                    323:     '100': {c: 'd'},
                    324:     '101': {c: 'e', a:0},
                    325:     '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}},
                    326:     '103': {c: 'g', a:0, d:.2, ic: 0.0139, krn: {'106': 0.0278}},
                    327:     '104': {c: 'h', krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
                    328:     '105': {c: 'i'},
                    329:     '106': {c: 'j', d:1},
                    330:     '107': {c: 'k', krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
                    331:     '108': {c: 'l'},
                    332:     '109': {c: 'm', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
                    333:     '110': {c: 'n', a:0, krn: {'116': -0.0278, '117': -0.0278, '98': -0.0278, '121': -0.0278, '118': -0.0278, '119': -0.0278}},
                    334:     '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}},
                    335:     '112': {c: 'p', a:0, d:.2, 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}},
                    336:     '113': {c: 'q', a:0, d:1},
                    337:     '114': {c: 'r', a:0},
                    338:     '115': {c: 's', a:0},
                    339:     '116': {c: 't', krn: {'121': -0.0278, '119': -0.0278}},
                    340:     '117': {c: 'u', a:0, krn: {'119': -0.0278}},
                    341:     '118': {c: 'v', a:0, ic: 0.0139, krn: {'97': -0.0556, '101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
                    342:     '119': {c: 'w', a:0, ic: 0.0139, krn: {'101': -0.0278, '97': -0.0278, '111': -0.0278, '99': -0.0278}},
                    343:     '120': {c: 'x', a:0},
                    344:     '121': {c: 'y', a:0, d:.2, ic: 0.0139, krn: {'111': -0.0278, '101': -0.0278, '97': -0.0278, '46': -0.0833, '44': -0.0833}},
                    345:     '122': {c: 'z', a:0}
                    346:   }
                    347: });
                    348: 
                    349: 
                    350: if (jsMath.browser == 'MSIE' && navigator.platform == 'MacPPC') {
                    351:   jsMath.Setup.Styles({
                    352:     '.typeset .math':       'font-style: normal',
                    353:     '.typeset .typeset':    'font-style: normal',
                    354:     '.typeset .icmr10':     'font-family: Times',
                    355:     '.typeset .icmmi10':    'font-family: Times; font-style: italic',
                    356:     '.typeset .icmbx10':    'font-family: Times; font-weight: bold',
                    357:     '.typeset .icmti10':    'font-family: Times; font-style: italic'
                    358:   });
                    359: } else {
                    360:   jsMath.Setup.Styles({
                    361:     '.typeset .math':       'font-style: normal',
                    362:     '.typeset .typeset':    'font-style: normal',
                    363:     '.typeset .icmr10':     'font-family: serif',
                    364:     '.typeset .icmmi10':    'font-family: serif; font-style: italic',
                    365:     '.typeset .icmbx10':    'font-family: serif; font-weight: bold',
                    366:     '.typeset .icmti10':    'font-family: serif; font-style: italic'
                    367:   });
                    368: }
                    369: 
                    370: 
                    371: jsMath.Add(jsMath.Img,{
                    372:   symbols: [
                    373:       0,  1,  2,  3,  4,  5,  6,  7,    8,  9, 10, 11, 12, 13, 14, 15,
                    374:      16, 17, 18, 19, 20, 21, 22, 23,   24, 25, 26, 27, 28, 29, 30, 31,
                    375:      32,     34,                 39,
                    376:                                                        60,     62,
                    377: 
                    378:                                                        92,     94, 95,
                    379:      96,
                    380:                                                   123,124,125,126,127
                    381:   ]
                    382: });
                    383: 
                    384: /*
                    385:  *  for now, use images for everything
                    386:  */
                    387: jsMath.Img.SetFont({
                    388:    cmr10:  jsMath.Img.symbols,
                    389:    cmmi10: [
                    390:       0,  1,  2,  3,  4,  5,  6,  7,    8,  9, 10, 11, 12, 13, 14, 15,
                    391:      16, 17, 18, 19, 20, 21, 22, 23,   24, 25, 26, 27, 28, 29, 30, 31,
                    392:      32, 33, 34, 35, 36, 37, 38, 39,   40, 41, 42, 43, 44, 45, 46, 47,
                    393:      48, 49, 50, 51, 52, 53, 54, 55,   56, 57, 58, 59, 60, 61, 62, 63,
                    394:      64, 
                    395:                                                    91, 92, 93, 94, 95,
                    396:      96,
                    397:                                                   123,124,125,126,127
                    398:    ],
                    399:    cmsy10: [
                    400:           1,  2,  3,  4,  5,  6,  7,    8,  9, 10, 11, 12, 13, 14, 15,
                    401:      16, 17, 18, 19, 20, 21, 22, 23,   24, 25, 26, 27, 28, 29, 30, 31,
                    402:      32, 33, 34, 35, 36, 37, 38, 39,   40, 41, 42, 43, 44, 45, 46, 47,
                    403:      48, 49, 50, 51, 52, 53, 54, 55,   56, 57, 58, 59, 60, 61, 62, 63,
                    404:      64, 65, 66, 67, 68, 69, 70, 71,   72, 73, 74, 75, 76, 77, 78, 79,
                    405:      80, 81, 82, 83, 84, 85, 86, 87,   88, 89, 90, 91, 92, 93, 94, 95,
                    406:      96, 97, 98, 99,100,101,102,103,  104,105,106,107,108,109,110,111,
                    407:     112,113,114,115,116,117,118,119,  120,121,122,123,124,125,126,127
                    408:    ],
                    409:    cmex10: ['all'],
                    410:    cmti10: jsMath.Img.symbols.concat(36),
                    411:    cmbx10: jsMath.Img.symbols
                    412: });
                    413: 
                    414: jsMath.Img.LoadFont('cm-fonts');
                    415: 

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