Defer bottom floats like TeX page building
This commit is contained in:
1 parent
17638996a1
commit
4dd28b3aa7
6 files changed
+66
-34
No files matched your search
@@ -471,7 +471,7 @@ Route-D integration can also be checked against a real TeX page: `cargo test -p
|
||||
Route-D float placement mirrors TeX fractions:
|
||||
|
||||
- `Document::top_fraction_percent` defaults to 70 (`\topfraction`); a taller top float keeps body text off its page.
|
||||
- `Document::bottom_fraction_percent` defaults to 30 (`\bottomfraction`); a taller bottom float moves to the next page.
|
||||
- `Document::bottom_fraction_percent` defaults to 30 (`\bottomfraction`); a bottom float that cannot fit is carried to the next page's bottom while the current page keeps filling, matching TeX's page builder.
|
||||
- `Document::top_number`, `bottom_number` and `total_number` default to TeX's 2, 1 and 12; they cap top floats, bottom floats and all floats on one page.
|
||||
- `Document::float_sep` defaults to 12pt (`\floatsep`); stacked top floats or stacked bottom floats reserve that gap between each other, in full layout and after `Engine::edit`.
|
||||
- `Document::text_float_sep` defaults to 20pt (`\textfloatsep`); a page that carries both floats and body text reserves one such gap between them. `Page::display_list_with_layout(page_goal, text_float_sep)` mirrors that in rendered output, while `display_list_with_goal` keeps the historic no-gap behaviour for callers without document settings.
|
||||
|
||||
@@ -1992,11 +1992,22 @@ impl Engine {
|
||||
let mut page_shrinks = Vec::new();
|
||||
let mut page_goals: Vec<i64> = Vec::new();
|
||||
let mut held: BTreeMap<u8, Vec<VerticalItem>> = BTreeMap::new();
|
||||
let fragments = builder.build(&nodes);
|
||||
let fragments = builder.build_with_deferred_bottom_floats(&nodes);
|
||||
for fragment in &fragments {
|
||||
let mut items = Vec::new();
|
||||
let mut marks = Vec::new();
|
||||
let mut floats = Vec::new();
|
||||
let mut floats: Vec<Float> = fragment
|
||||
.bottom_floats
|
||||
.iter()
|
||||
.map(|height| Float {
|
||||
placement: FloatPlacement::Bottom,
|
||||
width: 0,
|
||||
height: *height,
|
||||
gap_before: 0,
|
||||
gap_after: 0,
|
||||
content: Vec::new(),
|
||||
})
|
||||
.collect();
|
||||
let mut sources = Vec::new();
|
||||
let mut insertions: BTreeMap<u8, Insertion> = BTreeMap::new();
|
||||
let mut used: BTreeMap<u8, i64> = BTreeMap::new();
|
||||
@@ -2039,13 +2050,13 @@ impl Engine {
|
||||
held.entry(class).or_default().extend(remainder);
|
||||
}
|
||||
}
|
||||
item @ VerticalItem::Float(float) => {
|
||||
if float.placement == FloatPlacement::Here {
|
||||
items.push(item.clone());
|
||||
} else {
|
||||
floats.push(float.clone());
|
||||
}
|
||||
}
|
||||
item @ VerticalItem::Float(float) => match float.placement {
|
||||
FloatPlacement::Here => items.push(item.clone()),
|
||||
FloatPlacement::Top => floats.push(float.clone()),
|
||||
// Bottom floats, including deferred ones carried from
|
||||
// the previous page, arrive through the fragment.
|
||||
FloatPlacement::Bottom => {}
|
||||
},
|
||||
other => items.push(other.clone()),
|
||||
}
|
||||
}
|
||||
@@ -6499,7 +6510,9 @@ mod tests {
|
||||
let layout = Engine::layout_paged(&document).expect("bottom floats are page-buildable");
|
||||
assert_eq!(layout.pages().len(), 2);
|
||||
assert_eq!(layout.pages()[0].floats.len(), 0);
|
||||
assert_eq!(layout.pages()[0].items.len(), 1);
|
||||
// TeX keeps filling the page instead of breaking at the float.
|
||||
assert_eq!(layout.pages()[0].items.len(), 2);
|
||||
assert_eq!(layout.pages()[1].items.len(), 0);
|
||||
assert_eq!(layout.pages()[1].floats.len(), 1);
|
||||
assert_eq!(
|
||||
layout.pages()[1].floats[0].placement,
|
||||
|
||||
@@ -122,6 +122,9 @@ pub struct PageFragment {
|
||||
/// Accepted insertion space per class, including material held over from
|
||||
/// the previous page.
|
||||
pub insertions: Vec<InsertionSpace>,
|
||||
/// Bottom floats placed at this page's bottom, as heights in placement
|
||||
/// order, including floats carried over from the page before.
|
||||
pub bottom_floats: Vec<i64>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
@@ -287,6 +290,7 @@ impl PageBuilder {
|
||||
stretches: [0; 4],
|
||||
set: 0,
|
||||
insertions: Vec::new(),
|
||||
bottom_floats: floats.to_vec(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -368,6 +372,7 @@ impl PageBuilder {
|
||||
bottom,
|
||||
order_stretches(&nodes[start..end]),
|
||||
self.insertion_space(nodes, start, end, held),
|
||||
bottom_floats.clone(),
|
||||
);
|
||||
return Some((
|
||||
fragment,
|
||||
@@ -422,6 +427,7 @@ impl PageBuilder {
|
||||
bottom,
|
||||
order_stretches(&nodes[start..end]),
|
||||
self.insertion_space(nodes, start, end, held),
|
||||
bottom_floats.clone(),
|
||||
);
|
||||
return Some((
|
||||
fragment,
|
||||
@@ -498,6 +504,7 @@ impl PageBuilder {
|
||||
bottom,
|
||||
order_stretches(&nodes[start..end]),
|
||||
self.insertion_space(nodes, start, end, held),
|
||||
bottom_floats.clone(),
|
||||
);
|
||||
return Some((
|
||||
fragment,
|
||||
@@ -558,6 +565,7 @@ impl PageBuilder {
|
||||
bottom,
|
||||
order_stretches(&nodes[start..end]),
|
||||
self.insertion_space(nodes, start, end, held),
|
||||
bottom_floats.clone(),
|
||||
);
|
||||
return Some((
|
||||
fragment,
|
||||
@@ -623,6 +631,7 @@ impl PageBuilder {
|
||||
best.bottom,
|
||||
order_stretches(&nodes[start..best.end]),
|
||||
self.insertion_space(nodes, start, best.end, held),
|
||||
bottom_floats.clone(),
|
||||
);
|
||||
Some((
|
||||
fragment,
|
||||
@@ -762,6 +771,7 @@ impl PageBuilder {
|
||||
bottom: i64,
|
||||
stretches: [i64; 4],
|
||||
insertions: Vec<InsertionSpace>,
|
||||
bottom_floats: Vec<i64>,
|
||||
) -> PageFragment {
|
||||
let reserved: i64 = insertions.iter().map(|space| space.height).sum();
|
||||
let target = (self.page_goal - bottom - reserved).max(0);
|
||||
@@ -792,6 +802,7 @@ impl PageBuilder {
|
||||
stretches,
|
||||
set,
|
||||
insertions,
|
||||
bottom_floats,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1007,12 +1007,10 @@ fn top_floats_reserve_page_space_like_pdftex() {
|
||||
|
||||
/// A `[b]` float reserves its height plus `\textfloatsep` at the page bottom;
|
||||
/// the body must stop earlier on exactly the pages pdfLaTeX chooses.
|
||||
#[test]
|
||||
fn bottom_floats_reserve_page_space_like_pdftex() {
|
||||
fn bottom_float_pages(float_at: usize) {
|
||||
let paragraphs: Vec<String> = (0..80)
|
||||
.map(|index| format!("p{index} alpha beta gamma"))
|
||||
.collect();
|
||||
let float_at = 2_usize;
|
||||
let mut body = String::new();
|
||||
for (index, paragraph) in paragraphs.iter().enumerate() {
|
||||
body.push_str(paragraph);
|
||||
@@ -1076,6 +1074,16 @@ fn bottom_floats_reserve_page_space_like_pdftex() {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bottom_floats_reserve_page_space_like_pdftex() {
|
||||
bottom_float_pages(2);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn late_bottom_floats_defer_like_pdftex() {
|
||||
bottom_float_pages(40);
|
||||
}
|
||||
|
||||
/// `\footnotetext` raises insertion material that is reserved at the page
|
||||
/// bottom. With slack on each page, the body breaks and per-page body text
|
||||
/// must stay in step with pdfLaTeX even though the note text is not compared.
|
||||
|
||||
+13
-14
@@ -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`). 461 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 462 workspace tests are green and no oracle
|
||||
fixture is ignored.
|
||||
|
||||
Known gaps, in dependency order:
|
||||
@@ -249,16 +249,14 @@ breaks; at `\tolerance=10000` the wide-measure fixture now matches pdfLaTeX at
|
||||
breaks because the demerits optimum differs; that stays documented as a
|
||||
known approximation.
|
||||
|
||||
Bottom floats now have their own page fixture: when the float fits, the
|
||||
body break matches pdfLaTeX. When it does not fit the remaining body space,
|
||||
the paged builder ends the current page and defers the float, while TeX
|
||||
keeps filling the page before placing the float on the next one; that
|
||||
deferral-fill case stays documented as a known approximation.
|
||||
`PageBuilder::build_with_deferred_bottom_floats` now implements TeX's
|
||||
behaviour for that case: the current page keeps filling, the float is
|
||||
carried to the next page's bottom, and a float larger than the page still
|
||||
ends the page rather than looping. The route-D service still calls `build`,
|
||||
so endpoint behaviour is unchanged until that wiring lands.
|
||||
Bottom floats have two page fixtures: one where the float fits, and one
|
||||
where it does not fit the remaining body space. In both cases the page
|
||||
count and per-page text match pdfLaTeX: the page keeps filling, and a
|
||||
float that cannot fit is carried to the next page's bottom, exactly as
|
||||
TeX's page builder does. `PageBuilder::build_with_deferred_bottom_floats`
|
||||
implements that behaviour, `Engine::layout_paged` and the route-D service
|
||||
use it, and a float taller than a page still ends the page rather than
|
||||
looping.
|
||||
|
||||
### P2 — Vertical list, page builder, `\output` (L2)
|
||||
|
||||
@@ -318,11 +316,12 @@ interpreter past the shipout/ifdim/ifnum/ifodd/ifcase subset.
|
||||
|
||||
Acceptance: 10 page fixtures (article text, footnotes, floats, forced breaks);
|
||||
page counts identical and first/last baselines within 1pt of pdfLaTeX.
|
||||
Progress: nine page fixtures are wired (single-line paragraphs, `\parskip=6pt`
|
||||
Progress: ten page fixtures are wired (single-line paragraphs, `\parskip=6pt`
|
||||
spacing, multi-line paragraphs split across pages, a 300pt `\textheight`, a
|
||||
30pt `\topskip`, `\newpage` forced breaks, stretchy `\vskip` glue between
|
||||
paragraphs, `\footnotetext` insertions reserved at the page bottom, and a
|
||||
`[t]` float that reserves its height plus `\textfloatsep` on its own page); each
|
||||
paragraphs, `\footnotetext` insertions reserved at the page bottom, a
|
||||
`[t]` float that reserves its height plus `\textfloatsep` on its own page,
|
||||
and `[b]` floats that fit or defer to the next page); each
|
||||
asserts the same page count and the same per-page body text as pdfLaTeX, with
|
||||
footnote text excluded from the body comparison. Route-D's source mapping still
|
||||
does not raise LaTeX floats, so the float fixture drives `Engine` directly.
|
||||
|
||||
+7
-6
@@ -268,10 +268,11 @@ oracle fixture is ignored.
|
||||
of a page and bottom `Float` material at the page bottom: a late top float
|
||||
starts the next page, a bottom float that cannot fit is deferred to the next page's
|
||||
bottom by `PageBuilder::build_with_deferred_bottom_floats`, which keeps
|
||||
filling the current page (the default `build` path still ends the page at
|
||||
the float until the service adopts the new entry point)
|
||||
(TeX instead keeps filling the current page before deferring the float,
|
||||
which remains a documented approximation), stacked bottom floats reserve `\floatsep`, and
|
||||
filling the current page exactly as TeX does and carries the float on
|
||||
`PageFragment::bottom_floats`; a float taller than a page still ends the
|
||||
page instead of looping, and `Engine::layout_paged` defers through the
|
||||
same entry point, so route-D pages place the float at the next page's
|
||||
bottom. Stacked bottom floats reserve `\floatsep`, and
|
||||
`\bottomfraction` caps the bottom float share, and a page whose top floats reach `\floatpagefraction` ships without body material. Route-D preview/PDF draw
|
||||
pages through `display_list_with_layout` so the body clears
|
||||
`\textfloatsep` / the bottom float area; the scrolling builder still
|
||||
@@ -357,7 +358,7 @@ M6 (partial): `DisplayItem::Image` becomes a PDF XObject; `DisplayItem::Link` be
|
||||
|
||||
M2 (partial): `Page::display_list_with_goal(page_goal)` places insertion material at `page_goal - insertion_height`, adds a 0.4pt separator above footnotes, splits oversized insertions at item boundaries, and paints top/bottom floats from their vertical `content` at the page edges; empty floats keep a dimension rectangle. Floats also size themselves from content, respect `text_fraction_percent`, respect `top_fraction_percent` (TeX `\topfraction`, default 70%) and `bottom_fraction_percent` (TeX `\bottomfraction`, default 30%), and can take a dedicated float page. The incremental edit path applies the same float fractions, float number limits, insertion-class limits and per-class `skip` rules as full layout. `Document::float_sep` (TeX `\floatsep`, default 12pt) reserves a gap between stacked floats of the same placement in both paths. `Document::text_float_sep` (TeX `\textfloatsep`, default 20pt) reserves exactly one gap between the float block and the body text on a page that has both, again in both paths; `Page::display_list_with_layout(page_goal, text_float_sep)` applies the same gap when rendering, while `display_list_with_goal` stays gap-free for callers that do not know the document settings. Float material at the top of a page starts at the top margin: `\topskip` is consumed only by body text, matching TeX float pages. A `[t]` float seen while a page is already being filled is installed at the top of that same page, exactly as TeX's `\@toplist` does: the page height gains the float plus one `\textfloatsep` (or `\floatsep` between stacked floats), so the body stops earlier instead of the float waiting for the next page; only a break before the float moves it forward. `FloatPlacement::Here` models `[h]` floats: they keep their place in the body flow with `Document::in_text_sep` (TeX `\intextsep`, default 12pt) above and below, move to the next page when they do not fit, and count against `\totalnumber`. The page stores the float's `gap_after` so the display list advances the flow by the same amount the builder reserved. A standalone `page::PageBuilder` implements TeX's candidate-breakpoint cost model (page badness from accumulated glue stretch/shrink plus break penalties, `\topskip` for the first box, `\maxdepth` depth shifting) with unit tests covering overfull avoidance, exact glue filling, forced and costed breaks, `\topskip`, `\maxdepth`, marks, insertion limits and top-float placement; every fragment records the penalty that broke it. `Engine::layout_paged` now builds pages through it for documents whose units are single vertical items (boxes, rules, paragraphs, math, haligns, glue, penalties, marks and insertion classes, including per-class limits and held-over material; held-over material starts with `Document::split_top_skip` (TeX `\splittopskip`, default 10pt) when the class capacity can also hold its first item, and `Document::split_max_depth` (TeX `\splitmaxdepth`, `\maxdimen` by default) clamps the first held box's depth while moving the excess into its height); `Document::max_depth` feeds TeX's `\maxdepth` into the builder, and among equal-cost breakpoints the candidate closest to the page goal wins, so an overfull page takes the least overfull break. Paragraphs also split across pages at line boundaries, so body material no longer overflows a page as one box. Paragraph boxes carry TeX depth: each node reports its last line's descent, so `\pagedepth` sees it, and the builder adds every box descent beyond `\maxdepth` to the page height while keeping the rest as page depth (TeX's per-box rule); route-D sources default `\maxdepth` to LaTeX's 5pt (0.5\topskip), and the page fixtures set it explicitly. A standalone `\smallskip`, `\medskip`, `\bigskip` or `\vskip` line between paragraphs becomes the following unit's `space_before` glue, carrying TeX's width plus its `plus`/`minus` parts (`\smallskip` is 3pt plus 1pt minus 1pt, and so on). Both page builders reserve it, the paged builder gets a real breakpoint with the glue's stretch and shrink, and edits preserve all three components; the command no longer leaks into the paragraph text. `Document::h_offset` and `v_offset` (TeX `\hoffset`/`\voffset`, default zero) feed `pdf::PageOrigin`, and `display_lists_to_pdf_with_paper` translates the page body without moving the sheet; a route-D fixture checks a 10pt/20pt shift against `pdftotext -bbox`, and
|
||||
preview pages apply the same offsets to their display list so the editor and
|
||||
PDF agree. `Document::paper_width` and `paper_height` (TeX `\paperwidth`/`\paperheight`, default US Letter) set the PDF MediaBox and the preview page box, and both route-D endpoints strip leading `\hoffset`/`\voffset`/`\paperwidth`/`\paperheight`/`\vsize`/`\textheight` dimension assignments from the source (preamble included) and apply them, and the same pass reads `\parindent`, `\parskip`, `\baselineskip`, `\leftskip`, `\rightskip`, `\emergencystretch`, `\tolerance`, `\pretolerance`, `\hangindent`/`\hangafter`, `\spaceskip`/`\xspaceskip` and `\frenchspacing` into the paragraph styles; body paragraphs are measured with CMR10/per-face TFM advances rather than fixed cells; `\textheight` wins over `\vsize` because LaTeX resets `\vsize` from `\textheight` on every page, and project previews reuse the same geometry parsing. `Engine::top_mark`, `first_mark` and `bot_mark` implement TeX's carried mark registers per class. `Document::output_routine` runs an interpreted `\output` program over the paged fragments (`output::OutputProgram`: `\shipout\box255`, `\relax`, `\message`, `\ifdim`, `\ifnum`, `\ifodd` and `\ifcase` over the page registers, now including `\pageno`, `\outputpenalty`, `\deadcycles` and `\maxdeadcycles`), dropping pages the routine does not ship. Assignments such as `\pageno=10`, `\deadcycles=0`, `\count2=2000`, `\dimen2=30pt`, `\skip2=6pt` and `\vsize=300pt` mutate the per-page context; `\advance`, `\multiply` and `\divide` adjust those registers in place (`\advance\pageno by 2`, `\divide\deadcycles by 2`, `\advance\dimen2 by 5pt`), and an arithmetic `\vsize` change retargets later pages exactly like an assignment; `\pageno` and the insertion registers keep their assigned values for later pages, since TeX's output registers are global; Route-D sources map a standalone `\newpage` or `\clearpage` onto `Document::page_breaks`, so the next paragraph starts on a fresh page (the paged builder turns each break into a `-10000` penalty node); for documents without insertions or floats the paged builder runs the routine after each page, so an assigned `\vsize` sets the goal of the pages the routine has not seen yet. The `\pagegoal` register handed to the output routine is reduced by the insertion space reserved on that page. Paged layouts record the node index that starts each page, so `Engine::edit` on a paged layout reuses the sealed prefix and rebuilds only from the edited unit's page onward; an interpreted `\output` routine still forces a full rebuild, and an edit whose replay would begin before the first insertion does too, because held-over material and dropped pages move page boundaries. The scrolling builder's float path remains to be ported. The oracle harness also compares whole pages: nine page fixtures (single-line paragraphs, `\parskip=6pt`, multi-line paragraphs split across pages, a 300pt `\textheight`, a 30pt `\topskip`, a forced `\newpage`, stretchy `\vskip` glue between paragraphs, footnotes raised with `\footnotetext`, and a `[t]` float that reserves its height plus `\textfloatsep` on the page it appears) assert the same page count and the same per-page alphanumeric text as pdfLaTeX at 345pt measure, 550pt `\vsize`, 12pt `\topskip` and 15pt `\parindent`.
|
||||
PDF agree. `Document::paper_width` and `paper_height` (TeX `\paperwidth`/`\paperheight`, default US Letter) set the PDF MediaBox and the preview page box, and both route-D endpoints strip leading `\hoffset`/`\voffset`/`\paperwidth`/`\paperheight`/`\vsize`/`\textheight` dimension assignments from the source (preamble included) and apply them, and the same pass reads `\parindent`, `\parskip`, `\baselineskip`, `\leftskip`, `\rightskip`, `\emergencystretch`, `\tolerance`, `\pretolerance`, `\hangindent`/`\hangafter`, `\spaceskip`/`\xspaceskip` and `\frenchspacing` into the paragraph styles; body paragraphs are measured with CMR10/per-face TFM advances rather than fixed cells; `\textheight` wins over `\vsize` because LaTeX resets `\vsize` from `\textheight` on every page, and project previews reuse the same geometry parsing. `Engine::top_mark`, `first_mark` and `bot_mark` implement TeX's carried mark registers per class. `Document::output_routine` runs an interpreted `\output` program over the paged fragments (`output::OutputProgram`: `\shipout\box255`, `\relax`, `\message`, `\ifdim`, `\ifnum`, `\ifodd` and `\ifcase` over the page registers, now including `\pageno`, `\outputpenalty`, `\deadcycles` and `\maxdeadcycles`), dropping pages the routine does not ship. Assignments such as `\pageno=10`, `\deadcycles=0`, `\count2=2000`, `\dimen2=30pt`, `\skip2=6pt` and `\vsize=300pt` mutate the per-page context; `\advance`, `\multiply` and `\divide` adjust those registers in place (`\advance\pageno by 2`, `\divide\deadcycles by 2`, `\advance\dimen2 by 5pt`), and an arithmetic `\vsize` change retargets later pages exactly like an assignment; `\pageno` and the insertion registers keep their assigned values for later pages, since TeX's output registers are global; Route-D sources map a standalone `\newpage` or `\clearpage` onto `Document::page_breaks`, so the next paragraph starts on a fresh page (the paged builder turns each break into a `-10000` penalty node); for documents without insertions or floats the paged builder runs the routine after each page, so an assigned `\vsize` sets the goal of the pages the routine has not seen yet. The `\pagegoal` register handed to the output routine is reduced by the insertion space reserved on that page. Paged layouts record the node index that starts each page, so `Engine::edit` on a paged layout reuses the sealed prefix and rebuilds only from the edited unit's page onward; an interpreted `\output` routine still forces a full rebuild, and an edit whose replay would begin before the first insertion does too, because held-over material and dropped pages move page boundaries. The scrolling builder's float path remains to be ported. The oracle harness also compares whole pages: ten page fixtures (single-line paragraphs, `\parskip=6pt`, multi-line paragraphs split across pages, a 300pt `\textheight`, a 30pt `\topskip`, a forced `\newpage`, stretchy `\vskip` glue between paragraphs, footnotes raised with `\footnotetext`, and a `[t]` float that reserves its height plus `\textfloatsep` on the page it appears, and `[b]` floats that fit or defer to the next page) assert the same page count and the same per-page alphanumeric text as pdfLaTeX at 345pt measure, 550pt `\vsize`, 12pt `\topskip` and 15pt `\parindent`.
|
||||
|
||||
M3 (partial): `Unit::halign` normalizes column widths, intercolumn gaps, row heights and cell text widths to scaled points; the painter uses 10pt glyphs in 12pt rows. Rules and spans are painted; tall tables split at row boundaries (`Halign::split_for_height`) with column widths preserved.
|
||||
|
||||
@@ -365,7 +366,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 306 unit tests plus seven route-D integration tests and thirty-three oracle fixtures. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 461 tests (306 route-D unit, 7 route-D integration, 33 oracle, 71 v1 integration, 26 server, 4 v1 unit, 1 core unit, 13 binary units), with none ignored. v1 remains the live server path.
|
||||
The crate currently has 306 unit tests plus seven route-D integration tests and thirty-four oracle fixtures. Workspace verification: `cargo fmt --all -- --check`; `cargo test --workspace --offline` runs 462 tests (306 route-D unit, 7 route-D integration, 34 oracle, 71 v1 integration, 26 server, 4 v1 unit, 1 core unit, 13 binary units), with none ignored. v1 remains the live server path.
|
||||
|
||||
### M0 incremental demo
|
||||
|
||||
|
||||
Reference in new issue
Block a user