Expose route-D page-hash diffs for paragraph edits

This commit is contained in:
gloamxun committed 2026-10-20 21:18:57 +08:00
1 parent fab9a473fc
commit dbccedb579
5 files changed
+128 -29

No files matched your search

+3 -2
View File
@@ -262,7 +262,7 @@ M3 (partial): `Unit::halign` normalizes column widths, intercolumn gaps, row hei
Math coverage includes fractions/roots, scripts, `\left...\right` with body-scaled delimiters, `\middle`, `\big`/`\Big`/`\bigg`/`\Bigg` and their `l`/`r` forms, control-sequence delimiters, accents (dot/check/breve/acute/grave/ring), `\text`/`\mathrm`, `\overbrace`/`\underbrace`, `\overset`/`\underset`, `\binom`, `\cancel`/`\bcancel`/`\xcancel`, `\bmod`/`\pmod`, fence symbols, `\operatorname*` and `\mathop` limits.
The crate currently has 131 unit tests plus one route-D integration test. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 213 tests (131 route-D unit, 1 route-D integration, 71 v1 integration, 5 server, 4 v1 unit, 1 doctest). v1 remains the live server path.
The crate currently has 131 unit tests plus one route-D integration test. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 214 tests (131 route-D unit, 1 route-D integration, 71 v1 integration, 6 server, 4 v1 unit, 1 doctest). v1 remains the live server path.
### M0 incremental demo
@@ -292,7 +292,8 @@ deliberately open rather than approximated:
- **M5**: `cmr10.tfm` is parsed at runtime with widths, glyph heights/depths and kern pairs. all five text faces embed Liberation Serif/Mono as Type0/Identity-H with `/W` widths; ff/fi/fl/ffi/ffl ligatures come from TFM, but full NFSS family switching and italic correction are not implemented.
- **M6**: `\output`, `\insert`, mark/float output policies, class-file execution and
math limit policies are only partially modeled.
- **M7**: first service step is `POST /api/route-d/preview`, which lays out
- **M7**: `POST /api/route-d/preview` and `/api/route-d/edit/{unit}` expose
route-D pages and edit diff; the preview path lays out
blank-line-separated plain text and returns route-D pages with SVG and page
hashes. It is not yet the editor preview: LaTeX-to-route-D semantic mapping and
edit-diff reuse inside the project preview remain open.