Allow the output routine to assign page registers

This commit is contained in:
gloamxun committed 2026-10-23 12:53:40 +08:00
1 parent 2a3393a61e
commit 59e77f4721
4 files changed
+165 -48

No files matched your search

+7 -5
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`). 402 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 404 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -73,10 +73,12 @@ yet generic `fil`/`fill` glue
float placement goes through the paged builder, and the interpreted
`\output` subset handles `\shipout`, `\ifdim` and `\ifnum` over page
registers such as `\pageno`, `\outputpenalty` and `\deadcycles`;
3. `\insert` classes model `\count`/`\dimen`/`\skip` but are not TeX
registers addressed by number; the interpreted output routine covers page
shipping and `\ifdim`/`\ifnum` comparisons but not the full `\output`
machinery;
3. `\insert` classes are TeX registers addressed by number (`\count<n>`,
`\dimen<n>`, `\skip<n>`, with `\count0` aliasing `\pageno`) and the
interpreted output routine can assign `\pageno`, `\deadcycles`,
`\outputpenalty` and those insertion registers for the current page, but
writes do not yet feed back into page building, `\box255` content is not
inspectable and the full `\output` machinery is still missing;
4. `\halign` handles spans/omit/templates but not the full TeX column algorithm;
5. math is a compact subset without the CM math fonts (`cmmi`, `cmsy`, `cmex`),
display-math line breaking or `\mathchoice`-level styling;