Commit Graph
26 Commits
Author SHA1 Message Date
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
gloamxun fe7fd68321 Let project previews opt into the route-D core 2026-10-20 23:09:32 +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 ccda740476 Indent quote blocks in the route-D preview 2026-10-20 22:04:50 +08:00
gloamxun 4772985ffe Render description lists in the route-D preview 2026-10-20 22:03:19 +08:00
gloamxun edf851438b Render enumerate lists in the route-D preview 2026-10-20 22:01:02 +08:00
gloamxun cea9ccddef Render itemize lists in the route-D preview 2026-10-20 21:59:17 +08:00
gloamxun 63593e7ff3 Render display math in the route-D preview 2026-10-20 21:57:12 +08:00
gloamxun 2c4d968659 Map sections and emphasis in the route-D preview 2026-10-20 21:45:34 +08:00
gloamxun ec9ce3b765 Export route-D preview pages as PDF 2026-10-20 21:41:46 +08:00
gloamxun dbccedb579 Expose route-D page-hash diffs for paragraph edits 2026-10-20 21:18:57 +08:00
gloamxun fab9a473fc Render route-D preview pages at page size 2026-10-20 21:16:45 +08:00
gloamxun 875f8a7600 Expose route-D pages through a preview endpoint 2026-10-20 21:15:35 +08:00