@mathzetta/inlinemath 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +98 -50
  2. package/dist/cas.external.js +2 -2
  3. package/dist/cas.js +2 -2
  4. package/dist/chunks/calculate-BGMEvf3f.js +2 -0
  5. package/dist/chunks/draw-q86mDDWm.js +2 -0
  6. package/dist/chunks/edit-CTMRUElt.js +2 -0
  7. package/dist/chunks/edit-D2RO7fg0.js +2 -0
  8. package/dist/chunks/html-1wCO6EpZ.js +2 -0
  9. package/dist/chunks/html-D5QiXGXD.js +2 -0
  10. package/dist/chunks/lite-Bo8THzyq.js +2 -0
  11. package/dist/fonts/README-inlinemath-greek.txt +15 -0
  12. package/dist/fonts/fonts.css +19 -1
  13. package/dist/fonts/inlinemath-greek-italic.woff2 +0 -0
  14. package/dist/fonts/inlinemath-greek-regular.woff2 +0 -0
  15. package/dist/inlinemath-cas.external.global.min.js +2 -2
  16. package/dist/inlinemath-cas.global.min.js +2 -2
  17. package/dist/inlinemath-lite-calc.global.min.js +2 -2
  18. package/dist/inlinemath-lite.external.global.min.js +2 -2
  19. package/dist/inlinemath-lite.global.min.js +2 -2
  20. package/dist/inlinemath.css +48 -7
  21. package/dist/inlinemath.external.global.min.js +2 -2
  22. package/dist/inlinemath.external.js +2 -2
  23. package/dist/inlinemath.global.min.js +2 -2
  24. package/dist/inlinemath.js +2 -2
  25. package/dist/lite-calc.js +2 -2
  26. package/dist/lite.external.js +2 -2
  27. package/dist/lite.js +2 -2
  28. package/dist/markdown.external.js +2 -2
  29. package/dist/markdown.js +2 -2
  30. package/fonts/README-inlinemath-greek.txt +15 -0
  31. package/fonts/fonts.css +19 -1
  32. package/fonts/inlinemath-greek-italic.woff2 +0 -0
  33. package/fonts/inlinemath-greek-regular.woff2 +0 -0
  34. package/inlinemath.css +48 -7
  35. package/package.json +6 -6
  36. package/src/cas.d.ts +1 -1
  37. package/src/cas.js +38 -17
  38. package/src/draw.js +13 -9
  39. package/src/edit.js +103 -0
  40. package/src/glyphs.js +2 -0
  41. package/src/html.js +1 -1
  42. package/src/index.d.ts +2 -2
  43. package/src/index.js +2 -2
  44. package/src/layout.js +142 -41
  45. package/src/lite.js +1 -1
  46. package/src/markdown.d.ts +3 -3
  47. package/src/markdown.js +476 -79
  48. package/src/mathzetta.js +3 -2
  49. package/src/select.js +7 -0
  50. package/src/types.d.ts +86 -13
  51. package/src/variables.js +262 -0
  52. package/src/view.js +286 -15
  53. package/dist/chunks/calculate-BX9lJ7Ff.js +0 -2
  54. package/dist/chunks/draw-Cm4exbg7.js +0 -2
  55. package/dist/chunks/html-CvuSyhzk.js +0 -2
  56. package/dist/chunks/html-DWtfytjA.js +0 -2
  57. package/dist/chunks/lite-Bj_L6w2g.js +0 -2
@@ -1,5 +1,7 @@
1
1
  /*
2
- * Optional: Latin Modern Roman (the TeX look), about 95 kB for both files.
2
+ * Optional: Latin Modern Roman (the TeX look), about 95 kB for both files, and its Greek
3
+ * letters from New Computer Modern (about 10 kB each, downloaded only by a page that shows Greek;
4
+ * see README-inlinemath-greek.txt).
3
5
  * Link this before inlinemath.css; without it Inline Math uses the system serif.
4
6
  * Licence: GUST Font License, see GUST-FONT-LICENSE.txt.
5
7
  */
@@ -15,3 +17,19 @@
15
17
  font-style: italic;
16
18
  font-display: swap;
17
19
  }
20
+ /* Greek (Latin Modern Roman has none): the same design, from New Computer Modern. Declared last, so the
21
+ browser tries these first for the Greek letters, and only for them. */
22
+ @font-face {
23
+ font-family: "Inline Math Roman";
24
+ src: url("inlinemath-greek-regular.woff2") format("woff2");
25
+ font-style: normal;
26
+ font-display: swap;
27
+ unicode-range: U+0391-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5;
28
+ }
29
+ @font-face {
30
+ font-family: "Inline Math Roman";
31
+ src: url("inlinemath-greek-italic.woff2") format("woff2");
32
+ font-style: italic;
33
+ font-display: swap;
34
+ unicode-range: U+0391-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5;
35
+ }