Replay multiple paragraph edits in route-D previews
Apply same-count paragraph edits sequentially from the earliest changed paragraph, reuse the earlier page checkpoints, and report the union of changed pages. Adds a multi-page regression.
This commit is contained in:
1 parent
506904bbdc
commit
ceb31c4612
3 files changed
+77
-25
No files matched your search
+5
-4
@@ -269,7 +269,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 155 unit tests plus three route-D integration tests. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 253 tests (155 route-D unit, 3 route-D integration, 71 v1 integration, 19 server, 4 v1 unit, 1 core unit, 1 doctest). v1 remains the live server path.
|
||||
The crate currently has 155 unit tests plus three route-D integration tests. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 254 tests (155 route-D unit, 3 route-D integration, 71 v1 integration, 19 server, 4 v1 unit, 1 core unit, 1 binary unit, 1 doctest). v1 remains the live server path.
|
||||
|
||||
### M0 incremental demo
|
||||
|
||||
@@ -307,9 +307,10 @@ deliberately open rather than approximated:
|
||||
project preview can opt in with `POST /api/projects/{id}/preview?engine=route-d`;
|
||||
`route_d::project_preview_json` strips the preamble/body wrapper and keeps a
|
||||
project-scoped `(paragraphs, Engine)` session. An unchanged source returns
|
||||
`changedPages: []` and `recomputedPages: 0`; a single-paragraph edit goes
|
||||
through `Engine::edit` and reports the changed/recomputed pages, while
|
||||
structural edits fall back to a full layout. The v1 semantic pipeline remains
|
||||
`changedPages: []` and `recomputedPages: 0`; one or more same-count paragraph
|
||||
edits are applied sequentially through `Engine::edit` from the earliest
|
||||
changed paragraph and report 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
|
||||
`route_d_page_matches_pdftex_raster_geometry` lays out a 480pt CMR10 paragraph at the same scaled-point geometry the server uses, rasterizes the route-D PDF and a pdfTeX Letter page at 72 dpi, and asserts matching ink line count plus left/right/bottom edges. It 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
|
||||
|
||||
Reference in new issue
Block a user