Report paragraph depth to the page builder

This commit is contained in:
gloamxun committed 2026-10-23 23:31:47 +08:00
1 parent bd28917f05
commit 0f4c1f85ae
8 files changed
+140 -9

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
`\bottomnumber`, `\totalnumber`), insertion classes (`\skip`, fraction and
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
PDF opt-in with `?engine=route-d`). 454 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 457 workspace tests are green and no oracle
fixture is ignored.
Known gaps, in dependency order:
@@ -287,7 +287,7 @@ limits, float placement, vertical glue setting and glue orders.
`Engine::layout_paged` now feeds it every document whose units are single
vertical items (`Document::max_depth` supplies `\maxdepth`) and materialises the
chosen fragments as hashed pages; ties go to the breakpoint closest to the page
goal, so overfull pages take the least overfull break. `Document::h_offset` and
goal, so overfull pages take the least overfull break. Paragraph nodes carry their last-line descent as depth, so `\pagedepth` reports it and `\maxdepth` only caps the kept part while the excess moves into the page height; route-D applies LaTeX's 5pt `\maxdepth` default at the source layer, and the page fixtures pin it. `Document::h_offset` and
`v_offset` feed the PDF writer's `pdf::PageOrigin`, which translates the page
body without moving the sheet; a route-D integration fixture checks the shift
with `pdftotext -bbox`. `Document::paper_width`/`paper_height`