Support explicit hfil and hfill glue orders

This commit is contained in:
gloamxun committed 2026-10-23 13:15:40 +08:00
1 parent 3df21201c2
commit d63db8d12d
4 files changed
+146 -16

No files matched your search

+5 -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`). 413 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 417 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -59,9 +59,9 @@ Known gaps, in dependency order:
`\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`, `\raggedright` (infinite `\rightskip` fil), but not
yet generic `fil`/`fill` glue
orders or `\prevgraf`;
glue), custom `\sfcode` overrides, explicit `\spaceskip`/`\xspaceskip`,
`\raggedright` (infinite `\rightskip` fil), and explicit
`\hfil`/`\hfill` glue orders, but not yet `\prevgraf`;
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 +228,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: generic `fil`/`fill` glue orders, `\prevgraf`, explicit
Still open: `\prevgraf`, 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