mathjax-tex-font 1.0.0-beta.1 → 4.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (412) hide show
  1. package/{es5/chtml → chtml}/woff/mjx-tex-b.woff +0 -0
  2. package/{es5/chtml → chtml}/woff/mjx-tex-bi.woff +0 -0
  3. package/{es5/chtml → chtml}/woff/mjx-tex-brk.woff +0 -0
  4. package/{es5/chtml → chtml}/woff/mjx-tex-c.woff +0 -0
  5. package/{es5/chtml → chtml}/woff/mjx-tex-cb.woff +0 -0
  6. package/{es5/chtml → chtml}/woff/mjx-tex-f.woff +0 -0
  7. package/{es5/chtml → chtml}/woff/mjx-tex-fb.woff +0 -0
  8. package/{es5/chtml → chtml}/woff/mjx-tex-i.woff +0 -0
  9. package/{es5/chtml → chtml}/woff/mjx-tex-lo.woff +0 -0
  10. package/{es5/chtml → chtml}/woff/mjx-tex-m.woff +0 -0
  11. package/{es5/chtml → chtml}/woff/mjx-tex-mi.woff +0 -0
  12. package/{es5/chtml → chtml}/woff/mjx-tex-n.woff +0 -0
  13. package/{es5/chtml → chtml}/woff/mjx-tex-ob.woff +0 -0
  14. package/{es5/chtml → chtml}/woff/mjx-tex-os.woff +0 -0
  15. package/{es5/chtml → chtml}/woff/mjx-tex-s3.woff +0 -0
  16. package/{es5/chtml → chtml}/woff/mjx-tex-s4.woff +0 -0
  17. package/chtml/woff/mjx-tex-so.woff +0 -0
  18. package/{es5/chtml → chtml}/woff/mjx-tex-ss.woff +0 -0
  19. package/{es5/chtml → chtml}/woff/mjx-tex-ssb.woff +0 -0
  20. package/{es5/chtml → chtml}/woff/mjx-tex-ssi.woff +0 -0
  21. package/{es5/chtml → chtml}/woff/mjx-tex-v.woff +0 -0
  22. package/{es5/chtml → chtml}/woff/mjx-tex-zero.woff +0 -0
  23. package/chtml.js +1 -0
  24. package/cjs/chtml/bold-italic.d.ts +2 -0
  25. package/{js → cjs}/chtml/bold-italic.js +2 -2
  26. package/cjs/chtml/bold-italic.js.map +1 -0
  27. package/cjs/chtml/bold.d.ts +2 -0
  28. package/{js → cjs}/chtml/bold.js +1 -1
  29. package/cjs/chtml/bold.js.map +1 -0
  30. package/cjs/chtml/delimiters.d.ts +2 -0
  31. package/{js/svg → cjs/chtml}/delimiters.js +280 -218
  32. package/cjs/chtml/delimiters.js.map +1 -0
  33. package/cjs/chtml/fraktur-bold.d.ts +2 -0
  34. package/cjs/chtml/fraktur.d.ts +2 -0
  35. package/{js → cjs}/chtml/fraktur.js +6 -6
  36. package/cjs/chtml/fraktur.js.map +1 -0
  37. package/cjs/chtml/italic.d.ts +2 -0
  38. package/{js → cjs}/chtml/italic.js +1 -1
  39. package/{js → cjs}/chtml/italic.js.map +1 -1
  40. package/cjs/chtml/largeop.d.ts +2 -0
  41. package/cjs/chtml/monospace.d.ts +2 -0
  42. package/cjs/chtml/normal.d.ts +2 -0
  43. package/cjs/chtml/normal.js +1332 -0
  44. package/cjs/chtml/normal.js.map +1 -0
  45. package/cjs/chtml/sans-serif-bold.d.ts +2 -0
  46. package/{js → cjs}/chtml/sans-serif-bold.js +1 -1
  47. package/cjs/chtml/sans-serif-bold.js.map +1 -0
  48. package/cjs/chtml/sans-serif-italic.d.ts +2 -0
  49. package/{js → cjs}/chtml/sans-serif-italic.js +2 -2
  50. package/cjs/chtml/sans-serif-italic.js.map +1 -0
  51. package/cjs/chtml/sans-serif.d.ts +2 -0
  52. package/{js → cjs}/chtml/sans-serif.js +1 -1
  53. package/cjs/chtml/sans-serif.js.map +1 -0
  54. package/cjs/chtml/size3.d.ts +2 -0
  55. package/cjs/chtml/size4.d.ts +2 -0
  56. package/{js → cjs}/chtml/size4.js +1 -1
  57. package/{js → cjs}/chtml/size4.js.map +1 -1
  58. package/cjs/chtml/smallop.d.ts +2 -0
  59. package/{js → cjs}/chtml/smallop.js +23 -1
  60. package/cjs/chtml/smallop.js.map +1 -0
  61. package/cjs/chtml/tex-calligraphic-bold.d.ts +2 -0
  62. package/cjs/chtml/tex-calligraphic-bold.js +34 -0
  63. package/cjs/chtml/tex-calligraphic-bold.js.map +1 -0
  64. package/cjs/chtml/tex-calligraphic.d.ts +2 -0
  65. package/cjs/chtml/tex-calligraphic.js +32 -0
  66. package/cjs/chtml/tex-calligraphic.js.map +1 -0
  67. package/cjs/chtml/tex-mathit.d.ts +2 -0
  68. package/cjs/chtml/tex-mathit.js +58 -0
  69. package/cjs/chtml/tex-mathit.js.map +1 -0
  70. package/cjs/chtml/tex-oldstyle-bold.d.ts +2 -0
  71. package/cjs/chtml/tex-oldstyle.d.ts +2 -0
  72. package/{js → cjs}/chtml/tex-oldstyle.js +14 -14
  73. package/cjs/chtml/tex-oldstyle.js.map +1 -0
  74. package/cjs/chtml/tex-variant.d.ts +2 -0
  75. package/{js → cjs}/chtml/tex-variant.js +1 -1
  76. package/cjs/chtml/tex-variant.js.map +1 -0
  77. package/{js → cjs}/chtml.d.ts +4 -7
  78. package/{js → cjs}/chtml.js +6 -7
  79. package/cjs/chtml.js.map +1 -0
  80. package/{js → cjs}/common.d.ts +1 -1
  81. package/{js → cjs}/common.js +12 -7
  82. package/cjs/common.js.map +1 -0
  83. package/cjs/svg/bold-italic.d.ts +2 -0
  84. package/{js → cjs}/svg/bold-italic.js +2 -2
  85. package/cjs/svg/bold-italic.js.map +1 -0
  86. package/cjs/svg/bold.d.ts +2 -0
  87. package/{js → cjs}/svg/bold.js +1 -1
  88. package/cjs/svg/bold.js.map +1 -0
  89. package/cjs/svg/delimiters.d.ts +2 -0
  90. package/{js/chtml → cjs/svg}/delimiters.js +280 -218
  91. package/cjs/svg/delimiters.js.map +1 -0
  92. package/cjs/svg/fraktur-bold.d.ts +2 -0
  93. package/cjs/svg/fraktur.d.ts +2 -0
  94. package/{js → cjs}/svg/fraktur.js +6 -6
  95. package/cjs/svg/fraktur.js.map +1 -0
  96. package/cjs/svg/italic.d.ts +2 -0
  97. package/{js → cjs}/svg/italic.js +1 -1
  98. package/{js → cjs}/svg/italic.js.map +1 -1
  99. package/cjs/svg/largeop.d.ts +2 -0
  100. package/cjs/svg/monospace.d.ts +2 -0
  101. package/cjs/svg/normal.d.ts +2 -0
  102. package/{js → cjs}/svg/normal.js +578 -550
  103. package/cjs/svg/normal.js.map +1 -0
  104. package/cjs/svg/sans-serif-bold.d.ts +2 -0
  105. package/{js → cjs}/svg/sans-serif-bold.js +1 -1
  106. package/{js → cjs}/svg/sans-serif-bold.js.map +1 -1
  107. package/cjs/svg/sans-serif-italic.d.ts +2 -0
  108. package/{js → cjs}/svg/sans-serif-italic.js +2 -2
  109. package/cjs/svg/sans-serif-italic.js.map +1 -0
  110. package/cjs/svg/sans-serif.d.ts +2 -0
  111. package/{js → cjs}/svg/sans-serif.js +1 -1
  112. package/cjs/svg/sans-serif.js.map +1 -0
  113. package/cjs/svg/size3.d.ts +2 -0
  114. package/cjs/svg/size4.d.ts +2 -0
  115. package/{js → cjs}/svg/size4.js +1 -1
  116. package/{js → cjs}/svg/size4.js.map +1 -1
  117. package/cjs/svg/smallop.d.ts +2 -0
  118. package/{js → cjs}/svg/smallop.js +23 -1
  119. package/cjs/svg/smallop.js.map +1 -0
  120. package/cjs/svg/tex-calligraphic-bold.d.ts +2 -0
  121. package/{js → cjs}/svg/tex-calligraphic-bold.js +28 -28
  122. package/cjs/svg/tex-calligraphic-bold.js.map +1 -0
  123. package/cjs/svg/tex-calligraphic.d.ts +2 -0
  124. package/{js → cjs}/svg/tex-calligraphic.js +26 -26
  125. package/cjs/svg/tex-calligraphic.js.map +1 -0
  126. package/cjs/svg/tex-mathit.d.ts +2 -0
  127. package/{js → cjs}/svg/tex-mathit.js +50 -50
  128. package/cjs/svg/tex-mathit.js.map +1 -0
  129. package/cjs/svg/tex-oldstyle-bold.d.ts +2 -0
  130. package/cjs/svg/tex-oldstyle.d.ts +2 -0
  131. package/{js → cjs}/svg/tex-oldstyle.js +14 -14
  132. package/cjs/svg/tex-oldstyle.js.map +1 -0
  133. package/cjs/svg/tex-variant.d.ts +2 -0
  134. package/{js → cjs}/svg/tex-variant.js +1 -1
  135. package/cjs/svg/tex-variant.js.map +1 -0
  136. package/{js → cjs}/svg.d.ts +3 -3
  137. package/{js → cjs}/svg.js +3 -4
  138. package/cjs/svg.js.map +1 -0
  139. package/def/mathjax-tex.d.ts +1 -0
  140. package/def/mathjax-tex.ts +1564 -0
  141. package/examples/chtml.html +116 -0
  142. package/examples/svg.html +117 -0
  143. package/mjs/chtml/bold-italic.d.ts +2 -0
  144. package/mjs/chtml/bold-italic.js +9 -0
  145. package/mjs/chtml/bold-italic.js.map +1 -0
  146. package/mjs/chtml/bold.d.ts +2 -0
  147. package/mjs/chtml/bold.js +249 -0
  148. package/mjs/chtml/bold.js.map +1 -0
  149. package/mjs/chtml/default.d.ts +4 -0
  150. package/mjs/chtml/default.js +6 -0
  151. package/mjs/chtml/default.js.map +1 -0
  152. package/mjs/chtml/delimiters.d.ts +2 -0
  153. package/mjs/chtml/delimiters.js +866 -0
  154. package/mjs/chtml/delimiters.js.map +1 -0
  155. package/mjs/chtml/fraktur-bold.d.ts +2 -0
  156. package/mjs/chtml/fraktur-bold.js +42 -0
  157. package/mjs/chtml/fraktur-bold.js.map +1 -0
  158. package/mjs/chtml/fraktur.d.ts +2 -0
  159. package/mjs/chtml/fraktur.js +43 -0
  160. package/mjs/chtml/fraktur.js.map +1 -0
  161. package/mjs/chtml/italic.d.ts +2 -0
  162. package/mjs/chtml/italic.js +63 -0
  163. package/mjs/chtml/italic.js.map +1 -0
  164. package/mjs/chtml/largeop.d.ts +2 -0
  165. package/mjs/chtml/largeop.js +53 -0
  166. package/mjs/chtml/largeop.js.map +1 -0
  167. package/mjs/chtml/monospace.d.ts +2 -0
  168. package/mjs/chtml/monospace.js +81 -0
  169. package/mjs/chtml/monospace.js.map +1 -0
  170. package/mjs/chtml/normal.d.ts +2 -0
  171. package/mjs/chtml/normal.js +1329 -0
  172. package/mjs/chtml/normal.js.map +1 -0
  173. package/mjs/chtml/sans-serif-bold.d.ts +2 -0
  174. package/mjs/chtml/sans-serif-bold.js +51 -0
  175. package/mjs/chtml/sans-serif-bold.js.map +1 -0
  176. package/mjs/chtml/sans-serif-italic.d.ts +2 -0
  177. package/mjs/chtml/sans-serif-italic.js +85 -0
  178. package/mjs/chtml/sans-serif-italic.js.map +1 -0
  179. package/mjs/chtml/sans-serif.d.ts +2 -0
  180. package/mjs/chtml/sans-serif.js +75 -0
  181. package/mjs/chtml/sans-serif.js.map +1 -0
  182. package/mjs/chtml/size3.d.ts +2 -0
  183. package/mjs/chtml/size3.js +27 -0
  184. package/mjs/chtml/size3.js.map +1 -0
  185. package/mjs/chtml/size4.d.ts +2 -0
  186. package/mjs/chtml/size4.js +56 -0
  187. package/mjs/chtml/size4.js.map +1 -0
  188. package/mjs/chtml/smallop.d.ts +2 -0
  189. package/mjs/chtml/smallop.js +75 -0
  190. package/mjs/chtml/smallop.js.map +1 -0
  191. package/mjs/chtml/tex-calligraphic-bold.d.ts +2 -0
  192. package/mjs/chtml/tex-calligraphic-bold.js +31 -0
  193. package/mjs/chtml/tex-calligraphic-bold.js.map +1 -0
  194. package/mjs/chtml/tex-calligraphic.d.ts +2 -0
  195. package/mjs/chtml/tex-calligraphic.js +29 -0
  196. package/mjs/chtml/tex-calligraphic.js.map +1 -0
  197. package/mjs/chtml/tex-mathit.d.ts +2 -0
  198. package/mjs/chtml/tex-mathit.js +55 -0
  199. package/mjs/chtml/tex-mathit.js.map +1 -0
  200. package/mjs/chtml/tex-oldstyle-bold.d.ts +2 -0
  201. package/{js/chtml/tex-calligraphic-bold.js → mjs/chtml/tex-oldstyle-bold.js} +13 -8
  202. package/mjs/chtml/tex-oldstyle-bold.js.map +1 -0
  203. package/mjs/chtml/tex-oldstyle.d.ts +2 -0
  204. package/mjs/chtml/tex-oldstyle.js +39 -0
  205. package/mjs/chtml/tex-oldstyle.js.map +1 -0
  206. package/mjs/chtml/tex-variant.d.ts +2 -0
  207. package/mjs/chtml/tex-variant.js +41 -0
  208. package/mjs/chtml/tex-variant.js.map +1 -0
  209. package/mjs/chtml.d.ts +164 -0
  210. package/mjs/chtml.js +186 -0
  211. package/mjs/chtml.js.map +1 -0
  212. package/mjs/common.d.ts +2 -0
  213. package/mjs/common.js +36 -0
  214. package/mjs/common.js.map +1 -0
  215. package/mjs/package.json +3 -0
  216. package/mjs/svg/bold-italic.d.ts +2 -0
  217. package/mjs/svg/bold-italic.js +9 -0
  218. package/mjs/svg/bold-italic.js.map +1 -0
  219. package/mjs/svg/bold.d.ts +2 -0
  220. package/mjs/svg/bold.js +249 -0
  221. package/mjs/svg/bold.js.map +1 -0
  222. package/mjs/svg/default.d.ts +4 -0
  223. package/mjs/svg/default.js +6 -0
  224. package/mjs/svg/default.js.map +1 -0
  225. package/mjs/svg/delimiters.d.ts +2 -0
  226. package/mjs/svg/delimiters.js +866 -0
  227. package/mjs/svg/delimiters.js.map +1 -0
  228. package/mjs/svg/fraktur-bold.d.ts +2 -0
  229. package/mjs/svg/fraktur-bold.js +42 -0
  230. package/mjs/svg/fraktur-bold.js.map +1 -0
  231. package/mjs/svg/fraktur.d.ts +2 -0
  232. package/mjs/svg/fraktur.js +43 -0
  233. package/mjs/svg/fraktur.js.map +1 -0
  234. package/mjs/svg/italic.d.ts +2 -0
  235. package/mjs/svg/italic.js +63 -0
  236. package/mjs/svg/italic.js.map +1 -0
  237. package/mjs/svg/largeop.d.ts +2 -0
  238. package/mjs/svg/largeop.js +53 -0
  239. package/mjs/svg/largeop.js.map +1 -0
  240. package/mjs/svg/monospace.d.ts +2 -0
  241. package/mjs/svg/monospace.js +81 -0
  242. package/mjs/svg/monospace.js.map +1 -0
  243. package/mjs/svg/normal.d.ts +2 -0
  244. package/mjs/svg/normal.js +1329 -0
  245. package/mjs/svg/normal.js.map +1 -0
  246. package/mjs/svg/sans-serif-bold.d.ts +2 -0
  247. package/mjs/svg/sans-serif-bold.js +51 -0
  248. package/mjs/svg/sans-serif-bold.js.map +1 -0
  249. package/mjs/svg/sans-serif-italic.d.ts +2 -0
  250. package/mjs/svg/sans-serif-italic.js +85 -0
  251. package/mjs/svg/sans-serif-italic.js.map +1 -0
  252. package/mjs/svg/sans-serif.d.ts +2 -0
  253. package/mjs/svg/sans-serif.js +75 -0
  254. package/mjs/svg/sans-serif.js.map +1 -0
  255. package/mjs/svg/size3.d.ts +2 -0
  256. package/mjs/svg/size3.js +27 -0
  257. package/mjs/svg/size3.js.map +1 -0
  258. package/mjs/svg/size4.d.ts +2 -0
  259. package/mjs/svg/size4.js +56 -0
  260. package/mjs/svg/size4.js.map +1 -0
  261. package/mjs/svg/smallop.d.ts +2 -0
  262. package/mjs/svg/smallop.js +75 -0
  263. package/mjs/svg/smallop.js.map +1 -0
  264. package/mjs/svg/tex-calligraphic-bold.d.ts +2 -0
  265. package/mjs/svg/tex-calligraphic-bold.js +31 -0
  266. package/mjs/svg/tex-calligraphic-bold.js.map +1 -0
  267. package/mjs/svg/tex-calligraphic.d.ts +2 -0
  268. package/mjs/svg/tex-calligraphic.js +29 -0
  269. package/mjs/svg/tex-calligraphic.js.map +1 -0
  270. package/mjs/svg/tex-mathit.d.ts +2 -0
  271. package/mjs/svg/tex-mathit.js +55 -0
  272. package/mjs/svg/tex-mathit.js.map +1 -0
  273. package/mjs/svg/tex-oldstyle-bold.d.ts +2 -0
  274. package/mjs/svg/tex-oldstyle-bold.js +39 -0
  275. package/mjs/svg/tex-oldstyle-bold.js.map +1 -0
  276. package/mjs/svg/tex-oldstyle.d.ts +2 -0
  277. package/mjs/svg/tex-oldstyle.js +39 -0
  278. package/mjs/svg/tex-oldstyle.js.map +1 -0
  279. package/mjs/svg/tex-variant.d.ts +2 -0
  280. package/mjs/svg/tex-variant.js +41 -0
  281. package/mjs/svg/tex-variant.js.map +1 -0
  282. package/mjs/svg.d.ts +13 -0
  283. package/mjs/svg.js +80 -0
  284. package/mjs/svg.js.map +1 -0
  285. package/package.json +55 -19
  286. package/svg.js +1 -0
  287. package/tex-mml-chtml-mathjax-tex.js +1 -0
  288. package/tex-mml-svg-mathjax-tex.js +1 -0
  289. package/tsconfig/cjs.json +8 -0
  290. package/tsconfig/common.json +13 -0
  291. package/tsconfig/def.json +10 -0
  292. package/tsconfig/mjs.json +9 -0
  293. package/tsconfig.json +3 -0
  294. package/build/chtml/build.json +0 -8
  295. package/build/chtml/chtml.js +0 -22
  296. package/build/chtml/copy.json +0 -5
  297. package/build/chtml/lib/chtml.js +0 -18
  298. package/build/chtml/webpack.config.js +0 -11
  299. package/build/svg/build.json +0 -8
  300. package/build/svg/lib/svg.js +0 -18
  301. package/build/svg/svg.js +0 -18
  302. package/build/svg/webpack.config.js +0 -11
  303. package/build/tex-mml-chtml-mathjax-tex/tex-mml-chtml-mathjax-tex.js +0 -1
  304. package/build/tex-mml-chtml-mathjax-tex/webpack.config.js +0 -18
  305. package/build/tex-mml-svg-mathjax-tex/tex-mml-svg-mathjax-tex.js +0 -1
  306. package/build/tex-mml-svg-mathjax-tex/webpack.config.js +0 -18
  307. package/es5/chtml/woff/mjx-tex-so.woff +0 -0
  308. package/es5/chtml.js +0 -1
  309. package/es5/svg.js +0 -1
  310. package/es5/tex-mml-chtml-mathjax-tex.js +0 -1
  311. package/es5/tex-mml-svg-mathjax-tex.js +0 -1
  312. package/js/chtml/bold-italic.d.ts +0 -2
  313. package/js/chtml/bold-italic.js.map +0 -1
  314. package/js/chtml/bold.d.ts +0 -2
  315. package/js/chtml/bold.js.map +0 -1
  316. package/js/chtml/delimiters.d.ts +0 -2
  317. package/js/chtml/delimiters.js.map +0 -1
  318. package/js/chtml/fraktur-bold.d.ts +0 -2
  319. package/js/chtml/fraktur.d.ts +0 -2
  320. package/js/chtml/fraktur.js.map +0 -1
  321. package/js/chtml/italic.d.ts +0 -2
  322. package/js/chtml/largeop.d.ts +0 -2
  323. package/js/chtml/monospace.d.ts +0 -2
  324. package/js/chtml/normal.d.ts +0 -2
  325. package/js/chtml/normal.js +0 -1304
  326. package/js/chtml/normal.js.map +0 -1
  327. package/js/chtml/sans-serif-bold.d.ts +0 -2
  328. package/js/chtml/sans-serif-bold.js.map +0 -1
  329. package/js/chtml/sans-serif-italic.d.ts +0 -2
  330. package/js/chtml/sans-serif-italic.js.map +0 -1
  331. package/js/chtml/sans-serif.d.ts +0 -2
  332. package/js/chtml/sans-serif.js.map +0 -1
  333. package/js/chtml/size3.d.ts +0 -2
  334. package/js/chtml/size4.d.ts +0 -2
  335. package/js/chtml/smallop.d.ts +0 -2
  336. package/js/chtml/smallop.js.map +0 -1
  337. package/js/chtml/tex-calligraphic-bold.d.ts +0 -2
  338. package/js/chtml/tex-calligraphic-bold.js.map +0 -1
  339. package/js/chtml/tex-calligraphic.d.ts +0 -2
  340. package/js/chtml/tex-calligraphic.js +0 -32
  341. package/js/chtml/tex-calligraphic.js.map +0 -1
  342. package/js/chtml/tex-mathit.d.ts +0 -2
  343. package/js/chtml/tex-mathit.js +0 -58
  344. package/js/chtml/tex-mathit.js.map +0 -1
  345. package/js/chtml/tex-oldstyle-bold.d.ts +0 -2
  346. package/js/chtml/tex-oldstyle.d.ts +0 -2
  347. package/js/chtml/tex-oldstyle.js.map +0 -1
  348. package/js/chtml/tex-variant.d.ts +0 -2
  349. package/js/chtml/tex-variant.js.map +0 -1
  350. package/js/chtml.js.map +0 -1
  351. package/js/common.js.map +0 -1
  352. package/js/svg/bold-italic.d.ts +0 -2
  353. package/js/svg/bold-italic.js.map +0 -1
  354. package/js/svg/bold.d.ts +0 -2
  355. package/js/svg/bold.js.map +0 -1
  356. package/js/svg/delimiters.d.ts +0 -2
  357. package/js/svg/delimiters.js.map +0 -1
  358. package/js/svg/fraktur-bold.d.ts +0 -2
  359. package/js/svg/fraktur.d.ts +0 -2
  360. package/js/svg/fraktur.js.map +0 -1
  361. package/js/svg/italic.d.ts +0 -2
  362. package/js/svg/largeop.d.ts +0 -2
  363. package/js/svg/monospace.d.ts +0 -2
  364. package/js/svg/normal.d.ts +0 -2
  365. package/js/svg/normal.js.map +0 -1
  366. package/js/svg/sans-serif-bold.d.ts +0 -2
  367. package/js/svg/sans-serif-italic.d.ts +0 -2
  368. package/js/svg/sans-serif-italic.js.map +0 -1
  369. package/js/svg/sans-serif.d.ts +0 -2
  370. package/js/svg/sans-serif.js.map +0 -1
  371. package/js/svg/size3.d.ts +0 -2
  372. package/js/svg/size4.d.ts +0 -2
  373. package/js/svg/smallop.d.ts +0 -2
  374. package/js/svg/smallop.js.map +0 -1
  375. package/js/svg/tex-calligraphic-bold.d.ts +0 -2
  376. package/js/svg/tex-calligraphic-bold.js.map +0 -1
  377. package/js/svg/tex-calligraphic.d.ts +0 -2
  378. package/js/svg/tex-calligraphic.js.map +0 -1
  379. package/js/svg/tex-mathit.d.ts +0 -2
  380. package/js/svg/tex-mathit.js.map +0 -1
  381. package/js/svg/tex-oldstyle-bold.d.ts +0 -2
  382. package/js/svg/tex-oldstyle.d.ts +0 -2
  383. package/js/svg/tex-oldstyle.js.map +0 -1
  384. package/js/svg/tex-variant.d.ts +0 -2
  385. package/js/svg/tex-variant.js.map +0 -1
  386. package/js/svg.js.map +0 -1
  387. /package/{js → cjs}/chtml/default.d.ts +0 -0
  388. /package/{js → cjs}/chtml/default.js +0 -0
  389. /package/{js → cjs}/chtml/default.js.map +0 -0
  390. /package/{js → cjs}/chtml/fraktur-bold.js +0 -0
  391. /package/{js → cjs}/chtml/fraktur-bold.js.map +0 -0
  392. /package/{js → cjs}/chtml/largeop.js +0 -0
  393. /package/{js → cjs}/chtml/largeop.js.map +0 -0
  394. /package/{js → cjs}/chtml/monospace.js +0 -0
  395. /package/{js → cjs}/chtml/monospace.js.map +0 -0
  396. /package/{js → cjs}/chtml/size3.js +0 -0
  397. /package/{js → cjs}/chtml/size3.js.map +0 -0
  398. /package/{js → cjs}/chtml/tex-oldstyle-bold.js +0 -0
  399. /package/{js → cjs}/chtml/tex-oldstyle-bold.js.map +0 -0
  400. /package/{js → cjs}/svg/default.d.ts +0 -0
  401. /package/{js → cjs}/svg/default.js +0 -0
  402. /package/{js → cjs}/svg/default.js.map +0 -0
  403. /package/{js → cjs}/svg/fraktur-bold.js +0 -0
  404. /package/{js → cjs}/svg/fraktur-bold.js.map +0 -0
  405. /package/{js → cjs}/svg/largeop.js +0 -0
  406. /package/{js → cjs}/svg/largeop.js.map +0 -0
  407. /package/{js → cjs}/svg/monospace.js +0 -0
  408. /package/{js → cjs}/svg/monospace.js.map +0 -0
  409. /package/{js → cjs}/svg/size3.js +0 -0
  410. /package/{js → cjs}/svg/size3.js.map +0 -0
  411. /package/{js → cjs}/svg/tex-oldstyle-bold.js +0 -0
  412. /package/{js → cjs}/svg/tex-oldstyle-bold.js.map +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tex-variant.js","sourceRoot":"","sources":["../../ts/svg/tex-variant.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAA4B;IACjD,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,kVAAkV,EAAC,CAAC;IAC9X,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAC,CAAC,EAAE,+lBAA+lB,EAAC,CAAC;IACjoB,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,0VAA0V,EAAC,CAAC;IAC7Y,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,ynBAAynB,EAAC,CAAC;IAClqB,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,s1BAAs1B,EAAE,EAAE,EAAE,CAAC,IAAI,EAAC,CAAC;IAC34B,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,EAAC,EAAE,EAAE,IAAI,E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AE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,oIAAoI,EAAC,CAAC;IAClK,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,6XAA6X,EAAC,CAAC;IAC/Z,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,8UAA8U,EAAC,CAAC;IAChX,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,+PAA+P,EAAC,CAAC;IAC/R,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,uPAAuP,EAAC,CAAC;IACxR,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,w9BAAw9B,EAAC,CAAC;IACz/B,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,o7BAAo7B,EAAC,CAAC;IACr9B,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,w9BAAw9B,EAAC,CAAC;IACz/B,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,CAAC,EAAE,2gCAA2gC,EAAC,CAAC;CAC7iC,CAAC"}
