Commit Graph
156 Commits
Author SHA1 Message Date
gloamxun 4cf64a4d55 Compose nested inline faces relative to the surrounding run 2026-10-24 02:15:08 +08:00
gloamxun 0e8999671b Parse declaration groups in inline styled text 2026-10-24 02:12:29 +08:00
gloamxun 53fabe95db Paint inline NFSS runs with their own faces 2026-10-24 02:09:56 +08:00
gloamxun 67898d6a8a Support NFSS command forms and legacy declarations 2026-10-24 02:06:44 +08:00
gloamxun df43cade62 Select built-in faces from NFSS declarations 2026-10-24 02:04:14 +08:00
gloamxun f6726439ed Support tag and notag on numbered equations 2026-10-24 02:00:47 +08:00
gloamxun bb897411d0 Number equation environments in route-D 2026-10-24 01:57:18 +08:00
gloamxun 8f675bcabd Use Computer Modern math metrics for route-D formulas 2026-10-24 01:31:51 +08:00
gloamxun c9ad1e209a Split wide display formulas into lines 2026-10-24 01:26:29 +08:00
gloamxun 95e677b5c7 Map LaTeX tabular sources onto route-D halign 2026-10-24 01:22:36 +08:00
gloamxun 23956a012b Expose hsize and the page box width to the output routine 2026-10-24 00:14:55 +08:00
gloamxun a09b1d1d36 Clamp held-over insertion depth with splitmaxdepth 2026-10-23 23:35:20 +08:00
gloamxun 0f4c1f85ae Report paragraph depth to the page builder 2026-10-23 23:31:47 +08:00
gloamxun 6b3145fd09 Route route-D page breaking through the paged builder 2026-10-23 15:02:52 +08:00
gloamxun 08a312be82 Carry plus and minus on inter-paragraph skip glue 2026-10-23 14:53:00 +08:00
gloamxun 247cbf2b9e Start route-D pages on newpage breaks 2026-10-23 14:32:27 +08:00
gloamxun 94559ee431 Carry TeX plus and minus on paragraph skips 2026-10-23 14:18:13 +08:00
gloamxun 0102a20120 Support explicit vertical skips between paragraphs 2026-10-23 14:15:17 +08:00
gloamxun d596ef2a95 Apply page offsets to route-D preview pages 2026-10-23 14:11:05 +08:00
gloamxun aea6c289ec Read sfcode assignments from route-D sources 2026-10-23 14:07:37 +08:00
gloamxun de35d1bcae Read demerit registers from route-D sources 2026-10-23 14:05:25 +08:00
gloamxun e823a1f415 Read page skip registers from route-D sources 2026-10-23 14:03:39 +08:00
gloamxun bd462448d5 Read parfillskip and interline glue from route-D sources 2026-10-23 14:01:27 +08:00
gloamxun dc68e76cd3 Read parshape measures from route-D sources 2026-10-23 13:58:15 +08:00
gloamxun f86b507615 Read hyphenation exceptions from route-D sources 2026-10-23 13:54:58 +08:00
gloamxun a6397fcfef Honour TeX looseness when an alternative line count exists 2026-10-23 13:46:32 +08:00
gloamxun 96cd98f833 Read hang indent, spacing and tolerance registers from route-D sources 2026-10-23 13:34:13 +08:00
gloamxun 4f4171a6d1 Read paragraph registers from route-D sources and measure with TFM advances 2026-10-23 13:28:43 +08:00
gloamxun 97b72ac5d9 Honour textheight geometry and widen the page oracle 2026-10-23 13:07:11 +08:00
gloamxun 3b99f93ab8 Read vsize from route-D sources as the page goal 2026-10-23 12:56:47 +08:00
gloamxun 448152cea4 Support ragged-right paragraphs with an infinite rightskip 2026-10-23 04:08:32 +08:00
gloamxun 7b9d543e49 Honour declared paper size in route-D output 2026-10-23 03:53:32 +08:00
gloamxun c5b3493998 Draw paged top floats with their text float separation 2026-10-23 03:32:36 +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 8d319b3b0c Apply TeX page offsets in the route-D PDF endpoint 2026-10-23 01:57:48 +08:00
gloamxun 5db7acaff2 Shift the route-D page body by TeX page origin offsets 2026-10-23 01:55:28 +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
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 f2deac541e Reuse page prefixes for structural route-D edits
Extract Engine::relayout_from from Engine::edit so a caller can rebuild from any checkpoint with an unchanged unit prefix. Route-D project previews now use the first differing paragraph for both text and structural edits, keeping sealed pages before the change instead of always relaying out the whole document.
2026-10-21 08:53:17 +08:00
gloamxun ceb31c4612 Replay multiple paragraph edits in route-D previews
Apply same-count paragraph edits sequentially from the earliest changed paragraph, reuse the earlier page checkpoints, and report the union of changed pages. Adds a multi-page regression.
2026-10-21 08:46:56 +08:00
gloamxun 68d2cef346 Compare two route-D pages with pdfTeX 2026-10-21 08:40:44 +08:00
gloamxun c3277531d3 Export project PDFs through route-D when selected 2026-10-21 01:15:09 +08:00
gloamxun ea69301804 Reuse route-D page checkpoints in project previews 2026-10-20 23:13:49 +08:00