Support hang indentation and parshape measures
This commit is contained in:
1 parent
24a96d1c7c
commit
8993186005
7 files changed
+269
-88
No files matched your search
+12
-8
@@ -48,16 +48,16 @@ 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`). 289 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 293 workspace tests are green and no oracle
|
||||
fixture is ignored.
|
||||
|
||||
Known gaps, in dependency order:
|
||||
|
||||
1. paragraph breaking reproduces TeX's passes and demerits (including
|
||||
`\adjdemerits`, `\doublehyphendemerits`, `\finalhyphendemerits`,
|
||||
`\hyphenpenalty`, `\exhyphenpenalty` and `\hyphenation` exceptions), but
|
||||
not yet `\parshape`, `\looseness`, `\hangindent`, spacefactor or
|
||||
`\parfillskip`/fil glue orders;
|
||||
`\hyphenpenalty`, `\exhyphenpenalty`, `\hyphenation` exceptions and
|
||||
`\hangindent`/`\hangafter`/`\parshape` line geometry), but not yet
|
||||
`\looseness`, spacefactor or `\parfillskip`/fil glue orders;
|
||||
2. the page builder is a scrolling builder with fraction policies, not a TeX
|
||||
page builder with badness and an interpreted `\output`;
|
||||
3. `\insert` classes are data structures, not TeX registers and an output
|
||||
@@ -179,10 +179,14 @@ and `\finalhyphendemerits` all affect the chosen solution, and
|
||||
`\hyphenation` exceptions are inserted into the pattern trie (unit-tested by
|
||||
counting the discretionary points they add).
|
||||
|
||||
Still open: `\parfillskip`/fil glue orders, `\hangindent`/`\parshape`/
|
||||
`\looseness`, spacefactor/`\sfcode`, vertical-list skips
|
||||
(`\baselineskip`, `\lineskip`, `\parskip`), double/final hyphen demerit
|
||||
oracle fixtures, and more width fixtures.
|
||||
`\hangindent`/`\hangafter` and `\parshape` now drive each line's measure
|
||||
and left offset; the DP remembers a candidate's line number so the geometry can
|
||||
vary per line, and a 120pt oracle fixture checks every line origin against
|
||||
pdfLaTeX.
|
||||
|
||||
Still open: `\parfillskip`/fil glue orders, `\looseness`, spacefactor/
|
||||
`\sfcode`, vertical-list skips (`\baselineskip`, `\lineskip`, `\parskip`),
|
||||
double/final hyphen demerit oracle fixtures, and more width fixtures.
|
||||
|
||||
### P2 — Vertical list, page builder, `\output` (L2)
|
||||
|
||||
|
||||
Reference in new issue
Block a user