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
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
506904bbdc
Apply insertion class limits in incremental edits
2026-10-21 08:43:09 +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
gloamxun
5b4eadb88f
Place late top floats on the current page when they fit
2026-10-21 01:33:14 +08:00
gloamxun
484375fa2b
Support absolute insertion class height limits
2026-10-21 01:28:42 +08:00
gloamxun
12d8ae805b
Keep insertions from multiple classes within the page height
2026-10-21 01:18:02 +08:00
gloamxun
ff97f386da
Apply float-page fraction in incremental layout
2026-10-21 01:02:04 +08:00
gloamxun
93dd4e531b
Apply bottom float fractions in incremental layout
2026-10-20 23:44:22 +08:00
gloamxun
48d10f901d
Apply topfraction in incremental layout
2026-10-20 23:41:31 +08:00
gloamxun
d81021d1a3
Honour topfraction for top floats
2026-10-20 23:37:47 +08:00
gloamxun
14a3775206
Honour bottomfraction when placing bottom floats
2026-10-20 23:33:21 +08:00
gloamxun
a8e7499ce3
Honour per-class insertion page limits
2026-10-20 23:02:30 +08:00
gloamxun
ff3fff343d
Paint ligature boxes as their component letters
2026-10-20 22:59:31 +08:00
gloamxun
67915402a6
Use CMR10 advances for route-D paragraphs and PDF text
2026-10-20 22:55:38 +08:00
gloamxun
6714591704
Use the minimal font tier for ASCII route-D PDFs
2026-10-20 22:21:10 +08:00
gloamxun
295093ae5a
Embed only the font faces used by a route-D PDF
2026-10-20 22:15:53 +08:00
gloamxun
f0e5f14a8c
Hash rendered page content instead of source metadata
2026-10-20 21:53:51 +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
6a7e79fa03
Stack insertion classes from the page bottom
2026-10-20 21:32:15 +08:00
gloamxun
7e0090c7a5
Let custom output routines force a page break
2026-10-20 21:25:00 +08:00
gloamxun
12288b51ee
Split oversized route-D insertions across pages
2026-10-20 21:07:26 +08:00
gloamxun
641fc1c14b
Embed all route-D text faces with CID widths
2026-10-20 20:59:01 +08:00
gloamxun
2431f3a479
Model float page fractions in route-D output
2026-10-20 20:54:06 +08:00
gloamxun
a09398811f
Embed a TrueType Roman font in route-D PDFs
2026-10-20 20:49:21 +08:00
gloamxun
a703f2dcc0
Wire the TFM parser into the route-D core
2026-10-20 20:46:14 +08:00
gloamxun
c00edaf357
Paint binomial parentheses around stacked arguments
2026-10-20 18:55:16 +08:00
gloamxun
0446a35b8c
Paint sqrt degrees before the radical
2026-10-20 18:53:28 +08:00
gloamxun
17d41cbffd
Paint overbrace and underbrace bars
2026-10-20 18:52:34 +08:00
gloamxun
3f1dd0c077
Paint math limits above and below their base
2026-10-20 18:51:49 +08:00
gloamxun
b004cd2efb
Cover bottom float content painting
2026-10-20 18:50:22 +08:00
gloamxun
5c0946f990
Seal dedicated float pages in the route-D builder
2026-10-20 18:46:20 +08:00
gloamxun
e3d5ff3abf
Gate bottom floats on the text fraction
2026-10-20 18:44:31 +08:00
gloamxun
ea037d66bb
Size floats from their vertical content
2026-10-20 18:42:25 +08:00
gloamxun
e791c94cfe
Paint float content in the route-D display list
2026-10-20 18:40:37 +08:00
gloamxun
fb22be1a49
Carry vertical content on route-D floats
2026-10-20 18:37:25 +08:00
gloamxun
25adbc7bf0
Cover italic paragraph PDF resources
2026-10-20 18:36:14 +08:00
gloamxun
0f7ffde050
Cover italic paragraph faces
2026-10-20 18:34:46 +08:00
gloamxun
6b74a17312
Carry paragraph font faces through the display list
2026-10-20 18:32:33 +08:00
gloamxun
96c88d2787
Reflect display font faces in SVG output
2026-10-20 18:30:12 +08:00
gloamxun
d40595c7e5
Add per-face PDF font resources
2026-10-20 18:27:14 +08:00
gloamxun
03025de783
Split tall halign tables across pages
2026-10-20 18:25:07 +08:00
gloamxun
1d9b152beb
Normalize halign geometry to scaled points
2026-10-20 18:23:29 +08:00
gloamxun
af50f1afa1
Paint route-D float placeholders at page edges
2026-10-20 18:20:32 +08:00