Hyphenate CMR10 paragraphs with TeX patterns

This commit is contained in:
gloamxun committed 2026-10-20 12:51:30 +08:00
1 parent c98ec0056f
commit 9a7404c717
4 files changed
+95 -11

No files matched your search

+4
View File
@@ -104,6 +104,10 @@ overfull ratio 4.11, badness 6942. TeX rejects the underfull candidate under
its tolerance but still emits the moderately overfull 5-word line. Reproducing
this needs a two-pass tolerance algorithm with an emergency overfull pass, not
a single cost function.
- M1 now inserts TeX en-US hyphenation points as `HorizontalItem::
Discretionary`: a break adds the hyphen width, a non-break keeps zero
width. The line breaker scores these breakpoints with the same glue
model as spaces.
- `Unit::halign` lays out natural column widths, multi-column spans and rule
rows as a `VerticalItem::Halign`; `Halign::cell_box` returns each cell's
aligned rectangle for a future painter. It is not yet painted by v2.