Record 120pt tolerance candidate measurements

This commit is contained in:
gloamxun committed 2026-10-20 12:31:39 +08:00
1 parent 57c3282ff9
commit 19ecb7fdc6
1 file changed
+7
+7
View File
@@ -94,6 +94,13 @@ Multi-width pdfTeX comparison (same 24-word ASCII paragraph):
The remaining difference is the TeX tolerance/demerit model, not CMR10
metrics: TeX accepts moderately overfull lines that our DP rejects.
Concrete 120pt first-line candidates: a 3-word line has natural 109.4pt,
stretch 4.6pt, badness 396; a 5-word line has natural 142.8pt, shrink 5.6pt,
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.
- Page breaking only handles vertical boxes/glue; vertical penalties are recorded
but not interpreted.
- No macro state, output routine, math, fonts or PDF output in the new core yet.