fontdata.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata.js
  4. *
  5. * Initializes the HTML-CSS OutputJax to use the Gyre-Termes 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 (HTMLCSS,MML,AJAX) {
  21. var VERSION = "2.7.2";
  22. var ALPHABETS = "GyreTermesMathJax_Alphabets",
  23. ARROWS = "GyreTermesMathJax_Arrows",
  24. DOUBLESTRUCK = "GyreTermesMathJax_DoubleStruck",
  25. FRAKTUR = "GyreTermesMathJax_Fraktur",
  26. LATIN = "GyreTermesMathJax_Latin",
  27. MAIN = "GyreTermesMathJax_Main",
  28. MARKS = "GyreTermesMathJax_Marks",
  29. MISC = "GyreTermesMathJax_Misc",
  30. MONOSPACE = "GyreTermesMathJax_Monospace",
  31. NONUNICODE = "GyreTermesMathJax_NonUnicode",
  32. NORMAL = "GyreTermesMathJax_Normal",
  33. OPERATORS = "GyreTermesMathJax_Operators",
  34. SANSSERIF = "GyreTermesMathJax_SansSerif",
  35. SCRIPT = "GyreTermesMathJax_Script",
  36. SHAPES = "GyreTermesMathJax_Shapes",
  37. SIZE1 = "GyreTermesMathJax_Size1",
  38. SIZE2 = "GyreTermesMathJax_Size2",
  39. SIZE3 = "GyreTermesMathJax_Size3",
  40. SIZE4 = "GyreTermesMathJax_Size4",
  41. SIZE5 = "GyreTermesMathJax_Size5",
  42. SIZE6 = "GyreTermesMathJax_Size6",
  43. SYMBOLS = "GyreTermesMathJax_Symbols",
  44. VARIANTS = "GyreTermesMathJax_Variants";
  45. var H = "H", V = "V", EXTRAH = {load:"extra", dir:H}, EXTRAV = {load:"extra", dir:V};
  46. HTMLCSS.Augment({
  47. FONTDATA: {
  48. version: VERSION,
  49. TeX_factor: 1.125,
  50. baselineskip: 1.200,
  51. lineH: 0.800, lineD: 0.200,
  52. hasStyleChar: true, // char 0xEFFD encodes font style
  53. FONTS: {
  54. "GyreTermesMathJax_Alphabets": "Alphabets/Regular/Main.js",
  55. "GyreTermesMathJax_Arrows": "Arrows/Regular/Main.js",
  56. "GyreTermesMathJax_DoubleStruck": "DoubleStruck/Regular/Main.js",
  57. "GyreTermesMathJax_Fraktur": "Fraktur/Regular/Main.js",
  58. "GyreTermesMathJax_Latin": "Latin/Regular/Main.js",
  59. "GyreTermesMathJax_Main": "Main/Regular/Main.js",
  60. "GyreTermesMathJax_Marks": "Marks/Regular/Main.js",
  61. "GyreTermesMathJax_Misc": "Misc/Regular/Main.js",
  62. "GyreTermesMathJax_Monospace": "Monospace/Regular/Main.js",
  63. "GyreTermesMathJax_NonUnicode": "NonUnicode/Regular/Main.js",
  64. "GyreTermesMathJax_Normal": "Normal/Regular/Main.js",
  65. "GyreTermesMathJax_Operators": "Operators/Regular/Main.js",
  66. "GyreTermesMathJax_SansSerif": "SansSerif/Regular/Main.js",
  67. "GyreTermesMathJax_Script": "Script/Regular/Main.js",
  68. "GyreTermesMathJax_Shapes": "Shapes/Regular/Main.js",
  69. "GyreTermesMathJax_Size1": "Size1/Regular/Main.js",
  70. "GyreTermesMathJax_Size2": "Size2/Regular/Main.js",
  71. "GyreTermesMathJax_Size3": "Size3/Regular/Main.js",
  72. "GyreTermesMathJax_Size4": "Size4/Regular/Main.js",
  73. "GyreTermesMathJax_Size5": "Size5/Regular/Main.js",
  74. "GyreTermesMathJax_Size6": "Size6/Regular/Main.js",
  75. "GyreTermesMathJax_Symbols": "Symbols/Regular/Main.js",
  76. "GyreTermesMathJax_Variants": "Variants/Regular/Main.js"
  77. },
  78. VARIANT: {
  79. "normal": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1]},
  80. "bold": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1], bold:true
  81. , offsetA: 0x1D400, offsetG: 0x1D6A8, offsetN: 0x1D7CE},
  82. "italic": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1], italic:true, offsetA: 0x1D434, offsetG: 0x1D6E2, remap: {0x1D455: 0x210E}},
  83. "bold-italic": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1], bold: true, italic:true, offsetA: 0x1D468, offsetG: 0x1D71C},
  84. "double-struck": {
  85. fonts: [DOUBLESTRUCK],
  86. offsetA: 0x1D538,
  87. offsetN: 0x1D7D8,
  88. remap: {0x1D53A: 0x2102, 0x1D53F: 0x210D, 0x1D545: 0x2115, 0x1D547: 0x2119, 0x1D548: 0x211A, 0x1D549: 0x211D, 0x1D551: 0x2124}
  89. },
  90. "fraktur": {
  91. fonts: [FRAKTUR],
  92. offsetA: 0x1D504,
  93. remap: {0x1D506: 0x212D, 0x1D50B: 0x210C, 0x1D50C: 0x2111, 0x1D515: 0x211C, 0x1D51D: 0x2128}
  94. },
  95. "bold-fraktur": {
  96. fonts: [FRAKTUR], bold:true,
  97. offsetA: 0x1D56C
  98. },
  99. "script": {
  100. fonts: [SCRIPT], italic:true,
  101. offsetA: 0x1D49C,
  102. remap: {0x1D49D: 0x212C, 0x1D4A0: 0x2130, 0x1D4A1: 0x2131, 0x1D4A3: 0x210B, 0x1D4A4: 0x2110, 0x1D4A7: 0x2112, 0x1D4A8: 0x2133, 0x1D4AD: 0x211B, 0x1D4BA: 0x212F, 0x1D4BC: 0x210A, 0x1D4C4: 0x2134}
  103. },
  104. "bold-script": {
  105. fonts: [SCRIPT], bold:true, italic:true,
  106. offsetA: 0x1D4D0
  107. },
  108. "sans-serif": {
  109. fonts: [SANSSERIF],
  110. offsetA: 0x1D5A0,
  111. offsetN: 0x1D7E2
  112. },
  113. "bold-sans-serif": {
  114. fonts: [SANSSERIF], bold:true,
  115. offsetA: 0x1D5D4,
  116. offsetN: 0x1D7EC,
  117. offsetG: 0x1D756
  118. },
  119. "sans-serif-italic": {
  120. fonts: [SANSSERIF], italic: true,
  121. offsetA: 0x1D608
  122. },
  123. "sans-serif-bold-italic": {
  124. fonts: [SANSSERIF], bold:true, italic: true,
  125. offsetA: 0x1D63C,
  126. offsetG: 0x1D790
  127. },
  128. "monospace": {
  129. fonts: [MONOSPACE],
  130. offsetA: 0x1D670,
  131. offsetN: 0x1D7F6
  132. },
  133. "-Gyre-Termes-variant": {fonts: [VARIANTS,MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,NONUNICODE,SIZE1]},
  134. "-tex-caligraphic": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1], italic: true},
  135. "-tex-oldstyle": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1]},
  136. "-tex-caligraphic-bold": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1], italic: true, bold: true},
  137. "-tex-oldstyle-bold": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1], bold: true},
  138. "-tex-mathit": {fonts: [MAIN,NORMAL,MONOSPACE,LATIN,ALPHABETS,MARKS,ARROWS,OPERATORS,SYMBOLS,SHAPES,MISC,VARIANTS,NONUNICODE,SIZE1], italic:true, noIC:true},
  139. "-largeOp": {fonts:[SIZE1,MAIN]},
  140. "-smallOp": {}
  141. },
  142. RANGES: [
  143. {name: "alpha", low: 0x61, high: 0x7A, offset: "A", add: 26},
  144. {name: "Alpha", low: 0x41, high: 0x5A, offset: "A"},
  145. {name: "number", low: 0x30, high: 0x39, offset: "N"},
  146. {name: "greek", low: 0x03B1, high: 0x03C9, offset: "G", add: 26},
  147. {name: "Greek", low: 0x0391, high: 0x03F6, offset: "G",
  148. remap: {0x03F5: 52, 0x03D1: 53, 0x03F0: 54, 0x03D5: 55, 0x03F1: 56, 0x03D6: 57, 0x03F4: 17}}
  149. ],
  150. RULECHAR: 0x2212,
  151. REMAP: {
  152. 0xA: 0x20,
  153. 0x25C2: 0x25C0,
  154. 0x3008: 0x27E8,
  155. 0x3009: 0x27E9,
  156. 0x2758: 0x2223,
  157. 0x25B8: 0x25B6,
  158. 0x03D2: 0x03A5,
  159. 0x25B4: 0x25B2,
  160. 0x25B5: 0x25B3,
  161. 0xFE37: 0x23DE,
  162. 0xFE38: 0x23DF,
  163. 0x02B9: 0x2032,
  164. 0x25FB: 0x25A1,
  165. 0x25FC: 0x25A0,
  166. 0x25BE: 0x25BC,
  167. 0x203E: 0x0305,
  168. 0x25BF: 0x25BD
  169. },
  170. REMAPACCENT: {
  171. "\u007E": "\u0303",
  172. "\u2192": "\u20D7",
  173. "\u0060": "\u0300",
  174. "\u005E": "\u0302",
  175. "\u00B4": "\u0301",
  176. "\u2032": "\u0301",
  177. "\u2035": "\u0300"
  178. },
  179. REMAPACCENTUNDER: {
  180. },
  181. DELIMITERS: {
  182. 0x28:
  183. {
  184. dir: V,
  185. HW: [[0.816,MAIN], [0.976,SIZE1], [1.168,SIZE2], [1.398,SIZE3], [1.674,SIZE4], [2.006,SIZE5], [2.404,SIZE6], [2.780,SIZE6,1.157]],
  186. stretch: {bot:[0x239D,SYMBOLS], ext:[0x239C,SYMBOLS], top:[0x239B,SYMBOLS]}
  187. },
  188. 0x29:
  189. {
  190. dir: V,
  191. HW: [[0.816,MAIN], [0.976,SIZE1], [1.168,SIZE2], [1.398,SIZE3], [1.674,SIZE4], [2.006,SIZE5], [2.404,SIZE6], [2.780,SIZE6,1.157]],
  192. stretch: {bot:[0x23A0,SYMBOLS], ext:[0x239F,SYMBOLS], top:[0x239E,SYMBOLS]}
  193. },
  194. 0x2D: {alias: 0x2212, dir: H},
  195. 0x2F:
  196. {
  197. dir: V,
  198. HW: [[0.800,MAIN], [1.048,SIZE1], [1.372,SIZE2], [1.798,SIZE3], [1.827,SIZE3,1.016], [2.356,SIZE4], [3.086,SIZE5], [4.044,SIZE6]]
  199. },
  200. 0x3D:
  201. {
  202. dir: H,
  203. HW: [[0.500,MAIN]],
  204. stretch: {left:[0xE000,SIZE6], rep:[0xE001,SIZE6], right:[0xE002,SIZE6]}
  205. },
  206. 0x5B:
  207. {
  208. dir: V,
  209. HW: [[0.836,MAIN], [0.998,SIZE1], [1.190,SIZE2], [1.422,SIZE3], [1.698,SIZE4], [2.032,SIZE5], [2.432,SIZE6], [2.780,SIZE6,1.143]],
  210. stretch: {bot:[0x23A3,SYMBOLS], ext:[0x23A2,SYMBOLS], top:[0x23A1,SYMBOLS]}
  211. },
  212. 0x5C:
  213. {
  214. dir: V,
  215. HW: [[0.800,MAIN], [1.048,SIZE1], [1.372,SIZE2], [1.798,SIZE3], [1.827,SIZE3,1.016], [2.356,SIZE4], [3.086,SIZE5], [4.044,SIZE6]]
  216. },
  217. 0x5D:
  218. {
  219. dir: V,
  220. HW: [[0.836,MAIN], [0.998,SIZE1], [1.190,SIZE2], [1.422,SIZE3], [1.698,SIZE4], [2.032,SIZE5], [2.432,SIZE6], [2.780,SIZE6,1.143]],
  221. stretch: {bot:[0x23A6,SYMBOLS], ext:[0x23A5,SYMBOLS], top:[0x23A4,SYMBOLS]}
  222. },
  223. 0x5E: {alias: 0x302, dir: H},
  224. 0x5F: {alias: 0x332, dir: H},
  225. 0x7B:
  226. {
  227. dir: V,
  228. HW: [[0.820,MAIN], [0.980,SIZE1], [1.172,SIZE2], [1.402,SIZE3], [1.678,SIZE4], [2.010,SIZE5], [2.408,SIZE6], [2.780,SIZE6,1.155]],
  229. stretch: {bot:[0x23A9,SYMBOLS], ext:[0xE003,SIZE6], mid:[0x23A8,SYMBOLS], top:[0x23A7,SYMBOLS]}
  230. },
  231. 0x7C:
  232. {
  233. dir: V,
  234. HW: [[0.800,MAIN], [0.960,SIZE1], [1.152,SIZE2], [1.382,SIZE3], [1.658,SIZE4], [1.990,SIZE5], [2.388,SIZE6]],
  235. stretch: {bot:[0xE004,SIZE6], ext:[0xE005,SIZE6], top:[0xE006,SIZE6]}
  236. },
  237. 0x7D:
  238. {
  239. dir: V,
  240. HW: [[0.820,MAIN], [0.980,SIZE1], [1.172,SIZE2], [1.402,SIZE3], [1.678,SIZE4], [2.010,SIZE5], [2.408,SIZE6], [2.780,SIZE6,1.155]],
  241. stretch: {bot:[0x23AD,SYMBOLS], ext:[0xE007,SIZE6], mid:[0x23AC,SYMBOLS], top:[0x23AB,SYMBOLS]}
  242. },
  243. 0x7E: {alias: 0x303, dir: H},
  244. 0xAF: {alias: 0x332, dir: H},
  245. 0x2C6: {alias: 0x302, dir: H},
  246. 0x2C9: {alias: 0x2212, dir: H},
  247. 0x2DC: {alias: 0x303, dir: H},
  248. 0x302:
  249. {
  250. dir: H,
  251. HW: [[0.342,MAIN], [0.608,SIZE1], [0.727,SIZE2], [0.870,SIZE3], [1.041,SIZE4], [1.249,SIZE5], [1.496,SIZE6]]
  252. },
  253. 0x303:
  254. {
  255. dir: H,
  256. HW: [[0.334,MAIN], [0.601,SIZE1], [0.720,SIZE2], [0.863,SIZE3], [1.037,SIZE4], [1.241,SIZE5], [1.491,SIZE6]]
  257. },
  258. 0x305:
  259. {
  260. dir: H,
  261. HW: [[0.333,MARKS], [0.500,SIZE1]],
  262. stretch: {left:[0xE0FB,SIZE6], rep:[0xE0FC,SIZE6], right:[0xE0FD,SIZE6]}
  263. },
  264. 0x306: EXTRAH,
  265. 0x30C:
  266. {
  267. dir: H,
  268. HW: [[0.342,MAIN], [0.608,SIZE1], [0.727,SIZE2], [0.870,SIZE3], [1.041,SIZE4], [1.249,SIZE5], [1.496,SIZE6]]
  269. },
  270. 0x311: EXTRAH,
  271. 0x32C: EXTRAH,
  272. 0x32D: EXTRAH,
  273. 0x32E: EXTRAH,
  274. 0x32F: EXTRAH,
  275. 0x330: EXTRAH,
  276. 0x332:
  277. {
  278. dir: H,
  279. HW: [[0.333,MARKS], [0.500,SIZE1]],
  280. stretch: {left:[0xE0F5,SIZE6], rep:[0xE0F6,SIZE6], right:[0xE0F7,SIZE6]}
  281. },
  282. 0x333: EXTRAH,
  283. 0x33F: EXTRAH,
  284. 0x2015: {alias: 0x2212, dir: H},
  285. 0x2016:
  286. {
  287. dir: V,
  288. HW: [[0.800,MAIN], [0.960,SIZE1], [1.152,SIZE2], [1.382,SIZE3], [1.658,SIZE4], [1.990,SIZE5], [2.388,SIZE6]],
  289. stretch: {bot:[0xE12A,SIZE6], ext:[0xE12B,SIZE6], top:[0xE12C,SIZE6]}
  290. },
  291. 0x2017: {alias: 0x2212, dir: H},
  292. 0x203E: {alias: 0x2212, dir: H},
  293. 0x2044:
  294. {
  295. dir: V,
  296. HW: [[0.800,MAIN], [1.048,SIZE1], [1.372,SIZE2], [1.798,SIZE3], [2.356,SIZE4], [3.086,SIZE5], [4.044,SIZE6]]
  297. },
  298. 0x20D0: EXTRAH,
  299. 0x20D1: EXTRAH,
  300. 0x20D6: EXTRAH,
  301. 0x20D7: EXTRAH,
  302. 0x20E1: EXTRAH,
  303. 0x20E9: EXTRAH,
  304. 0x20EC: EXTRAH,
  305. 0x20ED: EXTRAH,
  306. 0x20EE: EXTRAH,
  307. 0x20EF: EXTRAH,
  308. 0x2140:
  309. {
  310. dir: V,
  311. HW: [[0.956,DOUBLESTRUCK], [1.360,SIZE1]]
  312. },
  313. 0x2190:
  314. {
  315. dir: H,
  316. HW: [[0.690,MAIN], [1.010,SIZE1]],
  317. stretch: {left:[0xE023,SIZE6], rep:[0xE024,SIZE6], right:[0xE025,SIZE6]}
  318. },
  319. 0x2191:
  320. {
  321. dir: V,
  322. HW: [[0.690,MAIN], [1.010,SIZE1]],
  323. stretch: {bot:[0xE029,SIZE6], ext:[0xE02A,SIZE6], top:[0xE02B,SIZE6]}
  324. },
  325. 0x2192:
  326. {
  327. dir: H,
  328. HW: [[0.690,MAIN], [1.010,SIZE1]],
  329. stretch: {left:[0xE026,SIZE6], rep:[0xE027,SIZE6], right:[0xE028,SIZE6]}
  330. },
  331. 0x2193:
  332. {
  333. dir: V,
  334. HW: [[0.690,MAIN], [1.010,SIZE1]],
  335. stretch: {bot:[0xE02C,SIZE6], ext:[0xE02D,SIZE6], top:[0xE02E,SIZE6]}
  336. },
  337. 0x2194:
  338. {
  339. dir: H,
  340. HW: [[0.880,MAIN], [1.200,SIZE1]],
  341. stretch: {left:[0xE037,SIZE6], rep:[0xE038,SIZE6], right:[0xE039,SIZE6]}
  342. },
  343. 0x2195:
  344. {
  345. dir: V,
  346. HW: [[0.880,MAIN], [1.200,SIZE1]],
  347. stretch: {bot:[0xE03A,SIZE6], ext:[0xE03B,SIZE6], top:[0xE03C,SIZE6]}
  348. },
  349. 0x2196: EXTRAV,
  350. 0x2197: EXTRAV,
  351. 0x2198: EXTRAV,
  352. 0x2199: EXTRAV,
  353. 0x219A: EXTRAH,
  354. 0x219B: EXTRAH,
  355. 0x219E: EXTRAH,
  356. 0x219F: EXTRAV,
  357. 0x21A0: EXTRAH,
  358. 0x21A1: EXTRAV,
  359. 0x21A2: EXTRAH,
  360. 0x21A3: EXTRAH,
  361. 0x21A4:
  362. {
  363. dir: H,
  364. HW: [[0.690,ARROWS], [1.010,SIZE1]],
  365. stretch: {left:[0xE053,SIZE6], rep:[0xE054,SIZE6], right:[0xE055,SIZE6]}
  366. },
  367. 0x21A5: EXTRAV,
  368. 0x21A6:
  369. {
  370. dir: H,
  371. HW: [[0.690,MAIN], [1.010,SIZE1]],
  372. stretch: {left:[0xE056,SIZE6], rep:[0xE057,SIZE6], right:[0xE058,SIZE6]}
  373. },
  374. 0x21A7: EXTRAV,
  375. 0x21A9: EXTRAH,
  376. 0x21AA: EXTRAH,
  377. 0x21AB: EXTRAH,
  378. 0x21AC: EXTRAH,
  379. 0x21AD: EXTRAH,
  380. 0x21AE: EXTRAH,
  381. 0x21B0: EXTRAV,
  382. 0x21B1: EXTRAV,
  383. 0x21B2: EXTRAV,
  384. 0x21B3: EXTRAV,
  385. 0x21B6: EXTRAH,
  386. 0x21B7: EXTRAH,
  387. 0x21BC: EXTRAH,
  388. 0x21BD: EXTRAH,
  389. 0x21BE: EXTRAV,
  390. 0x21BF: EXTRAV,
  391. 0x21C0: EXTRAH,
  392. 0x21C1: EXTRAH,
  393. 0x21C2: EXTRAV,
  394. 0x21C3: EXTRAV,
  395. 0x21C4: EXTRAH,
  396. 0x21C5: EXTRAV,
  397. 0x21C6: EXTRAH,
  398. 0x21C7: EXTRAH,
  399. 0x21C8: EXTRAV,
  400. 0x21C9: EXTRAH,
  401. 0x21CA: EXTRAV,
  402. 0x21CB: EXTRAH,
  403. 0x21CC: EXTRAH,
  404. 0x21CD: EXTRAH,
  405. 0x21CE: EXTRAH,
  406. 0x21CF: EXTRAH,
  407. 0x21D0:
  408. {
  409. dir: H,
  410. HW: [[0.690,MAIN], [1.010,SIZE1]],
  411. stretch: {left:[0xE0A7,SIZE6], rep:[0xE0A8,SIZE6], right:[0xE0A9,SIZE6]}
  412. },
  413. 0x21D1:
  414. {
  415. dir: V,
  416. HW: [[0.690,MAIN], [1.010,SIZE1]],
  417. stretch: {bot:[0xE0AD,SIZE6], ext:[0xE0AE,SIZE6], top:[0xE0AF,SIZE6]}
  418. },
  419. 0x21D2:
  420. {
  421. dir: H,
  422. HW: [[0.690,MAIN], [1.010,SIZE1]],
  423. stretch: {left:[0xE0AA,SIZE6], rep:[0xE0AB,SIZE6], right:[0xE0AC,SIZE6]}
  424. },
  425. 0x21D3:
  426. {
  427. dir: V,
  428. HW: [[0.690,MAIN], [1.010,SIZE1]],
  429. stretch: {bot:[0xE0B0,SIZE6], ext:[0xE0B1,SIZE6], top:[0xE0B2,SIZE6]}
  430. },
  431. 0x21D4:
  432. {
  433. dir: H,
  434. HW: [[0.880,MAIN], [1.200,SIZE1]],
  435. stretch: {left:[0xE0B3,SIZE6], rep:[0xE0B4,SIZE6], right:[0xE0B5,SIZE6]}
  436. },
  437. 0x21D5:
  438. {
  439. dir: V,
  440. HW: [[0.880,MAIN], [1.200,SIZE1]],
  441. stretch: {bot:[0xE0B6,SIZE6], ext:[0xE0B7,SIZE6], top:[0xE0B8,SIZE6]}
  442. },
  443. 0x21D6: EXTRAV,
  444. 0x21D7: EXTRAV,
  445. 0x21D8: EXTRAV,
  446. 0x21D9: EXTRAV,
  447. 0x21DA: EXTRAH,
  448. 0x21DB: EXTRAH,
  449. 0x21DC: EXTRAH,
  450. 0x21DD: EXTRAH,
  451. 0x21E6: EXTRAH,
  452. 0x21E7: EXTRAV,
  453. 0x21E8: EXTRAH,
  454. 0x21E9: EXTRAV,
  455. 0x21F3: EXTRAV,
  456. 0x21F5: EXTRAV,
  457. 0x21F6: EXTRAH,
  458. 0x220F: EXTRAV,
  459. 0x2210: EXTRAV,
  460. 0x2211: EXTRAV,
  461. 0x2212:
  462. {
  463. dir: H,
  464. HW: [],
  465. stretch: {rep:[0x2212,MAIN,0,0,0,-.224,-.224]}
  466. },
  467. 0x2215: {alias: 0x2044, dir: V},
  468. 0x221A:
  469. {
  470. dir: V,
  471. HW: [[0.706,MAIN], [1.090,SIZE1], [1.474,SIZE2], [1.858,SIZE3], [2.242,SIZE4], [2.626,SIZE5], [3.010,SIZE6]],
  472. stretch: {bot:[0x23B7,SYMBOLS], ext:[0xE133,SIZE6], top:[0xE134,SIZE6]}
  473. },
  474. 0x2223:
  475. {
  476. dir: V,
  477. HW: [[0.800,MAIN], [0.960,SIZE1], [1.152,SIZE2], [1.382,SIZE3], [1.658,SIZE4], [1.990,SIZE5], [2.388,SIZE6]],
  478. stretch: {bot:[0xE004,SIZE6], ext:[0xE005,SIZE6], top:[0xE006,SIZE6]}
  479. },
  480. 0x2225:
  481. {
  482. dir: V,
  483. HW: [[0.800,MAIN], [0.960,SIZE1], [1.152,SIZE2], [1.382,SIZE3], [1.658,SIZE4], [1.990,SIZE5], [2.388,SIZE6]],
  484. stretch: {bot:[0xE12A,SIZE6], ext:[0xE12B,SIZE6], top:[0xE12C,SIZE6]}
  485. },
  486. 0x222B: EXTRAV,
  487. 0x222C: EXTRAV,
  488. 0x222D: EXTRAV,
  489. 0x222E: EXTRAV,
  490. 0x222F: EXTRAV,
  491. 0x2230: EXTRAV,
  492. 0x2231: EXTRAV,
  493. 0x2232: EXTRAV,
  494. 0x2233: EXTRAV,
  495. 0x2261: EXTRAH,
  496. 0x2263: EXTRAH,
  497. 0x22A2: EXTRAV,
  498. 0x22A3: EXTRAV,
  499. 0x22A4: EXTRAV,
  500. 0x22A5: EXTRAV,
  501. 0x22C0: EXTRAV,
  502. 0x22C1: EXTRAV,
  503. 0x22C2: EXTRAV,
  504. 0x22C3: EXTRAV,
  505. 0x2308:
  506. {
  507. dir: V,
  508. HW: [[0.818,MAIN], [0.979,SIZE1], [1.171,SIZE2], [1.402,SIZE3], [1.678,SIZE4], [2.011,SIZE5], [2.410,SIZE6], [2.780,SIZE6,1.154]],
  509. stretch: {ext:[0x23A2,SYMBOLS], top:[0x23A1,SYMBOLS]}
  510. },
  511. 0x2309:
  512. {
  513. dir: V,
  514. HW: [[0.818,MAIN], [0.979,SIZE1], [1.171,SIZE2], [1.402,SIZE3], [1.678,SIZE4], [2.011,SIZE5], [2.410,SIZE6], [2.780,SIZE6,1.154]],
  515. stretch: {ext:[0x23A5,SYMBOLS], top:[0x23A4,SYMBOLS]}
  516. },
  517. 0x230A:
  518. {
  519. dir: V,
  520. HW: [[0.818,MAIN], [0.979,SIZE1], [1.171,SIZE2], [1.402,SIZE3], [1.678,SIZE4], [2.011,SIZE5], [2.410,SIZE6], [2.780,SIZE6,1.154]],
  521. stretch: {bot:[0x23A3,SYMBOLS], ext:[0x23A2,SYMBOLS]}
  522. },
  523. 0x230B:
  524. {
  525. dir: V,
  526. HW: [[0.818,MAIN], [0.979,SIZE1], [1.171,SIZE2], [1.402,SIZE3], [1.678,SIZE4], [2.011,SIZE5], [2.410,SIZE6], [2.780,SIZE6,1.154]],
  527. stretch: {bot:[0x23A6,SYMBOLS], ext:[0x23A5,SYMBOLS]}
  528. },
  529. 0x2312: {alias: 0x23DC, dir:H},
  530. 0x2322: {alias: 0x23DC, dir:H},
  531. 0x2323: {alias: 0x23DD, dir:H},
  532. 0x2329:
  533. {
  534. dir: V,
  535. HW: [[0.812,SYMBOLS], [1.060,SIZE1], [1.382,SIZE2], [1.806,SIZE3], [2.364,SIZE4], [3.092,SIZE5], [4.048,SIZE6]]
  536. },
  537. 0x232A:
  538. {
  539. dir: V,
  540. HW: [[0.812,SYMBOLS], [1.060,SIZE1], [1.382,SIZE2], [1.806,SIZE3], [2.364,SIZE4], [3.092,SIZE5], [4.048,SIZE6]]
  541. },
  542. 0x23AA:
  543. {
  544. dir: V,
  545. HW: [[0.596,SYMBOLS]],
  546. stretch: {ext:[0x23AA,SYMBOLS]}
  547. },
  548. 0x23AF: {alias: 0x2212, dir: H},
  549. 0x23B0:
  550. {
  551. dir: V,
  552. HW: [[0.607,SYMBOLS,null,0x23A7]],
  553. stretch: {top:[0x23A7,SYMBOLS], ext:[0x23AA,SYMBOLS], bot:[0x23AD,SYMBOLS]}
  554. },
  555. 0x23B1:
  556. {
  557. dir: V,
  558. HW: [[0.607,SYMBOLS,null,0x23AB]],
  559. stretch: {top:[0x23AB,SYMBOLS], ext:[0x23AA,SYMBOLS], bot:[0x23A9,SYMBOLS]}
  560. },
  561. 0x23B4: EXTRAH,
  562. 0x23B5: EXTRAH,
  563. 0x23D0:
  564. {
  565. dir: V,
  566. HW: [[0.800,MAIN,null,0x7C], [1.350,MAIN,1.688,0x7C], [1.827,MAIN,2.283,0x7C], [2.303,MAIN,2.879,0x7C], [2.780,MAIN,3.474,0x7C]],
  567. stretch: {ext:[0x7C,MAIN]}
  568. },
  569. 0x23DC: EXTRAH,
  570. 0x23DD: EXTRAH,
  571. 0x23DE:
  572. {
  573. dir: H,
  574. HW: [[0.520,MAIN], [1.019,SIZE1], [1.519,SIZE2], [2.019,SIZE3], [2.519,SIZE4], [3.019,SIZE5], [3.519,SIZE6]],
  575. stretch: {left:[0xE10D,SIZE6], rep:[0xE10E,SIZE6], mid:[0xE10F,SIZE6], right:[0xE110,SIZE6]}
  576. },
  577. 0x23DF:
  578. {
  579. dir: H,
  580. HW: [[0.520,MAIN], [1.019,SIZE1], [1.519,SIZE2], [2.019,SIZE3], [2.519,SIZE4], [3.019,SIZE5], [3.519,SIZE6]],
  581. stretch: {left:[0xE111,SIZE6], rep:[0xE112,SIZE6], mid:[0xE113,SIZE6], right:[0xE114,SIZE6]}
  582. },
  583. 0x23E0: EXTRAH,
  584. 0x23E1: EXTRAH,
  585. 0x2500: {alias: 0x2212, dir: H},
  586. 0x27A1: EXTRAH,
  587. 0x27E6: EXTRAV,
  588. 0x27E7: EXTRAV,
  589. 0x27E8:
  590. {
  591. dir: V,
  592. HW: [[0.812,MAIN], [1.060,SIZE1], [1.382,SIZE2], [1.806,SIZE3], [1.827,SIZE3,1.012], [2.364,SIZE4], [3.092,SIZE5], [4.048,SIZE6]]
  593. },
  594. 0x27E9:
  595. {
  596. dir: V,
  597. HW: [[0.812,MAIN], [1.060,SIZE1], [1.382,SIZE2], [1.806,SIZE3], [1.827,SIZE3,1.012], [2.364,SIZE4], [3.092,SIZE5], [4.048,SIZE6]]
  598. },
  599. 0x27EA: EXTRAV,
  600. 0x27EB: EXTRAV,
  601. 0x27EE:
  602. {
  603. dir: V,
  604. HW: [[0.814,MAIN], [0.974,SIZE1], [1.166,SIZE2], [1.396,SIZE3], [1.672,SIZE4], [2.004,SIZE5], [2.402,SIZE6]],
  605. stretch: {bot:[0xE101,SIZE6], ext:[0xE102,SIZE6], top:[0xE103,SIZE6]}
  606. },
  607. 0x27EF:
  608. {
  609. dir: V,
  610. HW: [[0.814,MAIN], [0.974,SIZE1], [1.166,SIZE2], [1.396,SIZE3], [1.672,SIZE4], [2.004,SIZE5], [2.402,SIZE6]],
  611. stretch: {bot:[0xE104,SIZE6], ext:[0xE105,SIZE6], top:[0xE106,SIZE6]}
  612. },
  613. 0x27F5: {alias: 0x2190, dir: H},
  614. 0x27F6: {alias: 0x2192, dir: H},
  615. 0x27F7: {alias: 0x2194, dir: H},
  616. 0x27F8: {alias: 0x21D0, dir: H},
  617. 0x27F9: {alias: 0x21D2, dir: H},
  618. 0x27FA: {alias: 0x21D4, dir: H},
  619. 0x27FB: {alias: 0x21A4, dir: H},
  620. 0x27FC: {alias: 0x21A6, dir: H},
  621. 0x27FD: {alias: 0x2906, dir: H},
  622. 0x27FE: {alias: 0x2907, dir: H},
  623. 0x2906:
  624. {
  625. dir: H,
  626. HW: [[0.870,ARROWS], [1.190,SIZE1]],
  627. stretch: {left:[0xE0C5,SIZE6], rep:[0xE0C6,SIZE6], right:[0xE0C7,SIZE6]}
  628. },
  629. 0x2907:
  630. {
  631. dir: H,
  632. HW: [[0.870,ARROWS], [1.190,SIZE1]],
  633. stretch: {left:[0xE0C8,SIZE6], rep:[0xE0C9,SIZE6], right:[0xE0CA,SIZE6]}
  634. },
  635. 0x2A00: EXTRAV,
  636. 0x2A01: EXTRAV,
  637. 0x2A02: EXTRAV,
  638. 0x2A03: EXTRAV,
  639. 0x2A04: EXTRAV,
  640. 0x2A05: EXTRAV,
  641. 0x2A06: EXTRAV,
  642. 0x2A09: EXTRAV,
  643. 0x2A0C: EXTRAV,
  644. 0x2A11: EXTRAV,
  645. 0x2B04: EXTRAH,
  646. 0x2B05: EXTRAH,
  647. 0x2B06: EXTRAV,
  648. 0x2B07: EXTRAV,
  649. 0x2B0C: EXTRAH,
  650. 0x2B0D: EXTRAV,
  651. 0x2B31: EXTRAH,
  652. 0x3008: {alias: 0x27E8, dir: V},
  653. 0x3009: {alias: 0x27E9, dir: V},
  654. 0xFE37: {alias: 0x23DE, dir: H},
  655. 0xFE38: {alias: 0x23DF, dir: H}
  656. }
  657. }
  658. });
  659. MathJax.Hub.Register.LoadHook(HTMLCSS.fontDir+"/Main/Regular/Main.js",function () {
  660. HTMLCSS.FONTDATA.FONTS[MAIN][0x2212][0] = HTMLCSS.FONTDATA.FONTS[MAIN][0x002B][0]; // - needs height and depth of +
  661. HTMLCSS.FONTDATA.FONTS[MAIN][0x2212][1] = HTMLCSS.FONTDATA.FONTS[MAIN][0x002B][1]; // - needs height and depth of +
  662. });
  663. MathJax.Hub.Register.LoadHook(HTMLCSS.fontDir+"/Size1/Regular/Main.js",function () {
  664. var i;
  665. for (i = 0x222B; i <= 0x222D; i++) {
  666. HTMLCSS.FONTDATA.FONTS[SIZE1][i][2] -= 200;
  667. HTMLCSS.FONTDATA.FONTS[SIZE1][i][5] = {rfix:-200};
  668. }
  669. for (i = 0x222E; i <= 0x2231; i++) {
  670. HTMLCSS.FONTDATA.FONTS[SIZE1][i][2] -= 150;
  671. HTMLCSS.FONTDATA.FONTS[SIZE1][i][5] = {rfix:-150};
  672. }
  673. });
  674. AJAX.loadComplete(HTMLCSS.fontDir + "/fontdata.js");
  675. })(MathJax.OutputJax["HTML-CSS"],MathJax.ElementJax.mml,MathJax.Ajax);