Skip to content

Commit e60130e

Browse files
committed
Minor changes
1 parent 2873b60 commit e60130e

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Diff for: README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ UnicodeMath is an **easy-to-read linear format** for mathematics initially devel
1313
*The initial development of UnicodeMathML was part of [my Master's thesis](docs/doersing-unicodemath-to-mathml.pdf).*
1414

1515

16+
### Status
17+
18+
Generally consistent with Sargent's tech note, some edge-cases that aren't precisely specified might be iffy. Abstract boxes are largely unimplemented due to insufficient specification.
19+
20+
1621
## Getting Started
1722

1823
For a **first look**, check out...
@@ -55,7 +60,7 @@ You'll need to **include the same lines (modulo path changes) at the bottom of y
5560

5661
### Markdeep
5762

58-
UnicodeMathML comes with a lightly modified variant of Markdeep that kicks off the translation at the correct point in the document rendering process. Open `dist/example.md.html` in a text editor of your choice and scroll to the bottom. There, you'll see the following lines:
63+
UnicodeMathML comes with a lightly modified variant of Morgan McGuire's [Markdeep](https://casual-effects.com/markdeep/) that kicks off the translation at the correct point in the document rendering process. Open `dist/example.md.html` in a text editor of your choice and scroll to the bottom. There, you'll see the following lines:
5964

6065
```html
6166
<script>

Diff for: src/unicodemathml.js

+5
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ function preprocess(dsty, uast) {
12101210
return {element: preprocess(dsty, value)};
12111211

12121212
case "array":
1213+
// TODO pad columns (also for matrices), required/helpful for latex output
12131214
return {array: preprocess(dsty, value)};
12141215
case "arows":
12151216
return {arows: preprocess(dsty, value)};
@@ -1807,6 +1808,8 @@ function mtransform(dsty, puast) {
18071808

18081809
case "hbrack":
18091810

1811+
// TODO can probably do most of the work in a preprocessing step
1812+
18101813
// determine if the bracket should be above or below contents
18111814
var mtag = ["⏜", "⏞", "⏠", "⎴", "¯"].includes(value.bracket) ? "mover" : "munder";
18121815

@@ -1928,6 +1931,8 @@ function mtransform(dsty, puast) {
19281931
return {mi: noAttr(value)};
19291932
}
19301933
case "diacriticized":
1934+
1935+
// TODO some of the work could be done in preprocessing step? but need the loop both in preprocessing as well as actual compilation, so doubtful if that would actually be better
19311936
var ret = mtransform(dsty, value.base);
19321937
for (let d of value.diacritics) {
19331938

Diff for: utils/benchmark.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"A COLLECTION OF 626 UNICODEMATH EXPRESSIONS FROM VARIOUS SOURCES"
1+
"A COLLECTION OF 628 UNICODEMATH EXPRESSIONS FROM VARIOUS SOURCES"
22
x + 2y + 3z
33
1+▭(⟡(1&1/2/3/4/5))
44
= α_x^2 1 + α_y^2 1 + α_z^2 1 + (α_y α_z y z - α_y α_z y z) + (α_x α_z z x - α_x α_z z x) + (α_x α_y x y - α_x α_y x y)
@@ -624,3 +624,5 @@ sinx
624624
x y z
625625
"So long" ∧ "thanks"   ∀  "🐟🐠🐡".
626626
a'
627+
K_c (r) = 𝟏_[¼,¾] (r) + ½ × 𝟏_[0,¼] (r)
628+
⏟(a^c_b)_(⏟(a^c_b)_(⏟(a^c_b)_(⏟(a^c_b)_(⏟(a^c_b)_(d)))))

0 commit comments

Comments
 (0)