Expose page depth to the output routine
This commit is contained in:
1 parent
c8805af755
commit
62d3c4154e
4 files changed
+52
-7
No files matched your search
+6
-4
@@ -239,9 +239,11 @@ oracle fixture is ignored.
|
||||
in the page hash. `OutputRoutine::shipout` runs before sealing and may
|
||||
mutate each page; this models the `\output` stage in Rust. The interpreted
|
||||
subset lives in `output::OutputProgram` (`Document::output_routine`), which
|
||||
understands `\shipout\box255`, `\relax`, `\message{...}` and `\ifdim` /
|
||||
`\else` / `\fi` over the page registers `\pagegoal`, `\pagetotal`, `\vsize`,
|
||||
`\topskip` and `\maxdepth`; it cannot yet change page goals. Top `Float`
|
||||
understands `\shipout\box255`, `\relax`, `\message{...}`, `\ifdim`,
|
||||
`\ifnum`, `\ifodd` and `\ifcase` over the page registers `\pagegoal`,
|
||||
`\pagetotal`, `\pagedepth`, `\vsize`, `\topskip`, `\maxdepth`,
|
||||
`\outputpenalty`, `\pageno` and `\deadcycles`; it cannot yet change page
|
||||
goals. Top `Float`
|
||||
material is deferred to the next page when it arrives late; bottom
|
||||
floats reserve height on the current page and must satisfy
|
||||
`Document.text_fraction_percent` (default 50%); a page holding only floats
|
||||
@@ -332,7 +334,7 @@ Math coverage includes fractions/roots, scripts, `\left...\right` with body-scal
|
||||
|
||||
Paragraph units carry a `ParagraphFont`; `Unit::paragraph_with_face` and `Unit::paragraph_with_style_and_face` select Roman, bold, italic, mono, or sans. The corresponding Computer Modern TFM (`cmr10`, `cmbx10`, `cmti10`, `cmbxti10`, `cmtt10`, `cmss10`) supplies advances, kerns, ligatures, and italic correction for layout, while the display list and PDF select the matching Liberation face. `Engine::edit` preserves the face when reflowing an edited paragraph.
|
||||
|
||||
The crate currently has 235 unit tests plus seven route-D integration tests and thirteen oracle fixtures. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 353 tests (235 route-D unit, 7 route-D integration, 13 oracle, 71 v1 integration, 20 server, 4 v1 unit, 1 core unit, 2 binary units), with none ignored. v1 remains the live server path.
|
||||
The crate currently has 237 unit tests plus seven route-D integration tests and thirteen oracle fixtures. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 355 tests (237 route-D unit, 7 route-D integration, 13 oracle, 71 v1 integration, 20 server, 4 v1 unit, 1 core unit, 2 binary units), with none ignored. v1 remains the live server path.
|
||||
|
||||
### M0 incremental demo
|
||||
|
||||
|
||||
Reference in new issue
Block a user