fontdata.js 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/SVG/fonts/STIX-Web/fontdata.js
  4. *
  5. * Initializes the SVG OutputJax to use the STIX-Web fonts
  6. * Copyright (c) 2013-2017 The MathJax Consortium
  7. *
  8. * Licensed under the Apache License, Version 2.0 (the "License");
  9. * you may not use this file except in compliance with the License.
  10. * You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS,
  16. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. */
  20. (function (SVG,MML,AJAX,HUB) {
  21. var VERSION = "2.7.2";
  22. var ALPHABETSBOLDITALIC = "STIXMathJax_Alphabets-bold-italic",
  23. ALPHABETSBOLD = "STIXMathJax_Alphabets-bold",
  24. ALPHABETSITALIC = "STIXMathJax_Alphabets-italic",
  25. ALPHABETS = "STIXMathJax_Alphabets",
  26. ARROWSBOLD = "STIXMathJax_Arrows-bold",
  27. ARROWS = "STIXMathJax_Arrows",
  28. DOUBLESTRUCKBOLDITALIC = "STIXMathJax_DoubleStruck-bold-italic",
  29. DOUBLESTRUCKBOLD = "STIXMathJax_DoubleStruck-bold",
  30. DOUBLESTRUCKITALIC = "STIXMathJax_DoubleStruck-italic",
  31. DOUBLESTRUCK = "STIXMathJax_DoubleStruck",
  32. FRAKTURBOLD = "STIXMathJax_Fraktur-bold",
  33. FRAKTUR = "STIXMathJax_Fraktur",
  34. LATINBOLDITALIC = "STIXMathJax_Latin-bold-italic",
  35. LATINBOLD = "STIXMathJax_Latin-bold",
  36. LATINITALIC = "STIXMathJax_Latin-italic",
  37. LATIN = "STIXMathJax_Latin",
  38. MAINBOLDITALIC = "STIXMathJax_Main-bold-italic",
  39. MAINBOLD = "STIXMathJax_Main-bold",
  40. MAINITALIC = "STIXMathJax_Main-italic",
  41. MAIN = "STIXMathJax_Main",
  42. MARKSBOLDITALIC = "STIXMathJax_Marks-bold-italic",
  43. MARKSBOLD = "STIXMathJax_Marks-bold",
  44. MARKSITALIC = "STIXMathJax_Marks-italic",
  45. MARKS = "STIXMathJax_Marks",
  46. MISCBOLDITALIC = "STIXMathJax_Misc-bold-italic",
  47. MISCBOLD = "STIXMathJax_Misc-bold",
  48. MISCITALIC = "STIXMathJax_Misc-italic",
  49. MISC = "STIXMathJax_Misc",
  50. MONOSPACE = "STIXMathJax_Monospace",
  51. NORMALBOLDITALIC = "STIXMathJax_Normal-bold-italic",
  52. NORMALBOLD = "STIXMathJax_Normal-bold",
  53. NORMALITALIC = "STIXMathJax_Normal-italic",
  54. OPERATORSBOLD = "STIXMathJax_Operators-bold",
  55. OPERATORS = "STIXMathJax_Operators",
  56. SANSSERIFBOLDITALIC = "STIXMathJax_SansSerif-bold-italic",
  57. SANSSERIFBOLD = "STIXMathJax_SansSerif-bold",
  58. SANSSERIFITALIC = "STIXMathJax_SansSerif-italic",
  59. SANSSERIF = "STIXMathJax_SansSerif",
  60. SCRIPTBOLDITALIC = "STIXMathJax_Script-bold-italic",
  61. SCRIPTITALIC = "STIXMathJax_Script-italic",
  62. SCRIPT = "STIXMathJax_Script",
  63. SHAPESBOLDITALIC = "STIXMathJax_Shapes-bold-italic",
  64. SHAPESBOLD = "STIXMathJax_Shapes-bold",
  65. SHAPES = "STIXMathJax_Shapes",
  66. SIZE1 = "STIXMathJax_Size1",
  67. SIZE2 = "STIXMathJax_Size2",
  68. SIZE3 = "STIXMathJax_Size3",
  69. SIZE4 = "STIXMathJax_Size4",
  70. SIZE5 = "STIXMathJax_Size5",
  71. SYMBOLSBOLD = "STIXMathJax_Symbols-bold",
  72. SYMBOLS = "STIXMathJax_Symbols",
  73. VARIANTSBOLDITALIC = "STIXMathJax_Variants-bold-italic",
  74. VARIANTSBOLD = "STIXMathJax_Variants-bold",
  75. VARIANTSITALIC = "STIXMathJax_Variants-italic",
  76. VARIANTS = "STIXMathJax_Variants";
  77. var H = "H", V = "V", EXTRAH = {load:"extra", dir:H}, EXTRAV = {load:"extra", dir:V};
  78. var ARROWREP = [0x2212,MAIN,0,0,0,-.26,-.26];
  79. SVG.Augment({
  80. FONTDATA: {
  81. version: VERSION,
  82. baselineskip: 1200,
  83. lineH: 800, lineD: 200,
  84. FONTS: {
  85. "STIXMathJax_Alphabets-bold-italic": "Alphabets/BoldItalic/Main.js",
  86. "STIXMathJax_Alphabets-bold": "Alphabets/Bold/Main.js",
  87. "STIXMathJax_Alphabets-italic": "Alphabets/Italic/Main.js",
  88. "STIXMathJax_Alphabets": "Alphabets/Regular/Main.js",
  89. "STIXMathJax_Arrows-bold": "Arrows/Bold/Main.js",
  90. "STIXMathJax_Arrows": "Arrows/Regular/Main.js",
  91. "STIXMathJax_DoubleStruck-bold-italic": "DoubleStruck/BoldItalic/Main.js",
  92. "STIXMathJax_DoubleStruck-bold": "DoubleStruck/Bold/Main.js",
  93. "STIXMathJax_DoubleStruck-italic": "DoubleStruck/Italic/Main.js",
  94. "STIXMathJax_DoubleStruck": "DoubleStruck/Regular/Main.js",
  95. "STIXMathJax_Fraktur-bold": "Fraktur/Bold/Main.js",
  96. "STIXMathJax_Fraktur": "Fraktur/Regular/Main.js",
  97. "STIXMathJax_Latin-bold-italic": "Latin/BoldItalic/Main.js",
  98. "STIXMathJax_Latin-bold": "Latin/Bold/Main.js",
  99. "STIXMathJax_Latin-italic": "Latin/Italic/Main.js",
  100. "STIXMathJax_Latin": "Latin/Regular/Main.js",
  101. "STIXMathJax_Main-bold-italic": "Main/BoldItalic/Main.js",
  102. "STIXMathJax_Main-bold": "Main/Bold/Main.js",
  103. "STIXMathJax_Main-italic": "Main/Italic/Main.js",
  104. "STIXMathJax_Main": "Main/Regular/Main.js",
  105. "STIXMathJax_Marks-bold-italic": "Marks/BoldItalic/Main.js",
  106. "STIXMathJax_Marks-bold": "Marks/Bold/Main.js",
  107. "STIXMathJax_Marks-italic": "Marks/Italic/Main.js",
  108. "STIXMathJax_Marks": "Marks/Regular/Main.js",
  109. "STIXMathJax_Misc-bold-italic": "Misc/BoldItalic/Main.js",
  110. "STIXMathJax_Misc-bold": "Misc/Bold/Main.js",
  111. "STIXMathJax_Misc-italic": "Misc/Italic/Main.js",
  112. "STIXMathJax_Misc": "Misc/Regular/Main.js",
  113. "STIXMathJax_Monospace": "Monospace/Regular/Main.js",
  114. "STIXMathJax_Normal-bold-italic": "Normal/BoldItalic/Main.js",
  115. "STIXMathJax_Normal-bold": "Normal/Bold/Main.js",
  116. "STIXMathJax_Normal-italic": "Normal/Italic/Main.js",
  117. "STIXMathJax_Operators-bold": "Operators/Bold/Main.js",
  118. "STIXMathJax_Operators": "Operators/Regular/Main.js",
  119. "STIXMathJax_SansSerif-bold-italic": "SansSerif/BoldItalic/Main.js",
  120. "STIXMathJax_SansSerif-bold": "SansSerif/Bold/Main.js",
  121. "STIXMathJax_SansSerif-italic": "SansSerif/Italic/Main.js",
  122. "STIXMathJax_SansSerif": "SansSerif/Regular/Main.js",
  123. "STIXMathJax_Script-bold-italic": "Script/BoldItalic/Main.js",
  124. "STIXMathJax_Script-italic": "Script/Italic/Main.js",
  125. "STIXMathJax_Script": "Script/Regular/Main.js",
  126. "STIXMathJax_Shapes-bold-italic": "Shapes/BoldItalic/Main.js",
  127. "STIXMathJax_Shapes-bold": "Shapes/Bold/Main.js",
  128. "STIXMathJax_Shapes": "Shapes/Regular/Main.js",
  129. "STIXMathJax_Size1": "Size1/Regular/Main.js",
  130. "STIXMathJax_Size2": "Size2/Regular/Main.js",
  131. "STIXMathJax_Size3": "Size3/Regular/Main.js",
  132. "STIXMathJax_Size4": "Size4/Regular/Main.js",
  133. "STIXMathJax_Size5": "Size5/Regular/Main.js",
  134. "STIXMathJax_Symbols-bold": "Symbols/Bold/Main.js",
  135. "STIXMathJax_Symbols": "Symbols/Regular/Main.js",
  136. "STIXMathJax_Variants-bold-italic": "Variants/BoldItalic/Main.js",
  137. "STIXMathJax_Variants-bold": "Variants/Bold/Main.js",
  138. "STIXMathJax_Variants-italic": "Variants/Italic/Main.js",
  139. "STIXMathJax_Variants": "Variants/Regular/Main.js"
  140. },
  141. VARIANT: {
  142. "normal": {remap: {0x007C: [0x007C, "-STIX-Web-variant"]}, fonts: [MAIN,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,SIZE1]},
  143. "bold": {fonts: [MAINBOLD,NORMALBOLD,FRAKTURBOLD,DOUBLESTRUCKBOLD,SANSSERIFBOLD,LATINBOLD,ALPHABETSBOLD,MARKSBOLD,ARROWSBOLD,OPERATORSBOLD,SYMBOLSBOLD,SHAPESBOLD,MISCBOLD,VARIANTSBOLD,SIZE1], bold:true},
  144. "italic": {fonts: [MAINITALIC,NORMALITALIC,SCRIPTITALIC,DOUBLESTRUCKITALIC,SANSSERIFITALIC,LATINITALIC,ALPHABETSITALIC,MARKSITALIC,MISCITALIC,VARIANTSITALIC,SIZE1], italic:true},
  145. "bold-italic": {fonts: [MAINBOLDITALIC,NORMALBOLDITALIC,SCRIPTBOLDITALIC,DOUBLESTRUCKBOLDITALIC,SANSSERIFBOLDITALIC,LATINBOLDITALIC,ALPHABETSBOLDITALIC,MARKSBOLDITALIC,SHAPESBOLDITALIC,MISCBOLDITALIC,VARIANTSBOLDITALIC,SIZE1], bold: true, italic:true},
  146. "double-struck": {
  147. fonts: [DOUBLESTRUCK],
  148. offsetA: 0x1D538,
  149. offsetN: 0x1D7D8,
  150. remap: {0x1D53A: 0x2102, 0x1D53F: 0x210D, 0x1D545: 0x2115, 0x1D547: 0x2119, 0x1D548: 0x211A, 0x1D549: 0x211D, 0x1D551: 0x2124}
  151. },
  152. "fraktur": {
  153. fonts: [FRAKTUR],
  154. offsetA: 0x1D504,
  155. remap: {0x1D506: 0x212D, 0x1D50B: 0x210C, 0x1D50C: 0x2111, 0x1D515: 0x211C, 0x1D51D: 0x2128}
  156. },
  157. "bold-fraktur": {
  158. fonts: [FRAKTURBOLD], bold:true,
  159. offsetA: 0x1D56C
  160. },
  161. "script": {
  162. fonts: [SCRIPTITALIC], italic:true,
  163. offsetA: 0x1D49C,
  164. remap: {0x1D49D: 0x212C, 0x1D4A0: 0x2130, 0x1D4A1: 0x2131, 0x1D4A3: 0x210B, 0x1D4A4: 0x2110, 0x1D4A7: 0x2112, 0x1D4A8: 0x2133, 0x1D4AD: 0x211B, 0x1D4BA: 0x212F, 0x1D4BC: 0x210A, 0x1D4C4: 0x2134}
  165. },
  166. "bold-script": {
  167. fonts: [SCRIPTBOLDITALIC], bold:true, italic:true,
  168. offsetA: 0x1D4D0
  169. },
  170. "sans-serif": {
  171. fonts: [SANSSERIF],
  172. offsetA: 0x1D5A0,
  173. offsetN: 0x1D7E2,
  174. offsetG: 0xE17D,
  175. offsetE: 0xE17D
  176. },
  177. "bold-sans-serif": {
  178. fonts: [SANSSERIFBOLD], bold:true,
  179. offsetA: 0x1D5D4,
  180. offsetN: 0x1D7EC,
  181. offsetG: 0x1D756
  182. },
  183. "sans-serif-italic": {
  184. fonts: [SANSSERIFITALIC], italic: true,
  185. offsetA: 0x1D608,
  186. offsetN: 0xE1B4,
  187. offsetG: 0xE1BF,
  188. offsetE: 0xE1BF
  189. },
  190. "sans-serif-bold-italic": {
  191. fonts: [SANSSERIFBOLDITALIC], bold:true, italic: true,
  192. offsetA: 0x1D63C,
  193. offsetN: 0xE1F6,
  194. offsetG: 0x1D790
  195. },
  196. "monospace": {
  197. fonts: [MONOSPACE],
  198. offsetA: 0x1D670,
  199. offsetN: 0x1D7F6
  200. },
  201. "-STIX-Web-variant": {remap: {0x2A87: 0xE010, 0x2A88: 0xE00F, 0x25B3: 0x25B5, 0x25BD: 0x25BF, 0x007C: [0x07C, MML.VARIANT.NORMAL]}, fonts: [VARIANTS,SHAPES,OPERATORS,MAIN,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,SYMBOLS,MISC,SIZE1]},
  202. "-tex-caligraphic": {offsetA: 0xE22D, noLowerCase: 1, fonts: [VARIANTSITALIC,MAINITALIC,NORMALITALIC,SCRIPTITALIC,DOUBLESTRUCKITALIC,SANSSERIFITALIC,LATINITALIC,ALPHABETSITALIC,MARKSITALIC,MISCITALIC,SIZE1], italic: true},
  203. "-tex-oldstyle": {offsetN: 0xE261, remap: {0xE262: 0xE265, 0xE263: 0xE269, 0xE264: 0xE26D, 0xE265: 0xE271, 0xE266: 0xE275, 0xE267: 0xE279, 0xE268: 0xE27D, 0xE269: 0xE281, 0xE26A: 0xE285}, fonts: [VARIANTS,MAIN,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,SIZE1]},
  204. "-tex-caligraphic-bold": {offsetA: 0xE247, noLowerCase: 1, fonts: [VARIANTSBOLDITALIC,MAINBOLDITALIC,NORMALBOLDITALIC,SCRIPTBOLDITALIC,DOUBLESTRUCKBOLDITALIC,SANSSERIFBOLDITALIC,LATINBOLDITALIC,ALPHABETSBOLDITALIC,MARKSBOLDITALIC,SHAPESBOLDITALIC,MISCBOLDITALIC,SIZE1], italic: true, bold: true},
  205. "-tex-oldstyle-bold": {offsetN: 0xE261, remap: {0xE264: 0xE267, 0xE265: 0xE26B, 0xE266: 0xE26F, 0xE267: 0xE273, 0xE268: 0xE277, 0xE269: 0xE27B, 0xE26A: 0xE27F, 0xE26B: 0xE283, 0xE26C: 0xE287}, fonts: [VARIANTSBOLD,MAINBOLD,NORMALBOLD,FRAKTURBOLD,DOUBLESTRUCKBOLD,SANSSERIFBOLD,LATINBOLD,ALPHABETSBOLD,MARKSBOLD,ARROWSBOLD,OPERATORSBOLD,SYMBOLSBOLD,SHAPESBOLD,MISCBOLD,SIZE1], bold: true},
  206. "-tex-mathit": {fonts: [MAINITALIC,NORMALITALIC,SCRIPTITALIC,DOUBLESTRUCKITALIC,SANSSERIFITALIC,LATINITALIC,ALPHABETSITALIC,MARKSITALIC,MISCITALIC,VARIANTSITALIC,SIZE1], italic:true, noIC:true},
  207. "-largeOp": {fonts:[SIZE1,MAIN]},
  208. "-smallOp": {}
  209. },
  210. RANGES: [
  211. {name: "alpha", low: 0x61, high: 0x7A, offset: "A", add: 26},
  212. {name: "Alpha", low: 0x41, high: 0x5A, offset: "A"},
  213. {name: "number", low: 0x30, high: 0x39, offset: "N"},
  214. {name: "greek-non-unicode", low: 0x03B1, high: 0x03C9, offset: "E", add: 25},
  215. {name: "greek", low: 0x03B1, high: 0x03C9, offset: "G", add: 26},
  216. {name: "Greek", low: 0x0391, high: 0x03F6, offset: "G",
  217. remap: {0x03F5: 52, 0x03D1: 53, 0x03F0: 54, 0x03D5: 55, 0x03F1: 56, 0x03D6: 57, 0x03F4: 17}}
  218. ],
  219. RULECHAR: 0x23AF,
  220. REMAP: {
  221. 0xA: 0x20,
  222. 0x3008: 0x27E8,
  223. 0x3009: 0x27E9,
  224. 0x2758: 0x2223,
  225. 0x02F3: 0x02DA,
  226. 0x02F4: 0x02CA,
  227. 0xFE37: 0x23DE,
  228. 0xFE38: 0x23DF
  229. },
  230. REMAPACCENT: {
  231. "\u007E": "\u0303",
  232. "\u2192": "\u20D7",
  233. "\u2190": "\u20D6",
  234. "\u0060": "\u0300",
  235. "\u005E": "\u0302",
  236. "\u00B4": "\u0301",
  237. "\u2032": "\u0301",
  238. "\u2035": "\u0300"
  239. },
  240. REMAPACCENTUNDER: {
  241. },
  242. DELIMITERS: {
  243. 0x28:
  244. {
  245. dir: V,
  246. HW: [[853,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  247. stretch: {bot:[0xE000,SIZE5], ext:[0xE001,SIZE5], top:[0xE002,SIZE5]}
  248. },
  249. 0x29:
  250. {
  251. dir: V,
  252. HW: [[853,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  253. stretch: {bot:[0xE003,SIZE5], ext:[0xE004,SIZE5], top:[0xE005,SIZE5]}
  254. },
  255. 0x2D: {alias: 0x23AF, dir: H},
  256. 0x2F:
  257. {
  258. dir: V,
  259. HW: [[690,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]]
  260. },
  261. 0x3D: EXTRAH,
  262. 0x5B:
  263. {
  264. dir: V,
  265. HW: [[818,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  266. stretch: {bot:[0xE006,SIZE5], ext:[0xE007,SIZE5], top:[0xE008,SIZE5]}
  267. },
  268. 0x5C:
  269. {
  270. dir: V,
  271. HW: [[690,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]]
  272. },
  273. 0x5D:
  274. {
  275. dir: V,
  276. HW: [[818,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  277. stretch: {bot:[0xE009,SIZE5], ext:[0xE00A,SIZE5], top:[0xE00B,SIZE5]}
  278. },
  279. 0x5E: {alias: 0x2C6, dir: H},
  280. 0x5F: {alias: 0x23AF, dir: H},
  281. 0x7B:
  282. {
  283. dir: V,
  284. HW: [[861,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  285. stretch: {bot:[0xE00C,SIZE5], ext:[0xE00D,SIZE5], mid:[0xE00E,SIZE5], top:[0xE00F,SIZE5]}
  286. },
  287. 0x7C:
  288. {
  289. dir: V,
  290. HW: [[690,MAIN]],
  291. stretch: {bot:[0x7C,MAIN], ext:[0x7C,MAIN]}
  292. },
  293. 0x7D:
  294. {
  295. dir: V,
  296. HW: [[861,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  297. stretch: {bot:[0xE010,SIZE5], ext:[0xE00D,SIZE5], mid:[0xE011,SIZE5], top:[0xE012,SIZE5]}
  298. },
  299. 0x7E: {alias: 0x2DC, dir: H},
  300. 0xAF: {alias: 0x23AF, dir: H},
  301. 0x2C6:
  302. {
  303. dir: H,
  304. HW: [[311,MAIN], [560,SIZE1], [979,SIZE2], [1460,SIZE3], [1886,SIZE4], [2328,SIZE5]]
  305. },
  306. 0x2C7: EXTRAH,
  307. 0x2C9: {alias: 0x23AF, dir: H},
  308. 0x2CD: EXTRAH,
  309. 0x2DC:
  310. {
  311. dir: H,
  312. HW: [[330,MAIN], [560,SIZE1], [979,SIZE2], [1460,SIZE3], [1886,SIZE4], [2328,SIZE5]]
  313. },
  314. 0x2F7: EXTRAH,
  315. 0x302:
  316. {
  317. dir: H,
  318. HW: [[311,MAIN], [560,SIZE1], [979,SIZE2], [1460,SIZE3], [1886,SIZE4], [2328,SIZE5]]
  319. },
  320. 0x303:
  321. {
  322. dir: H,
  323. HW: [[330,MAIN], [560,SIZE1], [979,SIZE2], [1460,SIZE3], [1886,SIZE4], [2328,SIZE5]]
  324. },
  325. 0x305:
  326. {
  327. dir: H,
  328. HW: [[500,MARKS], [1000,SIZE1], [1500,SIZE2], [2000,SIZE3], [2500,SIZE4], [3000,SIZE5]],
  329. stretch: {left:[0xE013,SIZE5], rep:[0xE013,SIZE5]}
  330. },
  331. 0x30C:
  332. {
  333. dir: H,
  334. HW: [[311,MAIN], [560,SIZE1], [979,SIZE2], [1460,SIZE3], [1886,SIZE4], [2328,SIZE5]]
  335. },
  336. 0x330:
  337. {
  338. dir: H,
  339. HW: [[330,MARKS], [560,SIZE1], [979,SIZE2], [1460,SIZE3], [1886,SIZE4], [2328,SIZE5]]
  340. },
  341. 0x332:
  342. {
  343. dir: H,
  344. HW: [[500,MARKS], [1000,SIZE1], [1500,SIZE2], [2000,SIZE3], [2500,SIZE4], [3000,SIZE5]],
  345. stretch: {left:[0xE014,SIZE5], rep:[0xE014,SIZE5]}
  346. },
  347. 0x338:
  348. {
  349. dir: V,
  350. HW: [[818,MAIN], [553,SIZE1], [662,SIZE2], [818,SIZE3], [959,SIZE4], [1414,SIZE5]]
  351. },
  352. 0x2015: {alias: 0x23AF, dir: H},
  353. 0x2016:
  354. {
  355. dir: V,
  356. HW: [[879,MAIN]],
  357. stretch: {bot:[0x2016,MAIN], ext:[0x2016,MAIN]}
  358. },
  359. 0x2017: {alias: 0x23AF, dir: H},
  360. 0x203E:
  361. {
  362. dir: H,
  363. HW: [[500,MAIN], [1000,SIZE1], [1500,SIZE2], [2000,SIZE3], [2500,SIZE4], [3000,SIZE5]],
  364. stretch: {left:[0x203E,MAIN], rep:[0x203E,MAIN]}
  365. },
  366. 0x20D0: EXTRAH,
  367. 0x20D1: EXTRAH,
  368. 0x20D6: EXTRAH,
  369. 0x20D7:
  370. {
  371. dir: H,
  372. HW: [[436,MAIN], [872,SIZE1], [1308,SIZE2], [1744,SIZE3], [2180,SIZE4], [3000,SIZE5]],
  373. stretch: {rep:[0xE016,SIZE5], right:[0xE019,SIZE5]}
  374. },
  375. 0x20E1: EXTRAH,
  376. 0x20EC: EXTRAH,
  377. 0x20ED: EXTRAH,
  378. 0x20EE: EXTRAH,
  379. 0x20EF: EXTRAH,
  380. 0x2140: EXTRAV,
  381. 0x2190:
  382. {
  383. dir: H,
  384. HW: [[786,MAIN]],
  385. stretch: {left:[0x2190,MAIN], rep:ARROWREP}
  386. },
  387. 0x2191:
  388. {
  389. dir: V,
  390. HW: [[818,MAIN]],
  391. stretch: {ext:[0x23D0,MAIN], top:[0x2191,MAIN]}
  392. },
  393. 0x2192:
  394. {
  395. dir: H,
  396. HW: [[786,MAIN]],
  397. stretch: {rep:ARROWREP, right:[0x2192,MAIN]}
  398. },
  399. 0x2193:
  400. {
  401. dir: V,
  402. HW: [[818,MAIN]],
  403. stretch: {bot:[0x2193,MAIN], ext:[0x23D0,MAIN]}
  404. },
  405. 0x2194:
  406. {
  407. dir: H,
  408. HW: [[850,MAIN]],
  409. stretch: {left:[0x2190,MAIN], rep:ARROWREP, right:[0x2192,MAIN]}
  410. },
  411. 0x2195:
  412. {
  413. dir: V,
  414. HW: [[954,MAIN]],
  415. stretch: {bot:[0x2193,MAIN], ext:[0x23D0,MAIN], top:[0x2191,MAIN]}
  416. },
  417. 0x219E: EXTRAH,
  418. 0x219F: EXTRAV,
  419. 0x21A0: EXTRAH,
  420. 0x21A1: EXTRAV,
  421. 0x21A4: EXTRAH,
  422. 0x21A5: EXTRAV,
  423. 0x21A6: EXTRAH,
  424. 0x21A7: EXTRAV,
  425. 0x21A8: EXTRAV,
  426. 0x21A9: EXTRAH,
  427. 0x21AA: EXTRAH,
  428. 0x21B0: EXTRAV,
  429. 0x21B1: EXTRAV,
  430. 0x21B2: EXTRAV,
  431. 0x21B3: EXTRAV,
  432. 0x21B4: EXTRAH,
  433. 0x21B5: EXTRAV,
  434. 0x21BC: EXTRAH,
  435. 0x21BD: EXTRAH,
  436. 0x21BE: EXTRAV,
  437. 0x21BF: EXTRAV,
  438. 0x21C0: EXTRAH,
  439. 0x21C1: EXTRAH,
  440. 0x21C2: EXTRAV,
  441. 0x21C3: EXTRAV,
  442. 0x21CB: EXTRAH,
  443. 0x21CC: EXTRAH,
  444. 0x21D0:
  445. {
  446. dir: H,
  447. HW: [[806,MAIN]],
  448. stretch: {left:[0x21D0,MAIN], rep:[0xE01F,SIZE5]}
  449. },
  450. 0x21D1:
  451. {
  452. dir: V,
  453. HW: [[818,MAIN]],
  454. stretch: {ext:[0xE020,SIZE5], top:[0x21D1,MAIN]}
  455. },
  456. 0x21D2:
  457. {
  458. dir: H,
  459. HW: [[806,MAIN]],
  460. stretch: {rep:[0xE01F,SIZE5], right:[0x21D2,MAIN]}
  461. },
  462. 0x21D3:
  463. {
  464. dir: V,
  465. HW: [[818,MAIN]],
  466. stretch: {bot:[0x21D3,MAIN], ext:[0xE020,SIZE5]}
  467. },
  468. 0x21D4:
  469. {
  470. dir: H,
  471. HW: [[886,MAIN]],
  472. stretch: {left:[0x21D0,MAIN], rep:[0xE01F,SIZE5], right:[0x21D2,MAIN]}
  473. },
  474. 0x21D5:
  475. {
  476. dir: V,
  477. HW: [[954,MAIN]],
  478. stretch: {bot:[0x21D3,MAIN], ext:[0xE020,SIZE5], top:[0x21D1,MAIN]}
  479. },
  480. 0x21DA: EXTRAH,
  481. 0x21DB: EXTRAH,
  482. 0x21E0: EXTRAH,
  483. 0x21E1: EXTRAV,
  484. 0x21E2: EXTRAH,
  485. 0x21E3: EXTRAV,
  486. 0x21E4: EXTRAH,
  487. 0x21E5: EXTRAH,
  488. 0x21FD: EXTRAH,
  489. 0x21FE: EXTRAH,
  490. 0x21FF: EXTRAH,
  491. 0x220F: EXTRAV,
  492. 0x2210: EXTRAV,
  493. 0x2211: EXTRAV,
  494. 0x2212: {alias: 0x23AF, dir: H},
  495. 0x2215: {alias: 0x2F, dir: V},
  496. 0x221A:
  497. {
  498. dir: V,
  499. HW: [[1232,MAIN], [1847,SIZE1], [2460,SIZE2], [3075,SIZE3]],
  500. stretch: {bot:[0xE022,SIZE5], ext:[0xE023,SIZE5], top:[0xE024,SIZE5]}
  501. },
  502. 0x221B: EXTRAV,
  503. 0x221C: EXTRAV,
  504. 0x2223:
  505. {
  506. dir: V,
  507. HW: [[879,MAIN]],
  508. stretch: {ext:[0x2223,MAIN]}
  509. },
  510. 0x2225:
  511. {
  512. dir: V,
  513. HW: [[879,MAIN]],
  514. stretch: {ext:[0x2225,MAIN]}
  515. },
  516. 0x222B: EXTRAV,
  517. 0x222C: EXTRAV,
  518. 0x222D: EXTRAV,
  519. 0x222E: EXTRAV,
  520. 0x222F: EXTRAV,
  521. 0x2230: EXTRAV,
  522. 0x2231: EXTRAV,
  523. 0x2232: EXTRAV,
  524. 0x2233: EXTRAV,
  525. 0x22C0: EXTRAV,
  526. 0x22C1: EXTRAV,
  527. 0x22C2: EXTRAV,
  528. 0x22C3: EXTRAV,
  529. 0x2308:
  530. {
  531. dir: V,
  532. HW: [[926,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  533. stretch: {ext:[0xE007,SIZE5], top:[0xE008,SIZE5]}
  534. },
  535. 0x2309:
  536. {
  537. dir: V,
  538. HW: [[926,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  539. stretch: {ext:[0xE00A,SIZE5], top:[0xE00B,SIZE5]}
  540. },
  541. 0x230A:
  542. {
  543. dir: V,
  544. HW: [[926,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  545. stretch: {bot:[0xE006,SIZE5], ext:[0xE007,SIZE5]}
  546. },
  547. 0x230B:
  548. {
  549. dir: V,
  550. HW: [[926,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]],
  551. stretch: {bot:[0xE009,SIZE5], ext:[0xE00A,SIZE5]}
  552. },
  553. 0x2312: {alias: 0x23DC, dir:H},
  554. 0x2322: {alias: 0x23DC, dir:H},
  555. 0x2323: {alias: 0x23DD, dir:H},
  556. 0x2329: {alias: 0x27E8, dir: V},
  557. 0x232A: {alias: 0x27E9, dir: V},
  558. 0x23AA: EXTRAV,
  559. 0x23AF:
  560. {
  561. dir: H,
  562. HW: [[315,SYMBOLS]],
  563. stretch: {rep:[0x23AF,SYMBOLS]}
  564. },
  565. 0x23B0:
  566. {
  567. dir: V,
  568. HW: [[1000,SIZE5,null,0xE03A]],
  569. stretch: {top:[0xE00F,SIZE5], ext:[0xE00D,SIZE5], bot:[0xE010,SIZE5]}
  570. },
  571. 0x23B1:
  572. {
  573. dir: V,
  574. HW: [[1000,SIZE5,null,0xE03B]],
  575. stretch: {top:[0xE012,SIZE5], ext:[0xE00D,SIZE5], bot:[0xE00C,SIZE5]}
  576. },
  577. 0x23B4: EXTRAH,
  578. 0x23B5: EXTRAH,
  579. 0x23D0: EXTRAV,
  580. 0x23DC: EXTRAH,
  581. 0x23DD: EXTRAH,
  582. 0x23DE:
  583. {
  584. dir: H,
  585. HW: [[1000,MAIN], [925,SIZE1], [1460,SIZE2], [1886,SIZE3], [2328,SIZE4], [3238,SIZE5]],
  586. stretch: {left:[0xE031,SIZE5], rep:[0xE028,SIZE5], mid:[0xE032,SIZE5], right:[0xE033,SIZE5]}
  587. },
  588. 0x23DF:
  589. {
  590. dir: H,
  591. HW: [[1000,MAIN], [925,SIZE1], [1460,SIZE2], [1886,SIZE3], [2328,SIZE4], [3238,SIZE5]],
  592. stretch: {left:[0xE034,SIZE5], rep:[0xE02B,SIZE5], mid:[0xE035,SIZE5], right:[0xE036,SIZE5]}
  593. },
  594. 0x23E0: EXTRAH,
  595. 0x23E1: EXTRAH,
  596. 0x2500: {alias: 0x2212, dir: H},
  597. 0x2758: {alias: 0x2223, dir: V},
  598. 0x2772: EXTRAV,
  599. 0x2773: EXTRAV,
  600. 0x27E6: EXTRAV,
  601. 0x27E7: EXTRAV,
  602. 0x27E8:
  603. {
  604. dir: V,
  605. HW: [[926,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]]
  606. },
  607. 0x27E9:
  608. {
  609. dir: V,
  610. HW: [[926,MAIN], [1230,SIZE1], [1350,SIZE1,1.098], [1845,SIZE2], [2460,SIZE3], [3075,SIZE4]]
  611. },
  612. 0x27EA: EXTRAV,
  613. 0x27EB: EXTRAV,
  614. 0x27EE:
  615. {
  616. dir: V,
  617. HW: [[853,MAIN]],
  618. stretch: {bot:[0xE000,SIZE5], ext:[0xE001,SIZE5], top:[0xE002,SIZE5]}
  619. },
  620. 0x27EF:
  621. {
  622. dir: V,
  623. HW: [[853,MAIN]],
  624. stretch: {bot:[0xE003,SIZE5], ext:[0xE004,SIZE5], top:[0xE005,SIZE5]}
  625. },
  626. 0x27F0: EXTRAV,
  627. 0x27F1: EXTRAV,
  628. 0x27F5: {alias: 0x2190, dir: H},
  629. 0x27F6: {alias: 0x2192, dir: H},
  630. 0x27F7: {alias: 0x2194, dir: H},
  631. 0x27F8: {alias: 0x21D0, dir: H},
  632. 0x27F9: {alias: 0x21D2, dir: H},
  633. 0x27FA: {alias: 0x21D4, dir: H},
  634. 0x27FB: {alias: 0x21A4, dir: H},
  635. 0x27FC: {alias: 0x21A6, dir: H},
  636. 0x27FD: {alias: 0x2906, dir: H},
  637. 0x27FE: {alias: 0x2907, dir: H},
  638. 0x2906: EXTRAH,
  639. 0x2907: EXTRAH,
  640. 0x290A: EXTRAV,
  641. 0x290B: EXTRAV,
  642. 0x2912: EXTRAV,
  643. 0x2913: EXTRAV,
  644. 0x294E: EXTRAH,
  645. 0x294F: EXTRAV,
  646. 0x2950: EXTRAH,
  647. 0x2951: EXTRAV,
  648. 0x2952: EXTRAH,
  649. 0x2953: EXTRAH,
  650. 0x2954: EXTRAV,
  651. 0x2955: EXTRAV,
  652. 0x2956: EXTRAH,
  653. 0x2957: EXTRAH,
  654. 0x2958: EXTRAV,
  655. 0x2959: EXTRAV,
  656. 0x295A: EXTRAH,
  657. 0x295B: EXTRAH,
  658. 0x295C: EXTRAV,
  659. 0x295D: EXTRAV,
  660. 0x295E: EXTRAH,
  661. 0x295F: EXTRAH,
  662. 0x2960: EXTRAV,
  663. 0x2961: EXTRAV,
  664. 0x2980: EXTRAV,
  665. 0x2983: EXTRAV,
  666. 0x2984: EXTRAV,
  667. 0x2985: EXTRAV,
  668. 0x2986: EXTRAV,
  669. 0x2997: EXTRAV,
  670. 0x2998: EXTRAV,
  671. 0x29F8:
  672. {
  673. dir: V,
  674. HW: [[1020,MAIN], [1845,SIZE1]]
  675. },
  676. 0x29F9:
  677. {
  678. dir: V,
  679. HW: [[1020,MAIN], [1845,SIZE1]]
  680. },
  681. 0x2A00: EXTRAV,
  682. 0x2A01: EXTRAV,
  683. 0x2A02: EXTRAV,
  684. 0x2A03: EXTRAV,
  685. 0x2A04: EXTRAV,
  686. 0x2A05: EXTRAV,
  687. 0x2A06: EXTRAV,
  688. 0x2A07: EXTRAV,
  689. 0x2A08: EXTRAV,
  690. 0x2A09: EXTRAV,
  691. 0x2A0A: EXTRAV,
  692. 0x2A0B: EXTRAV,
  693. 0x2A0C: EXTRAV,
  694. 0x2A0D: EXTRAV,
  695. 0x2A0E: EXTRAV,
  696. 0x2A0F: EXTRAV,
  697. 0x2A10: EXTRAV,
  698. 0x2A11: EXTRAV,
  699. 0x2A12: EXTRAV,
  700. 0x2A13: EXTRAV,
  701. 0x2A14: EXTRAV,
  702. 0x2A15: EXTRAV,
  703. 0x2A16: EXTRAV,
  704. 0x2A17: EXTRAV,
  705. 0x2A18: EXTRAV,
  706. 0x2A19: EXTRAV,
  707. 0x2A1A: EXTRAV,
  708. 0x2A1B: EXTRAV,
  709. 0x2A1C: EXTRAV,
  710. 0x2AFC: EXTRAV,
  711. 0x2AFF: EXTRAV,
  712. 0x2B45: EXTRAH,
  713. 0x2B46:
  714. {
  715. dir: H,
  716. HW: [[818,SHAPES]],
  717. stretch: {rep:[0xE039,SIZE5], right:[0x2B46,SHAPES]}
  718. },
  719. 0x3008: {alias: 0x27E8, dir: V},
  720. 0x3009: {alias: 0x27E9, dir: V},
  721. 0xFE37: {alias: 0x23DE, dir: H},
  722. 0xFE38: {alias: 0x23DF, dir: H}
  723. }
  724. }
  725. });
  726. MathJax.Hub.Register.LoadHook(SVG.fontDir+"/Main/Regular/Main.js",function () {
  727. SVG.FONTDATA.FONTS[MAIN][0x22EE][0] += 400; // adjust height for \vdots
  728. SVG.FONTDATA.FONTS[MAIN][0x22F1][0] += 500; // adjust height for \ddots
  729. SVG.FONTDATA.FONTS[MAIN][0x2212][0] = SVG.FONTDATA.FONTS[MAIN][0x002B][0]; // - needs height and depth of +
  730. SVG.FONTDATA.FONTS[MAIN][0x2212][1] = SVG.FONTDATA.FONTS[MAIN][0x002B][1]; // - needs height and depth of +
  731. SVG.FONTDATA.FONTS[MAIN][0x003D][1] += 100; // adjust depth for = (double arrow extender)
  732. });
  733. MathJax.Hub.Register.LoadHook(SVG.fontDir+"/Size5/Regular/Main.js",function () {
  734. var u;
  735. u = SVG.FONTDATA.DELIMITERS[0x23DE].stretch.rep[0];
  736. SVG.FONTDATA.FONTS[SIZE5][u][0] += 200; // adjust height for brace extender
  737. SVG.FONTDATA.FONTS[SIZE5][u][1] += 200; // adjust depth for brace extender
  738. u = SVG.FONTDATA.DELIMITERS[0x23DF].stretch.rep[0];
  739. SVG.FONTDATA.FONTS[SIZE5][u][0] += 200; // adjust height for brace extender
  740. SVG.FONTDATA.FONTS[SIZE5][u][1] += 200; // adjust depth for brace extender
  741. });
  742. AJAX.loadComplete(SVG.fontDir + "/fontdata.js");
  743. })(MathJax.OutputJax.SVG,MathJax.ElementJax.mml,MathJax.Ajax,MathJax.Hub);