Skip to content

math: amssymb symbol table (224/229), msam/msbm TFMs, braces and over/under arrows (compiler + math-layout) - #126

Merged
jay3332 merged 3 commits into
mainfrom
agent/kabir-claude/math-amssymb-braces
Sep 13, 2026
Merged

jay3332 merged 3 commits into
mainfrom
agent/kabir-claude/math-amssymb-braces

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Math coverage, part 1 of 2 (compiler + math-layout only; no vendor/ edits per the Commander's 10:22Z correction). The stacked render-pipeline PR paints these and carries the pdflatex oracle corpus.

What

  • amssymb/amsfonts symbol table (crates/compiler/src/amssymb.rs, generated by scripts/gen_amssymb.py): every \DeclareMathSymbol/\DeclareMathDelimiter of AMSa (msam) / AMSb (msbm) in TeX Live 2026 amssymb.sty/amsfonts.sty, cited file:line, with its \math<class> and slot, the Unicode text (unicode-math names, manual choices for 40; negations without a precomposed code point are base + U+0338) and the face carrying it (182 Latin Modern Math, 32 New Computer Modern Math only). Plus \yen \checkmark \circledR \maltese (\mathhexbox), \dashrightarrow/\dasharrow/\dashleftarrow (\dabar@ pieces), the \global\let aliases and the msbm "5B/"5C "5D/"5E extra-wide accents. Kernel commands amsfonts only redefines (\angle \hbar \mho \sqsubset \sqsupset \rightleftharpoons) keep their kernel glyphs.
  • Compiler: MathAtom gains pub ams_symbol: Option<&'static AmsSymbol> (class forced, msam10/msbm10 width for the legacy layout); amssymb names take precedence over the older glyph rows (\square, \nleq, ...). Frame gains OverBrace/UnderBrace (Op, limits) and the six amsmath over/under arrows; \Bbb/\bold aliases. \widehat no longer warns (it grows now). Export: LM glyphs bound via lm_math::advance; NewCM-only ones are a decided non-embedded outcome (binding tests read both font programs).
  • math-layout: embedded msam5/7/10, msbm5/7/10 TFMs (tools/gen_cm_tfm.py --ams) and ams::glyph with umsa.fd/umsb.fd size selection; new nuclei Brace (fontmath.ltx 430-456: display-style body, \braceld..\braceru pieces + \leaders\vrule fills, 3pt kerns, vbox/vtop), OverArrow (amsmath.sty 983-1006 \overarrow@/\underarrow@ over a shared \arrowfill@, refactored out of \ext@arrow unchanged) and MeasuredAccent (amsfonts.sty 78-86 2em switch); MathFontMetrics::extension_glyph (default None).

Coverage (crates/compiler/supported/coverage.md)

amssymb 20/229 → 224/229; amsmath 35 → 39; total 194 → 402/1003. Missing: \mathfrak \frak \newsymbol \symAMSa \symAMSb.

Gates

compiler cargo test --release green (supported/unsupported drift, lm/newcm binding, export guard); math-layout green. Vendor re-pin is needed for the pipeline PR: both vendored crates' src are unchanged on main since the ad720575 pin, so exporting this branch's crates/compiler + crates/math-layout is a clean swap (verified locally with an uncommitted copy: render-pipeline cargo test --release green).

Overlap: no open PR/branch touches amssymb symbols; \mathbb (mac-mathbb-font) untouched; \varnothing keeps main's existing path.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

GoKubar and others added 3 commits September 13, 2026 06:36
…ows (WIP)

Implementation-Agent: Claude Opus 5 (subagent kabir-claude math amssymb braces, 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
…date the widehat/spacing tests

Implementation-Agent: Claude Opus 5 (subagent kabir-claude math amssymb braces, 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
Implementation-Agent: Claude Opus 5 (subagent kabir-claude math amssymb braces, 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
@jay3332
jay3332 merged commit deee20f into main Sep 13, 2026
11 of 18 checks passed
@jay3332

jay3332 commented Sep 13, 2026

Copy link
Copy Markdown
Member

Merged to main via integration/2026-09-13j (Commander).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants