User:CBM2/jsMath/fonts/msbm10/def.js

/* * msbm10/def.js * * This file loads the  font into jsMath. To do this use *  *      jsMath.Font.Load("msbm10") * * after loading jsMath.js itself. The user will need to have * the msbm10.ttf font installed, otherwise corresponding unicode * characters will be used, but the mapping is not perfect, and it is not * customized on a per-browser basis as it probably should be. *  *  If the font isn't installed, the user will receive a message indicating * that fact, and pointing to the jsMath web site where the font can be *  downloaded. *  *  Once this file is loaded, you can use \char{msbm10}{nn} to access * any character in the font. In addition, the \msbm10 macro will switch to * the eufm font *  *  - * *  jsMath is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * * jsMath is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with jsMath; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */

jsMath.Add(jsMath.TeX,{

msbm10: [ // 00 - 0F [0.778,0.757,0.251],   [0.778,0.757,0.251],    [0.778,0.794,0.303],    [0.778,0.794,0.303],    [0.778,0.706,0.206],    [0.778,0.706,0.206],    [0.778,0.706,0.206],    [0.778,0.706,0.206],    [0.778,0.757,0.251],    [0.778,0.757,0.251],    [0.778,0.794,0.303],    [0.778,0.794,0.303],    [0.778,0.636,0.136],    [0.778,0.636,0.136],    [0.778,0.794,0.303],    [0.778,0.794,0.303],    // 10 - 1F [0.778,0.741,0.232],   [0.778,0.741,0.232],    [0.778,0.741,0.232],    [0.778,0.741,0.232],    [0.778,0.92,0.42],    [0.778,0.92,0.42],    [0.778,0.757,0.251],    [0.778,0.757,0.251],    [0.778,0.757,0.262],    [0.778,0.757,0.262],    [0.778,0.757,0.262],    [0.778,0.757,0.262],    [0.778,0.367,-0.133],    [0.778,0.794,0.303],    [0.889,0.689,0.194],    [0.889,0.741,0.194],    // 20 - 2F [0.778,0.636,0.136],   [0.778,0.636,0.136],    [0.778,0.757,0.251],    [0.778,0.757,0.251],    [0.778,0.794,0.285],    [0.778,0.794,0.285],    [0.778,0.757,0.251],    [0.778,0.757,0.251],    [0.778,0.636,0.136],    [0.778,0.636,0.136],    [0.778,0.794,0.303],    [0.778,0.794,0.303],    [0.5,0.741,0.251],    [0.278,0.741,0.251],    [0.222,0.582,0.0817],    [0.389,0.582,0.0817],    // 30 - 3F [0.611,0.689],   [0.722,0.689],    [0.611,0.689],    [0.722,0.689],    [0.778,0.794,0.303],    [0.778,0.794,0.303],    [0.778,0.706,0.206],    [0.778,0.706,0.206],    [1,0.367,-0.133],    [1,0.367,-0.133],    [1,0.367,-0.133],    [1,0.367,-0.133],    [1,0.367,-0.133],    [1,0.367,-0.133],    [0.778,0.582,0.0817],    [0.778,0.582,0.0817],    // 40 - 4F [0.556,0.689],   [0.722,0.689],    [0.667,0.689],    [0.722,0.689],    [0.722,0.689],    [0.667,0.689],    [0.611,0.689],    [0.778,0.689],    [0.778,0.689],    [0.389,0.689],    [0.5,0.689,0.167],    [0.778,0.689],    [0.667,0.689],    [0.944,0.689],    [0.722,0.689],    [0.778,0.689,0.167],    // 50 - 5F [0.611,0.689],   [0.778,0.689,0.167],    [0.722,0.689],    [0.556,0.689],    [0.667,0.689],    [0.722,0.689],    [0.722,0.689],    [1,0.689],    [0.722,0.689],    [0.722,0.689],    [0.667,0.689],    [1.89,0.825,0,{n: 92}], [2.33,0.825],   [1.89,0.825,0,{n: 94}], [2.33,0.9],   [0,0,0],    // 60 - 6F [0.556,0.689],   [0.639,0.689],    [0,0,0],    [0,0,0],    [0,0,0],    [0,0,0],    [0.722,0.689],    [0.556,0.689],    [0.778,0.464,-0.0363],    [0.667,0.689],    [0.444,0.689],    [0.667,0.689],    [0.778,0.539,0.0391],    [0.778,0.539,0.0391],    [0.778,0.582,0.0817],    [0.778,0.582,0.0817],    // 70 - 7F [0.222,0.582,0.0817],   [0.389,0.582,0.0817],    [0.778,0.582,0.0817],    [0.778,0.367,-0.133],    [0.778,0.483,-0.0169],    [0.778,0.582,0.0817],    [0.778,0.757,0.262],    [0.778,0.757,0.262],    [1,0.431],    [1,0.431],    [0.778,0.582,0.0817],    [0.667,0.431,0,{ic: 0.0403}], [0.556,0.689],   [0.54,0.689],    [0.54,0.689],    [0.429,0.431]  ]

}); jsMath.Setup.EncodeFont('msbm10');

jsMath.Font.Register({ name: 'msbm10',  prefix: 'jsMath-',  styles: {    '.typeset .bbold':  'font-family: serif; font-weight: bold'  },  // The test used to see if font is available  test: jsMath.Font.Test1, testChar: 0x5C, testFactor: 2,  macros: {'mathbb': ['Macro','{\\msbm #1}',1]},  // Can add style, styles here  tex: function (font,fam) {    // do browser-specific adjustments here  },  fallback: function (font,fam) {    jsMath.Update.TeXfontCodes({ msbm10: [ '&#x2268;', '&#x2269;', '&#x2270;', '&#x2271;', '&#x226E;', '&#x226F;', '&#x2280;', '&#x2281;', '&#x2268;', '&#x2269;', '&#x2270;', '&#x2271;', '&#x2A87;', '&#x2A88;', '&#x22E0;', '&#x22E1;',

'&#x22E8;', '&#x22E9;', '&#x2274;', '&#x2275;', '&#x2268;', '&#x2269;', '&#x22E0;', '&#x22E1;', '&#x2AB9;', '&#x2ABA;', '&#x2A89;', '&#x2A8A;', '&#x2241;', '&#x2247;', '&#x29F8;', '&#x29F9;',

'&#x228A;', '&#x228B;', '&#x2288;', '&#x2289;', '&#x2ACB;', '&#x2ACC;', '&#x2ACB;', '&#x2ACC;', '&#x228A;', '&#x228B;', '&#x2288;', '&#x2289;', '&#x2226;', '&#x2224;', '&#x2224;', '&#x2226;', '&#x22AC;', '&#x22AE;', '&#x22AD;', '&#x22AF;', '&#x22ED;', '&#x22EC;', '&#x22EA;', '&#x22EB;', '&#x219A;', '&#x219B;', '&#x21CD;', '&#x21CF;', '&#x21CE;', '&#x21AE;', '&#x22C7;', '&#x2205;', '&#x2204;', 'A', 'B', '&#x2102;', 'D', 'E', 'F', 'G', '&#x210D;', 'I', 'J', 'K', 'L', 'M', '&#x2115;', 'O', '&#x2119;', '&#x211A;', '&#x211D;', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', '&#x2124;', '', , , , ,       '&#x2132;', '&#x2141;', , , , , '&#x2127;', '&#x00F0;', '&#x2242;', '&#x05D1;', '&#x05E0;', '&#x05D3;', '&#x22D6;', '&#x22D7;', '&#x22C9;', '&#x22CA;', '|', '||', '&#x29F5;', '&#x223C;', '&#x2248;', '&#x224A;', '&#x2AB8;', '&#x2AB7;', '&#x21B6;', '&#x21B7;', 'F', '&#x03BA;', 'k', '&#x210F;', '&#x0127;', '&#x03F6;' ]   });    jsMath.Update.TeXfonts({ msbm10: { '65': {tclass: 'bbold'}, // A       '66': {tclass: 'bbold'}, // B        '68': {tclass: 'bbold'}, // D        '69': {tclass: 'bbold'}, // E        '70': {tclass: 'bbold'}, // F        '71': {tclass: 'bbold'}, // G        '73': {tclass: 'bbold'}, // I        '74': {tclass: 'bbold'}, // J        '75': {tclass: 'bbold'}, // K        '76': {tclass: 'bbold'}, // L        '77': {tclass: 'bbold'}, // M        '79': {tclass: 'bbold'}, // O        '83': {tclass: 'bbold'}, // S        '84': {tclass: 'bbold'}, // T        '85': {tclass: 'bbold'}, // U        '86': {tclass: 'bbold'}, // V        '87': {tclass: 'bbold'}, // W        '88': {tclass: 'bbold'}, // X        '89': {tclass: 'bbold'}, // Y        '124': {tclass: 'bbold'} }   });    jsMath.Setup.Styles({'.typeset .msbm10': 'font-family: "Arial unicode MS"'});  } });