Compare route-D raster geometry with pdfTeX

This commit is contained in:
gloamxun committed 2026-10-20 23:20:28 +08:00
1 parent ea69301804
commit c2dbf405ab
3 files changed
+146 -2

No files matched your search

+2 -2
View File
@@ -267,7 +267,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 142 unit tests plus one route-D integration test. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 238 tests (142 route-D unit, 1 route-D integration, 71 v1 integration, 18 server, 4 v1 unit, 1 doctest). v1 remains the live server path.
The crate currently has 142 unit tests plus two route-D integration tests. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 239 tests (142 route-D unit, 2 route-D integration, 71 v1 integration, 19 server, 4 v1 unit, 1 doctest). v1 remains the live server path.
### M0 incremental demo
@@ -309,6 +309,6 @@ deliberately open rather than approximated:
through `Engine::edit` and reports the changed/recomputed pages, while
structural edits fall back to a full layout. The v1 semantic pipeline remains
the default fallback. LaTeX-to-route-D semantic mapping is still a subset, and
there is no editor toggle UI or pixel comparison yet.
`route_d_page_matches_pdftex_raster_geometry` rasterizes the route-D PDF at 72 dpi and compares its ink line/left/bottom geometry against a pdfTeX page compiled with the same page geometry. The test skips on hosts without `pdflatex`/`pdftoppm`; exact glyph-outline pixel equality is still open because the two paths use different font outlines.
- `\middle` does not scale with its enclosing delimiter; math delimiters are
scaled glyphs rather than TeX delimiter variants.