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
bd28917f05
Run TeX arithmetic on output registers
2026-10-23 23:21:55 +08:00
gloamxun
db1cc98338
Place top floats on the page they appear on
2026-10-23 23:15:56 +08:00
gloamxun
a78e0c1d0d
Compare footnote insertions with pdfLaTeX page breaks
2026-10-23 15:09:18 +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
6f1310a876
Document the narrow-measure tolerance approximation
2026-10-23 14:45:04 +08:00
gloamxun
2d73486dd1
Cover tolerance-10000 line breaking with pdfLaTeX
2026-10-23 14:43:57 +08:00
gloamxun
2b2ccd511c
Break pages only at legal glue points
2026-10-23 14:38:35 +08:00
gloamxun
247cbf2b9e
Start route-D pages on newpage breaks
2026-10-23 14:32:27 +08:00
gloamxun
4111080422
Ship the page after maxdeadcycles
2026-10-23 14:26:58 +08:00
gloamxun
8007fd1b6c
Report TeX outputpenalty for glue breaks
2026-10-23 14:22:34 +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
e00e0038c1
Cover hyphenated breaks and hyphen demerits with pdfLaTeX
2026-10-23 13:52:04 +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
53436f8177
Correct the route-D server test count
2026-10-23 13:28:51 +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
be23fe9686
Expose the page box height and depth to the output routine
2026-10-23 13:24:14 +08:00
gloamxun
70b360e50e
Keep output register assignments across pages
2026-10-23 13:20:56 +08:00
gloamxun
7a42ddc1bf
Expose prevgraf to the output routine
2026-10-23 13:18:21 +08:00
gloamxun
d63db8d12d
Support explicit hfil and hfill glue orders
2026-10-23 13:15:40 +08:00
gloamxun
3df21201c2
Verify parindent, parshape and skips against pdfLaTeX
2026-10-23 13:10:40 +08:00
gloamxun
97b72ac5d9
Honour textheight geometry and widen the page oracle
2026-10-23 13:07:11 +08:00
gloamxun
c6ebbea58d
Let the output routine retarget later pages with vsize
2026-10-23 13:02:47 +08:00
gloamxun
3b99f93ab8
Read vsize from route-D sources as the page goal
2026-10-23 12:56:47 +08:00
gloamxun
59e77f4721
Allow the output routine to assign page registers
2026-10-23 12:53:40 +08:00
gloamxun
2a3393a61e
Count dead cycles across output routine pages
2026-10-23 12:48:19 +08:00
gloamxun
66dfb10b60
Ship float-heavy pages without body material
2026-10-23 12:45:53 +08:00
gloamxun
594a57e414
Make server test startup failures diagnosable
2026-10-23 12:42:22 +08:00
gloamxun
140e1b4c50
Cover final and double hyphen demerits
2026-10-23 12:36:36 +08:00
gloamxun
54a8488fa2
Limit paged floats by topnumber and bottomnumber
2026-10-23 12:32:02 +08:00
gloamxun
c2ba59906c
Read insertion class registers in the output routine
2026-10-23 12:28:09 +08:00
gloamxun
72f5436318
Replay paged edits with later insertions and keep zero parskip breakpoints
2026-10-23 12:25:01 +08:00
gloamxun
e632db02cf
Start held-over insertions with splittopskip
2026-10-23 12:15:27 +08:00
gloamxun
c54a56ad36
Reduce page goal by reserved insertion space
2026-10-23 04:25:24 +08:00
gloamxun
a4388942f0
Expose per-order page stretch to the output routine
2026-10-23 04:22:27 +08:00
gloamxun
52e3e0647c
Set pages with TeX glue orders
2026-10-23 04:18:14 +08:00
gloamxun
00c23a3511
Set vertical glue for ragged and flushed pages
2026-10-23 04:13:12 +08:00
gloamxun
448152cea4
Support ragged-right paragraphs with an infinite rightskip
2026-10-23 04:08:32 +08:00
gloamxun
f488dd3b6c
Flow in-text floats through the paged builder
2026-10-23 04:04:03 +08:00
gloamxun
14ca3b91d9
Place bottom floats through the paged builder
2026-10-23 03:57:44 +08:00
gloamxun
7b9d543e49
Honour declared paper size in route-D output
2026-10-23 03:53:32 +08:00
gloamxun
043ae7f072
Replay paged layouts from the edited page
2026-10-23 03:46:12 +08:00
gloamxun
6c3636c7c5
Compare route-D page breaks with pdfLaTeX
2026-10-23 03:40:08 +08:00
gloamxun
c5b3493998
Draw paged top floats with their text float separation
2026-10-23 03:32:36 +08:00
gloamxun
aa081e3dc6
Place top floats through the paged builder
2026-10-23 03:30:15 +08:00
gloamxun
bc0d29ace4
Insert parskip between paragraphs in the paged builder
2026-10-23 03:26:53 +08:00
gloamxun
ca36c94eb3
Expose page stretch and shrink to the output routine
2026-10-23 03:23:57 +08:00
gloamxun
62d3c4154e
Expose page depth to the output routine
2026-10-23 03:21:36 +08:00
gloamxun
c8805af755
Reject overfull lines outside the emergency pass
2026-10-23 03:17:25 +08:00
gloamxun
47ef33c536
Record the hyphen demerit fixture blocker
2026-10-23 03:13:47 +08:00
gloamxun
61cef7d16c
Select output routine branches with ifcase
2026-10-23 03:10:55 +08:00
gloamxun
7964765605
Ship pages conditionally on parity in the output routine
2026-10-23 03:08:19 +08:00
gloamxun
a2a2eafab5
Read output penalty and page number in the output routine
2026-10-23 03:04:58 +08:00
gloamxun
4bec90cf8c
Interpret the output routine shipout and ifdim subset
2026-10-23 02:59:54 +08:00
gloamxun
6cf8221ba7
Lay out insertion classes through the page builder
2026-10-23 02:53:04 +08:00
gloamxun
6305f059ac
Shrink overfull final lines and widen the oracle matrix
2026-10-23 02:45:11 +08:00
gloamxun
bcd3b6fa66
Expand vertical units in the paged builder
2026-10-23 02:40: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
b5ec36ae2a
Split insertions at the page break and hold over the tail
2026-10-23 02:26:56 +08:00
gloamxun
b7b75fbff1
Split paragraphs at line boundaries across pages
2026-10-23 02:23:18 +08:00
gloamxun
daf9f5c57e
Expose TeX carried marks for page headers
2026-10-23 02:00:29 +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
d4a9c6b4fd
Add a TeX page builder over vertical lists
2026-10-23 01:41:06 +08:00
gloamxun
8cb09ea5a8
Support TeX looseness on paragraph final lines
2026-10-23 01:26:54 +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
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
03aa1c5110
Record the P1 line-breaking experiment
2026-10-23 00:35:43 +08:00
gloamxun
9726f5f736
Add a pdfLaTeX oracle and clamp justification glue
2026-10-23 00:33:35 +08:00
gloamxun
1014713ec0
Reserve floatsep between stacked floats
2026-10-21 12:46:24 +08:00
gloamxun
521c87d952
Use per-face Computer Modern TFMs for paragraph layout
2026-10-21 12:23:08 +08:00
gloamxun
7cb5b42429
Preserve paragraph font faces across edits
2026-10-21 09:33:31 +08:00
gloamxun
763ae99e8e
Compare route-D text extraction with pdfTeX
2026-10-21 09:31:18 +08:00
gloamxun
c6a58dd646
Report matching PDF widths for accented glyphs
2026-10-21 09:25:46 +08:00
gloamxun
3d94e28dff
Carry TFM glyph height and depth into paragraph boxes
2026-10-21 09:18:15 +08:00
gloamxun
8731ec2b9e
Subset embedded fonts to the glyphs a document uses
2026-10-21 09:14:46 +08:00
gloamxun
06779fb8dd
Support per-class insertion skip
...
InsertionClass gains skip, matching TeX skip registers for insertion classes. The page builder prefers that value over Document.insertion_skip for the class, in both full and incremental layout; regressions cover a skip that pushes an insertion to the next page and the edit path.
2026-10-21 09:01:12 +08:00
gloamxun
7385b8862a
Honour TeX float number limits
...
Add top_number, bottom_number and total_number to Document with TeX defaults 2, 1 and 12. Top and bottom float branches, including the incremental edit path, refuse an extra float once its placement count or the total page count is reached, so the float moves to the next page.
2026-10-21 08:57:16 +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
8cbd72663a
Correct the documented route-D test count
2026-10-21 08:48:24 +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
506904bbdc
Apply insertion class limits in incremental edits
2026-10-21 08:43:09 +08:00
gloamxun
68d2cef346
Compare two route-D pages with pdfTeX
2026-10-21 08:40:44 +08:00
gloamxun
180c05e425
Reserve skip before the first insertion class
2026-10-21 08:28:34 +08:00
gloamxun
e052a0d0f3
Compress embedded font and ToUnicode streams
...
Route-D PDFs embedded full FontFile2 programs and ToUnicode CMaps uncompressed. Deflate both streams and declare /Filter /FlateDecode while keeping /Length1 as the uncompressed font length. The minimal route-D PDF now renders to 13.5 KB, and the pdfTeX raster comparison still matches.
2026-10-21 08:19:02 +08:00