package/mjs/svg.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import { SvgFontData, SvgCharOptions, SvgVariantData, SvgDelimiterData, DelimiterMap, CharMapMap } from 'mathjax-full/mjs/output/svg/FontData.js';
2
+ import { OptionList } from 'mathjax-full/mjs/util/Options.js';
3
+ declare const Base: import("mathjax-full/mjs/output/common/FontData.js").FontDataClass<SvgCharOptions, SvgVariantData, SvgDelimiterData> & typeof SvgFontData;
4
+ export declare class MathJaxTexFont extends Base {
5
+ static NAME: string;
6
+ protected static defaultDelimiters: DelimiterMap<SvgDelimiterData>;
7
+ protected static defaultChars: CharMapMap<SvgCharOptions>;
8
+ protected static variantCacheIds: {
9
+ [name: string]: string;
10
+ };
11
+ constructor(options?: OptionList);
12
+ }
13
+ export {};
package/mjs/svg.js ADDED
@@ -0,0 +1,80 @@
1
+ import { SvgFontData } from 'mathjax-full/mjs/output/svg/FontData.js';
2
+ import { CommonMathJaxTexFontMixin } from './common.js';
3
+ import { normal } from './svg/normal.js';
4
+ import { bold } from './svg/bold.js';
5
+ import { italic } from './svg/italic.js';
6
+ import { boldItalic } from './svg/bold-italic.js';
7
+ import { fraktur } from './svg/fraktur.js';
8
+ import { frakturBold } from './svg/fraktur-bold.js';
9
+ import { sansSerif } from './svg/sans-serif.js';
10
+ import { sansSerifBold } from './svg/sans-serif-bold.js';
11
+ import { sansSerifItalic } from './svg/sans-serif-italic.js';
12
+ import { monospace } from './svg/monospace.js';
13
+ import { smallop } from './svg/smallop.js';
14
+ import { largeop } from './svg/largeop.js';
15
+ import { texCalligraphic } from './svg/tex-calligraphic.js';
16
+ import { texCalligraphicBold } from './svg/tex-calligraphic-bold.js';
17
+ import { texOldstyle } from './svg/tex-oldstyle.js';
18
+ import { texOldstyleBold } from './svg/tex-oldstyle-bold.js';
19
+ import { texMathit } from './svg/tex-mathit.js';
20
+ import { texVariant } from './svg/tex-variant.js';
21
+ import { size3 } from './svg/size3.js';
22
+ import { size4 } from './svg/size4.js';
23
+ import { delimiters } from './svg/delimiters.js';
24
+ const Base = CommonMathJaxTexFontMixin(SvgFontData);
25
+ export class MathJaxTexFont extends Base {
26
+ constructor(options = {}) {
27
+ super(options);
28
+ const CLASS = this.constructor;
29
+ for (const variant of Object.keys(CLASS.variantCacheIds)) {
30
+ this.variant[variant].cacheID = 'TEX-' + CLASS.variantCacheIds[variant];
31
+ }
32
+ }
33
+ }
34
+ MathJaxTexFont.NAME = 'MathJaxTex';
35
+ MathJaxTexFont.defaultDelimiters = delimiters;
36
+ MathJaxTexFont.defaultChars = {
37
+ 'normal': normal,
38
+ 'bold': bold,
39
+ 'italic': italic,
40
+ 'bold-italic': boldItalic,
41
+ 'fraktur': fraktur,
42
+ 'bold-fraktur': frakturBold,
43
+ 'sans-serif': sansSerif,
44
+ 'bold-sans-serif': sansSerifBold,
45
+ 'sans-serif-italic': sansSerifItalic,
46
+ 'monospace': monospace,
47
+ '-smallop': smallop,
48
+ '-largeop': largeop,
49
+ '-tex-calligraphic': texCalligraphic,
50
+ '-tex-bold-calligraphic': texCalligraphicBold,
51
+ '-tex-oldstyle': texOldstyle,
52
+ '-tex-bold-oldstyle': texOldstyleBold,
53
+ '-tex-mathit': texMathit,
54
+ '-tex-variant': texVariant,
55
+ '-size3': size3,
56
+ '-size4': size4
57
+ };
58
+ MathJaxTexFont.variantCacheIds = {
59
+ 'normal': 'N',
60
+ 'bold': 'B',
61
+ 'italic': 'I',
62
+ 'bold-italic': 'BI',
63
+ 'fraktur': 'F',
64
+ 'bold-fraktur': 'FB',
65
+ 'sans-serif': 'SS',
66
+ 'bold-sans-serif': 'SSB',
67
+ 'sans-serif-italic': 'SSI',
68
+ 'monospace': 'M',
69
+ '-smallop': 'SO',
70
+ '-largeop': 'LO',
71
+ '-tex-calligraphic': 'C',
72
+ '-tex-bold-calligraphic': 'CB',
73
+ '-tex-oldstyle': 'OS',
74
+ '-tex-bold-oldstyle': 'OB',
75
+ '-tex-mathit': 'MI',
76
+ '-tex-variant': 'V',
77
+ '-size3': 'S3',
78
+ '-size4': 'S4'
79
+ };
80
+ //# sourceMappingURL=svg.js.map
package/mjs/svg.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg.js","sourceRoot":"","sources":["../ts/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EACgC,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAC,yBAAyB,EAAC,MAAM,aAAa,CAAC;AAGtD,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;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IAAI;IAC1B,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,GAAG;IACnB,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACf,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mathjax-tex-font",
3
- "version": "1.0.0-beta.1",
4
- "description": "MathJax-Tex font for MathJax v3",
3
+ "version": "4.0.0-beta.1",
4
+ "description": "MathJax-Tex font for MathJax v4",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -13,26 +13,62 @@
13
13
  "MathJax-Tex"
