Break paragraphs from character boxes, glue, and penalties

This commit is contained in:
gloamxun committed 2026-10-20 12:12:41 +08:00
1 parent 51beb682f0
commit e6da4d2fa7
2 files changed
+161 -76

No files matched your search

+2 -2
View File
@@ -44,12 +44,12 @@ class execution are still ahead.
list model;
- `ParagraphStyle` with `line_width`, `par_indent`, `line_height`, fixed
character/space metrics and glue stretch/shrink;
- a word-level Knuth-Plass-style dynamic program that minimizes badness from
- an item-stream Knuth-Plass-style dynamic program over character boxes, glue and penalty breakpoints that minimizes badness from
glue stretch/shrink, allows overfull lines with an explicit overfull penalty,
applies `par_indent` to the first line, and emits justified glue;
- `Paragraph { lines, height, width }` and a paragraph-backed `Unit`.
M1 is deliberately word-level: it does not yet hyphenate, process
M1 still does not hyphenate, process
`\discretionary`, use real TFM metrics or compare against pdfTeX. Those are the
next paragraph milestones.