Split paragraphs at line boundaries across pages
This commit is contained in:
1 parent
daf9f5c57e
commit
b7b75fbff1
8 files changed
+263
-77
No files matched your search
+14
-13
@@ -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`). 318 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 319 workspace tests are green and no oracle
|
||||
fixture is ignored.
|
||||
|
||||
Known gaps, in dependency order:
|
||||
@@ -61,12 +61,13 @@ Known gaps, in dependency order:
|
||||
`\looseness`, and `\baselineskip`/`\lineskip`/`\parskip` interline
|
||||
glue), but not yet custom `\sfcode` overrides, generic `fil`/`fill` glue
|
||||
orders or `\prevgraf`;
|
||||
2. the page builder used by `Document` is still the scrolling builder with
|
||||
fraction 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 single-item units, but
|
||||
floats, insertions and incremental checkpoint replay still use the scrolling
|
||||
builder, and an interpreted `\output` is absent;
|
||||
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
|
||||
setting, `\topskip`, `\maxdepth`) and `Engine::layout_paged` runs it for
|
||||
documents made of single-item units, but floats, insertions and incremental
|
||||
checkpoint replay still use the scrolling builder, and an interpreted
|
||||
`\output` is absent;
|
||||
3. `\insert` classes model `\count`/`\dimen`/`\skip` but are not TeX
|
||||
registers addressed by number, and there is still no interpreted output
|
||||
routine;
|
||||
@@ -209,14 +210,14 @@ extra line and match pdfLaTeX exactly.
|
||||
Interline spacing follows TeX: the first baseline sits at the paragraph's
|
||||
ascent, each later baseline advances by `\baselineskip` when the resulting gap
|
||||
clears `\lineskiplimit`, otherwise by `\lineskip`, and `\parskip` (default
|
||||
`0pt`) separates paragraph units in the vertical list. Page-level `\topskip`
|
||||
placement remains part of P2, and a paragraph still reserves a whole number of
|
||||
line boxes for pagination.
|
||||
`0pt`) separates paragraph units in the vertical list. A paragraph that does
|
||||
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, custom `\sfcode` overrides,
|
||||
`\prevgraf`, explicit `\vskip` classes (`\smallskip` and friends), page-level
|
||||
`\topskip` placement, double/final hyphen demerit oracle fixtures, and more
|
||||
width fixtures.
|
||||
`\prevgraf`, explicit `\vskip` classes (`\smallskip` and friends),
|
||||
double/final hyphen demerit oracle fixtures, and more width fixtures.
|
||||
|
||||
### P2 — Vertical list, page builder, `\output` (L2)
|
||||
|
||||
|
||||
Reference in new issue
Block a user