Add a pdfLaTeX oracle and clamp justification glue

This commit is contained in:
gloamxun committed 2026-10-23 00:33:35 +08:00
1 parent 1e2d4afd6b
commit 9726f5f736
6 files changed
+379 -18

No files matched your search

+8 -1
View File
@@ -48,7 +48,8 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
`\bottomnumber`, `\totalnumber`), insertion classes (`\skip`, fraction and
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
PDF opt-in with `?engine=route-d`). 280 workspace tests are green.
PDF opt-in with `?engine=route-d`). 282 workspace tests exist (281 run, one
`#[ignore]`d until P1 supplies TeX tolerance/demerits).
Known gaps, in dependency order:
@@ -121,6 +122,12 @@ Deliverables:
- skips cleanly when TeX tools are unavailable, and records why;
- a `--regen`-style path for refreshing goldens.
Status: the foundation landed in `crates/texrra-tex-core/tests/oracle.rs`. The
150pt CMR10 fixture matches pdfLaTeX word for word (x tolerance 0.05pt), and the
ink-band test now runs on that same oracle-verified fixture. The 180pt fixture is
`#[ignore]`d with the reason "P1: TeX tolerance and demerits" because pdfLaTeX's
emergency pass accepts a 5/7 word split that the simplified demerit model rejects.
Acceptance: at least 20 paragraph fixtures and 5 page fixtures wired into
`cargo test`, harness green.