Select output routine branches with ifcase

This commit is contained in:
gloamxun committed 2026-10-23 03:10:55 +08:00
1 parent 7964765605
commit 61cef7d16c
3 files changed
+69 -8

No files matched your search

+3 -3
View File
@@ -48,7 +48,7 @@ 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`). 351 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 352 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -268,7 +268,7 @@ dimension assignments from the source. Insertion classes are placed by the
paged builder with their limits and held-over material; floats and checkpoint
replay still fall back to the scrolling builder, which stays the default until
it has a paged equivalent. Next: port those paths and paper margins, then extend the `\output`
interpreter past the shipout/ifdim/ifnum/ifodd subset.
interpreter past the shipout/ifdim/ifnum/ifodd/ifcase subset.
Acceptance: 10 page fixtures (article text, footnotes, floats, forced breaks);
page counts identical and first/last baselines within 1pt of pdfLaTeX.
@@ -411,7 +411,7 @@ Acceptance: corpus green or explicitly listed; CI documented.
| goal | phases | deliverable |
| --- | --- | --- |
| G1 (current) | P0, P1, P2 | TeX-exact paragraphs, vertical list, page builder, interpreted `\output` (shipout/ifdim/ifnum/ifodd subset landed) |
| G1 (current) | P0, P1, P2 | TeX-exact paragraphs, vertical list, page builder, interpreted `\output` (shipout/ifdim/ifnum/ifodd/ifcase subset landed) |
| G2 | P3, P4 | tables and math at L2/L3 |
| G3 | P5 | Computer Modern fonts, NFSS, pixel parity for text/math |
| G4 | P6 | class execution (article, journal) |