Repository navigation
compiler: kernel text symbols, \TeX/\LaTeX logos, \rule and text-mode kerns (oracle-exact) - #128
Merged
Merged
Conversation
…(WIP) Kernel text symbols (\AA \ss \S \copyright ...) resolve per font encoding through tex-text-encoding; \TeX/\LaTeX/\LaTeXe carry the latex.ltx construction as Inline::Logo; \rule is Inline::Rule with scan_dimen arithmetic from tex-boxes; \, \! \: \> \; \thinspace \enspace ... are Inline::Kern. Supported inventory regenerated. Implementation-Agent: Claude Opus 5 (subagent kabir-claude text logos rule symbols, mac-m5pro-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
\textbackslash \textasciitilde \textasciicircum \textunderscore \textbar \textless \textgreater \textbraceleft \textbraceright resolve per encoding through tex-text-encoding's kernel defaults; varepsilon_list gives layouts \LaTeXe's subscript body. Implementation-Agent: Claude Opus 5 (subagent kabir-claude text logos rule symbols, mac-m5pro-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
Nucleus::Rule lays out latex.ltx's \rule box in formulas. The oracle
(tests/oracle/text_builtins: generate.py, expected.json, 28 TL2026 TFMs)
records \showbox node trees from MacTeX pdflatex for 141 fixtures: logos
at 10/11/12pt, bold/sans/italic/\Large/\small, OT1 and T1; \rule
variants incl. cv's \rule{\textwidth}{0.6pt}, struts, negative widths,
math; text kerns/glue; every text symbol in OT1 and T1. Cargo tests
compare to the scaled point and never run TeX.
Implementation-Agent: Claude Opus 5 (subagent kabir-claude text logos rule symbols, mac-m5pro-kabir)
Commit-Executor: Claude Code direct Git
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
…ymbols
Conflicts resolved in crates/compiler/src/{incremental,math}.rs (kept main's
Nucleus::Space { .. }, text_space and ExtArrow alongside Nucleus::Rule and
varepsilon_list); generated supported inventory and docs regenerated.
Implementation-Agent: Claude Opus 5 (subagent kabir-claude text logos rule symbols, mac-m5pro-kabir)
Commit-Executor: Claude Code direct Git
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
This was referenced Sep 13, 2026
Member
|
Merged to main via integration/2026-09-13j (Commander). |
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.
Compiler-only PR (no
vendor/changes). The render-pipeline mapping is the stacked PR onagent/kabir-claude/text-logos-rule-symbols-pipeline; it builds after the Commander re-pinsvendor/compiler.What
\AA \aa \AE \ae \OE \oe \O \o \L \l \ss \SS \TH \th \DH \dh \DJ \dj \NG \ng \IJ \ij \i \j \S \P \dag \ddag \copyright \pounds \dots \ldotsand their\text…forms, plus the ASCII symbols\textbackslash \textasciitilde \textasciicircum \textunderscore \textbar \textless \textgreater \textbraceleft \textbraceright. Availability per font encoding (OT1 default,\usepackage[T1]{fontenc}tracked) comes fromflashtex_tex_text_encoding::encoding::resolve. The character comes from the*.dfudeclarations, so\THin OT1 is the exact pdfLaTeX errorCommand \TH unavailable in encoding OT1.and\SSin OT1 isSS.\TeX,\LaTeX,\LaTeXe: a newInline::Logo.text_builtins::layout_logotranscribes latex.ltx 9447-9460 (kerns in em,Elowered .5ex, the\sf@sizeAraised to theTheight,\LaTeXe's text-style ε subscript) against metrics the layout supplies.\rule[raise]{w}{h}:Inline::Rulein text andNucleus::Rulein math (latex.ltx 16359-16367). Dimensions use tex-boxes' exactscan_dimenarithmetic: pt/in/cm/mm/bp/dd/cc/pc/sp, em, ex,\textwidth,\linewidth,\columnwidth.\, \! \: \> \;and\thinspace \negthinspace \medspace \negmedspace \thickspace \negthickspace \enspaceareInline::Kern(latex.ltx 9432, 15669-15681). Before this they were literal commas and exclamation marks.\enskipis .5em glue.\quad/\qquad,\and~were already emitted and are now oracle-checked.src/text_builtins.rs, which the full tex-text-encoding/tex-boxes adoption deletes. The supported inventory anddocs/user/compiler.mdare regenerated.Oracle (MacTeX pdflatex, oracle only)
tests/oracle/text_builtins/generate.pyrecords\showboxnode trees for 141 fixtures, andexpected.jsonplus 28 TL2026 TFMs are committed. The fixtures cover:\textbf/\textsf/\textit/\Large/\small, OT1 and T1;\rulevariants: raise ±, zero-width strut, em/ex, negative width, cv's\rule{\textwidth}{0.6pt},.5\linewidth, math;tests/text_builtins_oracle.rs(5 tests) compares glyph x/y, box sizes, rule edges and kerns to the scaled point, using the same TFMs. Symbols additionally check that the compiler's character typesets to the same nodes as the command. Cargo never runs TeX.Gates
cargo test --release(crates/compiler): green, including thesupported_latexdrift gate.ıhaving no base-14 glyph.Notes
Inline::Logo/Rule/KernandNucleus::Ruleare new variants the pipeline must match, and the compiler now path-depends ontex-text-encodingandtex-boxes. The re-pin must addvendor/tex-text-encodingandvendor/tex-boxes.origin/main1d4604d. Conflicts were inmath.rs/incremental.rs(keptExtArrow,text_space,Space { .. }) and in generated files.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu