Expose prevgraf to the output routine

This commit is contained in:
gloamxun committed 2026-10-23 13:18:21 +08:00
1 parent d63db8d12d
commit 7a42ddc1bf
4 files changed
+68 -6

No files matched your search

+5 -4
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`). 417 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 419 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -60,8 +60,9 @@ Known gaps, in dependency order:
with or without `fil`, default `\sfcode` sentence spacing,
`\looseness`, and `\baselineskip`/`\lineskip`/`\parskip` interline
glue), custom `\sfcode` overrides, explicit `\spaceskip`/`\xspaceskip`,
`\raggedright` (infinite `\rightskip` fil), and explicit
`\hfil`/`\hfill` glue orders, but not yet `\prevgraf`;
`\raggedright` (infinite `\rightskip` fil), explicit
`\hfil`/`\hfill` glue orders, and `\prevgraf` visibility in the output
routine;
2. the default builder is still the scrolling builder with fraction
policies, now with line-level paragraph splits; `page::PageBuilder`
implements the candidate-breakpoint cost model (badness + penalty, glue
@@ -228,7 +229,7 @@ not fit is split at line boundaries: the next fragment continues on the next
page without a `\parskip`, and a single unsplittable line may overflow at the
top of a page (see `Paragraph::split_at`).
Still open: `\prevgraf`, explicit
Still open: explicit
`\vskip` classes (`\smallskip` and friends),
double/final hyphen demerit oracle fixtures. The breaker now rejects overfull
lines outside the emergency pass, exactly like TeX, so `\tolerance` cannot