corpus/math-edit/README.md | 35 +++++ corpus/math-edit/native-drop/README.md | 23 +++ corpus/math-edit/native-drop/dropped/candidate/Open Notebook.onetoc2 | Bin 0 -> 1596 bytes corpus/math-edit/native-drop/dropped/candidate/four.one | Bin 0 -> 14456 bytes corpus/math-edit/native-drop/dropped/cold/page-000.xml | 3 + corpus/math-edit/native-drop/relocated/candidate/Open Notebook.onetoc2 | Bin 0 -> 1596 bytes corpus/math-edit/native-drop/relocated/candidate/four.one | Bin 0 -> 14512 bytes corpus/math-edit/native-drop/relocated/cold/commands.jsonl | 3 + corpus/math-edit/native-drop/relocated/cold/machine.json | 1 + corpus/math-edit/native-drop/relocated/cold/notebook/Open Notebook.onetoc2 | Bin 0 -> 3748 bytes corpus/math-edit/native-drop/relocated/cold/notebook/four.one | Bin 0 -> 14512 bytes corpus/math-edit/native-drop/relocated/cold/read/environment.json | 7 + corpus/math-edit/native-drop/relocated/cold/read/hierarchy.xml | 2 + corpus/math-edit/native-drop/relocated/cold/read/page-000.xml | 3 + corpus/math-edit/native-drop/relocated/cold/read/payloads.json | 3 + corpus/math-edit/native-drop/relocated/cold/run.json | 18 +++ corpus/math-edit/native-drop/relocated/cold/scripts/cold.ps1 | 27 ++++ corpus/math-edit/native-drop/relocated/cold/scripts/read.ps1 | 142 ++++++++++++++++++ corpus/math-edit/native-drop/relocated/cold/source.json | 14 ++ corpus/math-edit/native-drop/relocated/cold/teardown.json | 1 + corpus/math-edit/native-editor/before-read/environment.json | 7 + corpus/math-edit/native-editor/before-read/hierarchy.xml | 2 + corpus/math-edit/native-editor/before-read/page-000.xml | 3 + corpus/math-edit/native-editor/before-read/payloads.json | 3 + corpus/math-edit/native-editor/commands.jsonl | 6 + corpus/math-edit/native-editor/equations.ahk | 68 +++++++++ corpus/math-edit/native-editor/equations.json | 13 ++ corpus/math-edit/native-editor/equations.png | Bin 0 -> 38707 bytes corpus/math-edit/native-editor/machine.json | 1 + corpus/math-edit/native-editor/notebook/Open Notebook.onetoc2 | Bin 0 -> 3764 bytes corpus/math-edit/native-editor/notebook/links.one | Bin 0 -> 19184 bytes corpus/math-edit/native-editor/read/environment.json | 7 + corpus/math-edit/native-editor/read/hierarchy.xml | 2 + corpus/math-edit/native-editor/read/page-000.xml | 3 + corpus/math-edit/native-editor/read/payloads.json | 3 + corpus/math-edit/native-editor/run.json | 18 +++ corpus/math-edit/native-editor/scripts/cold.ps1 | 27 ++++ corpus/math-edit/native-editor/scripts/read.ps1 | 142 ++++++++++++++++++ corpus/math-edit/native-editor/source.json | 14 ++ corpus/math-edit/native-editor/teardown.json | 1 + corpus/math-edit/written/candidate/Open Notebook.onetoc2 | Bin 0 -> 1596 bytes corpus/math-edit/written/candidate/expected-mathml.json | 12 ++ corpus/math-edit/written/candidate/math.one | Bin 0 -> 15424 bytes corpus/math-edit/written/cold/commands.jsonl | 3 + corpus/math-edit/written/cold/machine.json | 1 + corpus/math-edit/written/cold/notebook/Open Notebook.onetoc2 | Bin 0 -> 3748 bytes corpus/math-edit/written/cold/notebook/expected-mathml.json | 12 ++ corpus/math-edit/written/cold/notebook/math.one | Bin 0 -> 16920 bytes corpus/math-edit/written/cold/read/environment.json | 7 + corpus/math-edit/written/cold/read/hierarchy.xml | 2 + corpus/math-edit/written/cold/read/page-000.navigation.json | 13 ++ corpus/math-edit/written/cold/read/page-000.png | Bin 0 -> 39901 bytes corpus/math-edit/written/cold/read/page-000.xml | 3 + corpus/math-edit/written/cold/read/payloads.json | 3 + corpus/math-edit/written/cold/run.json | 18 +++ corpus/math-edit/written/cold/scripts/cold.ps1 | 27 ++++ corpus/math-edit/written/cold/scripts/read.ps1 | 142 ++++++++++++++++++ corpus/math-edit/written/cold/source.json | 20 +++ corpus/math-edit/written/cold/teardown.json | 1 + crates/notebook/README.md | 2 +- crates/onestore/README.md | 2 +- crates/onestore/src/page/math.rs | 132 +++++++++++++++-- crates/onestore/src/page/text.rs | 4 +- crates/onestore/src/page/write.rs | 164 ++++++++++++++++++++- crates/onestore/src/write.rs | 11 ++ crates/onestore/tests/page_math.rs | 249 +++++++++++++++++++++++++++++++- tools/native_format.py | 3 +- tools/native_math.py | 70 +++++++++ tools/test_math_edit.py | 37 +++++ tools/verify-document.py | 7 +- 70 files changed, 1519 insertions(+), 28 deletions(-)