Repository navigation
render-pipeline fixtures: listings oracle material and TL2025 references - #248
Merged
Merged
Conversation
Recovers the sixteen `listings` fixtures (16..31) and the two oracle scripts from the unmerged PR #145 branch `agent/kabir-claude/verbatim-fidelity` (5a8d626), byte-identical, and adds `reference/*.json` regenerated with the local TeX Live 2025 pdflatex. Data only: no `.rs` changes, no engine code. PR #145's `listings.rs` was built on a font model main has since replaced and is deliberately not carried over; this is the oracle half so the engine can be rebuilt against real numbers. All sixteen compiled unmodified. None of them uses `\lstinputlisting`, so no `.c`/`.py`/`.java`/`.txt` data files are needed. Cross-check: the TL2025 references reproduce PR #145's TeX Live 2026 (MacTeX) references for all sixteen to <= 0.001 bp, with identical glyph text, font names, sizes, glyph counts and rule rectangles. reference engine: pdfTeX 3.141592653-2.6-1.40.27 (TeX Live 2025/nixos.org) invocation: pdflatex -interaction=batchmode, two passes, SOURCE_DATE_EPOCH=0 FORCE_SOURCE_DATE=1 Note for reviewers: `fixtures/verbatim/` did not exist on main at eea975c -- the sixteen non-listings fixtures (01..15, 32) and their references are still only on the unmerged branches `agent/kabir-claude/verbatim-fidelity` and `agent/kabir-claude/literal-verbatim-nfss`, so this commit adds the directory. `make_fixtures.py` still generates all thirty-two; running it here would create the sixteen that are not part of this change. Implementation-Agent: Claude Opus 5 (engine-engineer, linux-primary worktree) Commit-Executor: Claude Opus 5 (direct git, Cursor usage limit fallback) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
GoKubar
marked this pull request as ready for review
September 14, 2026 01:35
GoKubar
added a commit
that referenced
this pull request
Sep 14, 2026
…s for them main has moved on since `eea975c3`, and two of its merges matter here: * **#248** committed the 16 listings fixtures (`16`..`31`) with TL2025 references. `every_committed_fixture_is_accounted_for` refuses a fixture that is neither gated nor listed with a reason, so without this the test this branch introduces would fail the moment it reached main. The 15 new ones go into a separate `LISTINGS_NOT_YET`, each naming the piece of listings' geometry it needs -- the `[c]fixed` slack rule, the `\llap` number gutter, `\lst@frameInit`'s rule rectangles, `xleftmargin` expanded in the basicstyle font, real tab stops, `breakindent` -- taken from the measured specification rather than written as placeholders. Two of them record findings worth not losing: fixture 19's reference is byte-identical to 18's, so it does not actually discriminate `fullflexible` from `flexible`; and fixture 25 contains no ligature-forming pair at all, so it cannot have been testing what #145 thought it was. * **#235** made a verbatim tab one space in the compiler, which is the same conclusion this branch's `literal_command_body` reached from the other side. Nothing to reconcile. `28-lstinline`'s fixture and reference were added by both sides. main's reference is kept: it was generated with this host's TeX Live 2025, and the cross-check in this branch's test doc is exactly the evidence that the two distributions agree on this material to 0.001 bp. The one source conflict is `adapter.rs`, where main added `kern_amount_matches` and this branch added `literal_command_end`/ `literal_command_body` at the same place; both are kept. main's version is also the pattern this lane needs later: it gates a `text_kern` signature change behind a `compiler-package-gating` feature so the crate builds against the pinned mirror either way. `LiteralBody::starred`'s doc comment loses the claim that the bundled OpenType Latin Modern has no `visiblespace` glyph. It has one, at U+2423, named `uni2423` in the CFF charset -- which is what the rest of this branch is about -- and the field is no longer dead. `crates/render-pipeline` `cargo test --release --no-fail-fast` with the bundled fonts configured: **217 passed / 0 failed / 1 ignored**, against a `git archive` control of `origin/main` at **213 / 0 / 1**. The +4 are this branch's own tests; no other test changed state. Implementation-Agent: engine-engineer (linux-primary, NixOS PC) Commit-Executor: engine-engineer via git (Cursor usage limit fallback) Co-authored-by: GoKubar <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
This was referenced Sep 14, 2026
GoKubar
added a commit
that referenced
this pull request
Sep 14, 2026
The listings engine branched from PR #262 and so did not carry #268 (`\@verbatim`'s `\trivlist` inside a list) or #271 (microtype's verbatim patch, and `\frenchspacing` inside `\verb`). Merging them makes the stack linear -- #262 -> #268 -> #271 -> this -- and moves both of their fixtures into `GATED` alongside the seventeen listings ones. The only conflict is `tests/verbatim_oracle.rs`'s three lists, resolved by taking every name both sides gate: * `GATED` 32 = the 15 verbatim/`\verb` fixtures (`10-verbatim-itemize` and `32-verbatim-microtype` from this merge) plus the 17 listings ones. * `NOT_YET` 2: `15-verbatim-small` keeps the `\showoutput` measurement from #271, `25-lst-java-roman` keeps the OT1-slot measurement from the listings lane. * `LISTINGS_NOT_YET`, added in #262 so `main`'s freshly merged #248 fixtures were accounted for rather than failing the accounting test, is gone: every name in it is now either gated or in `NOT_YET`. One fixture got better from the merge rather than from either side alone. **`28-lstinline` goes from 0.062 bp to 0.005 bp**: #271 carries the fix for the interword space that was being dropped after an inline `\verb` or `\lstinline` (`after_control_word` stayed set even though `prev_end` had already advanced past the closing delimiter), and that space is in this fixture's first line. Gates, control-compared against a `git archive` checkout of the listings branch's own base `b7a1e530`, built and measured identically: | gate | control | merged | |---|---|---| | `crates/render-pipeline` `cargo test --release --no-fail-fast` | 217 / 0 / 1 | 229 / 0 / 1 | | amsmath oracle corpus | -- | 59/59 within 0.5 bp | | real-world corpus, 22 fixtures x 2 producers | 739 diagnostics | 724 | | real-world corpus status and page count | -- | identical, every entry | | real-world corpus font-substitution diagnostics | 0 | 0 | | HW1 / HW2 render | -- | 3 / 3 pages, 0 errors, 0 overfull | | verbatim + listings fixtures matching pdfLaTeX | 30 of 34 | **32 of 34** | The +12 are the listings lane's unit tests. The two corpus entries that differ are the ones #271 already documents (`twelvept-plain` and `listings-manual`, both losing `unsupported_block` limitations; the three `overfull_hbox` in `listings-manual` are pdfLaTeX's own behaviour minus `breaklines` inside `\lstinline`). The listings engine itself adds no corpus diagnostic in either direction. Implementation-Agent: engine-engineer (linux-primary, NixOS PC) Commit-Executor: engine-engineer via git (Cursor usage limit fallback) Co-authored-by: GoKubar <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Data only — no
.rschanges. This is the oracle half of thelistingsrebuild, so the engine work can stack on top of it.What is here
listingsfixtures16-lst-default.tex…31-lst-t1-lmodern-bold.tex(this includes28-lstinline.tex), recovered byte-identical from the unmerged PR render-pipeline: verbatim, verb and listings as LaTeX sets them #145 branchagent/kabir-claude/verbatim-fidelity(5a8d626d).fixtures/verbatim/oracle.pyandfixtures/verbatim/make_fixtures.pyfrom the same branch, unmodified.fixtures/verbatim/reference/*.jsonfor those sixteen, generated with the local TeX Live 2025pdflatex.All sixteen compiled unmodified — no fixture needed a fix. None of them uses
\lstinputlisting, so no.c/.py/.java/.txtdata files are required.Cross-check against PR #145's MacTeX references
For all sixteen fixtures the TL2025 references reproduce PR #145's TeX Live 2026 references with
max |Δx|, |Δy| ≤ 0.001 bp,max |Δ| = 0.0000).Reviewer note —
fixtures/verbatim/was not on maincrates/render-pipeline/fixtures/verbatim/does not exist atorigin/main(eea975c3);git ls-tree -r origin/main | grep verbatimreturns nothing. The sixteen non-listingsfixtures (01…15,32) and their references live only on the unmerged branchesagent/kabir-claude/verbatim-fidelityandagent/kabir-claude/literal-verbatim-nfss. This PR therefore creates the directory and contains only thelistingshalf, as scoped.Consequently
make_fixtures.pystill generates all thirty-two fixtures; running it in this tree would create the sixteen that are not part of this change.crates/render-pipeline/tests/verbatim_oracle.rsdoes not exist on main either, so there is noevery_committed_fixture_is_accounted_forgate to feed and noNOT_YETlist to extend here.