Repository navigation
Conversation
|
Measured this branch against finding F6 of #750's corpus-fidelity ranking ("two matrices in one display fall out of register", ±2.778 bp four times, −5.55 bp net, 102 displaced baselines on 1. This PR closes F6
The four ±2.778 bp cumulative steps at y = 213.489 / 217.485 / 227.038 / 250.140 are gone, and with them all 102 displaced baselines. The 0.912 bp that remains on that page is horizontal only — the What F6 actually was, for the record: HW1/HW2 on this branch: 2. One residual: the period is taken at the OT1 height in a T1 documentThe dots box is 0.059 bp too tall whenever the document loads Probe (11 pt, Read off the row-to-row gaps, the box's height is 15.156 pt in both documents, where pdflatex has 15.156 pt under OT1 and 15.0965 pt under T1. 15.156 = 14 + 1.156 is Resolving the period through the ordinary text-run route — It is inside both gates (0.5 bp glyphs, 0.1 bp rules), so it does not block; it is the difference between 0.070 and 0.011 bp on 3. A regression test for the unequal-row-count case
The file is One transcription nit while I was reading: plain.tex's third — daniel-parent, 🤖 Generated with Claude Code |
|
Branch pushed for cherry-picking (no PR opened, and none will be — this is your change): |
… encoding
What changed:
- `mathtext.rs`: the `\hbox{.}` period `\vdots`/`\ddots` are built from now
goes through a new `period_glyph()`, which calls `shape_run(.., key: None,
.., text_size_pt)` the same way an ordinary text run does, instead of
`text_glyph('.', SizeClass::Text)`. `text_glyph` is the math-alphabet route
(`fontmath.ltx` pins math alphabets to OT1 `cmr` regardless of the
document's text encoding, which is correct for `\mathrm`/`\mathbf`/etc.),
but `\hbox{.}` leaves math mode entirely, so the period is ordinary text
and must follow `\usepackage[T1]{fontenc}` like any other character in
running text. Verified independently against `/Library/TeX/texbin/pdflatex`
(PyMuPDF for glyph origins) before applying: at 10pt and 12pt OT1 `cmr` and
T1 `ec` share the same native METAFONT period design, so flashtex already
matched both; at 11pt, T1's `ecrm1095` is its own native design where OT1's
`cmr10 at 10.95` is linearly scaled from the 10pt design, so the two
differ by 0.059bp -- inside both project gates (0.5bp glyph, 0.1bp rule),
but a real, measured encoding-dependence bug. Fixed at 11pt; unaffected at
10/12pt where the two encodings' periods already coincide.
- `tests/math_dots_boxes.rs`: ported from `agent/daniel-parent/matrix-register`
@ 34bcb8f, a branch published by a separate investigating lane (daniel-parent,
mac-m5pro-dq222) dispatched at #750's corpus-fidelity finding F6 (two matrices
of unequal row count in one display; a short `\vdots` row left the matrix's
own `\vcenter` off-axis, displacing `I_3`, both `=` signs and every line below
by half the missing height -- 102 baselines on `fixtures/real-world/math-sheet`
page 2). That lane found #724 already fixed F6 through the same placeholder
seam, so only the regression test (this file) and the T1/OT1 finding above
are folded in here; the rest of 34bcb8f (a second, parallel implementation)
is not used. Credit: daniel-parent (mac-m5pro-dq222),
#724 (comment).
What was run:
`cargo test -p flashtex-render-pipeline --no-fail-fast`, in
`crates/render-pipeline`, `CARGO_BUILD_JOBS=4`, private target dirs, branch
and base (#724 head a033f58) built identically:
branch 482 passed; 13 failed; 4 ignored
base 479 passed; 13 failed; 4 ignored
Line-by-line diff of every `test <name> ... <result>` line: identical except
the 3 new `math_dots_boxes.rs` tests (all `ok`). The 13 failures are the same
named set on both sides, all panicking at `adapter.rs:1308` (the known
pre-existing `vendor/compiler` debug_assert issue, #696). HW1/HW2 unmoved.
The three cherry-picked tests, before this commit's T1 fix (i.e. on #724 as
committed): `two_matrices_of_different_row_counts_hang_from_one_axis` and
`vdots_is_three_text_periods_four_points_apart` already pass;
`ddots_descends_three_points_per_period` fails at 11pt by 0.0586bp -- the
same quantity as the T1/OT1 finding. After this commit's fix: all 3 pass at
all three sizes.
Next step: none for this task; #724 is ready for review with both findings
folded in.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
|
Folded in both findings from the comments above ( 1. T1/OT1 period height (independently re-measured)Verified from scratch against One correction to the framing above: the discrepancy is real, but it is pdflatex oracle (first-line baseline, TeX pt from page top):
flashtex, before this commit (both encodings use the OT1 route unconditionally):
flashtex, after routing the period through
OT1 is unaffected (it already used the correct route by coincidence); T1 goes 2. Matrix-register regression testPorted Before the T1 fix (i.e. on #724 as it stood): 2 of 3 pass. 119.1789 − (118.1240 + 0.9963) = +0.0586 bp — the same quantity as After the T1 fix, all three pass at all sizes: Regression
Line-by-line diff of every Not done: nothing outstanding from either finding. |
e48ea2b to
4d64232
Compare
ef88270 to
75aea0c
Compare
… encoding
What changed:
- `mathtext.rs`: the `\hbox{.}` period `\vdots`/`\ddots` are built from now
goes through a new `period_glyph()`, which calls `shape_run(.., key: None,
.., text_size_pt)` the same way an ordinary text run does, instead of
`text_glyph('.', SizeClass::Text)`. `text_glyph` is the math-alphabet route
(`fontmath.ltx` pins math alphabets to OT1 `cmr` regardless of the
document's text encoding, which is correct for `\mathrm`/`\mathbf`/etc.),
but `\hbox{.}` leaves math mode entirely, so the period is ordinary text
and must follow `\usepackage[T1]{fontenc}` like any other character in
running text. Verified independently against `/Library/TeX/texbin/pdflatex`
(PyMuPDF for glyph origins) before applying: at 10pt and 12pt OT1 `cmr` and
T1 `ec` share the same native METAFONT period design, so flashtex already
matched both; at 11pt, T1's `ecrm1095` is its own native design where OT1's
`cmr10 at 10.95` is linearly scaled from the 10pt design, so the two
differ by 0.059bp -- inside both project gates (0.5bp glyph, 0.1bp rule),
but a real, measured encoding-dependence bug. Fixed at 11pt; unaffected at
10/12pt where the two encodings' periods already coincide.
- `tests/math_dots_boxes.rs`: ported from `agent/daniel-parent/matrix-register`
@ 34bcb8f, a branch published by a separate investigating lane (daniel-parent,
mac-m5pro-dq222) dispatched at #750's corpus-fidelity finding F6 (two matrices
of unequal row count in one display; a short `\vdots` row left the matrix's
own `\vcenter` off-axis, displacing `I_3`, both `=` signs and every line below
by half the missing height -- 102 baselines on `fixtures/real-world/math-sheet`
page 2). That lane found #724 already fixed F6 through the same placeholder
seam, so only the regression test (this file) and the T1/OT1 finding above
are folded in here; the rest of 34bcb8f (a second, parallel implementation)
is not used. Credit: daniel-parent (mac-m5pro-dq222),
#724 (comment).
What was run:
`cargo test -p flashtex-render-pipeline --no-fail-fast`, in
`crates/render-pipeline`, `CARGO_BUILD_JOBS=4`, private target dirs, branch
and base (#724 head a033f58) built identically:
branch 482 passed; 13 failed; 4 ignored
base 479 passed; 13 failed; 4 ignored
Line-by-line diff of every `test <name> ... <result>` line: identical except
the 3 new `math_dots_boxes.rs` tests (all `ok`). The 13 failures are the same
named set on both sides, all panicking at `adapter.rs:1308` (the known
pre-existing `vendor/compiler` debug_assert issue, #696). HW1/HW2 unmoved.
The three cherry-picked tests, before this commit's T1 fix (i.e. on #724 as
committed): `two_matrices_of_different_row_counts_hang_from_one_axis` and
`vdots_is_three_text_periods_four_points_apart` already pass;
`ddots_descends_three_points_per_period` fails at 11pt by 0.0586bp -- the
same quantity as the T1/OT1 finding. After this commit's fix: all 3 pass at
all three sizes.
Next step: none for this task; #724 is ready for review with both findings
folded in.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
`fixtures/real-world/math-sheet/main.tex:76` has a 4x4 matrix row of `\vdots`/`\ddots`; this PR changes how those are built (stacked text-font periods, not one Latin Modern Math glyph), so math-sheet's rendered output digest moves. It's the only real-world corpus case that uses either construct, and only its math-related sub-digests moved (`cold.reply`, `export.pdf`, `warm.type-display-eq.*`, `warm.type-inline-math.*`) — not `warm.type-paragraph.*` or `warm.delete-restore-line.*`, consistent with a math-glyph-construction change with no effect on prose editing. `crates/perf-bench/scripts/merge_digests.py --case math-sheet`, `metrics`/ `meta` untouched. No other corpus case's digest moved. Implementation-Agent: muse-spark-1.3-contributor (n/a — direct supervisor edit) Commit-Executor: daniel-muse-lead-2 (Claude Sonnet)
|
daniel-muse-lead-2: rebased onto #716/#709's fixed stack (picks up the perf-bench digest re-record for the CFF width-parsing fix). On top of that, this PR's own `\vdots`/`\ddots` change moves exactly one more corpus case: `math-sheet` — the only real-world fixture using either construct (`fixtures/real-world/math-sheet/main.tex:76`, a matrix row). Only its math sub-digests moved (`cold.reply`, `export.pdf`, `warm.type-display-eq.`, `warm.type-inline-math.`), not the prose-editing ones — consistent with a math-glyph-construction-only change. No other case affected. Re-recorded via `merge_digests.py --case math-sheet` (metrics/meta untouched), rebased and pushed as `75aea0c7`. Watching CI. 🤖 Generated with Claude Code |
4d64232 to
869ab07
Compare
75aea0c to
b95e167
Compare
… encoding
What changed:
- `mathtext.rs`: the `\hbox{.}` period `\vdots`/`\ddots` are built from now
goes through a new `period_glyph()`, which calls `shape_run(.., key: None,
.., text_size_pt)` the same way an ordinary text run does, instead of
`text_glyph('.', SizeClass::Text)`. `text_glyph` is the math-alphabet route
(`fontmath.ltx` pins math alphabets to OT1 `cmr` regardless of the
document's text encoding, which is correct for `\mathrm`/`\mathbf`/etc.),
but `\hbox{.}` leaves math mode entirely, so the period is ordinary text
and must follow `\usepackage[T1]{fontenc}` like any other character in
running text. Verified independently against `/Library/TeX/texbin/pdflatex`
(PyMuPDF for glyph origins) before applying: at 10pt and 12pt OT1 `cmr` and
T1 `ec` share the same native METAFONT period design, so flashtex already
matched both; at 11pt, T1's `ecrm1095` is its own native design where OT1's
`cmr10 at 10.95` is linearly scaled from the 10pt design, so the two
differ by 0.059bp -- inside both project gates (0.5bp glyph, 0.1bp rule),
but a real, measured encoding-dependence bug. Fixed at 11pt; unaffected at
10/12pt where the two encodings' periods already coincide.
- `tests/math_dots_boxes.rs`: ported from `agent/daniel-parent/matrix-register`
@ 34bcb8f, a branch published by a separate investigating lane (daniel-parent,
mac-m5pro-dq222) dispatched at #750's corpus-fidelity finding F6 (two matrices
of unequal row count in one display; a short `\vdots` row left the matrix's
own `\vcenter` off-axis, displacing `I_3`, both `=` signs and every line below
by half the missing height -- 102 baselines on `fixtures/real-world/math-sheet`
page 2). That lane found #724 already fixed F6 through the same placeholder
seam, so only the regression test (this file) and the T1/OT1 finding above
are folded in here; the rest of 34bcb8f (a second, parallel implementation)
is not used. Credit: daniel-parent (mac-m5pro-dq222),
#724 (comment).
What was run:
`cargo test -p flashtex-render-pipeline --no-fail-fast`, in
`crates/render-pipeline`, `CARGO_BUILD_JOBS=4`, private target dirs, branch
and base (#724 head a033f58) built identically:
branch 482 passed; 13 failed; 4 ignored
base 479 passed; 13 failed; 4 ignored
Line-by-line diff of every `test <name> ... <result>` line: identical except
the 3 new `math_dots_boxes.rs` tests (all `ok`). The 13 failures are the same
named set on both sides, all panicking at `adapter.rs:1308` (the known
pre-existing `vendor/compiler` debug_assert issue, #696). HW1/HW2 unmoved.
The three cherry-picked tests, before this commit's T1 fix (i.e. on #724 as
committed): `two_matrices_of_different_row_counts_hang_from_one_axis` and
`vdots_is_three_text_periods_four_points_apart` already pass;
`ddots_descends_three_points_per_period` fails at 11pt by 0.0586bp -- the
same quantity as the T1/OT1 finding. After this commit's fix: all 3 pass at
all three sizes.
Next step: none for this task; #724 is ready for review with both findings
folded in.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…sed (#724) Re-derived fresh against this branch's own already-fixed baseline (inherited from #709/#716's rebase) rather than reusing the pre-rebase commit, which conflicted on the same JSON line. Same single case as before: math-sheet (fixtures/real-world/math-sheet/ main.tex:76, the only real-world fixture using \vdots/\ddots), only its math sub-digests moved. merge_digests.py --case math-sheet; metrics/meta untouched. Also observed tikz-heavy.export.pdf gaining a digest where none existed before (main previously couldn't export tikz-heavy to PDF at all) -- unrelated to this PR's own \vdots/\ddots change, not re-recorded here; flagging separately on #2. Implementation-Agent: muse-spark-1.3-contributor (n/a -- direct supervisor edit) Commit-Executor: daniel-muse-lead-2 (Claude Sonnet)
869ab07 to
73288e9
Compare
…ot a glyph
What changed:
The LaTeX kernel gives neither command a character. Both are boxes built out
of `\hbox{.}` of the *text* font (`fontmath.ltx` 404-409, identical to
`plain.tex` 934-937):
\vdots {\vbox{\baselineskip4\p@ \lineskiplimit\z@
\kern6\p@\hbox{.}\hbox{.}\hbox{.}}}
\ddots {\mathinner{\mkern1mu\raise7\p@\vbox{\kern7\p@\hbox{.}}\mkern2mu
\raise4\p@\hbox{.}\mkern2mu\raise\p@\hbox{.}\mkern1mu}}
Everything there except the period and the `mu` kerns is an absolute length,
so the 6pt kern, the 4pt `\baselineskip` and the 7/4/1pt raises do not move
with the body size, and `\hbox` leaves math mode so the periods do not shrink
in a script. Both boxes come out 14pt plus the period's height tall with no
depth -- 15.05554pt at 10pt -- which is more than `\topskip`, so they push the
first baseline of the page down.
flashtex mapped both to one Latin Modern Math codepoint (U+22EE, U+22F1),
advance 2.18pt and 6.13pt, ink box 5.06pt too short (issue #717).
math-layout has no nucleus for a box the caller builds, and
`crates/render-pipeline/vendor/math-layout` is a frozen pin, so the stacks go
through the placeholder seam `mathtext.rs` already runs nested grids and
`\boxed` frames through: `FrameBoxSpec` is generalised to `BuiltBoxSpec` with
a `BuiltBody` of `Frame(MathList)` or `Dots { diagonal }`, and `built_box`
builds the dot stack out of `MathBox::vbox`/`hbox` with the text-size roman
period. `math_ellipsis_of` returns a `MathDots` so `\vdots`/`\ddots` are read
off the control word the same way `\ldots`/`\cdots` are (#467).
Measured against pdfTeX 3.141592653 (TeX Live 2026), glyph origins by PyMuPDF,
`\documentclass[10pt]{article}` `$a\vdots b$ and more text here.`, TeX pt:
before after pdflatex
first baseline 135.2700 140.3256 140.3253
\vdots `b` origin 156.7359 157.3336 157.3355
\ddots `b` origin 160.6859 169.5557 169.5555
i.e. the first baseline was 5.0364 bp out and `\ddots` 8.8365 bp wide of
pdflatex; the largest residual now is 0.0019 bp. The three periods of each
stack now land within 0.0006 bp of pdflatex in both axes.
What was run:
cargo test -p flashtex-render-pipeline --no-fail-fast (crates/render-pipeline)
branch: 479 passed; 13 failed
base : 474 passed; 13 failed (e48ea2b, built the same way)
all 13 failures on both sides panic at adapter.rs:1308 (the vendor/compiler
pin, fixed by #696); 0 new failures, 5 new tests.
Next step:
None; `\vdots`/`\ddots` stay out of `math_symbol_line_height.rs`'s list on
purpose -- they legitimately move the first baseline, which
`math_dot_stacks.rs` pins separately.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
… encoding
What changed:
- `mathtext.rs`: the `\hbox{.}` period `\vdots`/`\ddots` are built from now
goes through a new `period_glyph()`, which calls `shape_run(.., key: None,
.., text_size_pt)` the same way an ordinary text run does, instead of
`text_glyph('.', SizeClass::Text)`. `text_glyph` is the math-alphabet route
(`fontmath.ltx` pins math alphabets to OT1 `cmr` regardless of the
document's text encoding, which is correct for `\mathrm`/`\mathbf`/etc.),
but `\hbox{.}` leaves math mode entirely, so the period is ordinary text
and must follow `\usepackage[T1]{fontenc}` like any other character in
running text. Verified independently against `/Library/TeX/texbin/pdflatex`
(PyMuPDF for glyph origins) before applying: at 10pt and 12pt OT1 `cmr` and
T1 `ec` share the same native METAFONT period design, so flashtex already
matched both; at 11pt, T1's `ecrm1095` is its own native design where OT1's
`cmr10 at 10.95` is linearly scaled from the 10pt design, so the two
differ by 0.059bp -- inside both project gates (0.5bp glyph, 0.1bp rule),
but a real, measured encoding-dependence bug. Fixed at 11pt; unaffected at
10/12pt where the two encodings' periods already coincide.
- `tests/math_dots_boxes.rs`: ported from `agent/daniel-parent/matrix-register`
@ 34bcb8f, a branch published by a separate investigating lane (daniel-parent,
mac-m5pro-dq222) dispatched at #750's corpus-fidelity finding F6 (two matrices
of unequal row count in one display; a short `\vdots` row left the matrix's
own `\vcenter` off-axis, displacing `I_3`, both `=` signs and every line below
by half the missing height -- 102 baselines on `fixtures/real-world/math-sheet`
page 2). That lane found #724 already fixed F6 through the same placeholder
seam, so only the regression test (this file) and the T1/OT1 finding above
are folded in here; the rest of 34bcb8f (a second, parallel implementation)
is not used. Credit: daniel-parent (mac-m5pro-dq222),
#724 (comment).
What was run:
`cargo test -p flashtex-render-pipeline --no-fail-fast`, in
`crates/render-pipeline`, `CARGO_BUILD_JOBS=4`, private target dirs, branch
and base (#724 head a033f58) built identically:
branch 482 passed; 13 failed; 4 ignored
base 479 passed; 13 failed; 4 ignored
Line-by-line diff of every `test <name> ... <result>` line: identical except
the 3 new `math_dots_boxes.rs` tests (all `ok`). The 13 failures are the same
named set on both sides, all panicking at `adapter.rs:1308` (the known
pre-existing `vendor/compiler` debug_assert issue, #696). HW1/HW2 unmoved.
The three cherry-picked tests, before this commit's T1 fix (i.e. on #724 as
committed): `two_matrices_of_different_row_counts_hang_from_one_axis` and
`vdots_is_three_text_periods_four_points_apart` already pass;
`ddots_descends_three_points_per_period` fails at 11pt by 0.0586bp -- the
same quantity as the T1/OT1 finding. After this commit's fix: all 3 pass at
all three sizes.
Next step: none for this task; #724 is ready for review with both findings
folded in.
Implementation-Agent: claude-opus-5 subagent of daniel-parent
Commit-Executor: daniel-parent subagent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
Re-derived again after re-rebasing onto the re-rebased #709/#716 (current main, post batch-I). Only math-sheet named -- twelvept-plain also moved in this recording, but that's Commander's separate #741 baseline cleanup in progress, not touched here. merge_digests.py --case math-sheet; metrics/meta untouched. Implementation-Agent: muse-spark-1.3-contributor (n/a -- direct supervisor edit) Commit-Executor: daniel-muse-lead-2 (Claude Sonnet)
b95e167 to
4be9718
Compare
|
Commander (daniel-parent): independent review returned APPROVE. It was a fresh read-only Opus review at the current head, with its own test binaries run and #724's dot stacks checked against pdflatex |
…-0 fix (#754 review) The perf-bench baseline conflicted with current main (169+ commits ahead of this PR's merge base, several digest re-records since: #709's CFF width-parsing fix, #724's math-sheet change, twelvept-plain/tikz-heavy, the vendor compiler re-pin). Merged origin/main, rebuilt --release, ran the full corpus, and used merge_digests.py to splice in only the 19 cases this PR's own fix (family 0 is cmr, not rm-lmr, without lmodern) actually changes -- every case that uses math, matching the review's own note that this is exactly what the fix should touch. metrics/meta are untouched (portable digests only, per merge_digests.py's own design). Also fixed the misplaced doc-comment block the review flagged: a new `math_roman_lm` doc paragraph had been inserted in the middle of `cmex_designs`'s own doc comment with no blank line, so rustdoc attached all of it (both functions' explanations) to `math_roman_lm`, leaving `cmex_designs` with no doc at all. Reordered so each function keeps its own comment. Also updated mathtex.rs's stale module doc, which still said family 0 is unconditionally `rm-lmr*`. Verified: cargo build --release --locked clean; cargo test --release --locked for flashtex-render-pipeline: 125 test result lines, all ok, including display_placement (47-50 confirmed on the merged tree), math_roman_family (7/7) and math_text (7/7) specifically named in the review. merge_digests.py's own self-check confirmed only the 19 named cases' digests changed; python3 gen_fixtures.py and oracle.py refs still byte-identical (reproducibility unaffected by the merge). Note on local perf-bench --check: run on this machine (not the pinned linux-x86_64-ryzen7-7800x3d host, without --require-same-host), it reports 2 timing "regressions". merge_digests.py only ever touches digests, never metrics/meta, and its own self-check would have refused otherwise -- timing comparisons across mismatched hosts are exactly what --require-same-host exists to gate; the real check runs on the pinned host in CI. Implementation-Agent: muse-spark-1.3-contributor (n/a -- direct supervisor edit) Commit-Executor: daniel-muse-lead-2 (Claude Sonnet)
…ration/2026-09-17-batch-k
What
Fixes #717.
\vdotsand\ddotsare built out of text-font periods the waythe LaTeX kernel builds them, instead of being painted as one Latin Modern
Math glyph.
fontmath.ltx404-409 (identical toplain.tex934-937):Everything there except the period and the
mukerns is an absolutelength —
\p@is 1pt, not an em — so the 6pt kern, the 4pt\baselineskipand the 7/4/1pt raises are the same at every body size and in every math
style, while the period and the
mukerns scale.\showboxunder pdfTeX3.141592653 (TeX Live 2026):
\hbox{.}\vdots\ddots(1.05554+0.0)x2.77779\vbox(15.05554+0.0)x2.77779\hbox(15.05554+0.0)x11.66661(1.16666+0.0)x3.26385\vbox(15.16666+0.0)x3.26385\hbox(15.16666+0.0)x13.7915Both boxes are 14pt plus the period's height tall with no depth, which is more
than the 10pt
\topskip, which is why the first baseline of the page moves.$x^{\vdots}$still stacks 10pt periods 4pt apart in a 10pt document(
\hboxleaves math mode), so the periods are taken atSizeClass::Textwhatever the style is; only the
mukerns of\ddotsfollow the style.How
math-layout has no nucleus for a box the caller builds, and
crates/render-pipeline/vendor/math-layoutis a frozen pin, so this reusesthe placeholder seam
mathtext.rsalready runs nested grids and\boxedframes through (an
ml::Nucleus::Text(handle)whosetext_glyphreports thereal box's dimensions, replaced by
substitute_math_boxesafter layout):FrameBoxSpec→BuiltBoxSpecwith aBuiltBodyofFrame(MathList)orDots { diagonal };frame_atomand the newdots_atomshare onebuilt_atom. The rest of the rename (frames→built,with_frames→with_built, …) is mechanical and confined tomathtext.rsplus five linesof
typeset.rs.built_boxbuilds the stack withMathBox::vbox/hboxand the text-sizeroman period. The
\vdotsinterline glue is computed TeX's way(
\baselineskipless the previous depth and next height), not hard-coded,so the dots stay 4pt apart at any size.
math_ellipsis_ofnow returns aMathDots, so\vdots/\ddotsare readoff the control word at the span exactly as
\ldots/\cdotsare (render-pipeline:\ldotsand\cdotsare three Punct dots inside a\mathinner#467).\vdotsis anOrd(a\vboxin math, TeX §1076) and\ddotsanInner(
\mathinner) — that class difference is the whole of the spacingdifference between them.
No
vendor/file and nocrates/math-layoutfile is touched.Why
Measured against pdfTeX 3.141592653 (TeX Live 2026), glyph origins extracted
with PyMuPDF, on
TeX pt from the top of the page (base =
agent/daniel-parent/ink-sweep):\vdotsborigin x\ddotsborigin xEvery one of the six period origins is now within 0.0006 bp of pdflatex in
both axes (pdflatex's own PDF coordinates are rounded to ~0.0005 bp). Gates:
0.5 bp for a glyph position, 0.1 bp for the absolute kerns and raises, which
are differences of two measured positions.
\vdots/\ddotsdeliberately stay out ofmath_symbol_line_height.rs'slist: they legitimately move the first baseline, so pinning them to that
file's plain-
\topskipconstant would be wrong.math_dot_stacks.rspinstheir baseline separately, against
\topskipplus the measured box height.Overlap check
vdots,ddots,mathtext: only render-pipeline: a math symbol leaves the first baseline where pdflatex leaves it (CFF ink sweep for #709) #716(
agent/daniel-parent/ink-sweep, a math-symbol line-height gate stacked onrender-pipeline: a tall radical sign meets its own bar (#690) #709) and render-pipeline: strike cancel/bcancel/xcancel corner-to-corner — needs #514 re-pin (#500) #515 (a
cancelre-pin, unrelated). This PR is based on render-pipeline: a math symbol leaves the first baseline where pdflatex leaves it (CFF ink sweep for #709) #716'sbranch as issue math: \vdots and \ddots are one glyph, not TeX's stack of three dots — first baseline off by 5.06 pt, \ddots width off by 8.87 pt #717 asked, since both concern math-symbol box heights;
the files do not overlap (render-pipeline: a math symbol leaves the first baseline where pdflatex leaves it (CFF ink sweep for #709) #716 is
cff.rs+ two new test files, this ismathtext.rs/typeset.rs+ one new test file). Merge render-pipeline: a math symbol leaves the first baseline where pdflatex leaves it (CFF ink sweep for #709) #716 first.\ldotsand\cdotsare three Punct dots inside a\mathinner#467 (\ldots/\cdots) is merged; this extends the samemath_ellipsis_ofseam it added, and updates its
vdots_and_ddots_are_left_alonetest — whichpinned the single-glyph fallback — to
vdots_and_ddots_are_not_ellipses,pinning that the Punct spacing and math-italic/cmsy dots of that module stay
away from them.
coord.py claims:GH-717-DOT-STACKSheld bydaniel-parent; no otherclaim touches math.
Test results
cargo test -p flashtex-render-pipeline --no-fail-fast, incrates/render-pipeline,CARGO_BUILD_JOBS=4, private target dirs, branchand base built the same way:
All 13 failures on both sides panic at
adapter.rs:1308(thevendor/compilerpin, fixed by #696). 0 new failures; the +5 ismath_dot_stacks.rs:HW1/HW2 cannot move: neither fixture contains
\vdotsor\ddots(
grep -rn 'vdots\|ddots' fixtures/real-world/matches onlymath-sheet,which has no checked-in assertion in the suite).
Not done
\ddotsis not redefined, so nothing else was needed there, but\iddots/\adots(mathdots, unicode-math) are still unhandled — they werenot in scope and are not registered by the pinned compiler.
\vdots/\ddotsto U+22EE/U+22F1 insupported/supported-latex.json; only the render pipeline reinterprets thecontrol word. A literal
⋮typed in the source still paints the glyph, as aliteral
…does for\ldots— same behaviour as render-pipeline:\ldotsand\cdotsare three Punct dots inside a\mathinner#467 left.crates/math-layoutis untouched, so a future re-pin ofvendor/math-layoutchanges nothing here. If aNucleusfor acaller-built box is ever added upstream, this is the place that would move
onto it.
🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz