Commit Graph
84 Commits
Author SHA1 Message Date
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 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 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 aeacf53518 Make the pdfTeX raster comparison actually run
pdftoppm --version exits non-zero, so the raster test silently skipped on every host. Probe pdftoppm with -v instead, lay out the route-D paragraph at the same scaled-point geometry the server uses, and compile the pdfTeX control page as Letter (612x792bp). The ink line count and left/right/bottom edges now match exactly.
2026-10-21 08:10:29 +08:00
gloamxun c3277531d3 Export project PDFs through route-D when selected 2026-10-21 01:15:09 +08:00
gloamxun 21cc743236 Document the route-D preview toggle 2026-10-21 01:12:12 +08:00
gloamxun 95760e4a1c Turn TeX hyphen runs into en and em dashes 2026-10-21 01:08:22 +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 c2dbf405ab Compare route-D raster geometry with pdfTeX 2026-10-20 23:20:28 +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 a8e7499ce3 Honour per-class insertion page limits 2026-10-20 23:02:30 +08:00
gloamxun 67915402a6 Use CMR10 advances for route-D paragraphs and PDF text 2026-10-20 22:55:38 +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 875f8a7600 Expose route-D pages through a preview endpoint 2026-10-20 21:15:35 +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 51beb682f0 Add the M1 box/glue/penalty paragraph builder 2026-10-20 12:11:09 +08:00
gloamxun 99dbb5ebb0 Start route D incremental TeX core with M0 checkpoint spike 2026-10-20 12:06:39 +08:00
gloamxun 54f610445b Lay out table-cell images as grid placeholders 2026-10-20 02:20:59 +08:00
gloamxun b8c2be8837 Format numeric bibliography authors with initials 2026-10-20 02:05:40 +08:00
gloamxun 93bc5ac945 Size PDF figure placeholders from their page aspect 2026-10-20 02:00:40 +08:00
gloamxun 1e7cfd2c85 Record the accent ordering and current test baseline 2026-10-20 01:47:18 +08:00
gloamxun 466abd4ce6 Build structured journal front matter for sn-jnl 2026-10-20 01:08:37 +08:00
gloamxun 82542740e7 Preview SIVP with placeholders for PDF figures 2026-10-20 00:37:56 +08:00
gloamxun 0864536d6d Compile the Huawei E template with tabularx and math vocabulary 2026-10-20 00:30:03 +08:00
gloamxun 769e3cdf17 Embed the official ORCID logo as a PDF image 2026-10-19 22:43:24 +08:00
gloamxun 2076da8f21 Annotate ORCID author badges with their profile links 2026-10-19 21:37:17 +08:00
gloamxun e4c5b0cb32 Draw rounded ORCID badges in PDFs 2026-10-19 21:25:31 +08:00
gloamxun 3b270d749d Embed fonts and add PDF link annotations 2026-10-19 21:18:58 +08:00
gloamxun 2856506d65 Embed text fonts and fix preview table rule coordinates 2026-10-19 21:07:25 +08:00
gloamxun f167b4f4d1 List link support in the capability matrix 2026-10-19 19:10:06 +08:00
gloamxun 26f66d871a Document orcidlink 2026-10-19 19:03:32 +08:00
gloamxun 247893282b Match the reference table width for math cells 2026-10-19 18:41:47 +08:00
gloamxun 0c615c8e82 Collect footnotes inside figure and table captions 2026-10-19 18:39:16 +08:00
gloamxun 9dc1f59f8e Reserve title footnote space on the first page 2026-10-19 18:32:10 +08:00
gloamxun 09781d40e9 Render hyperlinks with hyperref green colour 2026-10-19 18:29:24 +08:00