14
14
  ],
15
15
  "files": [
16
- "js",
17
- "es5",
18
- "build"
16
+ "def/*.ts",
17
+ "cjs",
18
+ "mjs",
19
+ "chtml",
20
+ "chtml.js",
21
+ "svg",
22
+ "svg.js",
23
+ "tex-mml-*",
24
+ "tsconfig",
25
+ "tsconfig.json",
26
+ "examples/chtml.html",
27
+ "examples/svg.html"
19
28
  ],
20
29
  "scripts": {
21
- "clear:dirs": "npx rimraf ts/* js/* es5 build def/*.js",
30
+ "clear:dirs": "clear() { npx rimraf ts/* def/*.js build $1 $2 $3 $4; }; clear",
22
31
  "clear:tables": "clear() { npx rimraf tables-$1; }; clear",
23
- "clean": "echo 'Cleaning directories' && npm run -s clear:dirs",
24
- "pretsc-def": "echo 'Processing font definition'",
25
- "tsc-def": "tsc --outDir def --sourceMap false --target ES5 --lib 'es6, dom' --module commonjs def/*.ts",
26
- "precompile": "npm run -s clean && npm run -s tsc-def",
27
- "compile": "node -r esm def/mathjax-tex.js && echo 'Compiling typescript data files' && tsc",
28
- "make-one": "make() { ../node_modules/mathjax-full/components/bin/makeAll build/$1; }; make",
29
- "make-components": "npm run -s make-one chtml ; npm -s run make-one svg",
30
- "build-one": "build() { cd build/$1; ../../../node_modules/mathjax-full/components/bin/build; echo; }; build",
31
- "pack-one": "pack() { ../node_modules/mathjax-full/components/bin/makeAll --no-subdirs build/tex-mml-$1-mathjax-tex; }; pack",
32
- "pack-font": "font() { npm run -s build-one $1; npm run -s pack-one $1; }; font",
33
- "pack": "npm run -s pack-font chtml; npm run -s pack-font svg",
34
- "build": "npm run -s compile && echo '' && npm run -s make-components && npm run -s pack",
35
- "table": "table() { npm run -s clear:tables $1; node -r esm ../bin/makeTables.js $1 mathjax-tex; }; table",
32
+ "clean:mod": "clean() { echo Cleaning $1 directories; npm run -s clear:dirs $1 $2 $3 $4; }; clean",
33
+ "clean:cjs": "npm run -s clean:mod cjs bundle-cjs",
34
+ "clean:mjs": "npm run -s clean:mod mjs chtml svg '*.js'",
35
+ "clean": "npm run -s clean:cjs && npm run -s clean:mjs",
36
+ "======================================================================== def": "",
37
+ "predef:compile": "echo 'Compiling font definition'",
38
+ "def:compile": "tsc --project tsconfig/def.json",
39
+ "predef:run": "echo 'Processing font definition'",
40
+ "def:run": "node -r esm def/mathjax-tex.js",
41
+ "======================================================================== compile": "",
42
+ "_pre_compile": "pre() { npm run -s clean:$1 && npm run -s def:compile && npm run -s def:run $1; }; pre",
43
+ "_compile": "comp() { echo \"Compiling $1 typescript files\" && tsc --project tsconfig/$1.json; }; comp",
44
+ "_compile_": "comp() { npm run _pre_compile $1 && npm run _compile $1; }; comp",
45
+ "compile-cjs": "npm run -s _compile_ cjs",
46
+ "compile-mjs": "npm run -s _compile_ mjs",
47
+ "postcompile-mjs": "echo '{\n \"type\": \"module\"\n}' > mjs/package.json",
48
+ "compile": "npm run -s compile-mjs",
49
+ "======================================================================== make": "",
50
+ "make-one": "make() { ../node_modules/mathjax-full/components/bin/makeAll --$2 $3 $4 build/$1; }; make",
51
+ "_make-font_": "font() { npm run -- make-one chtml $1 $2 $3; npm run -- make-one svg $1 $2 $3; }; font",
52
+ "make-cjs-font": "npm run -s -- _make-font_ cjs --bundle-cjs",
53
+ "make-mjs-font": "npm run -s -- _make-font_ mjs",
54
+ "make-font": "npm run -s make-mjs-font",
55
+ "======================================================================== combine": "",
56
+ "_combine-one": "one() { npm run -- make-one tex-mml-$1-mathjax-tex $2 $3; }; one",
57
+ "combine-one": "one() { npm run -s -- make-one $1 $2 --build; npm run -s -- _combine-one $1 $2 $3; }; one",
58
+ "_combine_": "combine() { npm run -- combine-one chtml $1 $2 $3; npm run -- combine-one svg $1 $2 $3; }; combine",
59
+ "combine-cjs": "npm run -s -- _combine_ cjs --bundle-cjs",
60
+ "combine-mjs": "npm run -s -- _combine_ mjs",
61
+ "combine": "npm run -s combine-mjs",
62
+ "======================================================================== build": "",
63
+ "build-one": "one() { npm run -s compile-$2; echo; npm run -s make-one $1 $2; npm run -s pack-one $1 $2; }; one",
64
+ "_build": "one() { npm run make-one $1 $2; npm run make-one tex-mml-$1-mathjax-tex $2; }; one",
65
+ "_build_": "build() { npm run compile-$1; echo; npm run _build chtml $1; npm run _build svg $1; }; build",
66
+ "build-cjs": "echo '============='; echo 'Building cjs:'; echo '============='; npm run -s compile-cjs",
67
+ "build-mjs": "echo '============='; echo 'Building mjs:'; echo '============='; npm run -s _build_ mjs",
68
+ "build": "npm run -s build-mjs",
69
+ "build-all": "npm run -s build-cjs && echo && npm run -s build-mjs",
70
+ "======================================================================== tables": "",
71
+ "table": "table() { npm run -s clear:tables $1; node ../bin/makeTables.js $1 mathjax-tex; }; table",
36
72
  "tables": "npm run -s table svg && npm run -s table chtml"
37
73
  }
38
74
  }