Audit the G1 milestones and refresh the plan status
This commit is contained in:
1 parent
a93200cbfb
commit
f980ed7f56
2 files changed
+69
-64
No files matched your search
+19
-45
@@ -51,55 +51,29 @@ route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
|
||||
PDF opt-in with `?engine=route-d`). 476 workspace tests are green and no oracle
|
||||
fixture is ignored.
|
||||
|
||||
Known gaps, in dependency order:
|
||||
Status after G1 (P0-P2): the paragraph model reproduces TeX's passes,
|
||||
demerits and paragraph registers, the paged builder implements the page
|
||||
builder (glue setting, inserts, marks, floats, paper size and page registers),
|
||||
and the interpreted `\output` routine runs page by page with conditionals,
|
||||
arithmetic, mark writes, register assignments and page retargeting. The audit
|
||||
table in [`TEX_CORE.md`](TEX_CORE.md) lists the evidence per milestone.
|
||||
|
||||
1. paragraph breaking reproduces TeX's passes and demerits (including
|
||||
`\adjdemerits`, `\doublehyphendemerits`, `\finalhyphendemerits`,
|
||||
source-level `\hyphenation{...}` exceptions and `\parshape` measures,
|
||||
`\parfillskip`, `\lineskip`, `\lineskiplimit`, `\topskip`, `\maxdepth`,
|
||||
`\splittopskip`, the demerit registers and `\sfcode`,
|
||||
`\hyphenpenalty`, `\exhyphenpenalty`, `\hyphenation` exceptions,
|
||||
`\hangindent`/`\hangafter`/`\parshape` line geometry, `\parfillskip`
|
||||
with or without `fil`, default `\sfcode` sentence spacing,
|
||||
`\looseness`, and `\baselineskip`/`\lineskip`/`\parskip` interline
|
||||
glue), custom `\sfcode` overrides, explicit `\spaceskip`/`\xspaceskip`,
|
||||
stretch and shrink on the inter-paragraph `\parskip` glue,
|
||||
`\raggedright` (infinite `\rightskip` fil), explicit
|
||||
`\hfil`/`\hfill` glue orders, and `\prevgraf` visibility in the output
|
||||
routine;
|
||||
2. the scrolling builder remains the non-paged fallback with fraction float
|
||||
policies; `page::PageBuilder` implements the candidate-breakpoint cost
|
||||
model (badness + penalty, glue setting, `\topskip`, `\maxdepth`) and
|
||||
`Engine::layout_paged` runs it for documents made of
|
||||
box/glue/penalty/mark/float/insertion units, with paragraphs expanded to
|
||||
one node per line so pages break inside them; route-D previews and PDFs
|
||||
use the paged builder when the document is expressible, insertion classes
|
||||
(per-class limits with held-over material) and top and bottom floats
|
||||
(`\textfloatsep` above the body, `\floatsep` between stacked bottom
|
||||
floats, `\bottomfraction` cap); in-text floats flow inline, so every
|
||||
float placement goes through the paged builder, and the interpreted
|
||||
`\output` subset handles `\shipout`, `\ifdim` and `\ifnum` over page
|
||||
registers such as `\pageno`, `\outputpenalty`, `\deadcycles`, `\vbadness` and
|
||||
`\insertpenalties`;
|
||||
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, `\ht255`/`\dp255`/`\wd255` expose the page
|
||||
box height and depth, and the assigned values carry
|
||||
over to later pages (TeX output registers are global); an assigned `\vsize`
|
||||
changes the goal of every page the routine has not seen yet (the remaining
|
||||
fragments are rebuilt from the next node index; insertion material is fine
|
||||
because class limits apply at assembly time), though a document that defers
|
||||
bottom floats keeps its initial goal; the paged builder runs the routine
|
||||
page by page, so `\dimen<n>` and `\count<n>` assignments change the insertion limits and reservations of later pages; the configured `\skip<n>` reserves space above its class once per page, and an output-routine `\skip<n>` assignment rebuilds the remaining pages with the new reservation, so later insertion material pays the assigned skip; `\mark{...}` and classed `\marks<n>{...}` writes inside the routine are carried to the following page's marks; `\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`),
|
||||
Remaining gaps:
|
||||
|
||||
1. `\halign` handles spans/omit/templates but not the full TeX column algorithm;
|
||||
2. math is a compact subset without the CM math fonts (`cmmi`, `cmsy`, `cmex`),
|
||||
display-math line breaking or `\mathchoice`-level styling;
|
||||
6. text fonts are Liberation, not Computer Modern; Type1 fonts are not embeddable
|
||||
3. text fonts are Liberation, not Computer Modern; Type1 fonts are not embeddable
|
||||
yet, so pixel comparison against pdfLaTeX is impossible;
|
||||
7. class files (`article.cls`, `sn-jnl.cls`) are mapped semantically, never
|
||||
4. class files (`article.cls`, `sn-jnl.cls`) are mapped semantically, never
|
||||
executed;
|
||||
8. the service integration is opt-in and maps only a small LaTeX subset.
|
||||
5. the service integration is opt-in and maps only a small LaTeX subset;
|
||||
6. the content of `\box255` is not inspectable, `\topmarks`/`\firstmarks`/
|
||||
`\botmarks` are not readable by the routine, an assigned `\vsize` cannot
|
||||
retarget a document that defers bottom floats, paged replay falls back to a
|
||||
full rebuild with an interpreted `\output` or insertions, and a
|
||||
narrow-measure `\tolerance=10000` break can differ from TeX's demerit
|
||||
optimum.
|
||||
|
||||
Host tooling available: `pdflatex`, `xelatex`, `lualatex`, `pdftoppm`,
|
||||
`pdftotext`, `kpsewhich`, `fonttools`/`ttx`.
|
||||
|
||||
Reference in new issue
Block a user