Commit Graph
39 Commits
Author SHA1 Message Date
gloamxun d63db8d12d Support explicit hfil and hfill glue orders 2026-10-23 13:15:40 +08:00
gloamxun 140e1b4c50 Cover final and double hyphen demerits 2026-10-23 12:36:36 +08:00
gloamxun 448152cea4 Support ragged-right paragraphs with an infinite rightskip 2026-10-23 04:08:32 +08:00
gloamxun c8805af755 Reject overfull lines outside the emergency pass 2026-10-23 03:17:25 +08:00
gloamxun 6305f059ac Shrink overfull final lines and widen the oracle matrix 2026-10-23 02:45:11 +08:00
gloamxun 4be0ff5787 Replace font glue with explicit spaceskip and xspaceskip 2026-10-23 02:38:12 +08:00
gloamxun 4acccaee86 Honour explicit sfcode assignments 2026-10-23 02:29:40 +08:00
gloamxun b7b75fbff1 Split paragraphs at line boundaries across pages 2026-10-23 02:23:18 +08:00
gloamxun d4a9c6b4fd Add a TeX page builder over vertical lists 2026-10-23 01:41:06 +08:00
gloamxun 49bd9b63e6 Model TeX interline glue and parskip 2026-10-23 01:36:26 +08:00
gloamxun 295c934438 Apply TeX sentence spacing to interword glue 2026-10-23 01:26:04 +08:00
gloamxun bd109d03c5 Honour finite parfillskip on the last line 2026-10-23 01:22:16 +08:00
gloamxun 8993186005 Support hang indentation and parshape measures 2026-10-23 01:18:19 +08:00
gloamxun 24a96d1c7c Model TeX demerit registers and hyphenation exceptions 2026-10-23 01:12:52 +08:00
texrra 3725cca9d7 Model TeX tolerance and hyphen penalty registers 2026-10-23 01:05:28 +08:00
texrra 4fbc43f5ff Match TeX hyphenation and justification semantics 2026-10-23 01:00:45 +08:00
gloamxun ac134b3c4e Reproduce TeX paragraph breaking with tolerance passes and demerits
- replace the single-tolerance DP with pass 0 (pretolerance, no hyphenation),
  pass 1 (tolerance, hyphenation) and an optional emergency pass
- add emergencystretch to ParagraphStyle; the emergency pass only runs when it
  is positive, otherwise TeX's overfull fallback applies and each line fills to
  the first break at or past the measure
- compute badness and fitness classes like TeX and fold them with penalties
  into demerits, ignoring the trailing forced penalty on the final line
- keep forward order in the greedy fallback
- enable the 180pt pdfLaTeX oracle fixture and add an emergencystretch test
- give route-D extraction tests scaled body styles so fixed-cell
  ParagraphStyle defaults no longer mix raw units with TFM advances
- document the passes, oracle results and remaining P1 gaps
2026-10-23 00:50:57 +08:00
gloamxun 9726f5f736 Add a pdfLaTeX oracle and clamp justification glue 2026-10-23 00:33:35 +08:00
gloamxun 4414f27438 Justify route-D lines and compare ink bands with pdfTeX 2026-10-22 19:45:31 +08:00
gloamxun 3d94e28dff Carry TFM glyph height and depth into paragraph boxes 2026-10-21 09:18:15 +08:00
gloamxun 95760e4a1c Turn TeX hyphen runs into en and em dashes 2026-10-21 01:08:22 +08:00
gloamxun 40ed26e339 Right-align route-D paragraphs and preview flushright blocks 2026-10-20 22:23:47 +08:00
gloamxun 472f778e75 Center route-D paragraphs and preview center blocks 2026-10-20 22:12:39 +08:00
gloamxun 8468c36daa Embed and paint a sans paragraph face 2026-10-20 21:37:37 +08:00
gloamxun 1633e441de Paint monospace paragraphs with the embedded mono face 2026-10-20 21:35:37 +08:00
gloamxun 060405fca6 Apply CMR10 italic corrections at line ends 2026-10-20 21:27:39 +08:00
gloamxun ac63a3db92 Substitute CMR10 ligatures in route-D paragraphs 2026-10-20 21:04:24 +08:00
gloamxun 867bace1c9 Apply CMR10 kern pairs in route-D paragraphs 2026-10-20 20:52:54 +08:00
gloamxun 34c4f0d84b Offset route-D paragraphs by their left skip 2026-10-20 18:49:27 +08:00
gloamxun 7e45732602 Reserve right skip in route-D paragraph lines 2026-10-20 18:47:52 +08:00
gloamxun 6b74a17312 Carry paragraph font faces through the display list 2026-10-20 18:32:33 +08:00
gloamxun 38bacdfbd5 Paint paragraph glyphs in the route-D display list 2026-10-20 13:42:58 +08:00
gloamxun 9a7404c717 Hyphenate CMR10 paragraphs with TeX patterns 2026-10-20 12:51:30 +08:00
gloamxun db72c7775d Set zero parindent in pdfTeX line-break fixtures 2026-10-20 12:29:12 +08:00
gloamxun 812c9d89dc Cover a second pdfTeX line-break fixture 2026-10-20 12:26:53 +08:00
gloamxun cc9cdf1689 Match a pdfTeX paragraph fixture with CMR10 metrics 2026-10-20 12:24:13 +08:00
gloamxun bf5dae3797 Use CMR10 metrics in the M1 paragraph builder 2026-10-20 12:20:49 +08:00
gloamxun e6da4d2fa7 Break paragraphs from character boxes, glue, and penalties 2026-10-20 12:12:41 +08:00
gloamxun 51beb682f0 Add the M1 box/glue/penalty paragraph builder 2026-10-20 12:11:09 +08:00