/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _global = __webpack_require__(1);
var _global2 = _interopRequireDefault(_global);
var _compile = __webpack_require__(2);
var _compile2 = _interopRequireDefault(_compile);
var _render = __webpack_require__(48);
var _render2 = _interopRequireDefault(_render);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var compiler = (0, _compile2.default)();
var renderer = (0, _render2.default)(compiler);
var main = {
setOptions: function setOptions(compileOptions, renderOptions) {
if (compileOptions) {
compiler = (0, _compile2.default)(compileOptions);
}
if (renderOptions) {
renderer = (0, _render2.default)(compiler, renderOptions);
}
},
compile: function compile(markdownString) {
return compiler(markdownString);
},
render: function render(container, markdownString) {
renderer(container, markdownString);
}
};
_global2.default.mpr = _global2.default.markedPlusRenderer = main;
exports.default = main;
/***/ },
/* 1 */
/***/ function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
/* jshint node: true, esnext: true, loopfunc: true, undef: true, unused: true */
/* global window, global, self */
var undefStr = 'undefined';
module.exports = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) !== undefStr ? window : (typeof global === 'undefined' ? 'undefined' : _typeof(global)) !== undefStr ? global : (typeof self === 'undefined' ? 'undefined' : _typeof(self)) !== undefStr ? self : {};
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ },
/* 2 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (newOptions) {
var Renderer = _markedPlus2.default.Renderer;
var RendererPrototype = Renderer.prototype;
var renderer = new Renderer();
_markedPlus2.default.__scriptsToLoad = [];
_markedPlus2.default.__linksToLoad = [];
_markedPlus2.default.__jsCodeToLoad = '';
_markedPlus2.default.__cssCodeToLoad = '';
function add2arr(arr, items) {
_zeroLang2.default.each(items, function (item) {
item = _zeroLang2.default.trim(item);
if (item && arr.indexOf(item) === -1) {
arr.push(item);
}
});
}
renderer.listitem = function (text) {
// list item
if (!/^\[[ x]\]\s/.test(text)) {
// normal list item
return _markedPlus2.default.Renderer.prototype.listitem(text);
}
return (0, _taskListItem2.default)({
checked: /^\[x\]\s/.test(text),
text: text.substring(3)
}, templateHelper);
};
renderer.codespan = function (code) {
// inline code
if (/^\$.+\$$/.test(code)) {
// inline math typesetting
var raw = /^\$(.+)\$$/.exec(code)[1];
var line = _html2.default.unescape(raw);
try {
return _katexAll2.default.renderToString(line, {
displayMode: false
});
} catch (err) {
return (0, _sprintf2.default)('%s', err);
}
}
return RendererPrototype.codespan.apply(this, arguments);
};
renderer.code = function (code, language, escaped, lineNumber) {
// code block
code = _zeroLang2.default.trim(code);
language = language || '';
if (language === 'markdown' || language === 'md') {
return RendererPrototype.code.apply(this, arguments);
}
// html injection
if (language === 'html+') {
language = 'html';
return RendererPrototype.code.apply(this, arguments) + code;
}
if (language === 'html-') {
return code;
}
if (language === 'js+' || language === 'javascript+') {
language = 'javascript';
_markedPlus2.default.__jsCodeToLoad += '\n' + code;
return RendererPrototype.code.apply(this, arguments);
}
if (language === 'js-' || language === 'javascript-') {
_markedPlus2.default.__jsCodeToLoad += '\n' + code;
return '';
}
if (language === 'css+' || language === 'style+') {
language = 'css';
_markedPlus2.default.__cssCodeToLoad += '\n' + code;
return RendererPrototype.code.apply(this, arguments);
}
if (language === 'css-' || language === 'style-') {
_markedPlus2.default.__cssCodeToLoad += '\n' + code;
return '';
}
// load resources with link/source
if (language === 'script+') {
language = 'html';
add2arr(_markedPlus2.default.__scriptsToLoad, code.split(/\n/));
return RendererPrototype.code.apply(this, arguments);
}
if (language === 'script-') {
add2arr(_markedPlus2.default.__scriptsToLoad, code.split(/\n/));
return '';
}
if (language === 'link+') {
language = 'html';
add2arr(_markedPlus2.default.__linksToLoad, code.split(/\n/));
return RendererPrototype.code.apply(this, arguments);
}
if (language === 'link-') {
add2arr(_markedPlus2.default.__linksToLoad, code.split(/\n/));
return '';
}
if (language === 'tex-math' || language === 'katex' || language === 'math') {
// will use mathjax instead later?
var tex = '';
_zeroLang2.default.each(code.split(/\n\n/), function (line) {
// next if we have two empty lines
line = _zeroLang2.default.trim(line);
if (line.length > 0) {
try {
tex += _katexAll2.default.renderToString(line, {
displayMode: true
});
} catch (err) {
tex += (0, _sprintf2.default)('
%s', err); } } }); return (0, _math2.default)({ lineNumber: lineNumber, tex: tex }, templateHelper); } // mermaid if (language === 'gantt' || language === 'sequence' || language.match(/^graph-(?:tb|bt|rl|lr|td);?$/i)) { if (language === 'sequence') { code = 'sequenceDiagram\n' + code + '\n'; // empty line in the end or error } else if (language === 'gantt') { code = 'gantt\n' + code; } else { code = language.replace('-', ' ') + '\n' + code; } return (0, _mermaid2.default)({ code: code, type: language }, templateHelper); } // flowchart if (language === 'flowchart') { code = _zeroLang2.default.map(code.replace(/^\n/, '').split(/\n/), function (line) { // have to trim return _zeroLang2.default.trim(line); }).join('\n'); return (0, _flowchart2.default)({ code: code }, templateHelper); } return RendererPrototype.code.apply(this, arguments); }; renderer.image = function (href, title, text) { return (0, _figure2.default)({ href: href, text: text, figcaption: options.figcaption, title: title || '' }, templateHelper); }; renderer.text = function (text) { // text span var words = text.split(' '); return _zeroLang2.default.map(words, function (word) { word = _zeroLang2.default.trim(word); if (_emojiMap2.default[word]) { return (0, _emoji2.default)({ emoji: _emojiMap2.default[word] }, templateHelper); } return word; }).join(' '); }; var options = _zeroLang2.default.extend({ figcaption: true, breaks: false, pedantic: false, renderer: renderer, sanitize: false, smartLists: true, smartypants: true, tables: true }, newOptions); _markedPlus2.default.setOptions(options); return _markedPlus2.default; }; var _emojiMap = __webpack_require__(3); var _emojiMap2 = _interopRequireDefault(_emojiMap); var _katexAll = __webpack_require__(4); var _katexAll2 = _interopRequireDefault(_katexAll); var _markedPlus = __webpack_require__(27); var _markedPlus2 = _interopRequireDefault(_markedPlus); var _zeroLang = __webpack_require__(28); var _zeroLang2 = _interopRequireDefault(_zeroLang); var _html = __webpack_require__(34); var _html2 = _interopRequireDefault(_html); var _sprintf = __webpack_require__(39); var _sprintf2 = _interopRequireDefault(_sprintf); var _css = __webpack_require__(40); var _css2 = _interopRequireDefault(_css); var _emoji = __webpack_require__(41); var _emoji2 = _interopRequireDefault(_emoji); var _figure = __webpack_require__(42); var _figure2 = _interopRequireDefault(_figure); var _flowchart = __webpack_require__(43); var _flowchart2 = _interopRequireDefault(_flowchart); var _javascript = __webpack_require__(44); var _javascript2 = _interopRequireDefault(_javascript); var _math = __webpack_require__(45); var _math2 = _interopRequireDefault(_math); var _mermaid = __webpack_require__(46); var _mermaid2 = _interopRequireDefault(_mermaid); var _taskListItem = __webpack_require__(47); var _taskListItem2 = _interopRequireDefault(_taskListItem); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var templateHelper = _zeroLang2.default.extend({}, _zeroLang2.default, _html2.default); ; /***/ }, /* 3 */ /***/ function(module, exports) { module.exports = { "%)": "😕", "%-)": "😕", "0:)": "😇", "0:-)": "😇", "0:-3": "😇", "0:3": "😇", "3:)": "😈", "3:-)": "😈", "8)": "😎", "8-)": "😎", ":$": "😊", ":'(": "😢", ":(": "😦", ":)": "😃", ":))": "😄", ":*": "😗", ":+1:": "👍", ":-'(": "😢", ":-(": "😦", ":-)": "😃", ":-))": "😄", ":-/": "😒", ":-1:": "👎", ":-D": "😆", ":-O": "😮", ":-P": "😛", ":-[": "😦", ":-\\": "😒", ":-o": "😮", ":-p": "😛", ":-|": "😐", ":-||": "😠", ":/": "😒", ":100:": "💯", ":1234:": "🔢", ":8ball:": "🎱", ":@": "😠", ":D": "😆", ":O": "😮", ":P": "😛", ":[": "😦", ":\\": "😒", ":]": "😃", ":^*": "😗", ":a:": "🅰", ":ab:": "🆎", ":abc:": "🔤", ":abcd:": "🔡", ":accept:": "🉑", ":aerial_tramway:": "🚡", ":airplane:": "\u2708", ":alarm_clock:": "\u23F0", ":alien:": "👽", ":ambulance:": "🚑", ":anchor:": "\u2693", ":angel:": "👼", ":anger:": "💢", ":angry:": "😠", ":anguished:": "😧", ":ant:": "🐜", ":apple:": "🍎", ":aquarius:": "\u2652", ":aries:": "\u2648", ":arrow_backward:": "\u25C0", ":arrow_double_down:": "\u23EC", ":arrow_double_up:": "\u23EB", ":arrow_down:": "\u2B07", ":arrow_down_small:": "🔽", ":arrow_forward:": "\u25B6", ":arrow_heading_down:": "\u2935", ":arrow_heading_up:": "\u2934", ":arrow_left:": "\u2B05", ":arrow_lower_left:": "\u2199", ":arrow_lower_right:": "\u2198", ":arrow_right:": "\u27A1", ":arrow_right_hook:": "\u21AA", ":arrow_up:": "\u2B06", ":arrow_up_down:": "\u2195", ":arrow_up_small:": "🔼", ":arrow_upper_left:": "\u2196", ":arrow_upper_right:": "\u2197", ":arrows_clockwise:": "🔃", ":arrows_counterclockwise:": "🔄", ":art:": "🎨", ":articulated_lorry:": "🚛", ":astonished:": "😲", ":athletic_shoe:": "👟", ":atm:": "🏧", ":b:": "🅱", ":baby:": "👶", ":baby_bottle:": "🍼", ":baby_chick:": "🐤", ":baby_symbol:": "🚼", ":back:": "🔙", ":baggage_claim:": "🛄", ":balloon:": "🎈", ":ballot_box_with_check:": "\u2611", ":bamboo:": "🎍", ":banana:": "🍌", ":bangbang:": "\u203C", ":bank:": "🏦", ":bar_chart:": "📊", ":barber:": "💈", ":baseball:": "\u26BE", ":basketball:": "🏀", ":bath:": "🛀", ":bathtub:": "🛁", ":battery:": "🔋", ":bear:": "🐻", ":bee:": "🐝", ":beer:": "🍺", ":beers:": "🍻", ":beetle:": "🐞", ":beginner:": "🔰", ":bell:": "🔔", ":bento:": "🍱", ":bicyclist:": "🚴", ":bike:": "🚲", ":bikini:": "👙", ":bird:": "🐦", ":birthday:": "🎂", ":black_circle:": "\u26AB", ":black_joker:": "🃏", ":black_large_square:": "\u2B1B", ":black_medium_small_square:": "\u25FE", ":black_medium_square:": "\u25FC", ":black_nib:": "\u2712", ":black_small_square:": "\u25AA", ":black_square_button:": "🔲", ":blossom:": "🌼", ":blowfish:": "🐡", ":blue_book:": "📘", ":blue_car:": "🚙", ":blue_heart:": "💙", ":blush:": "😊", ":boar:": "🐗", ":boat:": "\u26F5", ":bomb:": "💣", ":book:": "📖", ":bookmark:": "🔖", ":bookmark_tabs:": "📑", ":books:": "📚", ":boom:": "💥", ":boot:": "👢", ":bouquet:": "💐", ":bow:": "🙇", ":bowling:": "🎳", ":boy:": "👦", ":bread:": "🍞", ":bride_with_veil:": "👰", ":bridge_at_night:": "🌉", ":briefcase:": "💼", ":broken_heart:": "💔", ":bug:": "🐛", ":bulb:": "💡", ":bullettrain_front:": "🚅", ":bullettrain_side:": "🚄", ":bus:": "🚌", ":busstop:": "🚏", ":bust_in_silhouette:": "👤", ":busts_in_silhouette:": "👥", ":cactus:": "🌵", ":cake:": "🍰", ":calendar:": "📆", ":calling:": "📲", ":camel:": "🐫", ":camera:": "📷", ":cancer:": "\u264B", ":candy:": "🍬", ":capital_abcd:": "🔠", ":capricorn:": "\u2651", ":car:": "🚗", ":card_index:": "📇", ":carousel_horse:": "🎠", ":cat2:": "🐈", ":cat:": "🐱", ":cd:": "💿", ":chart:": "💹", ":chart_with_downwards_trend:": "📉", ":chart_with_upwards_trend:": "📈", ":checkered_flag:": "🏁", ":cherries:": "🍒", ":cherry_blossom:": "🌸", ":chestnut:": "🌰", ":chicken:": "🐔", ":children_crossing:": "🚸", ":chocolate_bar:": "🍫", ":christmas_tree:": "🎄", ":church:": "\u26EA", ":cinema:": "🎦", ":circus_tent:": "🎪", ":city_sunrise:": "🌇", ":city_sunset:": "🌆", ":cl:": "🆑", ":clap:": "👏", ":clapper:": "🎬", ":clipboard:": "📋", ":clock1030:": "🕥", ":clock10:": "🕙", ":clock1130:": "🕦", ":clock11:": "🕚", ":clock1230:": "🕧", ":clock12:": "🕛", ":clock130:": "🕜", ":clock1:": "🕐", ":clock230:": "🕝", ":clock2:": "🕑", ":clock330:": "🕞", ":clock3:": "🕒", ":clock430:": "🕟", ":clock4:": "🕓", ":clock530:": "🕠", ":clock5:": "🕔", ":clock630:": "🕡", ":clock6:": "🕕", ":clock730:": "🕢", ":clock7:": "🕖", ":clock830:": "🕣", ":clock8:": "🕗", ":clock930:": "🕤", ":clock9:": "🕘", ":closed_book:": "📕", ":closed_lock_with_key:": "🔐", ":closed_umbrella:": "🌂", ":cloud:": "\u2601", ":clubs:": "\u2663", ":cocktail:": "🍸", ":coffee:": "\u2615", ":cold_sweat:": "😰", ":collision:": "💥", ":computer:": "💻", ":confetti_ball:": "🎊", ":confounded:": "😖", ":confused:": "😕", ":congratulations:": "\u3297", ":construction:": "🚧", ":construction_worker:": "👷", ":convenience_store:": "🏪", ":cookie:": "🍪", ":cool:": "🆒", ":cop:": "👮", ":copyright:": "\u00A9", ":corn:": "🌽", ":couple:": "👫", ":couple_with_heart:": "💑", ":couplekiss:": "💏", ":cow2:": "🐄", ":cow:": "🐮", ":credit_card:": "💳", ":crocodile:": "🐊", ":crossed_flags:": "🎌", ":crown:": "👑", ":cry:": "😢", ":crying_cat_face:": "😿", ":crystal_ball:": "🔮", ":cupid:": "💘", ":curly_loop:": "\u27B0", ":currency_exchange:": "💱", ":curry:": "🍛", ":custard:": "🍮", ":customs:": "🛃", ":cyclone:": "🌀", ":dancer:": "💃", ":dancers:": "👯", ":dango:": "🍡", ":dart:": "🎯", ":dash:": "💨", ":date:": "📅", ":deciduous_tree:": "🌳", ":department_store:": "🏬", ":diamond_shape_with_a_dot_inside:": "💠", ":diamonds:": "\u2666", ":disappointed:": "😞", ":disappointed_relieved:": "😥", ":dizzy:": "💫", ":dizzy_face:": "😵", ":do_not_litter:": "🚯", ":dog2:": "🐕", ":dog:": "🐶", ":dollar:": "💵", ":dolls:": "🎎", ":dolphin:": "🐬", ":door:": "🚪", ":doughnut:": "🍩", ":dragon:": "🐉", ":dragon_face:": "🐲", ":dress:": "👗", ":dromedary_camel:": "🐪", ":droplet:": "💧", ":dvd:": "📀", ":e-mail:": "📧", ":ear:": "👂", ":ear_of_rice:": "🌾", ":earth_africa:": "🌍", ":earth_americas:": "🌎", ":earth_asia:": "🌏", ":egg:": "🍳", ":eggplant:": "🍆", ":eight_pointed_black_star:": "\u2734", ":eight_spoked_asterisk:": "\u2733", ":electric_plug:": "🔌", ":elephant:": "🐘", ":email:": "\u2709", ":end:": "🔚", ":envelope:": "\u2709", ":envelope_with_arrow:": "📩", ":euro:": "💶", ":european_castle:": "🏰", ":european_post_office:": "🏤", ":evergreen_tree:": "🌲", ":exclamation:": "\u2757", ":expressionless:": "😑", ":eyeglasses:": "👓", ":eyes:": "👀", ":facepunch:": "👊", ":factory:": "🏭", ":fallen_leaf:": "🍂", ":family:": "👪", ":fast_forward:": "\u23E9", ":fax:": "📠", ":fearful:": "😨", ":feet:": "🐾", ":ferris_wheel:": "🎡", ":file_folder:": "📁", ":fire:": "🔥", ":fire_engine:": "🚒", ":fireworks:": "🎆", ":first_quarter_moon:": "🌓", ":first_quarter_moon_with_face:": "🌛", ":fish:": "🐟", ":fish_cake:": "🍥", ":fishing_pole_and_fish:": "🎣", ":fist:": "\u270A", ":flags:": "🎏", ":flashlight:": "🔦", ":floppy_disk:": "💾", ":flower_playing_cards:": "🎴", ":flushed:": "😳", ":foggy:": "🌁", ":football:": "🏈", ":footprints:": "👣", ":fork_and_knife:": "🍴", ":fountain:": "\u26F2", ":four_leaf_clover:": "🍀", ":free:": "🆓", ":fried_shrimp:": "🍤", ":fries:": "🍟", ":frog:": "🐸", ":frowning:": "😦", ":fuelpump:": "\u26FD", ":full_moon:": "🌕", ":full_moon_with_face:": "🌝", ":game_die:": "🎲", ":gem:": "💎", ":gemini:": "\u264A", ":ghost:": "👻", ":gift:": "🎁", ":gift_heart:": "💝", ":girl:": "👧", ":globe_with_meridians:": "🌐", ":goat:": "🐐", ":golf:": "\u26F3", ":grapes:": "🍇", ":green_apple:": "🍏", ":green_book:": "📗", ":green_heart:": "💚", ":grey_exclamation:": "\u2755", ":grey_question:": "\u2754", ":grimacing:": "😬", ":grin:": "😁", ":grinning:": "😀", ":guardsman:": "💂", ":guitar:": "🎸", ":gun:": "🔫", ":haircut:": "💇", ":halo:": "😇", ":hamburger:": "🍔", ":hammer:": "🔨", ":hamster:": "🐹", ":hand:": "\u270B", ":handbag:": "👜", ":hankey:": "💩", ":hatched_chick:": "🐥", ":hatching_chick:": "🐣", ":headphones:": "🎧", ":hear_no_evil:": "🙉", ":heart:": "\u2764", ":heart_decoration:": "💟", ":heart_eyes:": "😍", ":heart_eyes_cat:": "😻", ":heartbeat:": "💓", ":heartpulse:": "💗", ":hearts:": "\u2665", ":heavy_check_mark:": "\u2714", ":heavy_division_sign:": "\u2797", ":heavy_dollar_sign:": "💲", ":heavy_exclamation_mark:": "\u2757", ":heavy_minus_sign:": "\u2796", ":heavy_multiplication_x:": "\u2716", ":heavy_plus_sign:": "\u2795", ":helicopter:": "🚁", ":herb:": "🌿", ":hibiscus:": "🌺", ":high_brightness:": "🔆", ":high_heel:": "👠", ":hocho:": "🔪", ":honey_pot:": "🍯", ":honeybee:": "🐝", ":horse:": "🐴", ":horse_racing:": "🏇", ":hospital:": "🏥", ":hotel:": "🏨", ":hotsprings:": "\u2668", ":hourglass:": "\u231B", ":hourglass_flowing_sand:": "\u23F3", ":house:": "🏠", ":house_with_garden:": "🏡", ":hushed:": "😯", ":ice_cream:": "🍨", ":icecream:": "🍦", ":id:": "🆔", ":ideograph_advantage:": "🉐", ":imp:": "👿", ":inbox_tray:": "📥", ":incoming_envelope:": "📨", ":information_desk_person:": "💁", ":information_source:": "\u2139", ":innocent:": "😇", ":interrobang:": "\u2049", ":iphone:": "📱", ":izakaya_lantern:": "🏮", ":jack_o_lantern:": "🎃", ":japan:": "🗾", ":japanese_castle:": "🏯", ":japanese_goblin:": "👺", ":japanese_ogre:": "👹", ":jeans:": "👖", ":joy:": "😂", ":joy_cat:": "😹", ":key:": "🔑", ":keycap_ten:": "🔟", ":kimono:": "👘", ":kiss:": "💋", ":kissing:": "😗", ":kissing_cat:": "😽", ":kissing_closed_eyes:": "😚", ":kissing_heart:": "😘", ":kissing_smiling_eyes:": "😙", ":koala:": "🐨", ":koko:": "🈁", ":large_blue_circle:": "🔵", ":large_blue_diamond:": "🔷", ":large_orange_diamond:": "🔶", ":last_quarter_moon:": "🌗", ":last_quarter_moon_with_face:": "🌜", ":laugh:": "😆", ":laughing:": "😆", ":leaves:": "🍃", ":ledger:": "📒", ":left_luggage:": "🛅", ":left_right_arrow:": "\u2194", ":leftwards_arrow_with_hook:": "\u21A9", ":lemon:": "🍋", ":leo:": "\u264C", ":leopard:": "🐆", ":libra:": "\u264E", ":light_rail:": "🚈", ":link:": "🔗", ":lips:": "👄", ":lipstick:": "💄", ":lock:": "🔒", ":lock_with_ink_pen:": "🔏", ":lollipop:": "🍭", ":loop:": "\u27BF", ":loudspeaker:": "📢", ":love_hotel:": "🏩", ":love_letter:": "💌", ":low_brightness:": "🔅", ":m:": "\u24C2", ":mag:": "🔍", ":mag_right:": "🔎", ":mahjong:": "🀄", ":mailbox:": "📫", ":mailbox_closed:": "📪", ":mailbox_with_mail:": "📬", ":mailbox_with_no_mail:": "📭", ":man:": "👨", ":man_with_gua_pi_mao:": "👲", ":man_with_turban:": "👳", ":mans_shoe:": "👞", ":maple_leaf:": "🍁", ":mask:": "😷", ":massage:": "💆", ":meat_on_bone:": "🍖", ":mega:": "📣", ":melon:": "🍈", ":memo:": "📝", ":mens:": "🚹", ":metro:": "🚇", ":microphone:": "🎤", ":microscope:": "🔬", ":milky_way:": "🌌", ":minibus:": "🚐", ":minidisc:": "💽", ":mobile_phone_off:": "📴", ":money_with_wings:": "💸", ":moneybag:": "💰", ":monkey:": "🐒", ":monkey_face:": "🐵", ":monorail:": "🚝", ":moon:": "🌙", ":mortar_board:": "🎓", ":mount_fuji:": "🗻", ":mountain_bicyclist:": "🚵", ":mountain_cableway:": "🚠", ":mountain_railway:": "🚞", ":mouse2:": "🐁", ":mouse:": "🐭", ":movie_camera:": "🎥", ":moyai:": "🗿", ":muscle:": "💪", ":mushroom:": "🍄", ":musical_keyboard:": "🎹", ":musical_note:": "🎵", ":musical_score:": "🎼", ":mute:": "🔇", ":nail_care:": "💅", ":name_badge:": "📛", ":necktie:": "👔", ":negative_squared_cross_mark:": "\u274E", ":neutral_face:": "😐", ":new:": "🆕", ":new_moon:": "🌑", ":new_moon_with_face:": "🌚", ":newspaper:": "📰", ":ng:": "🆖", ":no_bell:": "🔕", ":no_bicycles:": "🚳", ":no_entry:": "\u26D4", ":no_entry_sign:": "🚫", ":no_good:": "🙅", ":no_mobile_phones:": "📵", ":no_mouth:": "😶", ":no_pedestrians:": "🚷", ":no_smoking:": "🚭", ":non-potable_water:": "🚱", ":nose:": "👃", ":notebook:": "📓", ":notebook_with_decorative_cover:": "📔", ":notes:": "🎶", ":nut_and_bolt:": "🔩", ":o": "😮", ":o)": "😃", ":o2:": "🅾", ":o:": "\u2B55", ":ocean:": "🌊", ":octopus:": "🐙", ":oden:": "🍢", ":office:": "🏢", ":ok:": "🆗", ":ok_hand:": "👌", ":ok_woman:": "🙆", ":older_man:": "👴", ":older_woman:": "👵", ":on:": "🔛", ":oncoming_automobile:": "🚘", ":oncoming_bus:": "🚍", ":oncoming_police_car:": "🚔", ":oncoming_taxi:": "🚖", ":open_book:": "📖", ":open_file_folder:": "📂", ":open_hands:": "👐", ":open_mouth:": "😮", ":ophiuchus:": "\u26CE", ":orange_book:": "📙", ":outbox_tray:": "📤", ":ox:": "🐂", ":p": "😛", ":package:": "📦", ":page_facing_up:": "📄", ":page_with_curl:": "📃", ":pager:": "📟", ":palm_tree:": "🌴", ":panda_face:": "🐼", ":paperclip:": "📎", ":parking:": "🅿", ":part_alternation_mark:": "\u303D", ":partly_sunny:": "\u26C5", ":passport_control:": "🛂", ":paw_prints:": "🐾", ":peach:": "🍑", ":pear:": "🍐", ":pencil2:": "\u270F", ":pencil:": "📝", ":penguin:": "🐧", ":pensive:": "😔", ":performing_arts:": "🎭", ":persevere:": "😣", ":person_frowning:": "🙍", ":person_with_blond_hair:": "👱", ":person_with_pouting_face:": "🙎", ":phone:": "\u260E", ":pig2:": "🐖", ":pig:": "🐷", ":pig_nose:": "🐽", ":pill:": "💊", ":pineapple:": "🍍", ":pisces:": "\u2653", ":pizza:": "🍕", ":point_down:": "👇", ":point_left:": "👈", ":point_right:": "👉", ":point_up:": "\u261D", ":point_up_2:": "👆", ":police_car:": "🚓", ":poodle:": "🐩", ":poop:": "💩", ":post_office:": "🏣", ":postal_horn:": "📯", ":postbox:": "📮", ":potable_water:": "🚰", ":pouch:": "👝", ":poultry_leg:": "🍗", ":pound:": "💷", ":pouting_cat:": "😾", ":pray:": "🙏", ":princess:": "👸", ":punch:": "👊", ":purple_heart:": "💜", ":purse:": "👛", ":pushpin:": "📌", ":put_litter_in_its_place:": "🚮", ":question:": "\u2753", ":rabbit2:": "🐇", ":rabbit:": "🐰", ":racehorse:": "🐎", ":radio:": "📻", ":radio_button:": "🔘", ":rage:": "😡", ":railway_car:": "🚃", ":rainbow:": "🌈", ":raised_hand:": "\u270B", ":raised_hands:": "🙌", ":raising_hand:": "🙋", ":ram:": "🐏", ":ramen:": "🍜", ":rat:": "🐀", ":recycle:": "\u267B", ":red_car:": "🚗", ":red_circle:": "🔴", ":registered:": "\u00AE", ":relaxed:": "\u263A", ":relieved:": "😌", ":repeat:": "🔁", ":repeat_one:": "🔂", ":restroom:": "🚻", ":revolving_hearts:": "💞", ":rewind:": "\u23EA", ":ribbon:": "🎀", ":rice:": "🍚", ":rice_ball:": "🍙", ":rice_cracker:": "🍘", ":rice_scene:": "🎑", ":ring:": "💍", ":rocket:": "🚀", ":roller_coaster:": "🎢", ":rooster:": "🐓", ":rose:": "🌹", ":rotating_light:": "🚨", ":round_pushpin:": "📍", ":rowboat:": "🚣", ":rugby_football:": "🏉", ":runner:": "🏃", ":running:": "🏃", ":running_shirt_with_sash:": "🎽", ":sa:": "🈂", ":sagittarius:": "\u2650", ":sailboat:": "\u26F5", ":sake:": "🍶", ":sandal:": "👡", ":santa:": "🎅", ":satellite:": "📡", ":satisfied:": "😆", ":saxophone:": "🎷", ":school:": "🏫", ":school_satchel:": "🎒", ":scissors:": "\u2702", ":scorpius:": "\u264F", ":scream:": "😱", ":scream_cat:": "🙀", ":scroll:": "📜", ":seat:": "💺", ":secret:": "\u3299", ":see_no_evil:": "🙈", ":seedling:": "🌱", ":shaved_ice:": "🍧", ":sheep:": "🐑", ":shell:": "🐚", ":ship:": "🚢", ":shirt:": "👕", ":shit:": "💩", ":shoe:": "👞", ":shower:": "🚿", ":signal_strength:": "📶", ":six_pointed_star:": "🔯", ":ski:": "🎿", ":skull:": "💀", ":sleeping:": "😴", ":sleepy:": "😪", ":slot_machine:": "🎰", ":small_blue_diamond:": "🔹", ":small_orange_diamond:": "🔸", ":small_red_triangle:": "🔺", ":small_red_triangle_down:": "🔻", ":smile:": "😄", ":smile_cat:": "😸", ":smiley:": "😃", ":smiley_cat:": "😺", ":smiling_imp:": "😈", ":smirk:": "😏", ":smirk_cat:": "😼", ":smoking:": "🚬", ":snail:": "🐌", ":snake:": "🐍", ":snowboarder:": "🏂", ":snowflake:": "\u2744", ":snowman:": "\u26C4", ":sob:": "😭", ":soccer:": "\u26BD", ":soon:": "🔜", ":sos:": "🆘", ":sound:": "🔉", ":space_invader:": "👾", ":spades:": "\u2660", ":spaghetti:": "🍝", ":sparkle:": "\u2747", ":sparkler:": "🎇", ":sparkles:": "\u2728", ":sparkling_heart:": "💖", ":speak_no_evil:": "🙊", ":speaker:": "🔊", ":speech_balloon:": "💬", ":speedboat:": "🚤", ":star2:": "🌟", ":star:": "\u2B50", ":stars:": "🌃", ":station:": "🚉", ":statue_of_liberty:": "🗽", ":steam_locomotive:": "🚂", ":stew:": "🍲", ":straight_ruler:": "📏", ":strawberry:": "🍓", ":stuck_out_tongue:": "😛", ":stuck_out_tongue_closed_eyes:": "😝", ":stuck_out_tongue_winking_eye:": "😜", ":sun_with_face:": "🌞", ":sunflower:": "🌻", ":sunglasses:": "😎", ":sunny:": "\u2600", ":sunrise:": "🌅", ":sunrise_over_mountains:": "🌄", ":surfer:": "🏄", ":sushi:": "🍣", ":suspension_railway:": "🚟", ":sweat:": "😓", ":sweat_drops:": "💦", ":sweat_smile:": "😅", ":sweet_potato:": "🍠", ":swimmer:": "🏊", ":symbols:": "🔣", ":syringe:": "💉", ":tada:": "🎉", ":tanabata_tree:": "🎋", ":tangerine:": "🍊", ":taurus:": "\u2649", ":taxi:": "🚕", ":tea:": "🍵", ":telephone:": "\u260E", ":telephone_receiver:": "📞", ":telescope:": "🔭", ":tennis:": "🎾", ":tent:": "\u26FA", ":thought_balloon:": "💭", ":thumbsdown:": "👎", ":thumbsup:": "👍", ":ticket:": "🎫", ":tiger2:": "🐅", ":tiger:": "🐯", ":tired_face:": "😫", ":tm:": "\u2122", ":toilet:": "🚽", ":tokyo_tower:": "🗼", ":tomato:": "🍅", ":tongue:": "👅", ":top:": "🔝", ":tophat:": "🎩", ":tractor:": "🚜", ":traffic_light:": "🚥", ":train2:": "🚆", ":train:": "🚃", ":tram:": "🚊", ":triangular_flag_on_post:": "🚩", ":triangular_ruler:": "📐", ":trident:": "🔱", ":triumph:": "😤", ":trolleybus:": "🚎", ":trophy:": "🏆", ":tropical_drink:": "🍹", ":tropical_fish:": "🐠", ":truck:": "🚚", ":trumpet:": "🎺", ":tshirt:": "👕", ":tulip:": "🌷", ":turtle:": "🐢", ":tv:": "📺", ":twisted_rightwards_arrows:": "🔀", ":two_hearts:": "💕", ":two_men_holding_hands:": "👬", ":two_women_holding_hands:": "👭", ":u5272:": "🈹", ":u5408:": "🈴", ":u55b6:": "🈺", ":u6307:": "🈯", ":u6708:": "🈷", ":u6709:": "🈶", ":u6e80:": "🈵", ":u7121:": "🈚", ":u7533:": "🈸", ":u7981:": "🈲", ":u7a7a:": "🈳", ":umbrella:": "\u2614", ":unamused:": "😒", ":underage:": "🔞", ":unlock:": "🔓", ":up:": "🆙", ":v:": "\u270C", ":vertical_traffic_light:": "🚦", ":vhs:": "📼", ":vibration_mode:": "📳", ":video_camera:": "📹", ":video_game:": "🎮", ":violin:": "🎻", ":virgo:": "\u264D", ":volcano:": "🌋", ":vs:": "🆚", ":walking:": "🚶", ":waning_crescent_moon:": "🌘", ":waning_gibbous_moon:": "🌖", ":warning:": "\u26A0", ":watch:": "\u231A", ":water_buffalo:": "🐃", ":watermelon:": "🍉", ":wave:": "👋", ":wavy_dash:": "\u3030", ":waxing_crescent_moon:": "🌒", ":waxing_gibbous_moon:": "🌔", ":wc:": "🚾", ":weary:": "😩", ":wedding:": "💒", ":whale2:": "🐋", ":whale:": "🐳", ":wheelchair:": "\u267F", ":white_check_mark:": "\u2705", ":white_circle:": "\u26AA", ":white_flower:": "💮", ":white_large_square:": "\u2B1C", ":white_medium_small_square:": "\u25FD", ":white_medium_square:": "\u25FB", ":white_small_square:": "\u25AB", ":white_square_button:": "🔳", ":wind_chime:": "🎐", ":wine_glass:": "🍷", ":wink:": "😉", ":wolf:": "🐺", ":woman:": "👩", ":womans_clothes:": "👚", ":womans_hat:": "👒", ":womens:": "🚺", ":worried:": "😟", ":wrench:": "🔧", ":x:": "\u274C", ":yellow_heart:": "💛", ":yen:": "💴", ":yum:": "😋", ":zap:": "\u26A1", ":zzz:": "💤", ":|": "😐", ";)": "😉", ";-)": "😉", ">:(": "😠", "X-D": "😁", "X-P": "😝", "X-p": "😝", "XD": "😁", "XP": "😝", "Xp": "😝", "x-D": "😁", "x-P": "😝", "xD": "😁", "xP": "😝", "}:)": "😈", "}:-)": "😈" }; /***/ }, /* 4 */ /***/ function(module, exports, __webpack_require__) { /* eslint no-console:0 */ /** * This is the main entry point for KaTeX. Here, we expose functions for * rendering expressions either to DOM nodes or to markup strings. * * We also expose the ParseError class to check if errors thrown from KaTeX are * errors in the expression, or errors in javascript handling. */ var ParseError = __webpack_require__(5); var Settings = __webpack_require__(6); var buildTree = __webpack_require__(7); var parseTree = __webpack_require__(20); var utils = __webpack_require__(12); /** * Parse and build an expression, and place that expression in the DOM node * given. */ var render = function(expression, baseNode, options) { utils.clearNode(baseNode); var settings = new Settings(options); var tree = parseTree(expression, settings); var node = buildTree(tree, expression, settings).toNode(); baseNode.appendChild(node); }; // KaTeX's styles don't work properly in quirks mode. Print out an error, and // disable rendering. if (typeof document !== "undefined") { if (document.compatMode !== "CSS1Compat") { typeof console !== "undefined" && console.warn( "Warning: KaTeX doesn't work in quirks mode. Make sure your " + "website has a suitable doctype."); render = function() { throw new ParseError("KaTeX doesn't work in quirks mode."); }; } } /** * Parse and build an expression, and return the markup for that. */ var renderToString = function(expression, options) { var settings = new Settings(options); var tree = parseTree(expression, settings); return buildTree(tree, expression, settings).toMarkup(); }; /** * Parse an expression and return the parse tree. */ var generateParseTree = function(expression, options) { var settings = new Settings(options); return parseTree(expression, settings); }; module.exports = { render: render, renderToString: renderToString, /** * NOTE: This method is not currently recommended for public use. * The internal tree representation is unstable and is very likely * to change. Use at your own risk. */ __parse: generateParseTree, ParseError: ParseError, }; /***/ }, /* 5 */ /***/ function(module, exports) { /** * This is the ParseError class, which is the main error thrown by KaTeX * functions when something has gone wrong. This is used to distinguish internal * errors from errors in the expression that the user provided. */ function ParseError(message, lexer, position) { var error = "KaTeX parse error: " + message; if (lexer !== undefined && position !== undefined) { // If we have the input and a position, make the error a bit fancier // Prepend some information error += " at position " + position + ": "; // Get the input var input = lexer._input; // Insert a combining underscore at the correct position input = input.slice(0, position) + "\u0332" + input.slice(position); // Extract some context from the input and add it to the error var begin = Math.max(0, position - 15); var end = position + 15; error += input.slice(begin, end); } // Some hackery to make ParseError a prototype of Error // See http://stackoverflow.com/a/8460753 var self = new Error(error); self.name = "ParseError"; self.__proto__ = ParseError.prototype; self.position = position; return self; } // More hackery ParseError.prototype.__proto__ = Error.prototype; module.exports = ParseError; /***/ }, /* 6 */ /***/ function(module, exports) { /** * This is a module for storing settings passed into KaTeX. It correctly handles * default settings. */ /** * Helper function for getting a default value if the value is undefined */ function get(option, defaultValue) { return option === undefined ? defaultValue : option; } /** * The main Settings object * * The current options stored are: * - displayMode: Whether the expression should be typeset by default in * textstyle or displaystyle (default false) */ function Settings(options) { // allow null options options = options || {}; this.displayMode = get(options.displayMode, false); this.throwOnError = get(options.throwOnError, true); this.errorColor = get(options.errorColor, "#cc0000"); } module.exports = Settings; /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { var buildHTML = __webpack_require__(8); var buildMathML = __webpack_require__(17); var buildCommon = __webpack_require__(10); var Options = __webpack_require__(19); var Settings = __webpack_require__(6); var Style = __webpack_require__(9); var makeSpan = buildCommon.makeSpan; var buildTree = function(tree, expression, settings) { settings = settings || new Settings({}); var startStyle = Style.TEXT; if (settings.displayMode) { startStyle = Style.DISPLAY; } // Setup the default options var options = new Options({ style: startStyle, size: "size5", }); // `buildHTML` sometimes messes with the parse tree (like turning bins -> // ords), so we build the MathML version first. var mathMLNode = buildMathML(tree, expression, options); var htmlNode = buildHTML(tree, options); var katexNode = makeSpan(["katex"], [ mathMLNode, htmlNode, ]); if (settings.displayMode) { return makeSpan(["katex-display"], [katexNode]); } else { return katexNode; } }; module.exports = buildTree; /***/ }, /* 8 */ /***/ function(module, exports, __webpack_require__) { /* eslint no-console:0 */ /** * This file does the main work of building a domTree structure from a parse * tree. The entry point is the `buildHTML` function, which takes a parse tree. * Then, the buildExpression, buildGroup, and various groupTypes functions are * called, to produce a final HTML tree. */ var ParseError = __webpack_require__(5); var Style = __webpack_require__(9); var buildCommon = __webpack_require__(10); var delimiter = __webpack_require__(16); var domTree = __webpack_require__(11); var fontMetrics = __webpack_require__(13); var utils = __webpack_require__(12); var makeSpan = buildCommon.makeSpan; /** * Take a list of nodes, build them in order, and return a list of the built * nodes. This function handles the `prev` node correctly, and passes the * previous element from the list as the prev of the next element. */ var buildExpression = function(expression, options, prev) { var groups = []; for (var i = 0; i < expression.length; i++) { var group = expression[i]; groups.push(buildGroup(group, options, prev)); prev = group; } return groups; }; // List of types used by getTypeOfGroup, // see https://github.com/Khan/KaTeX/wiki/Examining-TeX#group-types var groupToType = { mathord: "mord", textord: "mord", bin: "mbin", rel: "mrel", text: "mord", open: "mopen", close: "mclose", inner: "minner", genfrac: "mord", array: "mord", spacing: "mord", punct: "mpunct", ordgroup: "mord", op: "mop", katex: "mord", overline: "mord", rule: "mord", leftright: "minner", sqrt: "mord", accent: "mord", }; /** * Gets the final math type of an expression, given its group type. This type is * used to determine spacing between elements, and affects bin elements by * causing them to change depending on what types are around them. This type * must be attached to the outermost node of an element as a CSS class so that * spacing with its surrounding elements works correctly. * * Some elements can be mapped one-to-one from group type to math type, and * those are listed in the `groupToType` table. * * Others (usually elements that wrap around other elements) often have * recursive definitions, and thus call `getTypeOfGroup` on their inner * elements. */ var getTypeOfGroup = function(group) { if (group == null) { // Like when typesetting $^3$ return groupToType.mathord; } else if (group.type === "supsub") { return getTypeOfGroup(group.value.base); } else if (group.type === "llap" || group.type === "rlap") { return getTypeOfGroup(group.value); } else if (group.type === "color") { return getTypeOfGroup(group.value.value); } else if (group.type === "sizing") { return getTypeOfGroup(group.value.value); } else if (group.type === "styling") { return getTypeOfGroup(group.value.value); } else if (group.type === "delimsizing") { return groupToType[group.value.delimType]; } else { return groupToType[group.type]; } }; /** * Sometimes, groups perform special rules when they have superscripts or * subscripts attached to them. This function lets the `supsub` group know that * its inner element should handle the superscripts and subscripts instead of * handling them itself. */ var shouldHandleSupSub = function(group, options) { if (!group) { return false; } else if (group.type === "op") { // Operators handle supsubs differently when they have limits // (e.g. `\displaystyle\sum_2^3`) return group.value.limits && (options.style.size === Style.DISPLAY.size || group.value.alwaysHandleSupSub); } else if (group.type === "accent") { return isCharacterBox(group.value.base); } else { return null; } }; /** * Sometimes we want to pull out the innermost element of a group. In most * cases, this will just be the group itself, but when ordgroups and colors have * a single element, we want to pull that out. */ var getBaseElem = function(group) { if (!group) { return false; } else if (group.type === "ordgroup") { if (group.value.length === 1) { return getBaseElem(group.value[0]); } else { return group; } } else if (group.type === "color") { if (group.value.value.length === 1) { return getBaseElem(group.value.value[0]); } else { return group; } } else { return group; } }; /** * TeXbook algorithms often reference "character boxes", which are simply groups * with a single character in them. To decide if something is a character box, * we find its innermost group, and see if it is a single character. */ var isCharacterBox = function(group) { var baseElem = getBaseElem(group); // These are all they types of groups which hold single characters return baseElem.type === "mathord" || baseElem.type === "textord" || baseElem.type === "bin" || baseElem.type === "rel" || baseElem.type === "inner" || baseElem.type === "open" || baseElem.type === "close" || baseElem.type === "punct"; }; var makeNullDelimiter = function(options) { return makeSpan([ "sizing", "reset-" + options.size, "size5", options.style.reset(), Style.TEXT.cls(), "nulldelimiter", ]); }; /** * This is a map of group types to the function used to handle that type. * Simpler types come at the beginning, while complicated types come afterwards. */ var groupTypes = {}; groupTypes.mathord = function(group, options, prev) { return buildCommon.makeOrd(group, options, "mathord"); }; groupTypes.textord = function(group, options, prev) { return buildCommon.makeOrd(group, options, "textord"); }; groupTypes.bin = function(group, options, prev) { var className = "mbin"; // Pull out the most recent element. Do some special handling to find // things at the end of a \color group. Note that we don't use the same // logic for ordgroups (which count as ords). var prevAtom = prev; while (prevAtom && prevAtom.type === "color") { var atoms = prevAtom.value.value; prevAtom = atoms[atoms.length - 1]; } // See TeXbook pg. 442-446, Rules 5 and 6, and the text before Rule 19. // Here, we determine whether the bin should turn into an ord. We // currently only apply Rule 5. if (!prev || utils.contains(["mbin", "mopen", "mrel", "mop", "mpunct"], getTypeOfGroup(prevAtom))) { group.type = "textord"; className = "mord"; } return buildCommon.mathsym( group.value, group.mode, options.getColor(), [className]); }; groupTypes.rel = function(group, options, prev) { return buildCommon.mathsym( group.value, group.mode, options.getColor(), ["mrel"]); }; groupTypes.open = function(group, options, prev) { return buildCommon.mathsym( group.value, group.mode, options.getColor(), ["mopen"]); }; groupTypes.close = function(group, options, prev) { return buildCommon.mathsym( group.value, group.mode, options.getColor(), ["mclose"]); }; groupTypes.inner = function(group, options, prev) { return buildCommon.mathsym( group.value, group.mode, options.getColor(), ["minner"]); }; groupTypes.punct = function(group, options, prev) { return buildCommon.mathsym( group.value, group.mode, options.getColor(), ["mpunct"]); }; groupTypes.ordgroup = function(group, options, prev) { return makeSpan( ["mord", options.style.cls()], buildExpression(group.value, options.reset()) ); }; groupTypes.text = function(group, options, prev) { return makeSpan(["text", "mord", options.style.cls()], buildExpression(group.value.body, options.reset())); }; groupTypes.color = function(group, options, prev) { var elements = buildExpression( group.value.value, options.withColor(group.value.color), prev ); // \color isn't supposed to affect the type of the elements it contains. // To accomplish this, we wrap the results in a fragment, so the inner // elements will be able to directly interact with their neighbors. For // example, `\color{red}{2 +} 3` has the same spacing as `2 + 3` return new buildCommon.makeFragment(elements); }; groupTypes.supsub = function(group, options, prev) { // Superscript and subscripts are handled in the TeXbook on page // 445-446, rules 18(a-f). // Here is where we defer to the inner group if it should handle // superscripts and subscripts itself. if (shouldHandleSupSub(group.value.base, options)) { return groupTypes[group.value.base.type](group, options, prev); } var base = buildGroup(group.value.base, options.reset()); var supmid; var submid; var sup; var sub; if (group.value.sup) { sup = buildGroup(group.value.sup, options.withStyle(options.style.sup())); supmid = makeSpan( [options.style.reset(), options.style.sup().cls()], [sup]); } if (group.value.sub) { sub = buildGroup(group.value.sub, options.withStyle(options.style.sub())); submid = makeSpan( [options.style.reset(), options.style.sub().cls()], [sub]); } // Rule 18a var supShift; var subShift; if (isCharacterBox(group.value.base)) { supShift = 0; subShift = 0; } else { supShift = base.height - fontMetrics.metrics.supDrop; subShift = base.depth + fontMetrics.metrics.subDrop; } // Rule 18c var minSupShift; if (options.style === Style.DISPLAY) { minSupShift = fontMetrics.metrics.sup1; } else if (options.style.cramped) { minSupShift = fontMetrics.metrics.sup3; } else { minSupShift = fontMetrics.metrics.sup2; } // scriptspace is a font-size-independent size, so scale it // appropriately var multiplier = Style.TEXT.sizeMultiplier * options.style.sizeMultiplier; var scriptspace = (0.5 / fontMetrics.metrics.ptPerEm) / multiplier + "em"; var supsub; if (!group.value.sup) { // Rule 18b subShift = Math.max( subShift, fontMetrics.metrics.sub1, sub.height - 0.8 * fontMetrics.metrics.xHeight); supsub = buildCommon.makeVList([ {type: "elem", elem: submid}, ], "shift", subShift, options); supsub.children[0].style.marginRight = scriptspace; // Subscripts shouldn't be shifted by the base's italic correction. // Account for that by shifting the subscript back the appropriate // amount. Note we only do this when the base is a single symbol. if (base instanceof domTree.symbolNode) { supsub.children[0].style.marginLeft = -base.italic + "em"; } } else if (!group.value.sub) { // Rule 18c, d supShift = Math.max(supShift, minSupShift, sup.depth + 0.25 * fontMetrics.metrics.xHeight); supsub = buildCommon.makeVList([ {type: "elem", elem: supmid}, ], "shift", -supShift, options); supsub.children[0].style.marginRight = scriptspace; } else { supShift = Math.max( supShift, minSupShift, sup.depth + 0.25 * fontMetrics.metrics.xHeight); subShift = Math.max(subShift, fontMetrics.metrics.sub2); var ruleWidth = fontMetrics.metrics.defaultRuleThickness; // Rule 18e if ((supShift - sup.depth) - (sub.height - subShift) < 4 * ruleWidth) { subShift = 4 * ruleWidth - (supShift - sup.depth) + sub.height; var psi = 0.8 * fontMetrics.metrics.xHeight - (supShift - sup.depth); if (psi > 0) { supShift += psi; subShift -= psi; } } supsub = buildCommon.makeVList([ {type: "elem", elem: submid, shift: subShift}, {type: "elem", elem: supmid, shift: -supShift}, ], "individualShift", null, options); // See comment above about subscripts not being shifted if (base instanceof domTree.symbolNode) { supsub.children[0].style.marginLeft = -base.italic + "em"; } supsub.children[0].style.marginRight = scriptspace; supsub.children[1].style.marginRight = scriptspace; } return makeSpan([getTypeOfGroup(group.value.base)], [base, supsub]); }; groupTypes.genfrac = function(group, options, prev) { // Fractions are handled in the TeXbook on pages 444-445, rules 15(a-e). // Figure out what style this fraction should be in based on the // function used var fstyle = options.style; if (group.value.size === "display") { fstyle = Style.DISPLAY; } else if (group.value.size === "text") { fstyle = Style.TEXT; } var nstyle = fstyle.fracNum(); var dstyle = fstyle.fracDen(); var numer = buildGroup(group.value.numer, options.withStyle(nstyle)); var numerreset = makeSpan([fstyle.reset(), nstyle.cls()], [numer]); var denom = buildGroup(group.value.denom, options.withStyle(dstyle)); var denomreset = makeSpan([fstyle.reset(), dstyle.cls()], [denom]); var ruleWidth; if (group.value.hasBarLine) { ruleWidth = fontMetrics.metrics.defaultRuleThickness / options.style.sizeMultiplier; } else { ruleWidth = 0; } // Rule 15b var numShift; var clearance; var denomShift; if (fstyle.size === Style.DISPLAY.size) { numShift = fontMetrics.metrics.num1; if (ruleWidth > 0) { clearance = 3 * ruleWidth; } else { clearance = 7 * fontMetrics.metrics.defaultRuleThickness; } denomShift = fontMetrics.metrics.denom1; } else { if (ruleWidth > 0) { numShift = fontMetrics.metrics.num2; clearance = ruleWidth; } else { numShift = fontMetrics.metrics.num3; clearance = 3 * fontMetrics.metrics.defaultRuleThickness; } denomShift = fontMetrics.metrics.denom2; } var frac; if (ruleWidth === 0) { // Rule 15c var candiateClearance = (numShift - numer.depth) - (denom.height - denomShift); if (candiateClearance < clearance) { numShift += 0.5 * (clearance - candiateClearance); denomShift += 0.5 * (clearance - candiateClearance); } frac = buildCommon.makeVList([ {type: "elem", elem: denomreset, shift: denomShift}, {type: "elem", elem: numerreset, shift: -numShift}, ], "individualShift", null, options); } else { // Rule 15d var axisHeight = fontMetrics.metrics.axisHeight; if ((numShift - numer.depth) - (axisHeight + 0.5 * ruleWidth) < clearance) { numShift += clearance - ((numShift - numer.depth) - (axisHeight + 0.5 * ruleWidth)); } if ((axisHeight - 0.5 * ruleWidth) - (denom.height - denomShift) < clearance) { denomShift += clearance - ((axisHeight - 0.5 * ruleWidth) - (denom.height - denomShift)); } var mid = makeSpan( [options.style.reset(), Style.TEXT.cls(), "frac-line"]); // Manually set the height of the line because its height is // created in CSS mid.height = ruleWidth; var midShift = -(axisHeight - 0.5 * ruleWidth); frac = buildCommon.makeVList([ {type: "elem", elem: denomreset, shift: denomShift}, {type: "elem", elem: mid, shift: midShift}, {type: "elem", elem: numerreset, shift: -numShift}, ], "individualShift", null, options); } // Since we manually change the style sometimes (with \dfrac or \tfrac), // account for the possible size change here. frac.height *= fstyle.sizeMultiplier / options.style.sizeMultiplier; frac.depth *= fstyle.sizeMultiplier / options.style.sizeMultiplier; // Rule 15e var delimSize; if (fstyle.size === Style.DISPLAY.size) { delimSize = fontMetrics.metrics.delim1; } else { delimSize = fontMetrics.metrics.getDelim2(fstyle); } var leftDelim; var rightDelim; if (group.value.leftDelim == null) { leftDelim = makeNullDelimiter(options); } else { leftDelim = delimiter.customSizedDelim( group.value.leftDelim, delimSize, true, options.withStyle(fstyle), group.mode); } if (group.value.rightDelim == null) { rightDelim = makeNullDelimiter(options); } else { rightDelim = delimiter.customSizedDelim( group.value.rightDelim, delimSize, true, options.withStyle(fstyle), group.mode); } return makeSpan( ["mord", options.style.reset(), fstyle.cls()], [leftDelim, makeSpan(["mfrac"], [frac]), rightDelim], options.getColor()); }; groupTypes.array = function(group, options, prev) { var r; var c; var nr = group.value.body.length; var nc = 0; var body = new Array(nr); // Horizontal spacing var pt = 1 / fontMetrics.metrics.ptPerEm; var arraycolsep = 5 * pt; // \arraycolsep in article.cls // Vertical spacing var baselineskip = 12 * pt; // see size10.clo // Default \arraystretch from lttab.dtx // TODO(gagern): may get redefined once we have user-defined macros var arraystretch = utils.deflt(group.value.arraystretch, 1); var arrayskip = arraystretch * baselineskip; var arstrutHeight = 0.7 * arrayskip; // \strutbox in ltfsstrc.dtx and var arstrutDepth = 0.3 * arrayskip; // \@arstrutbox in lttab.dtx var totalHeight = 0; for (r = 0; r < group.value.body.length; ++r) { var inrow = group.value.body[r]; var height = arstrutHeight; // \@array adds an \@arstrut var depth = arstrutDepth; // to each tow (via the template) if (nc < inrow.length) { nc = inrow.length; } var outrow = new Array(inrow.length); for (c = 0; c < inrow.length; ++c) { var elt = buildGroup(inrow[c], options); if (depth < elt.depth) { depth = elt.depth; } if (height < elt.height) { height = elt.height; } outrow[c] = elt; } var gap = 0; if (group.value.rowGaps[r]) { gap = group.value.rowGaps[r].value; switch (gap.unit) { case "em": gap = gap.number; break; case "ex": gap = gap.number * fontMetrics.metrics.emPerEx; break; default: console.error("Can't handle unit " + gap.unit); gap = 0; } if (gap > 0) { // \@argarraycr gap += arstrutDepth; if (depth < gap) { depth = gap; // \@xargarraycr } gap = 0; } } outrow.height = height; outrow.depth = depth; totalHeight += height; outrow.pos = totalHeight; totalHeight += depth + gap; // \@yargarraycr body[r] = outrow; } var offset = totalHeight / 2 + fontMetrics.metrics.axisHeight; var colDescriptions = group.value.cols || []; var cols = []; var colSep; var colDescrNum; for (c = 0, colDescrNum = 0; // Continue while either there are more columns or more column // descriptions, so trailing separators don't get lost. c < nc || colDescrNum < colDescriptions.length; ++c, ++colDescrNum) { var colDescr = colDescriptions[colDescrNum] || {}; var firstSeparator = true; while (colDescr.type === "separator") { // If there is more than one separator in a row, add a space // between them. if (!firstSeparator) { colSep = makeSpan(["arraycolsep"], []); colSep.style.width = fontMetrics.metrics.doubleRuleSep + "em"; cols.push(colSep); } if (colDescr.separator === "|") { var separator = makeSpan( ["vertical-separator"], []); separator.style.height = totalHeight + "em"; separator.style.verticalAlign = -(totalHeight - offset) + "em"; cols.push(separator); } else { throw new ParseError( "Invalid separator type: " + colDescr.separator); } colDescrNum++; colDescr = colDescriptions[colDescrNum] || {}; firstSeparator = false; } if (c >= nc) { continue; } var sepwidth; if (c > 0 || group.value.hskipBeforeAndAfter) { sepwidth = utils.deflt(colDescr.pregap, arraycolsep); if (sepwidth !== 0) { colSep = makeSpan(["arraycolsep"], []); colSep.style.width = sepwidth + "em"; cols.push(colSep); } } var col = []; for (r = 0; r < nr; ++r) { var row = body[r]; var elem = row[c]; if (!elem) { continue; } var shift = row.pos - offset; elem.depth = row.depth; elem.height = row.height; col.push({type: "elem", elem: elem, shift: shift}); } col = buildCommon.makeVList(col, "individualShift", null, options); col = makeSpan( ["col-align-" + (colDescr.align || "c")], [col]); cols.push(col); if (c < nc - 1 || group.value.hskipBeforeAndAfter) { sepwidth = utils.deflt(colDescr.postgap, arraycolsep); if (sepwidth !== 0) { colSep = makeSpan(["arraycolsep"], []); colSep.style.width = sepwidth + "em"; cols.push(colSep); } } } body = makeSpan(["mtable"], cols); return makeSpan(["mord"], [body], options.getColor()); }; groupTypes.spacing = function(group, options, prev) { if (group.value === "\\ " || group.value === "\\space" || group.value === " " || group.value === "~") { // Spaces are generated by adding an actual space. Each of these // things has an entry in the symbols table, so these will be turned // into appropriate outputs. return makeSpan( ["mord", "mspace"], [buildCommon.mathsym(group.value, group.mode)] ); } else { // Other kinds of spaces are of arbitrary width. We use CSS to // generate these. return makeSpan( ["mord", "mspace", buildCommon.spacingFunctions[group.value].className]); } }; groupTypes.llap = function(group, options, prev) { var inner = makeSpan( ["inner"], [buildGroup(group.value.body, options.reset())]); var fix = makeSpan(["fix"], []); return makeSpan( ["llap", options.style.cls()], [inner, fix]); }; groupTypes.rlap = function(group, options, prev) { var inner = makeSpan( ["inner"], [buildGroup(group.value.body, options.reset())]); var fix = makeSpan(["fix"], []); return makeSpan( ["rlap", options.style.cls()], [inner, fix]); }; groupTypes.op = function(group, options, prev) { // Operators are handled in the TeXbook pg. 443-444, rule 13(a). var supGroup; var subGroup; var hasLimits = false; if (group.type === "supsub" ) { // If we have limits, supsub will pass us its group to handle. Pull // out the superscript and subscript and set the group to the op in // its base. supGroup = group.value.sup; subGroup = group.value.sub; group = group.value.base; hasLimits = true; } // Most operators have a large successor symbol, but these don't. var noSuccessor = [ "\\smallint", ]; var large = false; if (options.style.size === Style.DISPLAY.size && group.value.symbol && !utils.contains(noSuccessor, group.value.body)) { // Most symbol operators get larger in displaystyle (rule 13) large = true; } var base; var baseShift = 0; var slant = 0; if (group.value.symbol) { // If this is a symbol, create the symbol. var style = large ? "Size2-Regular" : "Size1-Regular"; base = buildCommon.makeSymbol( group.value.body, style, "math", options.getColor(), ["op-symbol", large ? "large-op" : "small-op", "mop"]); // Shift the symbol so its center lies on the axis (rule 13). It // appears that our fonts have the centers of the symbols already // almost on the axis, so these numbers are very small. Note we // don't actually apply this here, but instead it is used either in // the vlist creation or separately when there are no limits. baseShift = (base.height - base.depth) / 2 - fontMetrics.metrics.axisHeight * options.style.sizeMultiplier; // The slant of the symbol is just its italic correction. slant = base.italic; } else { // Otherwise, this is a text operator. Build the text from the // operator's name. // TODO(emily): Add a space in the middle of some of these // operators, like \limsup var output = []; for (var i = 1; i < group.value.body.length; i++) { output.push(buildCommon.mathsym(group.value.body[i], group.mode)); } base = makeSpan(["mop"], output, options.getColor()); } if (hasLimits) { // IE 8 clips \int if it is in a display: inline-block. We wrap it // in a new span so it is an inline, and works. base = makeSpan([], [base]); var supmid; var supKern; var submid; var subKern; // We manually have to handle the superscripts and subscripts. This, // aside from the kern calculations, is copied from supsub. if (supGroup) { var sup = buildGroup( supGroup, options.withStyle(options.style.sup())); supmid = makeSpan( [options.style.reset(), options.style.sup().cls()], [sup]); supKern = Math.max( fontMetrics.metrics.bigOpSpacing1, fontMetrics.metrics.bigOpSpacing3 - sup.depth); } if (subGroup) { var sub = buildGroup( subGroup, options.withStyle(options.style.sub())); submid = makeSpan( [options.style.reset(), options.style.sub().cls()], [sub]); subKern = Math.max( fontMetrics.metrics.bigOpSpacing2, fontMetrics.metrics.bigOpSpacing4 - sub.height); } // Build the final group as a vlist of the possible subscript, base, // and possible superscript. var finalGroup; var top; var bottom; if (!supGroup) { top = base.height - baseShift; finalGroup = buildCommon.makeVList([ {type: "kern", size: fontMetrics.metrics.bigOpSpacing5}, {type: "elem", elem: submid}, {type: "kern", size: subKern}, {type: "elem", elem: base}, ], "top", top, options); // Here, we shift the limits by the slant of the symbol. Note // that we are supposed to shift the limits by 1/2 of the slant, // but since we are centering the limits adding a full slant of // margin will shift by 1/2 that. finalGroup.children[0].style.marginLeft = -slant + "em"; } else if (!subGroup) { bottom = base.depth + baseShift; finalGroup = buildCommon.makeVList([ {type: "elem", elem: base}, {type: "kern", size: supKern}, {type: "elem", elem: supmid}, {type: "kern", size: fontMetrics.metrics.bigOpSpacing5}, ], "bottom", bottom, options); // See comment above about slants finalGroup.children[1].style.marginLeft = slant + "em"; } else if (!supGroup && !subGroup) { // This case probably shouldn't occur (this would mean the // supsub was sending us a group with no superscript or // subscript) but be safe. return base; } else { bottom = fontMetrics.metrics.bigOpSpacing5 + submid.height + submid.depth + subKern + base.depth + baseShift; finalGroup = buildCommon.makeVList([ {type: "kern", size: fontMetrics.metrics.bigOpSpacing5}, {type: "elem", elem: submid}, {type: "kern", size: subKern}, {type: "elem", elem: base}, {type: "kern", size: supKern}, {type: "elem", elem: supmid}, {type: "kern", size: fontMetrics.metrics.bigOpSpacing5}, ], "bottom", bottom, options); // See comment above about slants finalGroup.children[0].style.marginLeft = -slant + "em"; finalGroup.children[2].style.marginLeft = slant + "em"; } return makeSpan(["mop", "op-limits"], [finalGroup]); } else { if (group.value.symbol) { base.style.top = baseShift + "em"; } return base; } }; groupTypes.katex = function(group, options, prev) { // The KaTeX logo. The offsets for the K and a were chosen to look // good, but the offsets for the T, E, and X were taken from the // definition of \TeX in TeX (see TeXbook pg. 356) var k = makeSpan( ["k"], [buildCommon.mathsym("K", group.mode)]); var a = makeSpan( ["a"], [buildCommon.mathsym("A", group.mode)]); a.height = (a.height + 0.2) * 0.75; a.depth = (a.height - 0.2) * 0.75; var t = makeSpan( ["t"], [buildCommon.mathsym("T", group.mode)]); var e = makeSpan( ["e"], [buildCommon.mathsym("E", group.mode)]); e.height = (e.height - 0.2155); e.depth = (e.depth + 0.2155); var x = makeSpan( ["x"], [buildCommon.mathsym("X", group.mode)]); return makeSpan( ["katex-logo", "mord"], [k, a, t, e, x], options.getColor()); }; groupTypes.overline = function(group, options, prev) { // Overlines are handled in the TeXbook pg 443, Rule 9. // Build the inner group in the cramped style. var innerGroup = buildGroup(group.value.body, options.withStyle(options.style.cramp())); var ruleWidth = fontMetrics.metrics.defaultRuleThickness / options.style.sizeMultiplier; // Create the line above the body var line = makeSpan( [options.style.reset(), Style.TEXT.cls(), "overline-line"]); line.height = ruleWidth; line.maxFontSize = 1.0; // Generate the vlist, with the appropriate kerns var vlist = buildCommon.makeVList([ {type: "elem", elem: innerGroup}, {type: "kern", size: 3 * ruleWidth}, {type: "elem", elem: line}, {type: "kern", size: ruleWidth}, ], "firstBaseline", null, options); return makeSpan(["overline", "mord"], [vlist], options.getColor()); }; groupTypes.sqrt = function(group, options, prev) { // Square roots are handled in the TeXbook pg. 443, Rule 11. // First, we do the same steps as in overline to build the inner group // and line var inner = buildGroup(group.value.body, options.withStyle(options.style.cramp())); var ruleWidth = fontMetrics.metrics.defaultRuleThickness / options.style.sizeMultiplier; var line = makeSpan( [options.style.reset(), Style.TEXT.cls(), "sqrt-line"], [], options.getColor()); line.height = ruleWidth; line.maxFontSize = 1.0; var phi = ruleWidth; if (options.style.id < Style.TEXT.id) { phi = fontMetrics.metrics.xHeight; } // Calculate the clearance between the body and line var lineClearance = ruleWidth + phi / 4; var innerHeight = (inner.height + inner.depth) * options.style.sizeMultiplier; var minDelimiterHeight = innerHeight + lineClearance + ruleWidth; // Create a \surd delimiter of the required minimum size var delim = makeSpan(["sqrt-sign"], [ delimiter.customSizedDelim("\\surd", minDelimiterHeight, false, options, group.mode)], options.getColor()); var delimDepth = (delim.height + delim.depth) - ruleWidth; // Adjust the clearance based on the delimiter size if (delimDepth > inner.height + inner.depth + lineClearance) { lineClearance = (lineClearance + delimDepth - inner.height - inner.depth) / 2; } // Shift the delimiter so that its top lines up with the top of the line var delimShift = -(inner.height + lineClearance + ruleWidth) + delim.height; delim.style.top = delimShift + "em"; delim.height -= delimShift; delim.depth += delimShift; // We add a special case here, because even when `inner` is empty, we // still get a line. So, we use a simple heuristic to decide if we // should omit the body entirely. (note this doesn't work for something // like `\sqrt{\rlap{x}}`, but if someone is doing that they deserve for // it not to work. var body; if (inner.height === 0 && inner.depth === 0) { body = makeSpan(); } else { body = buildCommon.makeVList([ {type: "elem", elem: inner}, {type: "kern", size: lineClearance}, {type: "elem", elem: line}, {type: "kern", size: ruleWidth}, ], "firstBaseline", null, options); } if (!group.value.index) { return makeSpan(["sqrt", "mord"], [delim, body]); } else { // Handle the optional root index // The index is always in scriptscript style var root = buildGroup( group.value.index, options.withStyle(Style.SCRIPTSCRIPT)); var rootWrap = makeSpan( [options.style.reset(), Style.SCRIPTSCRIPT.cls()], [root]); // Figure out the height and depth of the inner part var innerRootHeight = Math.max(delim.height, body.height); var innerRootDepth = Math.max(delim.depth, body.depth); // The amount the index is shifted by. This is taken from the TeX // source, in the definition of `\r@@t`. var toShift = 0.6 * (innerRootHeight - innerRootDepth); // Build a VList with the superscript shifted up correctly var rootVList = buildCommon.makeVList( [{type: "elem", elem: rootWrap}], "shift", -toShift, options); // Add a class surrounding it so we can add on the appropriate // kerning var rootVListWrap = makeSpan(["root"], [rootVList]); return makeSpan(["sqrt", "mord"], [rootVListWrap, delim, body]); } }; groupTypes.sizing = function(group, options, prev) { // Handle sizing operators like \Huge. Real TeX doesn't actually allow // these functions inside of math expressions, so we do some special // handling. var inner = buildExpression(group.value.value, options.withSize(group.value.size), prev); var span = makeSpan(["mord"], [makeSpan(["sizing", "reset-" + options.size, group.value.size, options.style.cls()], inner)]); // Calculate the correct maxFontSize manually var fontSize = buildCommon.sizingMultiplier[group.value.size]; span.maxFontSize = fontSize * options.style.sizeMultiplier; return span; }; groupTypes.styling = function(group, options, prev) { // Style changes are handled in the TeXbook on pg. 442, Rule 3. // Figure out what style we're changing to. var style = { "display": Style.DISPLAY, "text": Style.TEXT, "script": Style.SCRIPT, "scriptscript": Style.SCRIPTSCRIPT, }; var newStyle = style[group.value.style]; // Build the inner expression in the new style. var inner = buildExpression( group.value.value, options.withStyle(newStyle), prev); return makeSpan([options.style.reset(), newStyle.cls()], inner); }; groupTypes.font = function(group, options, prev) { var font = group.value.font; return buildGroup(group.value.body, options.withFont(font), prev); }; groupTypes.delimsizing = function(group, options, prev) { var delim = group.value.value; if (delim === ".") { // Empty delimiters still count as elements, even though they don't // show anything. return makeSpan([groupToType[group.value.delimType]]); } // Use delimiter.sizedDelim to generate the delimiter. return makeSpan( [groupToType[group.value.delimType]], [delimiter.sizedDelim( delim, group.value.size, options, group.mode)]); }; groupTypes.leftright = function(group, options, prev) { // Build the inner expression var inner = buildExpression(group.value.body, options.reset()); var innerHeight = 0; var innerDepth = 0; // Calculate its height and depth for (var i = 0; i < inner.length; i++) { innerHeight = Math.max(inner[i].height, innerHeight); innerDepth = Math.max(inner[i].depth, innerDepth); } // The size of delimiters is the same, regardless of what style we are // in. Thus, to correctly calculate the size of delimiter we need around // a group, we scale down the inner size based on the size. innerHeight *= options.style.sizeMultiplier; innerDepth *= options.style.sizeMultiplier; var leftDelim; if (group.value.left === ".") { // Empty delimiters in \left and \right make null delimiter spaces. leftDelim = makeNullDelimiter(options); } else { // Otherwise, use leftRightDelim to generate the correct sized // delimiter. leftDelim = delimiter.leftRightDelim( group.value.left, innerHeight, innerDepth, options, group.mode); } // Add it to the beginning of the expression inner.unshift(leftDelim); var rightDelim; // Same for the right delimiter if (group.value.right === ".") { rightDelim = makeNullDelimiter(options); } else { rightDelim = delimiter.leftRightDelim( group.value.right, innerHeight, innerDepth, options, group.mode); } // Add it to the end of the expression. inner.push(rightDelim); return makeSpan( ["minner", options.style.cls()], inner, options.getColor()); }; groupTypes.rule = function(group, options, prev) { // Make an empty span for the rule var rule = makeSpan(["mord", "rule"], [], options.getColor()); // Calculate the shift, width, and height of the rule, and account for units var shift = 0; if (group.value.shift) { shift = group.value.shift.number; if (group.value.shift.unit === "ex") { shift *= fontMetrics.metrics.xHeight; } } var width = group.value.width.number; if (group.value.width.unit === "ex") { width *= fontMetrics.metrics.xHeight; } var height = group.value.height.number; if (group.value.height.unit === "ex") { height *= fontMetrics.metrics.xHeight; } // The sizes of rules are absolute, so make it larger if we are in a // smaller style. shift /= options.style.sizeMultiplier; width /= options.style.sizeMultiplier; height /= options.style.sizeMultiplier; // Style the rule to the right size rule.style.borderRightWidth = width + "em"; rule.style.borderTopWidth = height + "em"; rule.style.bottom = shift + "em"; // Record the height and width rule.width = width; rule.height = height + shift; rule.depth = -shift; return rule; }; groupTypes.accent = function(group, options, prev) { // Accents are handled in the TeXbook pg. 443, rule 12. var base = group.value.base; var supsubGroup; if (group.type === "supsub") { // If our base is a character box, and we have superscripts and // subscripts, the supsub will defer to us. In particular, we want // to attach the superscripts and subscripts to the inner body (so // that the position of the superscripts and subscripts won't be // affected by the height of the accent). We accomplish this by // sticking the base of the accent into the base of the supsub, and // rendering that, while keeping track of where the accent is. // The supsub group is the group that was passed in var supsub = group; // The real accent group is the base of the supsub group group = supsub.value.base; // The character box is the base of the accent group base = group.value.base; // Stick the character box into the base of the supsub group supsub.value.base = base; // Rerender the supsub group with its new base, and store that // result. supsubGroup = buildGroup( supsub, options.reset(), prev); } // Build the base group var body = buildGroup( base, options.withStyle(options.style.cramp())); // Calculate the skew of the accent. This is based on the line "If the // nucleus is not a single character, let s = 0; otherwise set s to the // kern amount for the nucleus followed by the \skewchar of its font." // Note that our skew metrics are just the kern between each character // and the skewchar. var skew; if (isCharacterBox(base)) { // If the base is a character box, then we want the skew of the // innermost character. To do that, we find the innermost character: var baseChar = getBaseElem(base); // Then, we render its group to get the symbol inside it var baseGroup = buildGroup( baseChar, options.withStyle(options.style.cramp())); // Finally, we pull the skew off of the symbol. skew = baseGroup.skew; // Note that we now throw away baseGroup, because the layers we // removed with getBaseElem might contain things like \color which // we can't get rid of. // TODO(emily): Find a better way to get the skew } else { skew = 0; } // calculate the amount of space between the body and the accent var clearance = Math.min(body.height, fontMetrics.metrics.xHeight); // Build the accent var accent = buildCommon.makeSymbol( group.value.accent, "Main-Regular", "math", options.getColor()); // Remove the italic correction of the accent, because it only serves to // shift the accent over to a place we don't want. accent.italic = 0; // The \vec character that the fonts use is a combining character, and // thus shows up much too far to the left. To account for this, we add a // specific class which shifts the accent over to where we want it. // TODO(emily): Fix this in a better way, like by changing the font var vecClass = group.value.accent === "\\vec" ? "accent-vec" : null; var accentBody = makeSpan(["accent-body", vecClass], [ makeSpan([], [accent])]); accentBody = buildCommon.makeVList([ {type: "elem", elem: body}, {type: "kern", size: -clearance}, {type: "elem", elem: accentBody}, ], "firstBaseline", null, options); // Shift the accent over by the skew. Note we shift by twice the skew // because we are centering the accent, so by adding 2*skew to the left, // we shift it to the right by 1*skew. accentBody.children[1].style.marginLeft = 2 * skew + "em"; var accentWrap = makeSpan(["mord", "accent"], [accentBody]); if (supsubGroup) { // Here, we replace the "base" child of the supsub with our newly // generated accent. supsubGroup.children[0] = accentWrap; // Since we don't rerun the height calculation after replacing the // accent, we manually recalculate height. supsubGroup.height = Math.max(accentWrap.height, supsubGroup.height); // Accents should always be ords, even when their innards are not. supsubGroup.classes[0] = "mord"; return supsubGroup; } else { return accentWrap; } }; groupTypes.phantom = function(group, options, prev) { var elements = buildExpression( group.value.value, options.withPhantom(), prev ); // \phantom isn't supposed to affect the elements it contains. // See "color" for more details. return new buildCommon.makeFragment(elements); }; /** * buildGroup is the function that takes a group and calls the correct groupType * function for it. It also handles the interaction of size and style changes * between parents and children. */ var buildGroup = function(group, options, prev) { if (!group) { return makeSpan(); } if (groupTypes[group.type]) { // Call the groupTypes function var groupNode = groupTypes[group.type](group, options, prev); var multiplier; // If the style changed between the parent and the current group, // account for the size difference if (options.style !== options.parentStyle) { multiplier = options.style.sizeMultiplier / options.parentStyle.sizeMultiplier; groupNode.height *= multiplier; groupNode.depth *= multiplier; } // If the size changed between the parent and the current group, account // for that size difference. if (options.size !== options.parentSize) { multiplier = buildCommon.sizingMultiplier[options.size] / buildCommon.sizingMultiplier[options.parentSize]; groupNode.height *= multiplier; groupNode.depth *= multiplier; } return groupNode; } else { throw new ParseError( "Got group of unknown type: '" + group.type + "'"); } }; /** * Take an entire parse tree, and build it into an appropriate set of HTML * nodes. */ var buildHTML = function(tree, options) { // buildExpression is destructive, so we need to make a clone // of the incoming tree so that it isn't accidentally changed tree = JSON.parse(JSON.stringify(tree)); // Build the expression contained in the tree var expression = buildExpression(tree, options); var body = makeSpan(["base", options.style.cls()], expression); // Add struts, which ensure that the top of the HTML element falls at the // height of the expression, and the bottom of the HTML element falls at the // depth of the expression. var topStrut = makeSpan(["strut"]); var bottomStrut = makeSpan(["strut", "bottom"]); topStrut.style.height = body.height + "em"; bottomStrut.style.height = (body.height + body.depth) + "em"; // We'd like to use `vertical-align: top` but in IE 9 this lowers the // baseline of the box to the bottom of this strut (instead staying in the // normal place) so we use an absolute value for vertical-align instead bottomStrut.style.verticalAlign = -body.depth + "em"; // Wrap the struts and body together var htmlNode = makeSpan(["katex-html"], [topStrut, bottomStrut, body]); htmlNode.setAttribute("aria-hidden", "true"); return htmlNode; }; module.exports = buildHTML; /***/ }, /* 9 */ /***/ function(module, exports) { /** * This file contains information and classes for the various kinds of styles * used in TeX. It provides a generic `Style` class, which holds information * about a specific style. It then provides instances of all the different kinds * of styles possible, and provides functions to move between them and get * information about them. */ /** * The main style class. Contains a unique id for the style, a size (which is * the same for cramped and uncramped version of a style), a cramped flag, and a * size multiplier, which gives the size difference between a style and * textstyle. */ function Style(id, size, multiplier, cramped) { this.id = id; this.size = size; this.cramped = cramped; this.sizeMultiplier = multiplier; } /** * Get the style of a superscript given a base in the current style. */ Style.prototype.sup = function() { return styles[sup[this.id]]; }; /** * Get the style of a subscript given a base in the current style. */ Style.prototype.sub = function() { return styles[sub[this.id]]; }; /** * Get the style of a fraction numerator given the fraction in the current * style. */ Style.prototype.fracNum = function() { return styles[fracNum[this.id]]; }; /** * Get the style of a fraction denominator given the fraction in the current * style. */ Style.prototype.fracDen = function() { return styles[fracDen[this.id]]; }; /** * Get the cramped version of a style (in particular, cramping a cramped style * doesn't change the style). */ Style.prototype.cramp = function() { return styles[cramp[this.id]]; }; /** * HTML class name, like "displaystyle cramped" */ Style.prototype.cls = function() { return sizeNames[this.size] + (this.cramped ? " cramped" : " uncramped"); }; /** * HTML Reset class name, like "reset-textstyle" */ Style.prototype.reset = function() { return resetNames[this.size]; }; // IDs of the different styles var D = 0; var Dc = 1; var T = 2; var Tc = 3; var S = 4; var Sc = 5; var SS = 6; var SSc = 7; // String names for the different sizes var sizeNames = [ "displaystyle textstyle", "textstyle", "scriptstyle", "scriptscriptstyle", ]; // Reset names for the different sizes var resetNames = [ "reset-textstyle", "reset-textstyle", "reset-scriptstyle", "reset-scriptscriptstyle", ]; // Instances of the different styles var styles = [ new Style(D, 0, 1.0, false), new Style(Dc, 0, 1.0, true), new Style(T, 1, 1.0, false), new Style(Tc, 1, 1.0, true), new Style(S, 2, 0.7, false), new Style(Sc, 2, 0.7, true), new Style(SS, 3, 0.5, false), new Style(SSc, 3, 0.5, true), ]; // Lookup tables for switching from one style to another var sup = [S, Sc, S, Sc, SS, SSc, SS, SSc]; var sub = [Sc, Sc, Sc, Sc, SSc, SSc, SSc, SSc]; var fracNum = [T, Tc, S, Sc, SS, SSc, SS, SSc]; var fracDen = [Tc, Tc, Sc, Sc, SSc, SSc, SSc, SSc]; var cramp = [Dc, Dc, Tc, Tc, Sc, Sc, SSc, SSc]; // We only export some of the styles. Also, we don't export the `Style` class so // no more styles can be generated. module.exports = { DISPLAY: styles[D], TEXT: styles[T], SCRIPT: styles[S], SCRIPTSCRIPT: styles[SS], }; /***/ }, /* 10 */ /***/ function(module, exports, __webpack_require__) { /* eslint no-console:0 */ /** * This module contains general functions that can be used for building * different kinds of domTree nodes in a consistent manner. */ var domTree = __webpack_require__(11); var fontMetrics = __webpack_require__(13); var symbols = __webpack_require__(15); var utils = __webpack_require__(12); var greekCapitals = [ "\\Gamma", "\\Delta", "\\Theta", "\\Lambda", "\\Xi", "\\Pi", "\\Sigma", "\\Upsilon", "\\Phi", "\\Psi", "\\Omega", ]; var dotlessLetters = [ "\u0131", // dotless i, \imath "\u0237", // dotless j, \jmath ]; /** * Makes a symbolNode after translation via the list of symbols in symbols.js. * Correctly pulls out metrics for the character, and optionally takes a list of * classes to be attached to the node. */ var makeSymbol = function(value, style, mode, color, classes) { // Replace the value with its replaced value from symbol.js if (symbols[mode][value] && symbols[mode][value].replace) { value = symbols[mode][value].replace; } var metrics = fontMetrics.getCharacterMetrics(value, style); var symbolNode; if (metrics) { symbolNode = new domTree.symbolNode( value, metrics.height, metrics.depth, metrics.italic, metrics.skew, classes); } else { // TODO(emily): Figure out a good way to only print this in development typeof console !== "undefined" && console.warn( "No character metrics for '" + value + "' in style '" + style + "'"); symbolNode = new domTree.symbolNode(value, 0, 0, 0, 0, classes); } if (color) { symbolNode.style.color = color; } return symbolNode; }; /** * Makes a symbol in Main-Regular or AMS-Regular. * Used for rel, bin, open, close, inner, and punct. */ var mathsym = function(value, mode, color, classes) { // Decide what font to render the symbol in by its entry in the symbols // table. // Have a special case for when the value = \ because the \ is used as a // textord in unsupported command errors but cannot be parsed as a regular // text ordinal and is therefore not present as a symbol in the symbols // table for text if (value === "\\" || symbols[mode][value].font === "main") { return makeSymbol(value, "Main-Regular", mode, color, classes); } else { return makeSymbol( value, "AMS-Regular", mode, color, classes.concat(["amsrm"])); } }; /** * Makes a symbol in the default font for mathords and textords. */ var mathDefault = function(value, mode, color, classes, type) { if (type === "mathord") { return mathit(value, mode, color, classes); } else if (type === "textord") { return makeSymbol( value, "Main-Regular", mode, color, classes.concat(["mathrm"])); } else { throw new Error("unexpected type: " + type + " in mathDefault"); } }; /** * Makes a symbol in the italic math font. */ var mathit = function(value, mode, color, classes) { if (/[0-9]/.test(value.charAt(0)) || // glyphs for \imath and \jmath do not exist in Math-Italic so we // need to use Main-Italic instead utils.contains(dotlessLetters, value) || utils.contains(greekCapitals, value)) { return makeSymbol( value, "Main-Italic", mode, color, classes.concat(["mainit"])); } else { return makeSymbol( value, "Math-Italic", mode, color, classes.concat(["mathit"])); } }; /** * Makes either a mathord or textord in the correct font and color. */ var makeOrd = function(group, options, type) { var mode = group.mode; var value = group.value; if (symbols[mode][value] && symbols[mode][value].replace) { value = symbols[mode][value].replace; } var classes = ["mord"]; var color = options.getColor(); var font = options.font; if (font) { if (font === "mathit" || utils.contains(dotlessLetters, value)) { return mathit(value, mode, color, classes); } else { var fontName = fontMap[font].fontName; if (fontMetrics.getCharacterMetrics(value, fontName)) { return makeSymbol( value, fontName, mode, color, classes.concat([font])); } else { return mathDefault(value, mode, color, classes, type); } } } else { return mathDefault(value, mode, color, classes, type); } }; /** * Calculate the height, depth, and maxFontSize of an element based on its * children. */ var sizeElementFromChildren = function(elem) { var height = 0; var depth = 0; var maxFontSize = 0; if (elem.children) { for (var i = 0; i < elem.children.length; i++) { if (elem.children[i].height > height) { height = elem.children[i].height; } if (elem.children[i].depth > depth) { depth = elem.children[i].depth; } if (elem.children[i].maxFontSize > maxFontSize) { maxFontSize = elem.children[i].maxFontSize; } } } elem.height = height; elem.depth = depth; elem.maxFontSize = maxFontSize; }; /** * Makes a span with the given list of classes, list of children, and color. */ var makeSpan = function(classes, children, color) { var span = new domTree.span(classes, children); sizeElementFromChildren(span); if (color) { span.style.color = color; } return span; }; /** * Makes a document fragment with the given list of children. */ var makeFragment = function(children) { var fragment = new domTree.documentFragment(children); sizeElementFromChildren(fragment); return fragment; }; /** * Makes an element placed in each of the vlist elements to ensure that each * element has the same max font size. To do this, we create a zero-width space * with the correct font size. */ var makeFontSizer = function(options, fontSize) { var fontSizeInner = makeSpan([], [new domTree.symbolNode("\u200b")]); fontSizeInner.style.fontSize = (fontSize / options.style.sizeMultiplier) + "em"; var fontSizer = makeSpan( ["fontsize-ensurer", "reset-" + options.size, "size5"], [fontSizeInner]); return fontSizer; }; /** * Makes a vertical list by stacking elements and kerns on top of each other. * Allows for many different ways of specifying the positioning method. * * Arguments: * - children: A list of child or kern nodes to be stacked on top of each other * (i.e. the first element will be at the bottom, and the last at * the top). Element nodes are specified as * {type: "elem", elem: node} * while kern nodes are specified as * {type: "kern", size: size} * - positionType: The method by which the vlist should be positioned. Valid * values are: * - "individualShift": The children list only contains elem * nodes, and each node contains an extra * "shift" value of how much it should be * shifted (note that shifting is always * moving downwards). positionData is * ignored. * - "top": The positionData specifies the topmost point of * the vlist (note this is expected to be a height, * so positive values move up) * - "bottom": The positionData specifies the bottommost point * of the vlist (note this is expected to be a * depth, so positive values move down * - "shift": The vlist will be positioned such that its * baseline is positionData away from the baseline * of the first child. Positive values move * downwards. * - "firstBaseline": The vlist will be positioned such that * its baseline is aligned with the * baseline of the first child. * positionData is ignored. (this is * equivalent to "shift" with * positionData=0) * - positionData: Data used in different ways depending on positionType * - options: An Options object * */ var makeVList = function(children, positionType, positionData, options) { var depth; var currPos; var i; if (positionType === "individualShift") { var oldChildren = children; children = [oldChildren[0]]; // Add in kerns to the list of children to get each element to be // shifted to the correct specified shift depth = -oldChildren[0].shift - oldChildren[0].elem.depth; currPos = depth; for (i = 1; i < oldChildren.length; i++) { var diff = -oldChildren[i].shift - currPos - oldChildren[i].elem.depth; var size = diff - (oldChildren[i - 1].elem.height + oldChildren[i - 1].elem.depth); currPos = currPos + diff; children.push({type: "kern", size: size}); children.push(oldChildren[i]); } } else if (positionType === "top") { // We always start at the bottom, so calculate the bottom by adding up // all the sizes var bottom = positionData; for (i = 0; i < children.length; i++) { if (children[i].type === "kern") { bottom -= children[i].size; } else { bottom -= children[i].elem.height + children[i].elem.depth; } } depth = bottom; } else if (positionType === "bottom") { depth = -positionData; } else if (positionType === "shift") { depth = -children[0].elem.depth - positionData; } else if (positionType === "firstBaseline") { depth = -children[0].elem.depth; } else { depth = 0; } // Make the fontSizer var maxFontSize = 0; for (i = 0; i < children.length; i++) { if (children[i].type === "elem") { maxFontSize = Math.max(maxFontSize, children[i].elem.maxFontSize); } } var fontSizer = makeFontSizer(options, maxFontSize); // Create a new list of actual children at the correct offsets var realChildren = []; currPos = depth; for (i = 0; i < children.length; i++) { if (children[i].type === "kern") { currPos += children[i].size; } else { var child = children[i].elem; var shift = -child.depth - currPos; currPos += child.height + child.depth; var childWrap = makeSpan([], [fontSizer, child]); childWrap.height -= shift; childWrap.depth += shift; childWrap.style.top = shift + "em"; realChildren.push(childWrap); } } // Add in an element at the end with no offset to fix the calculation of // baselines in some browsers (namely IE, sometimes safari) var baselineFix = makeSpan( ["baseline-fix"], [fontSizer, new domTree.symbolNode("\u200b")]); realChildren.push(baselineFix); var vlist = makeSpan(["vlist"], realChildren); // Fix the final height and depth, in case there were kerns at the ends // since the makeSpan calculation won't take that in to account. vlist.height = Math.max(currPos, vlist.height); vlist.depth = Math.max(-depth, vlist.depth); return vlist; }; // A table of size -> font size for the different sizing functions var sizingMultiplier = { size1: 0.5, size2: 0.7, size3: 0.8, size4: 0.9, size5: 1.0, size6: 1.2, size7: 1.44, size8: 1.73, size9: 2.07, size10: 2.49, }; // A map of spacing functions to their attributes, like size and corresponding // CSS class var spacingFunctions = { "\\qquad": { size: "2em", className: "qquad", }, "\\quad": { size: "1em", className: "quad", }, "\\enspace": { size: "0.5em", className: "enspace", }, "\\;": { size: "0.277778em", className: "thickspace", }, "\\:": { size: "0.22222em", className: "mediumspace", }, "\\,": { size: "0.16667em", className: "thinspace", }, "\\!": { size: "-0.16667em", className: "negativethinspace", }, }; /** * Maps TeX font commands to objects containing: * - variant: string used for "mathvariant" attribute in buildMathML.js * - fontName: the "style" parameter to fontMetrics.getCharacterMetrics */ // A map between tex font commands an MathML mathvariant attribute values var fontMap = { // styles "mathbf": { variant: "bold", fontName: "Main-Bold", }, "mathrm": { variant: "normal", fontName: "Main-Regular", }, // "mathit" is missing because it requires the use of two fonts: Main-Italic // and Math-Italic. This is handled by a special case in makeOrd which ends // up calling mathit. // families "mathbb": { variant: "double-struck", fontName: "AMS-Regular", }, "mathcal": { variant: "script", fontName: "Caligraphic-Regular", }, "mathfrak": { variant: "fraktur", fontName: "Fraktur-Regular", }, "mathscr": { variant: "script", fontName: "Script-Regular", }, "mathsf": { variant: "sans-serif", fontName: "SansSerif-Regular", }, "mathtt": { variant: "monospace", fontName: "Typewriter-Regular", }, }; module.exports = { fontMap: fontMap, makeSymbol: makeSymbol, mathsym: mathsym, makeSpan: makeSpan, makeFragment: makeFragment, makeVList: makeVList, makeOrd: makeOrd, sizingMultiplier: sizingMultiplier, spacingFunctions: spacingFunctions, }; /***/ }, /* 11 */ /***/ function(module, exports, __webpack_require__) { /** * These objects store the data about the DOM nodes we create, as well as some * extra data. They can then be transformed into real DOM nodes with the * `toNode` function or HTML markup using `toMarkup`. They are useful for both * storing extra properties on the nodes, as well as providing a way to easily * work with the DOM. * * Similar functions for working with MathML nodes exist in mathMLTree.js. */ var utils = __webpack_require__(12); /** * Create an HTML className based on a list of classes. In addition to joining * with spaces, we also remove null or empty classes. */ var createClass = function(classes) { classes = classes.slice(); for (var i = classes.length - 1; i >= 0; i--) { if (!classes[i]) { classes.splice(i, 1); } } return classes.join(" "); }; /** * This node represents a span node, with a className, a list of children, and * an inline style. It also contains information about its height, depth, and * maxFontSize. */ function span(classes, children, height, depth, maxFontSize, style) { this.classes = classes || []; this.children = children || []; this.height = height || 0; this.depth = depth || 0; this.maxFontSize = maxFontSize || 0; this.style = style || {}; this.attributes = {}; } /** * Sets an arbitrary attribute on the span. Warning: use this wisely. Not all * browsers support attributes the same, and having too many custom attributes * is probably bad. */ span.prototype.setAttribute = function(attribute, value) { this.attributes[attribute] = value; }; /** * Convert the span into an HTML node */ span.prototype.toNode = function() { var span = document.createElement("span"); // Apply the class span.className = createClass(this.classes); // Apply inline styles for (var style in this.style) { if (Object.prototype.hasOwnProperty.call(this.style, style)) { span.style[style] = this.style[style]; } } // Apply attributes for (var attr in this.attributes) { if (Object.prototype.hasOwnProperty.call(this.attributes, attr)) { span.setAttribute(attr, this.attributes[attr]); } } // Append the children, also as HTML nodes for (var i = 0; i < this.children.length; i++) { span.appendChild(this.children[i].toNode()); } return span; }; /** * Convert the span into an HTML markup string */ span.prototype.toMarkup = function() { var markup = ""; // Add the markup of the children, also as markup for (var i = 0; i < this.children.length; i++) { markup += this.children[i].toMarkup(); } markup += ""; return markup; }; /** * This node represents a document fragment, which contains elements, but when * placed into the DOM doesn't have any representation itself. Thus, it only * contains children and doesn't have any HTML properties. It also keeps track * of a height, depth, and maxFontSize. */ function documentFragment(children, height, depth, maxFontSize) { this.children = children || []; this.height = height || 0; this.depth = depth || 0; this.maxFontSize = maxFontSize || 0; } /** * Convert the fragment into a node */ documentFragment.prototype.toNode = function() { // Create a fragment var frag = document.createDocumentFragment(); // Append the children for (var i = 0; i < this.children.length; i++) { frag.appendChild(this.children[i].toNode()); } return frag; }; /** * Convert the fragment into HTML markup */ documentFragment.prototype.toMarkup = function() { var markup = ""; // Simply concatenate the markup for the children together for (var i = 0; i < this.children.length; i++) { markup += this.children[i].toMarkup(); } return markup; }; /** * A symbol node contains information about a single symbol. It either renders * to a single text node, or a span with a single text node in it, depending on * whether it has CSS classes, styles, or needs italic correction. */ function symbolNode(value, height, depth, italic, skew, classes, style) { this.value = value || ""; this.height = height || 0; this.depth = depth || 0; this.italic = italic || 0; this.skew = skew || 0; this.classes = classes || []; this.style = style || {}; this.maxFontSize = 0; } /** * Creates a text node or span from a symbol node. Note that a span is only * created if it is needed. */ symbolNode.prototype.toNode = function() { var node = document.createTextNode(this.value); var span = null; if (this.italic > 0) { span = document.createElement("span"); span.style.marginRight = this.italic + "em"; } if (this.classes.length > 0) { span = span || document.createElement("span"); span.className = createClass(this.classes); } for (var style in this.style) { if (this.style.hasOwnProperty(style)) { span = span || document.createElement("span"); span.style[style] = this.style[style]; } } if (span) { span.appendChild(node); return span; } else { return node; } }; /** * Creates markup for a symbol node. */ symbolNode.prototype.toMarkup = function() { // TODO(alpert): More duplication than I'd like from // span.prototype.toMarkup and symbolNode.prototype.toNode... var needsSpan = false; var markup = " 0) { styles += "margin-right:" + this.italic + "em;"; } for (var style in this.style) { if (this.style.hasOwnProperty(style)) { styles += utils.hyphenate(style) + ":" + this.style[style] + ";"; } } if (styles) { needsSpan = true; markup += " style=\"" + utils.escape(styles) + "\""; } var escaped = utils.escape(this.value); if (needsSpan) { markup += ">"; markup += escaped; markup += ""; return markup; } else { return escaped; } }; module.exports = { span: span, documentFragment: documentFragment, symbolNode: symbolNode, }; /***/ }, /* 12 */ /***/ function(module, exports) { /** * This file contains a list of utility functions which are useful in other * files. */ /** * Provide an `indexOf` function which works in IE8, but defers to native if * possible. */ var nativeIndexOf = Array.prototype.indexOf; var indexOf = function(list, elem) { if (list == null) { return -1; } if (nativeIndexOf && list.indexOf === nativeIndexOf) { return list.indexOf(elem); } var i = 0; var l = list.length; for (; i < l; i++) { if (list[i] === elem) { return i; } } return -1; }; /** * Return whether an element is contained in a list */ var contains = function(list, elem) { return indexOf(list, elem) !== -1; }; /** * Provide a default value if a setting is undefined */ var deflt = function(setting, defaultIfUndefined) { return setting === undefined ? defaultIfUndefined : setting; }; // hyphenate and escape adapted from Facebook's React under Apache 2 license var uppercase = /([A-Z])/g; var hyphenate = function(str) { return str.replace(uppercase, "-$1").toLowerCase(); }; var ESCAPE_LOOKUP = { "&": "&", ">": ">", "<": "<", "\"": """, "'": "'", }; var ESCAPE_REGEX = /[&><"']/g; function escaper(match) { return ESCAPE_LOOKUP[match]; } /** * Escapes text to prevent scripting attacks. * * @param {*} text Text value to escape. * @return {string} An escaped string. */ function escape(text) { return ("" + text).replace(ESCAPE_REGEX, escaper); } /** * A function to set the text content of a DOM element in all supported * browsers. Note that we don't define this if there is no document. */ var setTextContent; if (typeof document !== "undefined") { var testNode = document.createElement("span"); if ("textContent" in testNode) { setTextContent = function(node, text) { node.textContent = text; }; } else { setTextContent = function(node, text) { node.innerText = text; }; } } /** * A function to clear a node. */ function clearNode(node) { setTextContent(node, ""); } module.exports = { contains: contains, deflt: deflt, escape: escape, hyphenate: hyphenate, indexOf: indexOf, setTextContent: setTextContent, clearNode: clearNode, }; /***/ }, /* 13 */ /***/ function(module, exports, __webpack_require__) { /* eslint no-unused-vars:0 */ var Style = __webpack_require__(9); /** * This file contains metrics regarding fonts and individual symbols. The sigma * and xi variables, as well as the metricMap map contain data extracted from * TeX, TeX font metrics, and the TTF files. These data are then exposed via the * `metrics` variable and the getCharacterMetrics function. */ // These font metrics are extracted from TeX by using // \font\a=cmmi10 // \showthe\fontdimenX\a // where X is the corresponding variable number. These correspond to the font // parameters of the symbol fonts. In TeX, there are actually three sets of // dimensions, one for each of textstyle, scriptstyle, and scriptscriptstyle, // but we only use the textstyle ones, and scale certain dimensions accordingly. // See the TeXbook, page 441. var sigma1 = 0.025; var sigma2 = 0; var sigma3 = 0; var sigma4 = 0; var sigma5 = 0.431; var sigma6 = 1; var sigma7 = 0; var sigma8 = 0.677; var sigma9 = 0.394; var sigma10 = 0.444; var sigma11 = 0.686; var sigma12 = 0.345; var sigma13 = 0.413; var sigma14 = 0.363; var sigma15 = 0.289; var sigma16 = 0.150; var sigma17 = 0.247; var sigma18 = 0.386; var sigma19 = 0.050; var sigma20 = 2.390; var sigma21 = 1.01; var sigma21Script = 0.81; var sigma21ScriptScript = 0.71; var sigma22 = 0.250; // These font metrics are extracted from TeX by using // \font\a=cmex10 // \showthe\fontdimenX\a // where X is the corresponding variable number. These correspond to the font // parameters of the extension fonts (family 3). See the TeXbook, page 441. var xi1 = 0; var xi2 = 0; var xi3 = 0; var xi4 = 0; var xi5 = 0.431; var xi6 = 1; var xi7 = 0; var xi8 = 0.04; var xi9 = 0.111; var xi10 = 0.166; var xi11 = 0.2; var xi12 = 0.6; var xi13 = 0.1; // This value determines how large a pt is, for metrics which are defined in // terms of pts. // This value is also used in katex.less; if you change it make sure the values // match. var ptPerEm = 10.0; // The space between adjacent `|` columns in an array definition. From // `\showthe\doublerulesep` in LaTeX. var doubleRuleSep = 2.0 / ptPerEm; /** * This is just a mapping from common names to real metrics */ var metrics = { xHeight: sigma5, quad: sigma6, num1: sigma8, num2: sigma9, num3: sigma10, denom1: sigma11, denom2: sigma12, sup1: sigma13, sup2: sigma14, sup3: sigma15, sub1: sigma16, sub2: sigma17, supDrop: sigma18, subDrop: sigma19, axisHeight: sigma22, defaultRuleThickness: xi8, bigOpSpacing1: xi9, bigOpSpacing2: xi10, bigOpSpacing3: xi11, bigOpSpacing4: xi12, bigOpSpacing5: xi13, ptPerEm: ptPerEm, emPerEx: sigma5 / sigma6, doubleRuleSep: doubleRuleSep, // TODO(alpert): Missing parallel structure here. We should probably add // style-specific metrics for all of these. delim1: sigma20, getDelim2: function(style) { if (style.size === Style.TEXT.size) { return sigma21; } else if (style.size === Style.SCRIPT.size) { return sigma21Script; } else if (style.size === Style.SCRIPTSCRIPT.size) { return sigma21ScriptScript; } throw new Error("Unexpected style size: " + style.size); }, }; // This map contains a mapping from font name and character code to character // metrics, including height, depth, italic correction, and skew (kern from the // character to the corresponding \skewchar) // This map is generated via `make metrics`. It should not be changed manually. var metricMap = __webpack_require__(14); /** * This function is a convenience function for looking up information in the * metricMap table. It takes a character as a string, and a style. * * Note: the `width` property may be undefined if fontMetricsData.js wasn't * built using `Make extended_metrics`. */ var getCharacterMetrics = function(character, style) { var metrics = metricMap[style][character.charCodeAt(0)]; if (metrics) { return { depth: metrics[0], height: metrics[1], italic: metrics[2], skew: metrics[3], width: metrics[4], }; } }; module.exports = { metrics: metrics, getCharacterMetrics: getCharacterMetrics, }; /***/ }, /* 14 */ /***/ function(module, exports) { module.exports = { "AMS-Regular": { "65": [0, 0.68889, 0, 0], "66": [0, 0.68889, 0, 0], "67": [0, 0.68889, 0, 0], "68": [0, 0.68889, 0, 0], "69": [0, 0.68889, 0, 0], "70": [0, 0.68889, 0, 0], "71": [0, 0.68889, 0, 0], "72": [0, 0.68889, 0, 0], "73": [0, 0.68889, 0, 0], "74": [0.16667, 0.68889, 0, 0], "75": [0, 0.68889, 0, 0], "76": [0, 0.68889, 0, 0], "77": [0, 0.68889, 0, 0], "78": [0, 0.68889, 0, 0], "79": [0.16667, 0.68889, 0, 0], "80": [0, 0.68889, 0, 0], "81": [0.16667, 0.68889, 0, 0], "82": [0, 0.68889, 0, 0], "83": [0, 0.68889, 0, 0], "84": [0, 0.68889, 0, 0], "85": [0, 0.68889, 0, 0], "86": [0, 0.68889, 0, 0], "87": [0, 0.68889, 0, 0], "88": [0, 0.68889, 0, 0], "89": [0, 0.68889, 0, 0], "90": [0, 0.68889, 0, 0], "107": [0, 0.68889, 0, 0], "165": [0, 0.675, 0.025, 0], "174": [0.15559, 0.69224, 0, 0], "240": [0, 0.68889, 0, 0], "295": [0, 0.68889, 0, 0], "710": [0, 0.825, 0, 0], "732": [0, 0.9, 0, 0], "770": [0, 0.825, 0, 0], "771": [0, 0.9, 0, 0], "989": [0.08167, 0.58167, 0, 0], "1008": [0, 0.43056, 0.04028, 0], "8245": [0, 0.54986, 0, 0], "8463": [0, 0.68889, 0, 0], "8487": [0, 0.68889, 0, 0], "8498": [0, 0.68889, 0, 0], "8502": [0, 0.68889, 0, 0], "8503": [0, 0.68889, 0, 0], "8504": [0, 0.68889, 0, 0], "8513": [0, 0.68889, 0, 0], "8592": [-0.03598, 0.46402, 0, 0], "8594": [-0.03598, 0.46402, 0, 0], "8602": [-0.13313, 0.36687, 0, 0], "8603": [-0.13313, 0.36687, 0, 0], "8606": [0.01354, 0.52239, 0, 0], "8608": [0.01354, 0.52239, 0, 0], "8610": [0.01354, 0.52239, 0, 0], "8611": [0.01354, 0.52239, 0, 0], "8619": [0, 0.54986, 0, 0], "8620": [0, 0.54986, 0, 0], "8621": [-0.13313, 0.37788, 0, 0], "8622": [-0.13313, 0.36687, 0, 0], "8624": [0, 0.69224, 0, 0], "8625": [0, 0.69224, 0, 0], "8630": [0, 0.43056, 0, 0], "8631": [0, 0.43056, 0, 0], "8634": [0.08198, 0.58198, 0, 0], "8635": [0.08198, 0.58198, 0, 0], "8638": [0.19444, 0.69224, 0, 0], "8639": [0.19444, 0.69224, 0, 0], "8642": [0.19444, 0.69224, 0, 0], "8643": [0.19444, 0.69224, 0, 0], "8644": [0.1808, 0.675, 0, 0], "8646": [0.1808, 0.675, 0, 0], "8647": [0.1808, 0.675, 0, 0], "8648": [0.19444, 0.69224, 0, 0], "8649": [0.1808, 0.675, 0, 0], "8650": [0.19444, 0.69224, 0, 0], "8651": [0.01354, 0.52239, 0, 0], "8652": [0.01354, 0.52239, 0, 0], "8653": [-0.13313, 0.36687, 0, 0], "8654": [-0.13313, 0.36687, 0, 0], "8655": [-0.13313, 0.36687, 0, 0], "8666": [0.13667, 0.63667, 0, 0], "8667": [0.13667, 0.63667, 0, 0], "8669": [-0.13313, 0.37788, 0, 0], "8672": [-0.064, 0.437, 0, 0], "8674": [-0.064, 0.437, 0, 0], "8705": [0, 0.825, 0, 0], "8708": [0, 0.68889, 0, 0], "8709": [0.08167, 0.58167, 0, 0], "8717": [0, 0.43056, 0, 0], "8722": [-0.03598, 0.46402, 0, 0], "8724": [0.08198, 0.69224, 0, 0], "8726": [0.08167, 0.58167, 0, 0], "8733": [0, 0.69224, 0, 0], "8736": [0, 0.69224, 0, 0], "8737": [0, 0.69224, 0, 0], "8738": [0.03517, 0.52239, 0, 0], "8739": [0.08167, 0.58167, 0, 0], "8740": [0.25142, 0.74111, 0, 0], "8741": [0.08167, 0.58167, 0, 0], "8742": [0.25142, 0.74111, 0, 0], "8756": [0, 0.69224, 0, 0], "8757": [0, 0.69224, 0, 0], "8764": [-0.13313, 0.36687, 0, 0], "8765": [-0.13313, 0.37788, 0, 0], "8769": [-0.13313, 0.36687, 0, 0], "8770": [-0.03625, 0.46375, 0, 0], "8774": [0.30274, 0.79383, 0, 0], "8776": [-0.01688, 0.48312, 0, 0], "8778": [0.08167, 0.58167, 0, 0], "8782": [0.06062, 0.54986, 0, 0], "8783": [0.06062, 0.54986, 0, 0], "8785": [0.08198, 0.58198, 0, 0], "8786": [0.08198, 0.58198, 0, 0], "8787": [0.08198, 0.58198, 0, 0], "8790": [0, 0.69224, 0, 0], "8791": [0.22958, 0.72958, 0, 0], "8796": [0.08198, 0.91667, 0, 0], "8806": [0.25583, 0.75583, 0, 0], "8807": [0.25583, 0.75583, 0, 0], "8808": [0.25142, 0.75726, 0, 0], "8809": [0.25142, 0.75726, 0, 0], "8812": [0.25583, 0.75583, 0, 0], "8814": [0.20576, 0.70576, 0, 0], "8815": [0.20576, 0.70576, 0, 0], "8816": [0.30274, 0.79383, 0, 0], "8817": [0.30274, 0.79383, 0, 0], "8818": [0.22958, 0.72958, 0, 0], "8819": [0.22958, 0.72958, 0, 0], "8822": [0.1808, 0.675, 0, 0], "8823": [0.1808, 0.675, 0, 0], "8828": [0.13667, 0.63667, 0, 0], "8829": [0.13667, 0.63667, 0, 0], "8830": [0.22958, 0.72958, 0, 0], "8831": [0.22958, 0.72958, 0, 0], "8832": [0.20576, 0.70576, 0, 0], "8833": [0.20576, 0.70576, 0, 0], "8840": [0.30274, 0.79383, 0, 0], "8841": [0.30274, 0.79383, 0, 0], "8842": [0.13597, 0.63597, 0, 0], "8843": [0.13597, 0.63597, 0, 0], "8847": [0.03517, 0.54986, 0, 0], "8848": [0.03517, 0.54986, 0, 0], "8858": [0.08198, 0.58198, 0, 0], "8859": [0.08198, 0.58198, 0, 0], "8861": [0.08198, 0.58198, 0, 0], "8862": [0, 0.675, 0, 0], "8863": [0, 0.675, 0, 0], "8864": [0, 0.675, 0, 0], "8865": [0, 0.675, 0, 0], "8872": [0, 0.69224, 0, 0], "8873": [0, 0.69224, 0, 0], "8874": [0, 0.69224, 0, 0], "8876": [0, 0.68889, 0, 0], "8877": [0, 0.68889, 0, 0], "8878": [0, 0.68889, 0, 0], "8879": [0, 0.68889, 0, 0], "8882": [0.03517, 0.54986, 0, 0], "8883": [0.03517, 0.54986, 0, 0], "8884": [0.13667, 0.63667, 0, 0], "8885": [0.13667, 0.63667, 0, 0], "8888": [0, 0.54986, 0, 0], "8890": [0.19444, 0.43056, 0, 0], "8891": [0.19444, 0.69224, 0, 0], "8892": [0.19444, 0.69224, 0, 0], "8901": [0, 0.54986, 0, 0], "8903": [0.08167, 0.58167, 0, 0], "8905": [0.08167, 0.58167, 0, 0], "8906": [0.08167, 0.58167, 0, 0], "8907": [0, 0.69224, 0, 0], "8908": [0, 0.69224, 0, 0], "8909": [-0.03598, 0.46402, 0, 0], "8910": [0, 0.54986, 0, 0], "8911": [0, 0.54986, 0, 0], "8912": [0.03517, 0.54986, 0, 0], "8913": [0.03517, 0.54986, 0, 0], "8914": [0, 0.54986, 0, 0], "8915": [0, 0.54986, 0, 0], "8916": [0, 0.69224, 0, 0], "8918": [0.0391, 0.5391, 0, 0], "8919": [0.0391, 0.5391, 0, 0], "8920": [0.03517, 0.54986, 0, 0], "8921": [0.03517, 0.54986, 0, 0], "8922": [0.38569, 0.88569, 0, 0], "8923": [0.38569, 0.88569, 0, 0], "8926": [0.13667, 0.63667, 0, 0], "8927": [0.13667, 0.63667, 0, 0], "8928": [0.30274, 0.79383, 0, 0], "8929": [0.30274, 0.79383, 0, 0], "8934": [0.23222, 0.74111, 0, 0], "8935": [0.23222, 0.74111, 0, 0], "8936": [0.23222, 0.74111, 0, 0], "8937": [0.23222, 0.74111, 0, 0], "8938": [0.20576, 0.70576, 0, 0], "8939": [0.20576, 0.70576, 0, 0], "8940": [0.30274, 0.79383, 0, 0], "8941": [0.30274, 0.79383, 0, 0], "8994": [0.19444, 0.69224, 0, 0], "8995": [0.19444, 0.69224, 0, 0], "9416": [0.15559, 0.69224, 0, 0], "9484": [0, 0.69224, 0, 0], "9488": [0, 0.69224, 0, 0], "9492": [0, 0.37788, 0, 0], "9496": [0, 0.37788, 0, 0], "9585": [0.19444, 0.68889, 0, 0], "9586": [0.19444, 0.74111, 0, 0], "9632": [0, 0.675, 0, 0], "9633": [0, 0.675, 0, 0], "9650": [0, 0.54986, 0, 0], "9651": [0, 0.54986, 0, 0], "9654": [0.03517, 0.54986, 0, 0], "9660": [0, 0.54986, 0, 0], "9661": [0, 0.54986, 0, 0], "9664": [0.03517, 0.54986, 0, 0], "9674": [0.11111, 0.69224, 0, 0], "9733": [0.19444, 0.69224, 0, 0], "10003": [0, 0.69224, 0, 0], "10016": [0, 0.69224, 0, 0], "10731": [0.11111, 0.69224, 0, 0], "10846": [0.19444, 0.75583, 0, 0], "10877": [0.13667, 0.63667, 0, 0], "10878": [0.13667, 0.63667, 0, 0], "10885": [0.25583, 0.75583, 0, 0], "10886": [0.25583, 0.75583, 0, 0], "10887": [0.13597, 0.63597, 0, 0], "10888": [0.13597, 0.63597, 0, 0], "10889": [0.26167, 0.75726, 0, 0], "10890": [0.26167, 0.75726, 0, 0], "10891": [0.48256, 0.98256, 0, 0], "10892": [0.48256, 0.98256, 0, 0], "10901": [0.13667, 0.63667, 0, 0], "10902": [0.13667, 0.63667, 0, 0], "10933": [0.25142, 0.75726, 0, 0], "10934": [0.25142, 0.75726, 0, 0], "10935": [0.26167, 0.75726, 0, 0], "10936": [0.26167, 0.75726, 0, 0], "10937": [0.26167, 0.75726, 0, 0], "10938": [0.26167, 0.75726, 0, 0], "10949": [0.25583, 0.75583, 0, 0], "10950": [0.25583, 0.75583, 0, 0], "10955": [0.28481, 0.79383, 0, 0], "10956": [0.28481, 0.79383, 0, 0], "57350": [0.08167, 0.58167, 0, 0], "57351": [0.08167, 0.58167, 0, 0], "57352": [0.08167, 0.58167, 0, 0], "57353": [0, 0.43056, 0.04028, 0], "57356": [0.25142, 0.75726, 0, 0], "57357": [0.25142, 0.75726, 0, 0], "57358": [0.41951, 0.91951, 0, 0], "57359": [0.30274, 0.79383, 0, 0], "57360": [0.30274, 0.79383, 0, 0], "57361": [0.41951, 0.91951, 0, 0], "57366": [0.25142, 0.75726, 0, 0], "57367": [0.25142, 0.75726, 0, 0], "57368": [0.25142, 0.75726, 0, 0], "57369": [0.25142, 0.75726, 0, 0], "57370": [0.13597, 0.63597, 0, 0], "57371": [0.13597, 0.63597, 0, 0], }, "Caligraphic-Regular": { "48": [0, 0.43056, 0, 0], "49": [0, 0.43056, 0, 0], "50": [0, 0.43056, 0, 0], "51": [0.19444, 0.43056, 0, 0], "52": [0.19444, 0.43056, 0, 0], "53": [0.19444, 0.43056, 0, 0], "54": [0, 0.64444, 0, 0], "55": [0.19444, 0.43056, 0, 0], "56": [0, 0.64444, 0, 0], "57": [0.19444, 0.43056, 0, 0], "65": [0, 0.68333, 0, 0.19445], "66": [0, 0.68333, 0.03041, 0.13889], "67": [0, 0.68333, 0.05834, 0.13889], "68": [0, 0.68333, 0.02778, 0.08334], "69": [0, 0.68333, 0.08944, 0.11111], "70": [0, 0.68333, 0.09931, 0.11111], "71": [0.09722, 0.68333, 0.0593, 0.11111], "72": [0, 0.68333, 0.00965, 0.11111], "73": [0, 0.68333, 0.07382, 0], "74": [0.09722, 0.68333, 0.18472, 0.16667], "75": [0, 0.68333, 0.01445, 0.05556], "76": [0, 0.68333, 0, 0.13889], "77": [0, 0.68333, 0, 0.13889], "78": [0, 0.68333, 0.14736, 0.08334], "79": [0, 0.68333, 0.02778, 0.11111], "80": [0, 0.68333, 0.08222, 0.08334], "81": [0.09722, 0.68333, 0, 0.11111], "82": [0, 0.68333, 0, 0.08334], "83": [0, 0.68333, 0.075, 0.13889], "84": [0, 0.68333, 0.25417, 0], "85": [0, 0.68333, 0.09931, 0.08334], "86": [0, 0.68333, 0.08222, 0], "87": [0, 0.68333, 0.08222, 0.08334], "88": [0, 0.68333, 0.14643, 0.13889], "89": [0.09722, 0.68333, 0.08222, 0.08334], "90": [0, 0.68333, 0.07944, 0.13889], }, "Fraktur-Regular": { "33": [0, 0.69141, 0, 0], "34": [0, 0.69141, 0, 0], "38": [0, 0.69141, 0, 0], "39": [0, 0.69141, 0, 0], "40": [0.24982, 0.74947, 0, 0], "41": [0.24982, 0.74947, 0, 0], "42": [0, 0.62119, 0, 0], "43": [0.08319, 0.58283, 0, 0], "44": [0, 0.10803, 0, 0], "45": [0.08319, 0.58283, 0, 0], "46": [0, 0.10803, 0, 0], "47": [0.24982, 0.74947, 0, 0], "48": [0, 0.47534, 0, 0], "49": [0, 0.47534, 0, 0], "50": [0, 0.47534, 0, 0], "51": [0.18906, 0.47534, 0, 0], "52": [0.18906, 0.47534, 0, 0], "53": [0.18906, 0.47534, 0, 0], "54": [0, 0.69141, 0, 0], "55": [0.18906, 0.47534, 0, 0], "56": [0, 0.69141, 0, 0], "57": [0.18906, 0.47534, 0, 0], "58": [0, 0.47534, 0, 0], "59": [0.12604, 0.47534, 0, 0], "61": [-0.13099, 0.36866, 0, 0], "63": [0, 0.69141, 0, 0], "65": [0, 0.69141, 0, 0], "66": [0, 0.69141, 0, 0], "67": [0, 0.69141, 0, 0], "68": [0, 0.69141, 0, 0], "69": [0, 0.69141, 0, 0], "70": [0.12604, 0.69141, 0, 0], "71": [0, 0.69141, 0, 0], "72": [0.06302, 0.69141, 0, 0], "73": [0, 0.69141, 0, 0], "74": [0.12604, 0.69141, 0, 0], "75": [0, 0.69141, 0, 0], "76": [0, 0.69141, 0, 0], "77": [0, 0.69141, 0, 0], "78": [0, 0.69141, 0, 0], "79": [0, 0.69141, 0, 0], "80": [0.18906, 0.69141, 0, 0], "81": [0.03781, 0.69141, 0, 0], "82": [0, 0.69141, 0, 0], "83": [0, 0.69141, 0, 0], "84": [0, 0.69141, 0, 0], "85": [0, 0.69141, 0, 0], "86": [0, 0.69141, 0, 0], "87": [0, 0.69141, 0, 0], "88": [0, 0.69141, 0, 0], "89": [0.18906, 0.69141, 0, 0], "90": [0.12604, 0.69141, 0, 0], "91": [0.24982, 0.74947, 0, 0], "93": [0.24982, 0.74947, 0, 0], "94": [0, 0.69141, 0, 0], "97": [0, 0.47534, 0, 0], "98": [0, 0.69141, 0, 0], "99": [0, 0.47534, 0, 0], "100": [0, 0.62119, 0, 0], "101": [0, 0.47534, 0, 0], "102": [0.18906, 0.69141, 0, 0], "103": [0.18906, 0.47534, 0, 0], "104": [0.18906, 0.69141, 0, 0], "105": [0, 0.69141, 0, 0], "106": [0, 0.69141, 0, 0], "107": [0, 0.69141, 0, 0], "108": [0, 0.69141, 0, 0], "109": [0, 0.47534, 0, 0], "110": [0, 0.47534, 0, 0], "111": [0, 0.47534, 0, 0], "112": [0.18906, 0.52396, 0, 0], "113": [0.18906, 0.47534, 0, 0], "114": [0, 0.47534, 0, 0], "115": [0, 0.47534, 0, 0], "116": [0, 0.62119, 0, 0], "117": [0, 0.47534, 0, 0], "118": [0, 0.52396, 0, 0], "119": [0, 0.52396, 0, 0], "120": [0.18906, 0.47534, 0, 0], "121": [0.18906, 0.47534, 0, 0], "122": [0.18906, 0.47534, 0, 0], "8216": [0, 0.69141, 0, 0], "8217": [0, 0.69141, 0, 0], "58112": [0, 0.62119, 0, 0], "58113": [0, 0.62119, 0, 0], "58114": [0.18906, 0.69141, 0, 0], "58115": [0.18906, 0.69141, 0, 0], "58116": [0.18906, 0.47534, 0, 0], "58117": [0, 0.69141, 0, 0], "58118": [0, 0.62119, 0, 0], "58119": [0, 0.47534, 0, 0], }, "Main-Bold": { "33": [0, 0.69444, 0, 0], "34": [0, 0.69444, 0, 0], "35": [0.19444, 0.69444, 0, 0], "36": [0.05556, 0.75, 0, 0], "37": [0.05556, 0.75, 0, 0], "38": [0, 0.69444, 0, 0], "39": [0, 0.69444, 0, 0], "40": [0.25, 0.75, 0, 0], "41": [0.25, 0.75, 0, 0], "42": [0, 0.75, 0, 0], "43": [0.13333, 0.63333, 0, 0], "44": [0.19444, 0.15556, 0, 0], "45": [0, 0.44444, 0, 0], "46": [0, 0.15556, 0, 0], "47": [0.25, 0.75, 0, 0], "48": [0, 0.64444, 0, 0], "49": [0, 0.64444, 0, 0], "50": [0, 0.64444, 0, 0], "51": [0, 0.64444, 0, 0], "52": [0, 0.64444, 0, 0], "53": [0, 0.64444, 0, 0], "54": [0, 0.64444, 0, 0], "55": [0, 0.64444, 0, 0], "56": [0, 0.64444, 0, 0], "57": [0, 0.64444, 0, 0], "58": [0, 0.44444, 0, 0], "59": [0.19444, 0.44444, 0, 0], "60": [0.08556, 0.58556, 0, 0], "61": [-0.10889, 0.39111, 0, 0], "62": [0.08556, 0.58556, 0, 0], "63": [0, 0.69444, 0, 0], "64": [0, 0.69444, 0, 0], "65": [0, 0.68611, 0, 0], "66": [0, 0.68611, 0, 0], "67": [0, 0.68611, 0, 0], "68": [0, 0.68611, 0, 0], "69": [0, 0.68611, 0, 0], "70": [0, 0.68611, 0, 0], "71": [0, 0.68611, 0, 0], "72": [0, 0.68611, 0, 0], "73": [0, 0.68611, 0, 0], "74": [0, 0.68611, 0, 0], "75": [0, 0.68611, 0, 0], "76": [0, 0.68611, 0, 0], "77": [0, 0.68611, 0, 0], "78": [0, 0.68611, 0, 0], "79": [0, 0.68611, 0, 0], "80": [0, 0.68611, 0, 0], "81": [0.19444, 0.68611, 0, 0], "82": [0, 0.68611, 0, 0], "83": [0, 0.68611, 0, 0], "84": [0, 0.68611, 0, 0], "85": [0, 0.68611, 0, 0], "86": [0, 0.68611, 0.01597, 0], "87": [0, 0.68611, 0.01597, 0], "88": [0, 0.68611, 0, 0], "89": [0, 0.68611, 0.02875, 0], "90": [0, 0.68611, 0, 0], "91": [0.25, 0.75, 0, 0], "92": [0.25, 0.75, 0, 0], "93": [0.25, 0.75, 0, 0], "94": [0, 0.69444, 0, 0], "95": [0.31, 0.13444, 0.03194, 0], "96": [0, 0.69444, 0, 0], "97": [0, 0.44444, 0, 0], "98": [0, 0.69444, 0, 0], "99": [0, 0.44444, 0, 0], "100": [0, 0.69444, 0, 0], "101": [0, 0.44444, 0, 0], "102": [0, 0.69444, 0.10903, 0], "103": [0.19444, 0.44444, 0.01597, 0], "104": [0, 0.69444, 0, 0], "105": [0, 0.69444, 0, 0], "106": [0.19444, 0.69444, 0, 0], "107": [0, 0.69444, 0, 0], "108": [0, 0.69444, 0, 0], "109": [0, 0.44444, 0, 0], "110": [0, 0.44444, 0, 0], "111": [0, 0.44444, 0, 0], "112": [0.19444, 0.44444, 0, 0], "113": [0.19444, 0.44444, 0, 0], "114": [0, 0.44444, 0, 0], "115": [0, 0.44444, 0, 0], "116": [0, 0.63492, 0, 0], "117": [0, 0.44444, 0, 0], "118": [0, 0.44444, 0.01597, 0], "119": [0, 0.44444, 0.01597, 0], "120": [0, 0.44444, 0, 0], "121": [0.19444, 0.44444, 0.01597, 0], "122": [0, 0.44444, 0, 0], "123": [0.25, 0.75, 0, 0], "124": [0.25, 0.75, 0, 0], "125": [0.25, 0.75, 0, 0], "126": [0.35, 0.34444, 0, 0], "168": [0, 0.69444, 0, 0], "172": [0, 0.44444, 0, 0], "175": [0, 0.59611, 0, 0], "176": [0, 0.69444, 0, 0], "177": [0.13333, 0.63333, 0, 0], "180": [0, 0.69444, 0, 0], "215": [0.13333, 0.63333, 0, 0], "247": [0.13333, 0.63333, 0, 0], "305": [0, 0.44444, 0, 0], "567": [0.19444, 0.44444, 0, 0], "710": [0, 0.69444, 0, 0], "711": [0, 0.63194, 0, 0], "713": [0, 0.59611, 0, 0], "714": [0, 0.69444, 0, 0], "715": [0, 0.69444, 0, 0], "728": [0, 0.69444, 0, 0], "729": [0, 0.69444, 0, 0], "730": [0, 0.69444, 0, 0], "732": [0, 0.69444, 0, 0], "768": [0, 0.69444, 0, 0], "769": [0, 0.69444, 0, 0], "770": [0, 0.69444, 0, 0], "771": [0, 0.69444, 0, 0], "772": [0, 0.59611, 0, 0], "774": [0, 0.69444, 0, 0], "775": [0, 0.69444, 0, 0], "776": [0, 0.69444, 0, 0], "778": [0, 0.69444, 0, 0], "779": [0, 0.69444, 0, 0], "780": [0, 0.63194, 0, 0], "824": [0.19444, 0.69444, 0, 0], "915": [0, 0.68611, 0, 0], "916": [0, 0.68611, 0, 0], "920": [0, 0.68611, 0, 0], "923": [0, 0.68611, 0, 0], "926": [0, 0.68611, 0, 0], "928": [0, 0.68611, 0, 0], "931": [0, 0.68611, 0, 0], "933": [0, 0.68611, 0, 0], "934": [0, 0.68611, 0, 0], "936": [0, 0.68611, 0, 0], "937": [0, 0.68611, 0, 0], "8211": [0, 0.44444, 0.03194, 0], "8212": [0, 0.44444, 0.03194, 0], "8216": [0, 0.69444, 0, 0], "8217": [0, 0.69444, 0, 0], "8220": [0, 0.69444, 0, 0], "8221": [0, 0.69444, 0, 0], "8224": [0.19444, 0.69444, 0, 0], "8225": [0.19444, 0.69444, 0, 0], "8242": [0, 0.55556, 0, 0], "8407": [0, 0.72444, 0.15486, 0], "8463": [0, 0.69444, 0, 0], "8465": [0, 0.69444, 0, 0], "8467": [0, 0.69444, 0, 0], "8472": [0.19444, 0.44444, 0, 0], "8476": [0, 0.69444, 0, 0], "8501": [0, 0.69444, 0, 0], "8592": [-0.10889, 0.39111, 0, 0], "8593": [0.19444, 0.69444, 0, 0], "8594": [-0.10889, 0.39111, 0, 0], "8595": [0.19444, 0.69444, 0, 0], "8596": [-0.10889, 0.39111, 0, 0], "8597": [0.25, 0.75, 0, 0], "8598": [0.19444, 0.69444, 0, 0], "8599": [0.19444, 0.69444, 0, 0], "8600": [0.19444, 0.69444, 0, 0], "8601": [0.19444, 0.69444, 0, 0], "8636": [-0.10889, 0.39111, 0, 0], "8637": [-0.10889, 0.39111, 0, 0], "8640": [-0.10889, 0.39111, 0, 0], "8641": [-0.10889, 0.39111, 0, 0], "8656": [-0.10889, 0.39111, 0, 0], "8657": [0.19444, 0.69444, 0, 0], "8658": [-0.10889, 0.39111, 0, 0], "8659": [0.19444, 0.69444, 0, 0], "8660": [-0.10889, 0.39111, 0, 0], "8661": [0.25, 0.75, 0, 0], "8704": [0, 0.69444, 0, 0], "8706": [0, 0.69444, 0.06389, 0], "8707": [0, 0.69444, 0, 0], "8709": [0.05556, 0.75, 0, 0], "8711": [0, 0.68611, 0, 0], "8712": [0.08556, 0.58556, 0, 0], "8715": [0.08556, 0.58556, 0, 0], "8722": [0.13333, 0.63333, 0, 0], "8723": [0.13333, 0.63333, 0, 0], "8725": [0.25, 0.75, 0, 0], "8726": [0.25, 0.75, 0, 0], "8727": [-0.02778, 0.47222, 0, 0], "8728": [-0.02639, 0.47361, 0, 0], "8729": [-0.02639, 0.47361, 0, 0], "8730": [0.18, 0.82, 0, 0], "8733": [0, 0.44444, 0, 0], "8734": [0, 0.44444, 0, 0], "8736": [0, 0.69224, 0, 0], "8739": [0.25, 0.75, 0, 0], "8741": [0.25, 0.75, 0, 0], "8743": [0, 0.55556, 0, 0], "8744": [0, 0.55556, 0, 0], "8745": [0, 0.55556, 0, 0], "8746": [0, 0.55556, 0, 0], "8747": [0.19444, 0.69444, 0.12778, 0], "8764": [-0.10889, 0.39111, 0, 0], "8768": [0.19444, 0.69444, 0, 0], "8771": [0.00222, 0.50222, 0, 0], "8776": [0.02444, 0.52444, 0, 0], "8781": [0.00222, 0.50222, 0, 0], "8801": [0.00222, 0.50222, 0, 0], "8804": [0.19667, 0.69667, 0, 0], "8805": [0.19667, 0.69667, 0, 0], "8810": [0.08556, 0.58556, 0, 0], "8811": [0.08556, 0.58556, 0, 0], "8826": [0.08556, 0.58556, 0, 0], "8827": [0.08556, 0.58556, 0, 0], "8834": [0.08556, 0.58556, 0, 0], "8835": [0.08556, 0.58556, 0, 0], "8838": [0.19667, 0.69667, 0, 0], "8839": [0.19667, 0.69667, 0, 0], "8846": [0, 0.55556, 0, 0], "8849": [0.19667, 0.69667, 0, 0], "8850": [0.19667, 0.69667, 0, 0], "8851": [0, 0.55556, 0, 0], "8852": [0, 0.55556, 0, 0], "8853": [0.13333, 0.63333, 0, 0], "8854": [0.13333, 0.63333, 0, 0], "8855": [0.13333, 0.63333, 0, 0], "8856": [0.13333, 0.63333, 0, 0], "8857": [0.13333, 0.63333, 0, 0], "8866": [0, 0.69444, 0, 0], "8867": [0, 0.69444, 0, 0], "8868": [0, 0.69444, 0, 0], "8869": [0, 0.69444, 0, 0], "8900": [-0.02639, 0.47361, 0, 0], "8901": [-0.02639, 0.47361, 0, 0], "8902": [-0.02778, 0.47222, 0, 0], "8968": [0.25, 0.75, 0, 0], "8969": [0.25, 0.75, 0, 0], "8970": [0.25, 0.75, 0, 0], "8971": [0.25, 0.75, 0, 0], "8994": [-0.13889, 0.36111, 0, 0], "8995": [-0.13889, 0.36111, 0, 0], "9651": [0.19444, 0.69444, 0, 0], "9657": [-0.02778, 0.47222, 0, 0], "9661": [0.19444, 0.69444, 0, 0], "9667": [-0.02778, 0.47222, 0, 0], "9711": [0.19444, 0.69444, 0, 0], "9824": [0.12963, 0.69444, 0, 0], "9825": [0.12963, 0.69444, 0, 0], "9826": [0.12963, 0.69444, 0, 0], "9827": [0.12963, 0.69444, 0, 0], "9837": [0, 0.75, 0, 0], "9838": [0.19444, 0.69444, 0, 0], "9839": [0.19444, 0.69444, 0, 0], "10216": [0.25, 0.75, 0, 0], "10217": [0.25, 0.75, 0, 0], "10815": [0, 0.68611, 0, 0], "10927": [0.19667, 0.69667, 0, 0], "10928": [0.19667, 0.69667, 0, 0], }, "Main-Italic": { "33": [0, 0.69444, 0.12417, 0], "34": [0, 0.69444, 0.06961, 0], "35": [0.19444, 0.69444, 0.06616, 0], "37": [0.05556, 0.75, 0.13639, 0], "38": [0, 0.69444, 0.09694, 0], "39": [0, 0.69444, 0.12417, 0], "40": [0.25, 0.75, 0.16194, 0], "41": [0.25, 0.75, 0.03694, 0], "42": [0, 0.75, 0.14917, 0], "43": [0.05667, 0.56167, 0.03694, 0], "44": [0.19444, 0.10556, 0, 0], "45": [0, 0.43056, 0.02826, 0], "46": [0, 0.10556, 0, 0], "47": [0.25, 0.75, 0.16194, 0], "48": [0, 0.64444, 0.13556, 0], "49": [0, 0.64444, 0.13556, 0], "50": [0, 0.64444, 0.13556, 0], "51": [0, 0.64444, 0.13556, 0], "52": [0.19444, 0.64444, 0.13556, 0], "53": [0, 0.64444, 0.13556, 0], "54": [0, 0.64444, 0.13556, 0], "55": [0.19444, 0.64444, 0.13556, 0], "56": [0, 0.64444, 0.13556, 0], "57": [0, 0.64444, 0.13556, 0], "58": [0, 0.43056, 0.0582, 0], "59": [0.19444, 0.43056, 0.0582, 0], "61": [-0.13313, 0.36687, 0.06616, 0], "63": [0, 0.69444, 0.1225, 0], "64": [0, 0.69444, 0.09597, 0], "65": [0, 0.68333, 0, 0], "66": [0, 0.68333, 0.10257, 0], "67": [0, 0.68333, 0.14528, 0], "68": [0, 0.68333, 0.09403, 0], "69": [0, 0.68333, 0.12028, 0], "70": [0, 0.68333, 0.13305, 0], "71": [0, 0.68333, 0.08722, 0], "72": [0, 0.68333, 0.16389, 0], "73": [0, 0.68333, 0.15806, 0], "74": [0, 0.68333, 0.14028, 0], "75": [0, 0.68333, 0.14528, 0], "76": [0, 0.68333, 0, 0], "77": [0, 0.68333, 0.16389, 0], "78": [0, 0.68333, 0.16389, 0], "79": [0, 0.68333, 0.09403, 0], "80": [0, 0.68333, 0.10257, 0], "81": [0.19444, 0.68333, 0.09403, 0], "82": [0, 0.68333, 0.03868, 0], "83": [0, 0.68333, 0.11972, 0], "84": [0, 0.68333, 0.13305, 0], "85": [0, 0.68333, 0.16389, 0], "86": [0, 0.68333, 0.18361, 0], "87": [0, 0.68333, 0.18361, 0], "88": [0, 0.68333, 0.15806, 0], "89": [0, 0.68333, 0.19383, 0], "90": [0, 0.68333, 0.14528, 0], "91": [0.25, 0.75, 0.1875, 0], "93": [0.25, 0.75, 0.10528, 0], "94": [0, 0.69444, 0.06646, 0], "95": [0.31, 0.12056, 0.09208, 0], "97": [0, 0.43056, 0.07671, 0], "98": [0, 0.69444, 0.06312, 0], "99": [0, 0.43056, 0.05653, 0], "100": [0, 0.69444, 0.10333, 0], "101": [0, 0.43056, 0.07514, 0], "102": [0.19444, 0.69444, 0.21194, 0], "103": [0.19444, 0.43056, 0.08847, 0], "104": [0, 0.69444, 0.07671, 0], "105": [0, 0.65536, 0.1019, 0], "106": [0.19444, 0.65536, 0.14467, 0], "107": [0, 0.69444, 0.10764, 0], "108": [0, 0.69444, 0.10333, 0], "109": [0, 0.43056, 0.07671, 0], "110": [0, 0.43056, 0.07671, 0], "111": [0, 0.43056, 0.06312, 0], "112": [0.19444, 0.43056, 0.06312, 0], "113": [0.19444, 0.43056, 0.08847, 0], "114": [0, 0.43056, 0.10764, 0], "115": [0, 0.43056, 0.08208, 0], "116": [0, 0.61508, 0.09486, 0], "117": [0, 0.43056, 0.07671, 0], "118": [0, 0.43056, 0.10764, 0], "119": [0, 0.43056, 0.10764, 0], "120": [0, 0.43056, 0.12042, 0], "121": [0.19444, 0.43056, 0.08847, 0], "122": [0, 0.43056, 0.12292, 0], "126": [0.35, 0.31786, 0.11585, 0], "163": [0, 0.69444, 0, 0], "305": [0, 0.43056, 0, 0.02778], "567": [0.19444, 0.43056, 0, 0.08334], "768": [0, 0.69444, 0, 0], "769": [0, 0.69444, 0.09694, 0], "770": [0, 0.69444, 0.06646, 0], "771": [0, 0.66786, 0.11585, 0], "772": [0, 0.56167, 0.10333, 0], "774": [0, 0.69444, 0.10806, 0], "775": [0, 0.66786, 0.11752, 0], "776": [0, 0.66786, 0.10474, 0], "778": [0, 0.69444, 0, 0], "779": [0, 0.69444, 0.1225, 0], "780": [0, 0.62847, 0.08295, 0], "915": [0, 0.68333, 0.13305, 0], "916": [0, 0.68333, 0, 0], "920": [0, 0.68333, 0.09403, 0], "923": [0, 0.68333, 0, 0], "926": [0, 0.68333, 0.15294, 0], "928": [0, 0.68333, 0.16389, 0], "931": [0, 0.68333, 0.12028, 0], "933": [0, 0.68333, 0.11111, 0], "934": [0, 0.68333, 0.05986, 0], "936": [0, 0.68333, 0.11111, 0], "937": [0, 0.68333, 0.10257, 0], "8211": [0, 0.43056, 0.09208, 0], "8212": [0, 0.43056, 0.09208, 0], "8216": [0, 0.69444, 0.12417, 0], "8217": [0, 0.69444, 0.12417, 0], "8220": [0, 0.69444, 0.1685, 0], "8221": [0, 0.69444, 0.06961, 0], "8463": [0, 0.68889, 0, 0], }, "Main-Regular": { "32": [0, 0, 0, 0], "33": [0, 0.69444, 0, 0], "34": [0, 0.69444, 0, 0], "35": [0.19444, 0.69444, 0, 0], "36": [0.05556, 0.75, 0, 0], "37": [0.05556, 0.75, 0, 0], "38": [0, 0.69444, 0, 0], "39": [0, 0.69444, 0, 0], "40": [0.25, 0.75, 0, 0], "41": [0.25, 0.75, 0, 0], "42": [0, 0.75, 0, 0], "43": [0.08333, 0.58333, 0, 0], "44": [0.19444, 0.10556, 0, 0], "45": [0, 0.43056, 0, 0], "46": [0, 0.10556, 0, 0], "47": [0.25, 0.75, 0, 0], "48": [0, 0.64444, 0, 0], "49": [0, 0.64444, 0, 0], "50": [0, 0.64444, 0, 0], "51": [0, 0.64444, 0, 0], "52": [0, 0.64444, 0, 0], "53": [0, 0.64444, 0, 0], "54": [0, 0.64444, 0, 0], "55": [0, 0.64444, 0, 0], "56": [0, 0.64444, 0, 0], "57": [0, 0.64444, 0, 0], "58": [0, 0.43056, 0, 0], "59": [0.19444, 0.43056, 0, 0], "60": [0.0391, 0.5391, 0, 0], "61": [-0.13313, 0.36687, 0, 0], "62": [0.0391, 0.5391, 0, 0], "63": [0, 0.69444, 0, 0], "64": [0, 0.69444, 0, 0], "65": [0, 0.68333, 0, 0], "66": [0, 0.68333, 0, 0], "67": [0, 0.68333, 0, 0], "68": [0, 0.68333, 0, 0], "69": [0, 0.68333, 0, 0], "70": [0, 0.68333, 0, 0], "71": [0, 0.68333, 0, 0], "72": [0, 0.68333, 0, 0], "73": [0, 0.68333, 0, 0], "74": [0, 0.68333, 0, 0], "75": [0, 0.68333, 0, 0], "76": [0, 0.68333, 0, 0], "77": [0, 0.68333, 0, 0], "78": [0, 0.68333, 0, 0], "79": [0, 0.68333, 0, 0], "80": [0, 0.68333, 0, 0], "81": [0.19444, 0.68333, 0, 0], "82": [0, 0.68333, 0, 0], "83": [0, 0.68333, 0, 0], "84": [0, 0.68333, 0, 0], "85": [0, 0.68333, 0, 0], "86": [0, 0.68333, 0.01389, 0], "87": [0, 0.68333, 0.01389, 0], "88": [0, 0.68333, 0, 0], "89": [0, 0.68333, 0.025, 0], "90": [0, 0.68333, 0, 0], "91": [0.25, 0.75, 0, 0], "92": [0.25, 0.75, 0, 0], "93": [0.25, 0.75, 0, 0], "94": [0, 0.69444, 0, 0], "95": [0.31, 0.12056, 0.02778, 0], "96": [0, 0.69444, 0, 0], "97": [0, 0.43056, 0, 0], "98": [0, 0.69444, 0, 0], "99": [0, 0.43056, 0, 0], "100": [0, 0.69444, 0, 0], "101": [0, 0.43056, 0, 0], "102": [0, 0.69444, 0.07778, 0], "103": [0.19444, 0.43056, 0.01389, 0], "104": [0, 0.69444, 0, 0], "105": [0, 0.66786, 0, 0], "106": [0.19444, 0.66786, 0, 0], "107": [0, 0.69444, 0, 0], "108": [0, 0.69444, 0, 0], "109": [0, 0.43056, 0, 0], "110": [0, 0.43056, 0, 0], "111": [0, 0.43056, 0, 0], "112": [0.19444, 0.43056, 0, 0], "113": [0.19444, 0.43056, 0, 0], "114": [0, 0.43056, 0, 0], "115": [0, 0.43056, 0, 0], "116": [0, 0.61508, 0, 0], "117": [0, 0.43056, 0, 0], "118": [0, 0.43056, 0.01389, 0], "119": [0, 0.43056, 0.01389, 0], "120": [0, 0.43056, 0, 0], "121": [0.19444, 0.43056, 0.01389, 0], "122": [0, 0.43056, 0, 0], "123": [0.25, 0.75, 0, 0], "124": [0.25, 0.75, 0, 0], "125": [0.25, 0.75, 0, 0], "126": [0.35, 0.31786, 0, 0], "160": [0, 0, 0, 0], "168": [0, 0.66786, 0, 0], "172": [0, 0.43056, 0, 0], "175": [0, 0.56778, 0, 0], "176": [0, 0.69444, 0, 0], "177": [0.08333, 0.58333, 0, 0], "180": [0, 0.69444, 0, 0], "215": [0.08333, 0.58333, 0, 0], "247": [0.08333, 0.58333, 0, 0], "305": [0, 0.43056, 0, 0], "567": [0.19444, 0.43056, 0, 0], "710": [0, 0.69444, 0, 0], "711": [0, 0.62847, 0, 0], "713": [0, 0.56778, 0, 0], "714": [0, 0.69444, 0, 0], "715": [0, 0.69444, 0, 0], "728": [0, 0.69444, 0, 0], "729": [0, 0.66786, 0, 0], "730": [0, 0.69444, 0, 0], "732": [0, 0.66786, 0, 0], "768": [0, 0.69444, 0, 0], "769": [0, 0.69444, 0, 0], "770": [0, 0.69444, 0, 0], "771": [0, 0.66786, 0, 0], "772": [0, 0.56778, 0, 0], "774": [0, 0.69444, 0, 0], "775": [0, 0.66786, 0, 0], "776": [0, 0.66786, 0, 0], "778": [0, 0.69444, 0, 0], "779": [0, 0.69444, 0, 0], "780": [0, 0.62847, 0, 0], "824": [0.19444, 0.69444, 0, 0], "915": [0, 0.68333, 0, 0], "916": [0, 0.68333, 0, 0], "920": [0, 0.68333, 0, 0], "923": [0, 0.68333, 0, 0], "926": [0, 0.68333, 0, 0], "928": [0, 0.68333, 0, 0], "931": [0, 0.68333, 0, 0], "933": [0, 0.68333, 0, 0], "934": [0, 0.68333, 0, 0], "936": [0, 0.68333, 0, 0], "937": [0, 0.68333, 0, 0], "8211": [0, 0.43056, 0.02778, 0], "8212": [0, 0.43056, 0.02778, 0], "8216": [0, 0.69444, 0, 0], "8217": [0, 0.69444, 0, 0], "8220": [0, 0.69444, 0, 0], "8221": [0, 0.69444, 0, 0], "8224": [0.19444, 0.69444, 0, 0], "8225": [0.19444, 0.69444, 0, 0], "8230": [0, 0.12, 0, 0], "8242": [0, 0.55556, 0, 0], "8407": [0, 0.71444, 0.15382, 0], "8463": [0, 0.68889, 0, 0], "8465": [0, 0.69444, 0, 0], "8467": [0, 0.69444, 0, 0.11111], "8472": [0.19444, 0.43056, 0, 0.11111], "8476": [0, 0.69444, 0, 0], "8501": [0, 0.69444, 0, 0], "8592": [-0.13313, 0.36687, 0, 0], "8593": [0.19444, 0.69444, 0, 0], "8594": [-0.13313, 0.36687, 0, 0], "8595": [0.19444, 0.69444, 0, 0], "8596": [-0.13313, 0.36687, 0, 0], "8597": [0.25, 0.75, 0, 0], "8598": [0.19444, 0.69444, 0, 0], "8599": [0.19444, 0.69444, 0, 0], "8600": [0.19444, 0.69444, 0, 0], "8601": [0.19444, 0.69444, 0, 0], "8614": [0.011, 0.511, 0, 0], "8617": [0.011, 0.511, 0, 0], "8618": [0.011, 0.511, 0, 0], "8636": [-0.13313, 0.36687, 0, 0], "8637": [-0.13313, 0.36687, 0, 0], "8640": [-0.13313, 0.36687, 0, 0], "8641": [-0.13313, 0.36687, 0, 0], "8652": [0.011, 0.671, 0, 0], "8656": [-0.13313, 0.36687, 0, 0], "8657": [0.19444, 0.69444, 0, 0], "8658": [-0.13313, 0.36687, 0, 0], "8659": [0.19444, 0.69444, 0, 0], "8660": [-0.13313, 0.36687, 0, 0], "8661": [0.25, 0.75, 0, 0], "8704": [0, 0.69444, 0, 0], "8706": [0, 0.69444, 0.05556, 0.08334], "8707": [0, 0.69444, 0, 0], "8709": [0.05556, 0.75, 0, 0], "8711": [0, 0.68333, 0, 0], "8712": [0.0391, 0.5391, 0, 0], "8715": [0.0391, 0.5391, 0, 0], "8722": [0.08333, 0.58333, 0, 0], "8723": [0.08333, 0.58333, 0, 0], "8725": [0.25, 0.75, 0, 0], "8726": [0.25, 0.75, 0, 0], "8727": [-0.03472, 0.46528, 0, 0], "8728": [-0.05555, 0.44445, 0, 0], "8729": [-0.05555, 0.44445, 0, 0], "8730": [0.2, 0.8, 0, 0], "8733": [0, 0.43056, 0, 0], "8734": [0, 0.43056, 0, 0], "8736": [0, 0.69224, 0, 0], "8739": [0.25, 0.75, 0, 0], "8741": [0.25, 0.75, 0, 0], "8743": [0, 0.55556, 0, 0], "8744": [0, 0.55556, 0, 0], "8745": [0, 0.55556, 0, 0], "8746": [0, 0.55556, 0, 0], "8747": [0.19444, 0.69444, 0.11111, 0], "8764": [-0.13313, 0.36687, 0, 0], "8768": [0.19444, 0.69444, 0, 0], "8771": [-0.03625, 0.46375, 0, 0], "8773": [-0.022, 0.589, 0, 0], "8776": [-0.01688, 0.48312, 0, 0], "8781": [-0.03625, 0.46375, 0, 0], "8784": [-0.133, 0.67, 0, 0], "8800": [0.215, 0.716, 0, 0], "8801": [-0.03625, 0.46375, 0, 0], "8804": [0.13597, 0.63597, 0, 0], "8805": [0.13597, 0.63597, 0, 0], "8810": [0.0391, 0.5391, 0, 0], "8811": [0.0391, 0.5391, 0, 0], "8826": [0.0391, 0.5391, 0, 0], "8827": [0.0391, 0.5391, 0, 0], "8834": [0.0391, 0.5391, 0, 0], "8835": [0.0391, 0.5391, 0, 0], "8838": [0.13597, 0.63597, 0, 0], "8839": [0.13597, 0.63597, 0, 0], "8846": [0, 0.55556, 0, 0], "8849": [0.13597, 0.63597, 0, 0], "8850": [0.13597, 0.63597, 0, 0], "8851": [0, 0.55556, 0, 0], "8852": [0, 0.55556, 0, 0], "8853": [0.08333, 0.58333, 0, 0], "8854": [0.08333, 0.58333, 0, 0], "8855": [0.08333, 0.58333, 0, 0], "8856": [0.08333, 0.58333, 0, 0], "8857": [0.08333, 0.58333, 0, 0], "8866": [0, 0.69444, 0, 0], "8867": [0, 0.69444, 0, 0], "8868": [0, 0.69444, 0, 0], "8869": [0, 0.69444, 0, 0], "8872": [0.249, 0.75, 0, 0], "8900": [-0.05555, 0.44445, 0, 0], "8901": [-0.05555, 0.44445, 0, 0], "8902": [-0.03472, 0.46528, 0, 0], "8904": [0.005, 0.505, 0, 0], "8942": [0.03, 0.9, 0, 0], "8943": [-0.19, 0.31, 0, 0], "8945": [-0.1, 0.82, 0, 0], "8968": [0.25, 0.75, 0, 0], "8969": [0.25, 0.75, 0, 0], "8970": [0.25, 0.75, 0, 0], "8971": [0.25, 0.75, 0, 0], "8994": [-0.14236, 0.35764, 0, 0], "8995": [-0.14236, 0.35764, 0, 0], "9136": [0.244, 0.744, 0, 0], "9137": [0.244, 0.744, 0, 0], "9651": [0.19444, 0.69444, 0, 0], "9657": [-0.03472, 0.46528, 0, 0], "9661": [0.19444, 0.69444, 0, 0], "9667": [-0.03472, 0.46528, 0, 0], "9711": [0.19444, 0.69444, 0, 0], "9824": [0.12963, 0.69444, 0, 0], "9825": [0.12963, 0.69444, 0, 0], "9826": [0.12963, 0.69444, 0, 0], "9827": [0.12963, 0.69444, 0, 0], "9837": [0, 0.75, 0, 0], "9838": [0.19444, 0.69444, 0, 0], "9839": [0.19444, 0.69444, 0, 0], "10216": [0.25, 0.75, 0, 0], "10217": [0.25, 0.75, 0, 0], "10222": [0.244, 0.744, 0, 0], "10223": [0.244, 0.744, 0, 0], "10229": [0.011, 0.511, 0, 0], "10230": [0.011, 0.511, 0, 0], "10231": [0.011, 0.511, 0, 0], "10232": [0.024, 0.525, 0, 0], "10233": [0.024, 0.525, 0, 0], "10234": [0.024, 0.525, 0, 0], "10236": [0.011, 0.511, 0, 0], "10815": [0, 0.68333, 0, 0], "10927": [0.13597, 0.63597, 0, 0], "10928": [0.13597, 0.63597, 0, 0], }, "Math-BoldItalic": { "47": [0.19444, 0.69444, 0, 0], "65": [0, 0.68611, 0, 0], "66": [0, 0.68611, 0.04835, 0], "67": [0, 0.68611, 0.06979, 0], "68": [0, 0.68611, 0.03194, 0], "69": [0, 0.68611, 0.05451, 0], "70": [0, 0.68611, 0.15972, 0], "71": [0, 0.68611, 0, 0], "72": [0, 0.68611, 0.08229, 0], "73": [0, 0.68611, 0.07778, 0], "74": [0, 0.68611, 0.10069, 0], "75": [0, 0.68611, 0.06979, 0], "76": [0, 0.68611, 0, 0], "77": [0, 0.68611, 0.11424, 0], "78": [0, 0.68611, 0.11424, 0], "79": [0, 0.68611, 0.03194, 0], "80": [0, 0.68611, 0.15972, 0], "81": [0.19444, 0.68611, 0, 0], "82": [0, 0.68611, 0.00421, 0], "83": [0, 0.68611, 0.05382, 0], "84": [0, 0.68611, 0.15972, 0], "85": [0, 0.68611, 0.11424, 0], "86": [0, 0.68611, 0.25555, 0], "87": [0, 0.68611, 0.15972, 0], "88": [0, 0.68611, 0.07778, 0], "89": [0, 0.68611, 0.25555, 0], "90": [0, 0.68611, 0.06979, 0], "97": [0, 0.44444, 0, 0], "98": [0, 0.69444, 0, 0], "99": [0, 0.44444, 0, 0], "100": [0, 0.69444, 0, 0], "101": [0, 0.44444, 0, 0], "102": [0.19444, 0.69444, 0.11042, 0], "103": [0.19444, 0.44444, 0.03704, 0], "104": [0, 0.69444, 0, 0], "105": [0, 0.69326, 0, 0], "106": [0.19444, 0.69326, 0.0622, 0], "107": [0, 0.69444, 0.01852, 0], "108": [0, 0.69444, 0.0088, 0], "109": [0, 0.44444, 0, 0], "110": [0, 0.44444, 0, 0], "111": [0, 0.44444, 0, 0], "112": [0.19444, 0.44444, 0, 0], "113": [0.19444, 0.44444, 0.03704, 0], "114": [0, 0.44444, 0.03194, 0], "115": [0, 0.44444, 0, 0], "116": [0, 0.63492, 0, 0], "117": [0, 0.44444, 0, 0], "118": [0, 0.44444, 0.03704, 0], "119": [0, 0.44444, 0.02778, 0], "120": [0, 0.44444, 0, 0], "121": [0.19444, 0.44444, 0.03704, 0], "122": [0, 0.44444, 0.04213, 0], "915": [0, 0.68611, 0.15972, 0], "916": [0, 0.68611, 0, 0], "920": [0, 0.68611, 0.03194, 0], "923": [0, 0.68611, 0, 0], "926": [0, 0.68611, 0.07458, 0], "928": [0, 0.68611, 0.08229, 0], "931": [0, 0.68611, 0.05451, 0], "933": [0, 0.68611, 0.15972, 0], "934": [0, 0.68611, 0, 0], "936": [0, 0.68611, 0.11653, 0], "937": [0, 0.68611, 0.04835, 0], "945": [0, 0.44444, 0, 0], "946": [0.19444, 0.69444, 0.03403, 0], "947": [0.19444, 0.44444, 0.06389, 0], "948": [0, 0.69444, 0.03819, 0], "949": [0, 0.44444, 0, 0], "950": [0.19444, 0.69444, 0.06215, 0], "951": [0.19444, 0.44444, 0.03704, 0], "952": [0, 0.69444, 0.03194, 0], "953": [0, 0.44444, 0, 0], "954": [0, 0.44444, 0, 0], "955": [0, 0.69444, 0, 0], "956": [0.19444, 0.44444, 0, 0], "957": [0, 0.44444, 0.06898, 0], "958": [0.19444, 0.69444, 0.03021, 0], "959": [0, 0.44444, 0, 0], "960": [0, 0.44444, 0.03704, 0], "961": [0.19444, 0.44444, 0, 0], "962": [0.09722, 0.44444, 0.07917, 0], "963": [0, 0.44444, 0.03704, 0], "964": [0, 0.44444, 0.13472, 0], "965": [0, 0.44444, 0.03704, 0], "966": [0.19444, 0.44444, 0, 0], "967": [0.19444, 0.44444, 0, 0], "968": [0.19444, 0.69444, 0.03704, 0], "969": [0, 0.44444, 0.03704, 0], "977": [0, 0.69444, 0, 0], "981": [0.19444, 0.69444, 0, 0], "982": [0, 0.44444, 0.03194, 0], "1009": [0.19444, 0.44444, 0, 0], "1013": [0, 0.44444, 0, 0], }, "Math-Italic": { "47": [0.19444, 0.69444, 0, 0], "65": [0, 0.68333, 0, 0.13889], "66": [0, 0.68333, 0.05017, 0.08334], "67": [0, 0.68333, 0.07153, 0.08334], "68": [0, 0.68333, 0.02778, 0.05556], "69": [0, 0.68333, 0.05764, 0.08334], "70": [0, 0.68333, 0.13889, 0.08334], "71": [0, 0.68333, 0, 0.08334], "72": [0, 0.68333, 0.08125, 0.05556], "73": [0, 0.68333, 0.07847, 0.11111], "74": [0, 0.68333, 0.09618, 0.16667], "75": [0, 0.68333, 0.07153, 0.05556], "76": [0, 0.68333, 0, 0.02778], "77": [0, 0.68333, 0.10903, 0.08334], "78": [0, 0.68333, 0.10903, 0.08334], "79": [0, 0.68333, 0.02778, 0.08334], "80": [0, 0.68333, 0.13889, 0.08334], "81": [0.19444, 0.68333, 0, 0.08334], "82": [0, 0.68333, 0.00773, 0.08334], "83": [0, 0.68333, 0.05764, 0.08334], "84": [0, 0.68333, 0.13889, 0.08334], "85": [0, 0.68333, 0.10903, 0.02778], "86": [0, 0.68333, 0.22222, 0], "87": [0, 0.68333, 0.13889, 0], "88": [0, 0.68333, 0.07847, 0.08334], "89": [0, 0.68333, 0.22222, 0], "90": [0, 0.68333, 0.07153, 0.08334], "97": [0, 0.43056, 0, 0], "98": [0, 0.69444, 0, 0], "99": [0, 0.43056, 0, 0.05556], "100": [0, 0.69444, 0, 0.16667], "101": [0, 0.43056, 0, 0.05556], "102": [0.19444, 0.69444, 0.10764, 0.16667], "103": [0.19444, 0.43056, 0.03588, 0.02778], "104": [0, 0.69444, 0, 0], "105": [0, 0.65952, 0, 0], "106": [0.19444, 0.65952, 0.05724, 0], "107": [0, 0.69444, 0.03148, 0], "108": [0, 0.69444, 0.01968, 0.08334], "109": [0, 0.43056, 0, 0], "110": [0, 0.43056, 0, 0], "111": [0, 0.43056, 0, 0.05556], "112": [0.19444, 0.43056, 0, 0.08334], "113": [0.19444, 0.43056, 0.03588, 0.08334], "114": [0, 0.43056, 0.02778, 0.05556], "115": [0, 0.43056, 0, 0.05556], "116": [0, 0.61508, 0, 0.08334], "117": [0, 0.43056, 0, 0.02778], "118": [0, 0.43056, 0.03588, 0.02778], "119": [0, 0.43056, 0.02691, 0.08334], "120": [0, 0.43056, 0, 0.02778], "121": [0.19444, 0.43056, 0.03588, 0.05556], "122": [0, 0.43056, 0.04398, 0.05556], "915": [0, 0.68333, 0.13889, 0.08334], "916": [0, 0.68333, 0, 0.16667], "920": [0, 0.68333, 0.02778, 0.08334], "923": [0, 0.68333, 0, 0.16667], "926": [0, 0.68333, 0.07569, 0.08334], "928": [0, 0.68333, 0.08125, 0.05556], "931": [0, 0.68333, 0.05764, 0.08334], "933": [0, 0.68333, 0.13889, 0.05556], "934": [0, 0.68333, 0, 0.08334], "936": [0, 0.68333, 0.11, 0.05556], "937": [0, 0.68333, 0.05017, 0.08334], "945": [0, 0.43056, 0.0037, 0.02778], "946": [0.19444, 0.69444, 0.05278, 0.08334], "947": [0.19444, 0.43056, 0.05556, 0], "948": [0, 0.69444, 0.03785, 0.05556], "949": [0, 0.43056, 0, 0.08334], "950": [0.19444, 0.69444, 0.07378, 0.08334], "951": [0.19444, 0.43056, 0.03588, 0.05556], "952": [0, 0.69444, 0.02778, 0.08334], "953": [0, 0.43056, 0, 0.05556], "954": [0, 0.43056, 0, 0], "955": [0, 0.69444, 0, 0], "956": [0.19444, 0.43056, 0, 0.02778], "957": [0, 0.43056, 0.06366, 0.02778], "958": [0.19444, 0.69444, 0.04601, 0.11111], "959": [0, 0.43056, 0, 0.05556], "960": [0, 0.43056, 0.03588, 0], "961": [0.19444, 0.43056, 0, 0.08334], "962": [0.09722, 0.43056, 0.07986, 0.08334], "963": [0, 0.43056, 0.03588, 0], "964": [0, 0.43056, 0.1132, 0.02778], "965": [0, 0.43056, 0.03588, 0.02778], "966": [0.19444, 0.43056, 0, 0.08334], "967": [0.19444, 0.43056, 0, 0.05556], "968": [0.19444, 0.69444, 0.03588, 0.11111], "969": [0, 0.43056, 0.03588, 0], "977": [0, 0.69444, 0, 0.08334], "981": [0.19444, 0.69444, 0, 0.08334], "982": [0, 0.43056, 0.02778, 0], "1009": [0.19444, 0.43056, 0, 0.08334], "1013": [0, 0.43056, 0, 0.05556], }, "Math-Regular": { "65": [0, 0.68333, 0, 0.13889], "66": [0, 0.68333, 0.05017, 0.08334], "67": [0, 0.68333, 0.07153, 0.08334], "68": [0, 0.68333, 0.02778, 0.05556], "69": [0, 0.68333, 0.05764, 0.08334], "70": [0, 0.68333, 0.13889, 0.08334], "71": [0, 0.68333, 0, 0.08334], "72": [0, 0.68333, 0.08125, 0.05556], "73": [0, 0.68333, 0.07847, 0.11111], "74": [0, 0.68333, 0.09618, 0.16667], "75": [0, 0.68333, 0.07153, 0.05556], "76": [0, 0.68333, 0, 0.02778], "77": [0, 0.68333, 0.10903, 0.08334], "78": [0, 0.68333, 0.10903, 0.08334], "79": [0, 0.68333, 0.02778, 0.08334], "80": [0, 0.68333, 0.13889, 0.08334], "81": [0.19444, 0.68333, 0, 0.08334], "82": [0, 0.68333, 0.00773, 0.08334], "83": [0, 0.68333, 0.05764, 0.08334], "84": [0, 0.68333, 0.13889, 0.08334], "85": [0, 0.68333, 0.10903, 0.02778], "86": [0, 0.68333, 0.22222, 0], "87": [0, 0.68333, 0.13889, 0], "88": [0, 0.68333, 0.07847, 0.08334], "89": [0, 0.68333, 0.22222, 0], "90": [0, 0.68333, 0.07153, 0.08334], "97": [0, 0.43056, 0, 0], "98": [0, 0.69444, 0, 0], "99": [0, 0.43056, 0, 0.05556], "100": [0, 0.69444, 0, 0.16667], "101": [0, 0.43056, 0, 0.05556], "102": [0.19444, 0.69444, 0.10764, 0.16667], "103": [0.19444, 0.43056, 0.03588, 0.02778], "104": [0, 0.69444, 0, 0], "105": [0, 0.65952, 0, 0], "106": [0.19444, 0.65952, 0.05724, 0], "107": [0, 0.69444, 0.03148, 0], "108": [0, 0.69444, 0.01968, 0.08334], "109": [0, 0.43056, 0, 0], "110": [0, 0.43056, 0, 0], "111": [0, 0.43056, 0, 0.05556], "112": [0.19444, 0.43056, 0, 0.08334], "113": [0.19444, 0.43056, 0.03588, 0.08334], "114": [0, 0.43056, 0.02778, 0.05556], "115": [0, 0.43056, 0, 0.05556], "116": [0, 0.61508, 0, 0.08334], "117": [0, 0.43056, 0, 0.02778], "118": [0, 0.43056, 0.03588, 0.02778], "119": [0, 0.43056, 0.02691, 0.08334], "120": [0, 0.43056, 0, 0.02778], "121": [0.19444, 0.43056, 0.03588, 0.05556], "122": [0, 0.43056, 0.04398, 0.05556], "915": [0, 0.68333, 0.13889, 0.08334], "916": [0, 0.68333, 0, 0.16667], "920": [0, 0.68333, 0.02778, 0.08334], "923": [0, 0.68333, 0, 0.16667], "926": [0, 0.68333, 0.07569, 0.08334], "928": [0, 0.68333, 0.08125, 0.05556], "931": [0, 0.68333, 0.05764, 0.08334], "933": [0, 0.68333, 0.13889, 0.05556], "934": [0, 0.68333, 0, 0.08334], "936": [0, 0.68333, 0.11, 0.05556], "937": [0, 0.68333, 0.05017, 0.08334], "945": [0, 0.43056, 0.0037, 0.02778], "946": [0.19444, 0.69444, 0.05278, 0.08334], "947": [0.19444, 0.43056, 0.05556, 0], "948": [0, 0.69444, 0.03785, 0.05556], "949": [0, 0.43056, 0, 0.08334], "950": [0.19444, 0.69444, 0.07378, 0.08334], "951": [0.19444, 0.43056, 0.03588, 0.05556], "952": [0, 0.69444, 0.02778, 0.08334], "953": [0, 0.43056, 0, 0.05556], "954": [0, 0.43056, 0, 0], "955": [0, 0.69444, 0, 0], "956": [0.19444, 0.43056, 0, 0.02778], "957": [0, 0.43056, 0.06366, 0.02778], "958": [0.19444, 0.69444, 0.04601, 0.11111], "959": [0, 0.43056, 0, 0.05556], "960": [0, 0.43056, 0.03588, 0], "961": [0.19444, 0.43056, 0, 0.08334], "962": [0.09722, 0.43056, 0.07986, 0.08334], "963": [0, 0.43056, 0.03588, 0], "964": [0, 0.43056, 0.1132, 0.02778], "965": [0, 0.43056, 0.03588, 0.02778], "966": [0.19444, 0.43056, 0, 0.08334], "967": [0.19444, 0.43056, 0, 0.05556], "968": [0.19444, 0.69444, 0.03588, 0.11111], "969": [0, 0.43056, 0.03588, 0], "977": [0, 0.69444, 0, 0.08334], "981": [0.19444, 0.69444, 0, 0.08334], "982": [0, 0.43056, 0.02778, 0], "1009": [0.19444, 0.43056, 0, 0.08334], "1013": [0, 0.43056, 0, 0.05556], }, "SansSerif-Regular": { "33": [0, 0.69444, 0, 0], "34": [0, 0.69444, 0, 0], "35": [0.19444, 0.69444, 0, 0], "36": [0.05556, 0.75, 0, 0], "37": [0.05556, 0.75, 0, 0], "38": [0, 0.69444, 0, 0], "39": [0, 0.69444, 0, 0], "40": [0.25, 0.75, 0, 0], "41": [0.25, 0.75, 0, 0], "42": [0, 0.75, 0, 0], "43": [0.08333, 0.58333, 0, 0], "44": [0.125, 0.08333, 0, 0], "45": [0, 0.44444, 0, 0], "46": [0, 0.08333, 0, 0], "47": [0.25, 0.75, 0, 0], "48": [0, 0.65556, 0, 0], "49": [0, 0.65556, 0, 0], "50": [0, 0.65556, 0, 0], "51": [0, 0.65556, 0, 0], "52": [0, 0.65556, 0, 0], "53": [0, 0.65556, 0, 0], "54": [0, 0.65556, 0, 0], "55": [0, 0.65556, 0, 0], "56": [0, 0.65556, 0, 0], "57": [0, 0.65556, 0, 0], "58": [0, 0.44444, 0, 0], "59": [0.125, 0.44444, 0, 0], "61": [-0.13, 0.37, 0, 0], "63": [0, 0.69444, 0, 0], "64": [0, 0.69444, 0, 0], "65": [0, 0.69444, 0, 0], "66": [0, 0.69444, 0, 0], "67": [0, 0.69444, 0, 0], "68": [0, 0.69444, 0, 0], "69": [0, 0.69444, 0, 0], "70": [0, 0.69444, 0, 0], "71": [0, 0.69444, 0, 0], "72": [0, 0.69444, 0, 0], "73": [0, 0.69444, 0, 0], "74": [0, 0.69444, 0, 0], "75": [0, 0.69444, 0, 0], "76": [0, 0.69444, 0, 0], "77": [0, 0.69444, 0, 0], "78": [0, 0.69444, 0, 0], "79": [0, 0.69444, 0, 0], "80": [0, 0.69444, 0, 0], "81": [0.125, 0.69444, 0, 0], "82": [0, 0.69444, 0, 0], "83": [0, 0.69444, 0, 0], "84": [0, 0.69444, 0, 0], "85": [0, 0.69444, 0, 0], "86": [0, 0.69444, 0.01389, 0], "87": [0, 0.69444, 0.01389, 0], "88": [0, 0.69444, 0, 0], "89": [0, 0.69444, 0.025, 0], "90": [0, 0.69444, 0, 0], "91": [0.25, 0.75, 0, 0], "93": [0.25, 0.75, 0, 0], "94": [0, 0.69444, 0, 0], "95": [0.35, 0.09444, 0.02778, 0], "97": [0, 0.44444, 0, 0], "98": [0, 0.69444, 0, 0], "99": [0, 0.44444, 0, 0], "100": [0, 0.69444, 0, 0], "101": [0, 0.44444, 0, 0], "102": [0, 0.69444, 0.06944, 0], "103": [0.19444, 0.44444, 0.01389, 0], "104": [0, 0.69444, 0, 0], "105": [0, 0.67937, 0, 0], "106": [0.19444, 0.67937, 0, 0], "107": [0, 0.69444, 0, 0], "108": [0, 0.69444, 0, 0], "109": [0, 0.44444, 0, 0], "110": [0, 0.44444, 0, 0], "111": [0, 0.44444, 0, 0], "112": [0.19444, 0.44444, 0, 0], "113": [0.19444, 0.44444, 0, 0], "114": [0, 0.44444, 0.01389, 0], "115": [0, 0.44444, 0, 0], "116": [0, 0.57143, 0, 0], "117": [0, 0.44444, 0, 0], "118": [0, 0.44444, 0.01389, 0], "119": [0, 0.44444, 0.01389, 0], "120": [0, 0.44444, 0, 0], "121": [0.19444, 0.44444, 0.01389, 0], "122": [0, 0.44444, 0, 0], "126": [0.35, 0.32659, 0, 0], "305": [0, 0.44444, 0, 0], "567": [0.19444, 0.44444, 0, 0], "768": [0, 0.69444, 0, 0], "769": [0, 0.69444, 0, 0], "770": [0, 0.69444, 0, 0], "771": [0, 0.67659, 0, 0], "772": [0, 0.60889, 0, 0], "774": [0, 0.69444, 0, 0], "775": [0, 0.67937, 0, 0], "776": [0, 0.67937, 0, 0], "778": [0, 0.69444, 0, 0], "779": [0, 0.69444, 0, 0], "780": [0, 0.63194, 0, 0], "915": [0, 0.69444, 0, 0], "916": [0, 0.69444, 0, 0], "920": [0, 0.69444, 0, 0], "923": [0, 0.69444, 0, 0], "926": [0, 0.69444, 0, 0], "928": [0, 0.69444, 0, 0], "931": [0, 0.69444, 0, 0], "933": [0, 0.69444, 0, 0], "934": [0, 0.69444, 0, 0], "936": [0, 0.69444, 0, 0], "937": [0, 0.69444, 0, 0], "8211": [0, 0.44444, 0.02778, 0], "8212": [0, 0.44444, 0.02778, 0], "8216": [0, 0.69444, 0, 0], "8217": [0, 0.69444, 0, 0], "8220": [0, 0.69444, 0, 0], "8221": [0, 0.69444, 0, 0], }, "Script-Regular": { "65": [0, 0.7, 0.22925, 0], "66": [0, 0.7, 0.04087, 0], "67": [0, 0.7, 0.1689, 0], "68": [0, 0.7, 0.09371, 0], "69": [0, 0.7, 0.18583, 0], "70": [0, 0.7, 0.13634, 0], "71": [0, 0.7, 0.17322, 0], "72": [0, 0.7, 0.29694, 0], "73": [0, 0.7, 0.19189, 0], "74": [0.27778, 0.7, 0.19189, 0], "75": [0, 0.7, 0.31259, 0], "76": [0, 0.7, 0.19189, 0], "77": [0, 0.7, 0.15981, 0], "78": [0, 0.7, 0.3525, 0], "79": [0, 0.7, 0.08078, 0], "80": [0, 0.7, 0.08078, 0], "81": [0, 0.7, 0.03305, 0], "82": [0, 0.7, 0.06259, 0], "83": [0, 0.7, 0.19189, 0], "84": [0, 0.7, 0.29087, 0], "85": [0, 0.7, 0.25815, 0], "86": [0, 0.7, 0.27523, 0], "87": [0, 0.7, 0.27523, 0], "88": [0, 0.7, 0.26006, 0], "89": [0, 0.7, 0.2939, 0], "90": [0, 0.7, 0.24037, 0], }, "Size1-Regular": { "40": [0.35001, 0.85, 0, 0], "41": [0.35001, 0.85, 0, 0], "47": [0.35001, 0.85, 0, 0], "91": [0.35001, 0.85, 0, 0], "92": [0.35001, 0.85, 0, 0], "93": [0.35001, 0.85, 0, 0], "123": [0.35001, 0.85, 0, 0], "125": [0.35001, 0.85, 0, 0], "710": [0, 0.72222, 0, 0], "732": [0, 0.72222, 0, 0], "770": [0, 0.72222, 0, 0], "771": [0, 0.72222, 0, 0], "8214": [-0.00099, 0.601, 0, 0], "8593": [1e-05, 0.6, 0, 0], "8595": [1e-05, 0.6, 0, 0], "8657": [1e-05, 0.6, 0, 0], "8659": [1e-05, 0.6, 0, 0], "8719": [0.25001, 0.75, 0, 0], "8720": [0.25001, 0.75, 0, 0], "8721": [0.25001, 0.75, 0, 0], "8730": [0.35001, 0.85, 0, 0], "8739": [-0.00599, 0.606, 0, 0], "8741": [-0.00599, 0.606, 0, 0], "8747": [0.30612, 0.805, 0.19445, 0], "8748": [0.306, 0.805, 0.19445, 0], "8749": [0.306, 0.805, 0.19445, 0], "8750": [0.30612, 0.805, 0.19445, 0], "8896": [0.25001, 0.75, 0, 0], "8897": [0.25001, 0.75, 0, 0], "8898": [0.25001, 0.75, 0, 0], "8899": [0.25001, 0.75, 0, 0], "8968": [0.35001, 0.85, 0, 0], "8969": [0.35001, 0.85, 0, 0], "8970": [0.35001, 0.85, 0, 0], "8971": [0.35001, 0.85, 0, 0], "9168": [-0.00099, 0.601, 0, 0], "10216": [0.35001, 0.85, 0, 0], "10217": [0.35001, 0.85, 0, 0], "10752": [0.25001, 0.75, 0, 0], "10753": [0.25001, 0.75, 0, 0], "10754": [0.25001, 0.75, 0, 0], "10756": [0.25001, 0.75, 0, 0], "10758": [0.25001, 0.75, 0, 0], }, "Size2-Regular": { "40": [0.65002, 1.15, 0, 0], "41": [0.65002, 1.15, 0, 0], "47": [0.65002, 1.15, 0, 0], "91": [0.65002, 1.15, 0, 0], "92": [0.65002, 1.15, 0, 0], "93": [0.65002, 1.15, 0, 0], "123": [0.65002, 1.15, 0, 0], "125": [0.65002, 1.15, 0, 0], "710": [0, 0.75, 0, 0], "732": [0, 0.75, 0, 0], "770": [0, 0.75, 0, 0], "771": [0, 0.75, 0, 0], "8719": [0.55001, 1.05, 0, 0], "8720": [0.55001, 1.05, 0, 0], "8721": [0.55001, 1.05, 0, 0], "8730": [0.65002, 1.15, 0, 0], "8747": [0.86225, 1.36, 0.44445, 0], "8748": [0.862, 1.36, 0.44445, 0], "8749": [0.862, 1.36, 0.44445, 0], "8750": [0.86225, 1.36, 0.44445, 0], "8896": [0.55001, 1.05, 0, 0], "8897": [0.55001, 1.05, 0, 0], "8898": [0.55001, 1.05, 0, 0], "8899": [0.55001, 1.05, 0, 0], "8968": [0.65002, 1.15, 0, 0], "8969": [0.65002, 1.15, 0, 0], "8970": [0.65002, 1.15, 0, 0], "8971": [0.65002, 1.15, 0, 0], "10216": [0.65002, 1.15, 0, 0], "10217": [0.65002, 1.15, 0, 0], "10752": [0.55001, 1.05, 0, 0], "10753": [0.55001, 1.05, 0, 0], "10754": [0.55001, 1.05, 0, 0], "10756": [0.55001, 1.05, 0, 0], "10758": [0.55001, 1.05, 0, 0], }, "Size3-Regular": { "40": [0.95003, 1.45, 0, 0], "41": [0.95003, 1.45, 0, 0], "47": [0.95003, 1.45, 0, 0], "91": [0.95003, 1.45, 0, 0], "92": [0.95003, 1.45, 0, 0], "93": [0.95003, 1.45, 0, 0], "123": [0.95003, 1.45, 0, 0], "125": [0.95003, 1.45, 0, 0], "710": [0, 0.75, 0, 0], "732": [0, 0.75, 0, 0], "770": [0, 0.75, 0, 0], "771": [0, 0.75, 0, 0], "8730": [0.95003, 1.45, 0, 0], "8968": [0.95003, 1.45, 0, 0], "8969": [0.95003, 1.45, 0, 0], "8970": [0.95003, 1.45, 0, 0], "8971": [0.95003, 1.45, 0, 0], "10216": [0.95003, 1.45, 0, 0], "10217": [0.95003, 1.45, 0, 0], }, "Size4-Regular": { "40": [1.25003, 1.75, 0, 0], "41": [1.25003, 1.75, 0, 0], "47": [1.25003, 1.75, 0, 0], "91": [1.25003, 1.75, 0, 0], "92": [1.25003, 1.75, 0, 0], "93": [1.25003, 1.75, 0, 0], "123": [1.25003, 1.75, 0, 0], "125": [1.25003, 1.75, 0, 0], "710": [0, 0.825, 0, 0], "732": [0, 0.825, 0, 0], "770": [0, 0.825, 0, 0], "771": [0, 0.825, 0, 0], "8730": [1.25003, 1.75, 0, 0], "8968": [1.25003, 1.75, 0, 0], "8969": [1.25003, 1.75, 0, 0], "8970": [1.25003, 1.75, 0, 0], "8971": [1.25003, 1.75, 0, 0], "9115": [0.64502, 1.155, 0, 0], "9116": [1e-05, 0.6, 0, 0], "9117": [0.64502, 1.155, 0, 0], "9118": [0.64502, 1.155, 0, 0], "9119": [1e-05, 0.6, 0, 0], "9120": [0.64502, 1.155, 0, 0], "9121": [0.64502, 1.155, 0, 0], "9122": [-0.00099, 0.601, 0, 0], "9123": [0.64502, 1.155, 0, 0], "9124": [0.64502, 1.155, 0, 0], "9125": [-0.00099, 0.601, 0, 0], "9126": [0.64502, 1.155, 0, 0], "9127": [1e-05, 0.9, 0, 0], "9128": [0.65002, 1.15, 0, 0], "9129": [0.90001, 0, 0, 0], "9130": [0, 0.3, 0, 0], "9131": [1e-05, 0.9, 0, 0], "9132": [0.65002, 1.15, 0, 0], "9133": [0.90001, 0, 0, 0], "9143": [0.88502, 0.915, 0, 0], "10216": [1.25003, 1.75, 0, 0], "10217": [1.25003, 1.75, 0, 0], "57344": [-0.00499, 0.605, 0, 0], "57345": [-0.00499, 0.605, 0, 0], "57680": [0, 0.12, 0, 0], "57681": [0, 0.12, 0, 0], "57682": [0, 0.12, 0, 0], "57683": [0, 0.12, 0, 0], }, "Typewriter-Regular": { "33": [0, 0.61111, 0, 0], "34": [0, 0.61111, 0, 0], "35": [0, 0.61111, 0, 0], "36": [0.08333, 0.69444, 0, 0], "37": [0.08333, 0.69444, 0, 0], "38": [0, 0.61111, 0, 0], "39": [0, 0.61111, 0, 0], "40": [0.08333, 0.69444, 0, 0], "41": [0.08333, 0.69444, 0, 0], "42": [0, 0.52083, 0, 0], "43": [-0.08056, 0.53055, 0, 0], "44": [0.13889, 0.125, 0, 0], "45": [-0.08056, 0.53055, 0, 0], "46": [0, 0.125, 0, 0], "47": [0.08333, 0.69444, 0, 0], "48": [0, 0.61111, 0, 0], "49": [0, 0.61111, 0, 0], "50": [0, 0.61111, 0, 0], "51": [0, 0.61111, 0, 0], "52": [0, 0.61111, 0, 0], "53": [0, 0.61111, 0, 0], "54": [0, 0.61111, 0, 0], "55": [0, 0.61111, 0, 0], "56": [0, 0.61111, 0, 0], "57": [0, 0.61111, 0, 0], "58": [0, 0.43056, 0, 0], "59": [0.13889, 0.43056, 0, 0], "60": [-0.05556, 0.55556, 0, 0], "61": [-0.19549, 0.41562, 0, 0], "62": [-0.05556, 0.55556, 0, 0], "63": [0, 0.61111, 0, 0], "64": [0, 0.61111, 0, 0], "65": [0, 0.61111, 0, 0], "66": [0, 0.61111, 0, 0], "67": [0, 0.61111, 0, 0], "68": [0, 0.61111, 0, 0], "69": [0, 0.61111, 0, 0], "70": [0, 0.61111, 0, 0], "71": [0, 0.61111, 0, 0], "72": [0, 0.61111, 0, 0], "73": [0, 0.61111, 0, 0], "74": [0, 0.61111, 0, 0], "75": [0, 0.61111, 0, 0], "76": [0, 0.61111, 0, 0], "77": [0, 0.61111, 0, 0], "78": [0, 0.61111, 0, 0], "79": [0, 0.61111, 0, 0], "80": [0, 0.61111, 0, 0], "81": [0.13889, 0.61111, 0, 0], "82": [0, 0.61111, 0, 0], "83": [0, 0.61111, 0, 0], "84": [0, 0.61111, 0, 0], "85": [0, 0.61111, 0, 0], "86": [0, 0.61111, 0, 0], "87": [0, 0.61111, 0, 0], "88": [0, 0.61111, 0, 0], "89": [0, 0.61111, 0, 0], "90": [0, 0.61111, 0, 0], "91": [0.08333, 0.69444, 0, 0], "92": [0.08333, 0.69444, 0, 0], "93": [0.08333, 0.69444, 0, 0], "94": [0, 0.61111, 0, 0], "95": [0.09514, 0, 0, 0], "96": [0, 0.61111, 0, 0], "97": [0, 0.43056, 0, 0], "98": [0, 0.61111, 0, 0], "99": [0, 0.43056, 0, 0], "100": [0, 0.61111, 0, 0], "101": [0, 0.43056, 0, 0], "102": [0, 0.61111, 0, 0], "103": [0.22222, 0.43056, 0, 0], "104": [0, 0.61111, 0, 0], "105": [0, 0.61111, 0, 0], "106": [0.22222, 0.61111, 0, 0], "107": [0, 0.61111, 0, 0], "108": [0, 0.61111, 0, 0], "109": [0, 0.43056, 0, 0], "110": [0, 0.43056, 0, 0], "111": [0, 0.43056, 0, 0], "112": [0.22222, 0.43056, 0, 0], "113": [0.22222, 0.43056, 0, 0], "114": [0, 0.43056, 0, 0], "115": [0, 0.43056, 0, 0], "116": [0, 0.55358, 0, 0], "117": [0, 0.43056, 0, 0], "118": [0, 0.43056, 0, 0], "119": [0, 0.43056, 0, 0], "120": [0, 0.43056, 0, 0], "121": [0.22222, 0.43056, 0, 0], "122": [0, 0.43056, 0, 0], "123": [0.08333, 0.69444, 0, 0], "124": [0.08333, 0.69444, 0, 0], "125": [0.08333, 0.69444, 0, 0], "126": [0, 0.61111, 0, 0], "127": [0, 0.61111, 0, 0], "305": [0, 0.43056, 0, 0], "567": [0.22222, 0.43056, 0, 0], "768": [0, 0.61111, 0, 0], "769": [0, 0.61111, 0, 0], "770": [0, 0.61111, 0, 0], "771": [0, 0.61111, 0, 0], "772": [0, 0.56555, 0, 0], "774": [0, 0.61111, 0, 0], "776": [0, 0.61111, 0, 0], "778": [0, 0.61111, 0, 0], "780": [0, 0.56597, 0, 0], "915": [0, 0.61111, 0, 0], "916": [0, 0.61111, 0, 0], "920": [0, 0.61111, 0, 0], "923": [0, 0.61111, 0, 0], "926": [0, 0.61111, 0, 0], "928": [0, 0.61111, 0, 0], "931": [0, 0.61111, 0, 0], "933": [0, 0.61111, 0, 0], "934": [0, 0.61111, 0, 0], "936": [0, 0.61111, 0, 0], "937": [0, 0.61111, 0, 0], "2018": [0, 0.61111, 0, 0], "2019": [0, 0.61111, 0, 0], "8242": [0, 0.61111, 0, 0], }, }; /***/ }, /* 15 */ /***/ function(module, exports) { /** * This file holds a list of all no-argument functions and single-character * symbols (like 'a' or ';'). * * For each of the symbols, there are three properties they can have: * - font (required): the font to be used for this symbol. Either "main" (the normal font), or "ams" (the ams fonts). * - group (required): the ParseNode group type the symbol should have (i.e. "textord", "mathord", etc). See https://github.com/Khan/KaTeX/wiki/Examining-TeX#group-types * - replace: the character that this symbol or function should be * replaced with (i.e. "\phi" has a replace value of "\u03d5", the phi * character in the main font). * * The outermost map in the table indicates what mode the symbols should be * accepted in (e.g. "math" or "text"). */ module.exports = { math: {}, text: {}, }; function defineSymbol(mode, font, group, replace, name) { module.exports[mode][name] = { font: font, group: group, replace: replace, }; } // Some abbreviations for commonly used strings. // This helps minify the code, and also spotting typos using jshint. // modes: var math = "math"; var text = "text"; // fonts: var main = "main"; var ams = "ams"; // groups: var accent = "accent"; var bin = "bin"; var close = "close"; var inner = "inner"; var mathord = "mathord"; var op = "op"; var open = "open"; var punct = "punct"; var rel = "rel"; var spacing = "spacing"; var textord = "textord"; // Now comes the symbol table // Relation Symbols defineSymbol(math, main, rel, "\u2261", "\\equiv"); defineSymbol(math, main, rel, "\u227a", "\\prec"); defineSymbol(math, main, rel, "\u227b", "\\succ"); defineSymbol(math, main, rel, "\u223c", "\\sim"); defineSymbol(math, main, rel, "\u22a5", "\\perp"); defineSymbol(math, main, rel, "\u2aaf", "\\preceq"); defineSymbol(math, main, rel, "\u2ab0", "\\succeq"); defineSymbol(math, main, rel, "\u2243", "\\simeq"); defineSymbol(math, main, rel, "\u2223", "\\mid"); defineSymbol(math, main, rel, "\u226a", "\\ll"); defineSymbol(math, main, rel, "\u226b", "\\gg"); defineSymbol(math, main, rel, "\u224d", "\\asymp"); defineSymbol(math, main, rel, "\u2225", "\\parallel"); defineSymbol(math, main, rel, "\u22c8", "\\bowtie"); defineSymbol(math, main, rel, "\u2323", "\\smile"); defineSymbol(math, main, rel, "\u2291", "\\sqsubseteq"); defineSymbol(math, main, rel, "\u2292", "\\sqsupseteq"); defineSymbol(math, main, rel, "\u2250", "\\doteq"); defineSymbol(math, main, rel, "\u2322", "\\frown"); defineSymbol(math, main, rel, "\u220b", "\\ni"); defineSymbol(math, main, rel, "\u221d", "\\propto"); defineSymbol(math, main, rel, "\u22a2", "\\vdash"); defineSymbol(math, main, rel, "\u22a3", "\\dashv"); defineSymbol(math, main, rel, "\u220b", "\\owns"); // Punctuation defineSymbol(math, main, punct, "\u002e", "\\ldotp"); defineSymbol(math, main, punct, "\u22c5", "\\cdotp"); // Misc Symbols defineSymbol(math, main, textord, "\u0023", "\\#"); defineSymbol(math, main, textord, "\u0026", "\\&"); defineSymbol(math, main, textord, "\u2135", "\\aleph"); defineSymbol(math, main, textord, "\u2200", "\\forall"); defineSymbol(math, main, textord, "\u210f", "\\hbar"); defineSymbol(math, main, textord, "\u2203", "\\exists"); defineSymbol(math, main, textord, "\u2207", "\\nabla"); defineSymbol(math, main, textord, "\u266d", "\\flat"); defineSymbol(math, main, textord, "\u2113", "\\ell"); defineSymbol(math, main, textord, "\u266e", "\\natural"); defineSymbol(math, main, textord, "\u2663", "\\clubsuit"); defineSymbol(math, main, textord, "\u2118", "\\wp"); defineSymbol(math, main, textord, "\u266f", "\\sharp"); defineSymbol(math, main, textord, "\u2662", "\\diamondsuit"); defineSymbol(math, main, textord, "\u211c", "\\Re"); defineSymbol(math, main, textord, "\u2661", "\\heartsuit"); defineSymbol(math, main, textord, "\u2111", "\\Im"); defineSymbol(math, main, textord, "\u2660", "\\spadesuit"); // Math and Text defineSymbol(math, main, textord, "\u2020", "\\dag"); defineSymbol(math, main, textord, "\u2021", "\\ddag"); // Large Delimiters defineSymbol(math, main, close, "\u23b1", "\\rmoustache"); defineSymbol(math, main, open, "\u23b0", "\\lmoustache"); defineSymbol(math, main, close, "\u27ef", "\\rgroup"); defineSymbol(math, main, open, "\u27ee", "\\lgroup"); // Binary Operators defineSymbol(math, main, bin, "\u2213", "\\mp"); defineSymbol(math, main, bin, "\u2296", "\\ominus"); defineSymbol(math, main, bin, "\u228e", "\\uplus"); defineSymbol(math, main, bin, "\u2293", "\\sqcap"); defineSymbol(math, main, bin, "\u2217", "\\ast"); defineSymbol(math, main, bin, "\u2294", "\\sqcup"); defineSymbol(math, main, bin, "\u25ef", "\\bigcirc"); defineSymbol(math, main, bin, "\u2219", "\\bullet"); defineSymbol(math, main, bin, "\u2021", "\\ddagger"); defineSymbol(math, main, bin, "\u2240", "\\wr"); defineSymbol(math, main, bin, "\u2a3f", "\\amalg"); // Arrow Symbols defineSymbol(math, main, rel, "\u27f5", "\\longleftarrow"); defineSymbol(math, main, rel, "\u21d0", "\\Leftarrow"); defineSymbol(math, main, rel, "\u27f8", "\\Longleftarrow"); defineSymbol(math, main, rel, "\u27f6", "\\longrightarrow"); defineSymbol(math, main, rel, "\u21d2", "\\Rightarrow"); defineSymbol(math, main, rel, "\u27f9", "\\Longrightarrow"); defineSymbol(math, main, rel, "\u2194", "\\leftrightarrow"); defineSymbol(math, main, rel, "\u27f7", "\\longleftrightarrow"); defineSymbol(math, main, rel, "\u21d4", "\\Leftrightarrow"); defineSymbol(math, main, rel, "\u27fa", "\\Longleftrightarrow"); defineSymbol(math, main, rel, "\u21a6", "\\mapsto"); defineSymbol(math, main, rel, "\u27fc", "\\longmapsto"); defineSymbol(math, main, rel, "\u2197", "\\nearrow"); defineSymbol(math, main, rel, "\u21a9", "\\hookleftarrow"); defineSymbol(math, main, rel, "\u21aa", "\\hookrightarrow"); defineSymbol(math, main, rel, "\u2198", "\\searrow"); defineSymbol(math, main, rel, "\u21bc", "\\leftharpoonup"); defineSymbol(math, main, rel, "\u21c0", "\\rightharpoonup"); defineSymbol(math, main, rel, "\u2199", "\\swarrow"); defineSymbol(math, main, rel, "\u21bd", "\\leftharpoondown"); defineSymbol(math, main, rel, "\u21c1", "\\rightharpoondown"); defineSymbol(math, main, rel, "\u2196", "\\nwarrow"); defineSymbol(math, main, rel, "\u21cc", "\\rightleftharpoons"); // AMS Negated Binary Relations defineSymbol(math, ams, rel, "\u226e", "\\nless"); defineSymbol(math, ams, rel, "\ue010", "\\nleqslant"); defineSymbol(math, ams, rel, "\ue011", "\\nleqq"); defineSymbol(math, ams, rel, "\u2a87", "\\lneq"); defineSymbol(math, ams, rel, "\u2268", "\\lneqq"); defineSymbol(math, ams, rel, "\ue00c", "\\lvertneqq"); defineSymbol(math, ams, rel, "\u22e6", "\\lnsim"); defineSymbol(math, ams, rel, "\u2a89", "\\lnapprox"); defineSymbol(math, ams, rel, "\u2280", "\\nprec"); defineSymbol(math, ams, rel, "\u22e0", "\\npreceq"); defineSymbol(math, ams, rel, "\u22e8", "\\precnsim"); defineSymbol(math, ams, rel, "\u2ab9", "\\precnapprox"); defineSymbol(math, ams, rel, "\u2241", "\\nsim"); defineSymbol(math, ams, rel, "\ue006", "\\nshortmid"); defineSymbol(math, ams, rel, "\u2224", "\\nmid"); defineSymbol(math, ams, rel, "\u22ac", "\\nvdash"); defineSymbol(math, ams, rel, "\u22ad", "\\nvDash"); defineSymbol(math, ams, rel, "\u22ea", "\\ntriangleleft"); defineSymbol(math, ams, rel, "\u22ec", "\\ntrianglelefteq"); defineSymbol(math, ams, rel, "\u228a", "\\subsetneq"); defineSymbol(math, ams, rel, "\ue01a", "\\varsubsetneq"); defineSymbol(math, ams, rel, "\u2acb", "\\subsetneqq"); defineSymbol(math, ams, rel, "\ue017", "\\varsubsetneqq"); defineSymbol(math, ams, rel, "\u226f", "\\ngtr"); defineSymbol(math, ams, rel, "\ue00f", "\\ngeqslant"); defineSymbol(math, ams, rel, "\ue00e", "\\ngeqq"); defineSymbol(math, ams, rel, "\u2a88", "\\gneq"); defineSymbol(math, ams, rel, "\u2269", "\\gneqq"); defineSymbol(math, ams, rel, "\ue00d", "\\gvertneqq"); defineSymbol(math, ams, rel, "\u22e7", "\\gnsim"); defineSymbol(math, ams, rel, "\u2a8a", "\\gnapprox"); defineSymbol(math, ams, rel, "\u2281", "\\nsucc"); defineSymbol(math, ams, rel, "\u22e1", "\\nsucceq"); defineSymbol(math, ams, rel, "\u22e9", "\\succnsim"); defineSymbol(math, ams, rel, "\u2aba", "\\succnapprox"); defineSymbol(math, ams, rel, "\u2246", "\\ncong"); defineSymbol(math, ams, rel, "\ue007", "\\nshortparallel"); defineSymbol(math, ams, rel, "\u2226", "\\nparallel"); defineSymbol(math, ams, rel, "\u22af", "\\nVDash"); defineSymbol(math, ams, rel, "\u22eb", "\\ntriangleright"); defineSymbol(math, ams, rel, "\u22ed", "\\ntrianglerighteq"); defineSymbol(math, ams, rel, "\ue018", "\\nsupseteqq"); defineSymbol(math, ams, rel, "\u228b", "\\supsetneq"); defineSymbol(math, ams, rel, "\ue01b", "\\varsupsetneq"); defineSymbol(math, ams, rel, "\u2acc", "\\supsetneqq"); defineSymbol(math, ams, rel, "\ue019", "\\varsupsetneqq"); defineSymbol(math, ams, rel, "\u22ae", "\\nVdash"); defineSymbol(math, ams, rel, "\u2ab5", "\\precneqq"); defineSymbol(math, ams, rel, "\u2ab6", "\\succneqq"); defineSymbol(math, ams, rel, "\ue016", "\\nsubseteqq"); defineSymbol(math, ams, bin, "\u22b4", "\\unlhd"); defineSymbol(math, ams, bin, "\u22b5", "\\unrhd"); // AMS Negated Arrows defineSymbol(math, ams, rel, "\u219a", "\\nleftarrow"); defineSymbol(math, ams, rel, "\u219b", "\\nrightarrow"); defineSymbol(math, ams, rel, "\u21cd", "\\nLeftarrow"); defineSymbol(math, ams, rel, "\u21cf", "\\nRightarrow"); defineSymbol(math, ams, rel, "\u21ae", "\\nleftrightarrow"); defineSymbol(math, ams, rel, "\u21ce", "\\nLeftrightarrow"); // AMS Misc defineSymbol(math, ams, rel, "\u25b3", "\\vartriangle"); defineSymbol(math, ams, textord, "\u210f", "\\hslash"); defineSymbol(math, ams, textord, "\u25bd", "\\triangledown"); defineSymbol(math, ams, textord, "\u25ca", "\\lozenge"); defineSymbol(math, ams, textord, "\u24c8", "\\circledS"); defineSymbol(math, ams, textord, "\u00ae", "\\circledR"); defineSymbol(math, ams, textord, "\u2221", "\\measuredangle"); defineSymbol(math, ams, textord, "\u2204", "\\nexists"); defineSymbol(math, ams, textord, "\u2127", "\\mho"); defineSymbol(math, ams, textord, "\u2132", "\\Finv"); defineSymbol(math, ams, textord, "\u2141", "\\Game"); defineSymbol(math, ams, textord, "\u006b", "\\Bbbk"); defineSymbol(math, ams, textord, "\u2035", "\\backprime"); defineSymbol(math, ams, textord, "\u25b2", "\\blacktriangle"); defineSymbol(math, ams, textord, "\u25bc", "\\blacktriangledown"); defineSymbol(math, ams, textord, "\u25a0", "\\blacksquare"); defineSymbol(math, ams, textord, "\u29eb", "\\blacklozenge"); defineSymbol(math, ams, textord, "\u2605", "\\bigstar"); defineSymbol(math, ams, textord, "\u2222", "\\sphericalangle"); defineSymbol(math, ams, textord, "\u2201", "\\complement"); defineSymbol(math, ams, textord, "\u00f0", "\\eth"); defineSymbol(math, ams, textord, "\u2571", "\\diagup"); defineSymbol(math, ams, textord, "\u2572", "\\diagdown"); defineSymbol(math, ams, textord, "\u25a1", "\\square"); defineSymbol(math, ams, textord, "\u25a1", "\\Box"); defineSymbol(math, ams, textord, "\u25ca", "\\Diamond"); defineSymbol(math, ams, textord, "\u00a5", "\\yen"); defineSymbol(math, ams, textord, "\u2713", "\\checkmark"); // AMS Hebrew defineSymbol(math, ams, textord, "\u2136", "\\beth"); defineSymbol(math, ams, textord, "\u2138", "\\daleth"); defineSymbol(math, ams, textord, "\u2137", "\\gimel"); // AMS Greek defineSymbol(math, ams, textord, "\u03dd", "\\digamma"); defineSymbol(math, ams, textord, "\u03f0", "\\varkappa"); // AMS Delimiters defineSymbol(math, ams, open, "\u250c", "\\ulcorner"); defineSymbol(math, ams, close, "\u2510", "\\urcorner"); defineSymbol(math, ams, open, "\u2514", "\\llcorner"); defineSymbol(math, ams, close, "\u2518", "\\lrcorner"); // AMS Binary Relations defineSymbol(math, ams, rel, "\u2266", "\\leqq"); defineSymbol(math, ams, rel, "\u2a7d", "\\leqslant"); defineSymbol(math, ams, rel, "\u2a95", "\\eqslantless"); defineSymbol(math, ams, rel, "\u2272", "\\lesssim"); defineSymbol(math, ams, rel, "\u2a85", "\\lessapprox"); defineSymbol(math, ams, rel, "\u224a", "\\approxeq"); defineSymbol(math, ams, bin, "\u22d6", "\\lessdot"); defineSymbol(math, ams, rel, "\u22d8", "\\lll"); defineSymbol(math, ams, rel, "\u2276", "\\lessgtr"); defineSymbol(math, ams, rel, "\u22da", "\\lesseqgtr"); defineSymbol(math, ams, rel, "\u2a8b", "\\lesseqqgtr"); defineSymbol(math, ams, rel, "\u2251", "\\doteqdot"); defineSymbol(math, ams, rel, "\u2253", "\\risingdotseq"); defineSymbol(math, ams, rel, "\u2252", "\\fallingdotseq"); defineSymbol(math, ams, rel, "\u223d", "\\backsim"); defineSymbol(math, ams, rel, "\u22cd", "\\backsimeq"); defineSymbol(math, ams, rel, "\u2ac5", "\\subseteqq"); defineSymbol(math, ams, rel, "\u22d0", "\\Subset"); defineSymbol(math, ams, rel, "\u228f", "\\sqsubset"); defineSymbol(math, ams, rel, "\u227c", "\\preccurlyeq"); defineSymbol(math, ams, rel, "\u22de", "\\curlyeqprec"); defineSymbol(math, ams, rel, "\u227e", "\\precsim"); defineSymbol(math, ams, rel, "\u2ab7", "\\precapprox"); defineSymbol(math, ams, rel, "\u22b2", "\\vartriangleleft"); defineSymbol(math, ams, rel, "\u22b4", "\\trianglelefteq"); defineSymbol(math, ams, rel, "\u22a8", "\\vDash"); defineSymbol(math, ams, rel, "\u22aa", "\\Vvdash"); defineSymbol(math, ams, rel, "\u2323", "\\smallsmile"); defineSymbol(math, ams, rel, "\u2322", "\\smallfrown"); defineSymbol(math, ams, rel, "\u224f", "\\bumpeq"); defineSymbol(math, ams, rel, "\u224e", "\\Bumpeq"); defineSymbol(math, ams, rel, "\u2267", "\\geqq"); defineSymbol(math, ams, rel, "\u2a7e", "\\geqslant"); defineSymbol(math, ams, rel, "\u2a96", "\\eqslantgtr"); defineSymbol(math, ams, rel, "\u2273", "\\gtrsim"); defineSymbol(math, ams, rel, "\u2a86", "\\gtrapprox"); defineSymbol(math, ams, bin, "\u22d7", "\\gtrdot"); defineSymbol(math, ams, rel, "\u22d9", "\\ggg"); defineSymbol(math, ams, rel, "\u2277", "\\gtrless"); defineSymbol(math, ams, rel, "\u22db", "\\gtreqless"); defineSymbol(math, ams, rel, "\u2a8c", "\\gtreqqless"); defineSymbol(math, ams, rel, "\u2256", "\\eqcirc"); defineSymbol(math, ams, rel, "\u2257", "\\circeq"); defineSymbol(math, ams, rel, "\u225c", "\\triangleq"); defineSymbol(math, ams, rel, "\u223c", "\\thicksim"); defineSymbol(math, ams, rel, "\u2248", "\\thickapprox"); defineSymbol(math, ams, rel, "\u2ac6", "\\supseteqq"); defineSymbol(math, ams, rel, "\u22d1", "\\Supset"); defineSymbol(math, ams, rel, "\u2290", "\\sqsupset"); defineSymbol(math, ams, rel, "\u227d", "\\succcurlyeq"); defineSymbol(math, ams, rel, "\u22df", "\\curlyeqsucc"); defineSymbol(math, ams, rel, "\u227f", "\\succsim"); defineSymbol(math, ams, rel, "\u2ab8", "\\succapprox"); defineSymbol(math, ams, rel, "\u22b3", "\\vartriangleright"); defineSymbol(math, ams, rel, "\u22b5", "\\trianglerighteq"); defineSymbol(math, ams, rel, "\u22a9", "\\Vdash"); defineSymbol(math, ams, rel, "\u2223", "\\shortmid"); defineSymbol(math, ams, rel, "\u2225", "\\shortparallel"); defineSymbol(math, ams, rel, "\u226c", "\\between"); defineSymbol(math, ams, rel, "\u22d4", "\\pitchfork"); defineSymbol(math, ams, rel, "\u221d", "\\varpropto"); defineSymbol(math, ams, rel, "\u25c0", "\\blacktriangleleft"); defineSymbol(math, ams, rel, "\u2234", "\\therefore"); defineSymbol(math, ams, rel, "\u220d", "\\backepsilon"); defineSymbol(math, ams, rel, "\u25b6", "\\blacktriangleright"); defineSymbol(math, ams, rel, "\u2235", "\\because"); defineSymbol(math, ams, rel, "\u22d8", "\\llless"); defineSymbol(math, ams, rel, "\u22d9", "\\gggtr"); defineSymbol(math, ams, bin, "\u22b2", "\\lhd"); defineSymbol(math, ams, bin, "\u22b3", "\\rhd"); defineSymbol(math, ams, rel, "\u2242", "\\eqsim"); defineSymbol(math, main, rel, "\u22c8", "\\Join"); defineSymbol(math, ams, rel, "\u2251", "\\Doteq"); // AMS Binary Operators defineSymbol(math, ams, bin, "\u2214", "\\dotplus"); defineSymbol(math, ams, bin, "\u2216", "\\smallsetminus"); defineSymbol(math, ams, bin, "\u22d2", "\\Cap"); defineSymbol(math, ams, bin, "\u22d3", "\\Cup"); defineSymbol(math, ams, bin, "\u2a5e", "\\doublebarwedge"); defineSymbol(math, ams, bin, "\u229f", "\\boxminus"); defineSymbol(math, ams, bin, "\u229e", "\\boxplus"); defineSymbol(math, ams, bin, "\u22c7", "\\divideontimes"); defineSymbol(math, ams, bin, "\u22c9", "\\ltimes"); defineSymbol(math, ams, bin, "\u22ca", "\\rtimes"); defineSymbol(math, ams, bin, "\u22cb", "\\leftthreetimes"); defineSymbol(math, ams, bin, "\u22cc", "\\rightthreetimes"); defineSymbol(math, ams, bin, "\u22cf", "\\curlywedge"); defineSymbol(math, ams, bin, "\u22ce", "\\curlyvee"); defineSymbol(math, ams, bin, "\u229d", "\\circleddash"); defineSymbol(math, ams, bin, "\u229b", "\\circledast"); defineSymbol(math, ams, bin, "\u22c5", "\\centerdot"); defineSymbol(math, ams, bin, "\u22ba", "\\intercal"); defineSymbol(math, ams, bin, "\u22d2", "\\doublecap"); defineSymbol(math, ams, bin, "\u22d3", "\\doublecup"); defineSymbol(math, ams, bin, "\u22a0", "\\boxtimes"); // AMS Arrows defineSymbol(math, ams, rel, "\u21e2", "\\dashrightarrow"); defineSymbol(math, ams, rel, "\u21e0", "\\dashleftarrow"); defineSymbol(math, ams, rel, "\u21c7", "\\leftleftarrows"); defineSymbol(math, ams, rel, "\u21c6", "\\leftrightarrows"); defineSymbol(math, ams, rel, "\u21da", "\\Lleftarrow"); defineSymbol(math, ams, rel, "\u219e", "\\twoheadleftarrow"); defineSymbol(math, ams, rel, "\u21a2", "\\leftarrowtail"); defineSymbol(math, ams, rel, "\u21ab", "\\looparrowleft"); defineSymbol(math, ams, rel, "\u21cb", "\\leftrightharpoons"); defineSymbol(math, ams, rel, "\u21b6", "\\curvearrowleft"); defineSymbol(math, ams, rel, "\u21ba", "\\circlearrowleft"); defineSymbol(math, ams, rel, "\u21b0", "\\Lsh"); defineSymbol(math, ams, rel, "\u21c8", "\\upuparrows"); defineSymbol(math, ams, rel, "\u21bf", "\\upharpoonleft"); defineSymbol(math, ams, rel, "\u21c3", "\\downharpoonleft"); defineSymbol(math, ams, rel, "\u22b8", "\\multimap"); defineSymbol(math, ams, rel, "\u21ad", "\\leftrightsquigarrow"); defineSymbol(math, ams, rel, "\u21c9", "\\rightrightarrows"); defineSymbol(math, ams, rel, "\u21c4", "\\rightleftarrows"); defineSymbol(math, ams, rel, "\u21a0", "\\twoheadrightarrow"); defineSymbol(math, ams, rel, "\u21a3", "\\rightarrowtail"); defineSymbol(math, ams, rel, "\u21ac", "\\looparrowright"); defineSymbol(math, ams, rel, "\u21b7", "\\curvearrowright"); defineSymbol(math, ams, rel, "\u21bb", "\\circlearrowright"); defineSymbol(math, ams, rel, "\u21b1", "\\Rsh"); defineSymbol(math, ams, rel, "\u21ca", "\\downdownarrows"); defineSymbol(math, ams, rel, "\u21be", "\\upharpoonright"); defineSymbol(math, ams, rel, "\u21c2", "\\downharpoonright"); defineSymbol(math, ams, rel, "\u21dd", "\\rightsquigarrow"); defineSymbol(math, ams, rel, "\u21dd", "\\leadsto"); defineSymbol(math, ams, rel, "\u21db", "\\Rrightarrow"); defineSymbol(math, ams, rel, "\u21be", "\\restriction"); defineSymbol(math, main, textord, "\u2018", "`"); defineSymbol(math, main, textord, "$", "\\$"); defineSymbol(math, main, textord, "%", "\\%"); defineSymbol(math, main, textord, "_", "\\_"); defineSymbol(math, main, textord, "\u2220", "\\angle"); defineSymbol(math, main, textord, "\u221e", "\\infty"); defineSymbol(math, main, textord, "\u2032", "\\prime"); defineSymbol(math, main, textord, "\u25b3", "\\triangle"); defineSymbol(math, main, textord, "\u0393", "\\Gamma"); defineSymbol(math, main, textord, "\u0394", "\\Delta"); defineSymbol(math, main, textord, "\u0398", "\\Theta"); defineSymbol(math, main, textord, "\u039b", "\\Lambda"); defineSymbol(math, main, textord, "\u039e", "\\Xi"); defineSymbol(math, main, textord, "\u03a0", "\\Pi"); defineSymbol(math, main, textord, "\u03a3", "\\Sigma"); defineSymbol(math, main, textord, "\u03a5", "\\Upsilon"); defineSymbol(math, main, textord, "\u03a6", "\\Phi"); defineSymbol(math, main, textord, "\u03a8", "\\Psi"); defineSymbol(math, main, textord, "\u03a9", "\\Omega"); defineSymbol(math, main, textord, "\u00ac", "\\neg"); defineSymbol(math, main, textord, "\u00ac", "\\lnot"); defineSymbol(math, main, textord, "\u22a4", "\\top"); defineSymbol(math, main, textord, "\u22a5", "\\bot"); defineSymbol(math, main, textord, "\u2205", "\\emptyset"); defineSymbol(math, ams, textord, "\u2205", "\\varnothing"); defineSymbol(math, main, mathord, "\u03b1", "\\alpha"); defineSymbol(math, main, mathord, "\u03b2", "\\beta"); defineSymbol(math, main, mathord, "\u03b3", "\\gamma"); defineSymbol(math, main, mathord, "\u03b4", "\\delta"); defineSymbol(math, main, mathord, "\u03f5", "\\epsilon"); defineSymbol(math, main, mathord, "\u03b6", "\\zeta"); defineSymbol(math, main, mathord, "\u03b7", "\\eta"); defineSymbol(math, main, mathord, "\u03b8", "\\theta"); defineSymbol(math, main, mathord, "\u03b9", "\\iota"); defineSymbol(math, main, mathord, "\u03ba", "\\kappa"); defineSymbol(math, main, mathord, "\u03bb", "\\lambda"); defineSymbol(math, main, mathord, "\u03bc", "\\mu"); defineSymbol(math, main, mathord, "\u03bd", "\\nu"); defineSymbol(math, main, mathord, "\u03be", "\\xi"); defineSymbol(math, main, mathord, "o", "\\omicron"); defineSymbol(math, main, mathord, "\u03c0", "\\pi"); defineSymbol(math, main, mathord, "\u03c1", "\\rho"); defineSymbol(math, main, mathord, "\u03c3", "\\sigma"); defineSymbol(math, main, mathord, "\u03c4", "\\tau"); defineSymbol(math, main, mathord, "\u03c5", "\\upsilon"); defineSymbol(math, main, mathord, "\u03d5", "\\phi"); defineSymbol(math, main, mathord, "\u03c7", "\\chi"); defineSymbol(math, main, mathord, "\u03c8", "\\psi"); defineSymbol(math, main, mathord, "\u03c9", "\\omega"); defineSymbol(math, main, mathord, "\u03b5", "\\varepsilon"); defineSymbol(math, main, mathord, "\u03d1", "\\vartheta"); defineSymbol(math, main, mathord, "\u03d6", "\\varpi"); defineSymbol(math, main, mathord, "\u03f1", "\\varrho"); defineSymbol(math, main, mathord, "\u03c2", "\\varsigma"); defineSymbol(math, main, mathord, "\u03c6", "\\varphi"); defineSymbol(math, main, bin, "\u2217", "*"); defineSymbol(math, main, bin, "+", "+"); defineSymbol(math, main, bin, "\u2212", "-"); defineSymbol(math, main, bin, "\u22c5", "\\cdot"); defineSymbol(math, main, bin, "\u2218", "\\circ"); defineSymbol(math, main, bin, "\u00f7", "\\div"); defineSymbol(math, main, bin, "\u00b1", "\\pm"); defineSymbol(math, main, bin, "\u00d7", "\\times"); defineSymbol(math, main, bin, "\u2229", "\\cap"); defineSymbol(math, main, bin, "\u222a", "\\cup"); defineSymbol(math, main, bin, "\u2216", "\\setminus"); defineSymbol(math, main, bin, "\u2227", "\\land"); defineSymbol(math, main, bin, "\u2228", "\\lor"); defineSymbol(math, main, bin, "\u2227", "\\wedge"); defineSymbol(math, main, bin, "\u2228", "\\vee"); defineSymbol(math, main, textord, "\u221a", "\\surd"); defineSymbol(math, main, open, "(", "("); defineSymbol(math, main, open, "[", "["); defineSymbol(math, main, open, "\u27e8", "\\langle"); defineSymbol(math, main, open, "\u2223", "\\lvert"); defineSymbol(math, main, open, "\u2225", "\\lVert"); defineSymbol(math, main, close, ")", ")"); defineSymbol(math, main, close, "]", "]"); defineSymbol(math, main, close, "?", "?"); defineSymbol(math, main, close, "!", "!"); defineSymbol(math, main, close, "\u27e9", "\\rangle"); defineSymbol(math, main, close, "\u2223", "\\rvert"); defineSymbol(math, main, close, "\u2225", "\\rVert"); defineSymbol(math, main, rel, "=", "="); defineSymbol(math, main, rel, "<", "<"); defineSymbol(math, main, rel, ">", ">"); defineSymbol(math, main, rel, ":", ":"); defineSymbol(math, main, rel, "\u2248", "\\approx"); defineSymbol(math, main, rel, "\u2245", "\\cong"); defineSymbol(math, main, rel, "\u2265", "\\ge"); defineSymbol(math, main, rel, "\u2265", "\\geq"); defineSymbol(math, main, rel, "\u2190", "\\gets"); defineSymbol(math, main, rel, ">", "\\gt"); defineSymbol(math, main, rel, "\u2208", "\\in"); defineSymbol(math, main, rel, "\u2209", "\\notin"); defineSymbol(math, main, rel, "\u2282", "\\subset"); defineSymbol(math, main, rel, "\u2283", "\\supset"); defineSymbol(math, main, rel, "\u2286", "\\subseteq"); defineSymbol(math, main, rel, "\u2287", "\\supseteq"); defineSymbol(math, ams, rel, "\u2288", "\\nsubseteq"); defineSymbol(math, ams, rel, "\u2289", "\\nsupseteq"); defineSymbol(math, main, rel, "\u22a8", "\\models"); defineSymbol(math, main, rel, "\u2190", "\\leftarrow"); defineSymbol(math, main, rel, "\u2264", "\\le"); defineSymbol(math, main, rel, "\u2264", "\\leq"); defineSymbol(math, main, rel, "<", "\\lt"); defineSymbol(math, main, rel, "\u2260", "\\ne"); defineSymbol(math, main, rel, "\u2260", "\\neq"); defineSymbol(math, main, rel, "\u2192", "\\rightarrow"); defineSymbol(math, main, rel, "\u2192", "\\to"); defineSymbol(math, ams, rel, "\u2271", "\\ngeq"); defineSymbol(math, ams, rel, "\u2270", "\\nleq"); defineSymbol(math, main, spacing, null, "\\!"); defineSymbol(math, main, spacing, "\u00a0", "\\ "); defineSymbol(math, main, spacing, "\u00a0", "~"); defineSymbol(math, main, spacing, null, "\\,"); defineSymbol(math, main, spacing, null, "\\:"); defineSymbol(math, main, spacing, null, "\\;"); defineSymbol(math, main, spacing, null, "\\enspace"); defineSymbol(math, main, spacing, null, "\\qquad"); defineSymbol(math, main, spacing, null, "\\quad"); defineSymbol(math, main, spacing, "\u00a0", "\\space"); defineSymbol(math, main, punct, ",", ","); defineSymbol(math, main, punct, ";", ";"); defineSymbol(math, main, punct, ":", "\\colon"); defineSymbol(math, ams, bin, "\u22bc", "\\barwedge"); defineSymbol(math, ams, bin, "\u22bb", "\\veebar"); defineSymbol(math, main, bin, "\u2299", "\\odot"); defineSymbol(math, main, bin, "\u2295", "\\oplus"); defineSymbol(math, main, bin, "\u2297", "\\otimes"); defineSymbol(math, main, textord, "\u2202", "\\partial"); defineSymbol(math, main, bin, "\u2298", "\\oslash"); defineSymbol(math, ams, bin, "\u229a", "\\circledcirc"); defineSymbol(math, ams, bin, "\u22a1", "\\boxdot"); defineSymbol(math, main, bin, "\u25b3", "\\bigtriangleup"); defineSymbol(math, main, bin, "\u25bd", "\\bigtriangledown"); defineSymbol(math, main, bin, "\u2020", "\\dagger"); defineSymbol(math, main, bin, "\u22c4", "\\diamond"); defineSymbol(math, main, bin, "\u22c6", "\\star"); defineSymbol(math, main, bin, "\u25c3", "\\triangleleft"); defineSymbol(math, main, bin, "\u25b9", "\\triangleright"); defineSymbol(math, main, open, "{", "\\{"); defineSymbol(math, main, close, "}", "\\}"); defineSymbol(math, main, open, "{", "\\lbrace"); defineSymbol(math, main, close, "}", "\\rbrace"); defineSymbol(math, main, open, "[", "\\lbrack"); defineSymbol(math, main, close, "]", "\\rbrack"); defineSymbol(math, main, open, "\u230a", "\\lfloor"); defineSymbol(math, main, close, "\u230b", "\\rfloor"); defineSymbol(math, main, open, "\u2308", "\\lceil"); defineSymbol(math, main, close, "\u2309", "\\rceil"); defineSymbol(math, main, textord, "\\", "\\backslash"); defineSymbol(math, main, textord, "\u2223", "|"); defineSymbol(math, main, textord, "\u2223", "\\vert"); defineSymbol(math, main, textord, "\u2225", "\\|"); defineSymbol(math, main, textord, "\u2225", "\\Vert"); defineSymbol(math, main, rel, "\u2191", "\\uparrow"); defineSymbol(math, main, rel, "\u21d1", "\\Uparrow"); defineSymbol(math, main, rel, "\u2193", "\\downarrow"); defineSymbol(math, main, rel, "\u21d3", "\\Downarrow"); defineSymbol(math, main, rel, "\u2195", "\\updownarrow"); defineSymbol(math, main, rel, "\u21d5", "\\Updownarrow"); defineSymbol(math, math, op, "\u2210", "\\coprod"); defineSymbol(math, math, op, "\u22c1", "\\bigvee"); defineSymbol(math, math, op, "\u22c0", "\\bigwedge"); defineSymbol(math, math, op, "\u2a04", "\\biguplus"); defineSymbol(math, math, op, "\u22c2", "\\bigcap"); defineSymbol(math, math, op, "\u22c3", "\\bigcup"); defineSymbol(math, math, op, "\u222b", "\\int"); defineSymbol(math, math, op, "\u222b", "\\intop"); defineSymbol(math, math, op, "\u222c", "\\iint"); defineSymbol(math, math, op, "\u222d", "\\iiint"); defineSymbol(math, math, op, "\u220f", "\\prod"); defineSymbol(math, math, op, "\u2211", "\\sum"); defineSymbol(math, math, op, "\u2a02", "\\bigotimes"); defineSymbol(math, math, op, "\u2a01", "\\bigoplus"); defineSymbol(math, math, op, "\u2a00", "\\bigodot"); defineSymbol(math, math, op, "\u222e", "\\oint"); defineSymbol(math, math, op, "\u2a06", "\\bigsqcup"); defineSymbol(math, math, op, "\u222b", "\\smallint"); defineSymbol(math, main, inner, "\u2026", "\\ldots"); defineSymbol(math, main, inner, "\u22ef", "\\cdots"); defineSymbol(math, main, inner, "\u22f1", "\\ddots"); defineSymbol(math, main, textord, "\u22ee", "\\vdots"); defineSymbol(math, main, accent, "\u00b4", "\\acute"); defineSymbol(math, main, accent, "\u0060", "\\grave"); defineSymbol(math, main, accent, "\u00a8", "\\ddot"); defineSymbol(math, main, accent, "\u007e", "\\tilde"); defineSymbol(math, main, accent, "\u00af", "\\bar"); defineSymbol(math, main, accent, "\u02d8", "\\breve"); defineSymbol(math, main, accent, "\u02c7", "\\check"); defineSymbol(math, main, accent, "\u005e", "\\hat"); defineSymbol(math, main, accent, "\u20d7", "\\vec"); defineSymbol(math, main, accent, "\u02d9", "\\dot"); defineSymbol(math, main, mathord, "\u0131", "\\imath"); defineSymbol(math, main, mathord, "\u0237", "\\jmath"); defineSymbol(text, main, spacing, "\u00a0", "\\ "); defineSymbol(text, main, spacing, "\u00a0", " "); defineSymbol(text, main, spacing, "\u00a0", "~"); // There are lots of symbols which are the same, so we add them in afterwards. var i; var ch; // All of these are textords in math mode var mathTextSymbols = "0123456789/@.\""; for (i = 0; i < mathTextSymbols.length; i++) { ch = mathTextSymbols.charAt(i); defineSymbol(math, main, textord, ch, ch); } // All of these are textords in text mode var textSymbols = "0123456789`!@*()-=+[]'\";:?/.,"; for (i = 0; i < textSymbols.length; i++) { ch = textSymbols.charAt(i); defineSymbol(text, main, textord, ch, ch); } // All of these are textords in text mode, and mathords in math mode var letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (i = 0; i < letters.length; i++) { ch = letters.charAt(i); defineSymbol(math, main, mathord, ch, ch); defineSymbol(text, main, textord, ch, ch); } /***/ }, /* 16 */ /***/ function(module, exports, __webpack_require__) { /** * This file deals with creating delimiters of various sizes. The TeXbook * discusses these routines on page 441-442, in the "Another subroutine sets box * x to a specified variable delimiter" paragraph. * * There are three main routines here. `makeSmallDelim` makes a delimiter in the * normal font, but in either text, script, or scriptscript style. * `makeLargeDelim` makes a delimiter in textstyle, but in one of the Size1, * Size2, Size3, or Size4 fonts. `makeStackedDelim` makes a delimiter out of * smaller pieces that are stacked on top of one another. * * The functions take a parameter `center`, which determines if the delimiter * should be centered around the axis. * * Then, there are three exposed functions. `sizedDelim` makes a delimiter in * one of the given sizes. This is used for things like `\bigl`. * `customSizedDelim` makes a delimiter with a given total height+depth. It is * called in places like `\sqrt`. `leftRightDelim` makes an appropriate * delimiter which surrounds an expression of a given height an depth. It is * used in `\left` and `\right`. */ var ParseError = __webpack_require__(5); var Style = __webpack_require__(9); var buildCommon = __webpack_require__(10); var fontMetrics = __webpack_require__(13); var symbols = __webpack_require__(15); var utils = __webpack_require__(12); var makeSpan = buildCommon.makeSpan; /** * Get the metrics for a given symbol and font, after transformation (i.e. * after following replacement from symbols.js) */ var getMetrics = function(symbol, font) { if (symbols.math[symbol] && symbols.math[symbol].replace) { return fontMetrics.getCharacterMetrics( symbols.math[symbol].replace, font); } else { return fontMetrics.getCharacterMetrics( symbol, font); } }; /** * Builds a symbol in the given font size (note size is an integer) */ var mathrmSize = function(value, size, mode) { return buildCommon.makeSymbol(value, "Size" + size + "-Regular", mode); }; /** * Puts a delimiter span in a given style, and adds appropriate height, depth, * and maxFontSizes. */ var styleWrap = function(delim, toStyle, options) { var span = makeSpan( ["style-wrap", options.style.reset(), toStyle.cls()], [delim]); var multiplier = toStyle.sizeMultiplier / options.style.sizeMultiplier; span.height *= multiplier; span.depth *= multiplier; span.maxFontSize = toStyle.sizeMultiplier; return span; }; /** * Makes a small delimiter. This is a delimiter that comes in the Main-Regular * font, but is restyled to either be in textstyle, scriptstyle, or * scriptscriptstyle. */ var makeSmallDelim = function(delim, style, center, options, mode) { var text = buildCommon.makeSymbol(delim, "Main-Regular", mode); var span = styleWrap(text, style, options); if (center) { var shift = (1 - options.style.sizeMultiplier / style.sizeMultiplier) * fontMetrics.metrics.axisHeight; span.style.top = shift + "em"; span.height -= shift; span.depth += shift; } return span; }; /** * Makes a large delimiter. This is a delimiter that comes in the Size1, Size2, * Size3, or Size4 fonts. It is always rendered in textstyle. */ var makeLargeDelim = function(delim, size, center, options, mode) { var inner = mathrmSize(delim, size, mode); var span = styleWrap( makeSpan(["delimsizing", "size" + size], [inner], options.getColor()), Style.TEXT, options); if (center) { var shift = (1 - options.style.sizeMultiplier) * fontMetrics.metrics.axisHeight; span.style.top = shift + "em"; span.height -= shift; span.depth += shift; } return span; }; /** * Make an inner span with the given offset and in the given font. This is used * in `makeStackedDelim` to make the stacking pieces for the delimiter. */ var makeInner = function(symbol, font, mode) { var sizeClass; // Apply the correct CSS class to choose the right font. if (font === "Size1-Regular") { sizeClass = "delim-size1"; } else if (font === "Size4-Regular") { sizeClass = "delim-size4"; } var inner = makeSpan( ["delimsizinginner", sizeClass], [makeSpan([], [buildCommon.makeSymbol(symbol, font, mode)])]); // Since this will be passed into `makeVList` in the end, wrap the element // in the appropriate tag that VList uses. return {type: "elem", elem: inner}; }; /** * Make a stacked delimiter out of a given delimiter, with the total height at * least `heightTotal`. This routine is mentioned on page 442 of the TeXbook. */ var makeStackedDelim = function(delim, heightTotal, center, options, mode) { // There are four parts, the top, an optional middle, a repeated part, and a // bottom. var top; var middle; var repeat; var bottom; top = repeat = bottom = delim; middle = null; // Also keep track of what font the delimiters are in var font = "Size1-Regular"; // We set the parts and font based on the symbol. Note that we use // '\u23d0' instead of '|' and '\u2016' instead of '\\|' for the // repeats of the arrows if (delim === "\\uparrow") { repeat = bottom = "\u23d0"; } else if (delim === "\\Uparrow") { repeat = bottom = "\u2016"; } else if (delim === "\\downarrow") { top = repeat = "\u23d0"; } else if (delim === "\\Downarrow") { top = repeat = "\u2016"; } else if (delim === "\\updownarrow") { top = "\\uparrow"; repeat = "\u23d0"; bottom = "\\downarrow"; } else if (delim === "\\Updownarrow") { top = "\\Uparrow"; repeat = "\u2016"; bottom = "\\Downarrow"; } else if (delim === "[" || delim === "\\lbrack") { top = "\u23a1"; repeat = "\u23a2"; bottom = "\u23a3"; font = "Size4-Regular"; } else if (delim === "]" || delim === "\\rbrack") { top = "\u23a4"; repeat = "\u23a5"; bottom = "\u23a6"; font = "Size4-Regular"; } else if (delim === "\\lfloor") { repeat = top = "\u23a2"; bottom = "\u23a3"; font = "Size4-Regular"; } else if (delim === "\\lceil") { top = "\u23a1"; repeat = bottom = "\u23a2"; font = "Size4-Regular"; } else if (delim === "\\rfloor") { repeat = top = "\u23a5"; bottom = "\u23a6"; font = "Size4-Regular"; } else if (delim === "\\rceil") { top = "\u23a4"; repeat = bottom = "\u23a5"; font = "Size4-Regular"; } else if (delim === "(") { top = "\u239b"; repeat = "\u239c"; bottom = "\u239d"; font = "Size4-Regular"; } else if (delim === ")") { top = "\u239e"; repeat = "\u239f"; bottom = "\u23a0"; font = "Size4-Regular"; } else if (delim === "\\{" || delim === "\\lbrace") { top = "\u23a7"; middle = "\u23a8"; bottom = "\u23a9"; repeat = "\u23aa"; font = "Size4-Regular"; } else if (delim === "\\}" || delim === "\\rbrace") { top = "\u23ab"; middle = "\u23ac"; bottom = "\u23ad"; repeat = "\u23aa"; font = "Size4-Regular"; } else if (delim === "\\lgroup") { top = "\u23a7"; bottom = "\u23a9"; repeat = "\u23aa"; font = "Size4-Regular"; } else if (delim === "\\rgroup") { top = "\u23ab"; bottom = "\u23ad"; repeat = "\u23aa"; font = "Size4-Regular"; } else if (delim === "\\lmoustache") { top = "\u23a7"; bottom = "\u23ad"; repeat = "\u23aa"; font = "Size4-Regular"; } else if (delim === "\\rmoustache") { top = "\u23ab"; bottom = "\u23a9"; repeat = "\u23aa"; font = "Size4-Regular"; } else if (delim === "\\surd") { top = "\ue001"; bottom = "\u23b7"; repeat = "\ue000"; font = "Size4-Regular"; } // Get the metrics of the four sections var topMetrics = getMetrics(top, font); var topHeightTotal = topMetrics.height + topMetrics.depth; var repeatMetrics = getMetrics(repeat, font); var repeatHeightTotal = repeatMetrics.height + repeatMetrics.depth; var bottomMetrics = getMetrics(bottom, font); var bottomHeightTotal = bottomMetrics.height + bottomMetrics.depth; var middleHeightTotal = 0; var middleFactor = 1; if (middle !== null) { var middleMetrics = getMetrics(middle, font); middleHeightTotal = middleMetrics.height + middleMetrics.depth; middleFactor = 2; // repeat symmetrically above and below middle } // Calcuate the minimal height that the delimiter can have. // It is at least the size of the top, bottom, and optional middle combined. var minHeight = topHeightTotal + bottomHeightTotal + middleHeightTotal; // Compute the number of copies of the repeat symbol we will need var repeatCount = Math.ceil( (heightTotal - minHeight) / (middleFactor * repeatHeightTotal)); // Compute the total height of the delimiter including all the symbols var realHeightTotal = minHeight + repeatCount * middleFactor * repeatHeightTotal; // The center of the delimiter is placed at the center of the axis. Note // that in this context, "center" means that the delimiter should be // centered around the axis in the current style, while normally it is // centered around the axis in textstyle. var axisHeight = fontMetrics.metrics.axisHeight; if (center) { axisHeight *= options.style.sizeMultiplier; } // Calculate the depth var depth = realHeightTotal / 2 - axisHeight; // Now, we start building the pieces that will go into the vlist // Keep a list of the inner pieces var inners = []; // Add the bottom symbol inners.push(makeInner(bottom, font, mode)); var i; if (middle === null) { // Add that many symbols for (i = 0; i < repeatCount; i++) { inners.push(makeInner(repeat, font, mode)); } } else { // When there is a middle bit, we need the middle part and two repeated // sections for (i = 0; i < repeatCount; i++) { inners.push(makeInner(repeat, font, mode)); } inners.push(makeInner(middle, font, mode)); for (i = 0; i < repeatCount; i++) { inners.push(makeInner(repeat, font, mode)); } } // Add the top symbol inners.push(makeInner(top, font, mode)); // Finally, build the vlist var inner = buildCommon.makeVList(inners, "bottom", depth, options); return styleWrap( makeSpan(["delimsizing", "mult"], [inner], options.getColor()), Style.TEXT, options); }; // There are three kinds of delimiters, delimiters that stack when they become // too large var stackLargeDelimiters = [ "(", ")", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\\lceil", "\\rceil", "\\surd", ]; // delimiters that always stack var stackAlwaysDelimiters = [ "\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\\lmoustache", "\\rmoustache", ]; // and delimiters that never stack var stackNeverDelimiters = [ "<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt", ]; // Metrics of the different sizes. Found by looking at TeX's output of // $\bigl| // \Bigl| \biggl| \Biggl| \showlists$ // Used to create stacked delimiters of appropriate sizes in makeSizedDelim. var sizeToMaxHeight = [0, 1.2, 1.8, 2.4, 3.0]; /** * Used to create a delimiter of a specific size, where `size` is 1, 2, 3, or 4. */ var makeSizedDelim = function(delim, size, options, mode) { // < and > turn into \langle and \rangle in delimiters if (delim === "<" || delim === "\\lt") { delim = "\\langle"; } else if (delim === ">" || delim === "\\gt") { delim = "\\rangle"; } // Sized delimiters are never centered. if (utils.contains(stackLargeDelimiters, delim) || utils.contains(stackNeverDelimiters, delim)) { return makeLargeDelim(delim, size, false, options, mode); } else if (utils.contains(stackAlwaysDelimiters, delim)) { return makeStackedDelim( delim, sizeToMaxHeight[size], false, options, mode); } else { throw new ParseError("Illegal delimiter: '" + delim + "'"); } }; /** * There are three different sequences of delimiter sizes that the delimiters * follow depending on the kind of delimiter. This is used when creating custom * sized delimiters to decide whether to create a small, large, or stacked * delimiter. * * In real TeX, these sequences aren't explicitly defined, but are instead * defined inside the font metrics. Since there are only three sequences that * are possible for the delimiters that TeX defines, it is easier to just encode * them explicitly here. */ // Delimiters that never stack try small delimiters and large delimiters only var stackNeverDelimiterSequence = [ {type: "small", style: Style.SCRIPTSCRIPT}, {type: "small", style: Style.SCRIPT}, {type: "small", style: Style.TEXT}, {type: "large", size: 1}, {type: "large", size: 2}, {type: "large", size: 3}, {type: "large", size: 4}, ]; // Delimiters that always stack try the small delimiters first, then stack var stackAlwaysDelimiterSequence = [ {type: "small", style: Style.SCRIPTSCRIPT}, {type: "small", style: Style.SCRIPT}, {type: "small", style: Style.TEXT}, {type: "stack"}, ]; // Delimiters that stack when large try the small and then large delimiters, and // stack afterwards var stackLargeDelimiterSequence = [ {type: "small", style: Style.SCRIPTSCRIPT}, {type: "small", style: Style.SCRIPT}, {type: "small", style: Style.TEXT}, {type: "large", size: 1}, {type: "large", size: 2}, {type: "large", size: 3}, {type: "large", size: 4}, {type: "stack"}, ]; /** * Get the font used in a delimiter based on what kind of delimiter it is. */ var delimTypeToFont = function(type) { if (type.type === "small") { return "Main-Regular"; } else if (type.type === "large") { return "Size" + type.size + "-Regular"; } else if (type.type === "stack") { return "Size4-Regular"; } }; /** * Traverse a sequence of types of delimiters to decide what kind of delimiter * should be used to create a delimiter of the given height+depth. */ var traverseSequence = function(delim, height, sequence, options) { // Here, we choose the index we should start at in the sequences. In smaller // sizes (which correspond to larger numbers in style.size) we start earlier // in the sequence. Thus, scriptscript starts at index 3-3=0, script starts // at index 3-2=1, text starts at 3-1=2, and display starts at min(2,3-0)=2 var start = Math.min(2, 3 - options.style.size); for (var i = start; i < sequence.length; i++) { if (sequence[i].type === "stack") { // This is always the last delimiter, so we just break the loop now. break; } var metrics = getMetrics(delim, delimTypeToFont(sequence[i])); var heightDepth = metrics.height + metrics.depth; // Small delimiters are scaled down versions of the same font, so we // account for the style change size. if (sequence[i].type === "small") { heightDepth *= sequence[i].style.sizeMultiplier; } // Check if the delimiter at this size works for the given height. if (heightDepth > height) { return sequence[i]; } } // If we reached the end of the sequence, return the last sequence element. return sequence[sequence.length - 1]; }; /** * Make a delimiter of a given height+depth, with optional centering. Here, we * traverse the sequences, and create a delimiter that the sequence tells us to. */ var makeCustomSizedDelim = function(delim, height, center, options, mode) { if (delim === "<" || delim === "\\lt") { delim = "\\langle"; } else if (delim === ">" || delim === "\\gt") { delim = "\\rangle"; } // Decide what sequence to use var sequence; if (utils.contains(stackNeverDelimiters, delim)) { sequence = stackNeverDelimiterSequence; } else if (utils.contains(stackLargeDelimiters, delim)) { sequence = stackLargeDelimiterSequence; } else { sequence = stackAlwaysDelimiterSequence; } // Look through the sequence var delimType = traverseSequence(delim, height, sequence, options); // Depending on the sequence element we decided on, call the appropriate // function. if (delimType.type === "small") { return makeSmallDelim(delim, delimType.style, center, options, mode); } else if (delimType.type === "large") { return makeLargeDelim(delim, delimType.size, center, options, mode); } else if (delimType.type === "stack") { return makeStackedDelim(delim, height, center, options, mode); } }; /** * Make a delimiter for use with `\left` and `\right`, given a height and depth * of an expression that the delimiters surround. */ var makeLeftRightDelim = function(delim, height, depth, options, mode) { // We always center \left/\right delimiters, so the axis is always shifted var axisHeight = fontMetrics.metrics.axisHeight * options.style.sizeMultiplier; // Taken from TeX source, tex.web, function make_left_right var delimiterFactor = 901; var delimiterExtend = 5.0 / fontMetrics.metrics.ptPerEm; var maxDistFromAxis = Math.max( height - axisHeight, depth + axisHeight); var totalHeight = Math.max( // In real TeX, calculations are done using integral values which are // 65536 per pt, or 655360 per em. So, the division here truncates in // TeX but doesn't here, producing different results. If we wanted to // exactly match TeX's calculation, we could do // Math.floor(655360 * maxDistFromAxis / 500) * // delimiterFactor / 655360 // (To see the difference, compare // x^{x^{\left(\rule{0.1em}{0.68em}\right)}} // in TeX and KaTeX) maxDistFromAxis / 500 * delimiterFactor, 2 * maxDistFromAxis - delimiterExtend); // Finally, we defer to `makeCustomSizedDelim` with our calculated total // height return makeCustomSizedDelim(delim, totalHeight, true, options, mode); }; module.exports = { sizedDelim: makeSizedDelim, customSizedDelim: makeCustomSizedDelim, leftRightDelim: makeLeftRightDelim, }; /***/ }, /* 17 */ /***/ function(module, exports, __webpack_require__) { /** * This file converts a parse tree into a cooresponding MathML tree. The main * entry point is the `buildMathML` function, which takes a parse tree from the * parser. */ var buildCommon = __webpack_require__(10); var fontMetrics = __webpack_require__(13); var mathMLTree = __webpack_require__(18); var ParseError = __webpack_require__(5); var symbols = __webpack_require__(15); var utils = __webpack_require__(12); var makeSpan = buildCommon.makeSpan; var fontMap = buildCommon.fontMap; /** * Takes a symbol and converts it into a MathML text node after performing * optional replacement from symbols.js. */ var makeText = function(text, mode) { if (symbols[mode][text] && symbols[mode][text].replace) { text = symbols[mode][text].replace; } return new mathMLTree.TextNode(text); }; /** * Returns the math variant as a string or null if none is required. */ var getVariant = function(group, options) { var font = options.font; if (!font) { return null; } var mode = group.mode; if (font === "mathit") { return "italic"; } var value = group.value; if (utils.contains(["\\imath", "\\jmath"], value)) { return null; } if (symbols[mode][value] && symbols[mode][value].replace) { value = symbols[mode][value].replace; } var fontName = fontMap[font].fontName; if (fontMetrics.getCharacterMetrics(value, fontName)) { return fontMap[options.font].variant; } return null; }; /** * Functions for handling the different types of groups found in the parse * tree. Each function should take a parse group and return a MathML node. */ var groupTypes = {}; groupTypes.mathord = function(group, options) { var node = new mathMLTree.MathNode( "mi", [makeText(group.value, group.mode)]); var variant = getVariant(group, options); if (variant) { node.setAttribute("mathvariant", variant); } return node; }; groupTypes.textord = function(group, options) { var text = makeText(group.value, group.mode); var variant = getVariant(group, options) || "normal"; var node; if (/[0-9]/.test(group.value)) { // TODO(kevinb) merge adjacent