Skip to content

compiler: \odot, \ominus, \oslash and \bigcirc are binary operators (#314) - #317

Merged
GoKubar merged 9 commits into
mainfrom
agent/daniel-parent/odot-compiler
Sep 14, 2026
Merged

GoKubar merged 9 commits into
mainfrom
agent/daniel-parent/odot-compiler

Conversation

@d-q222

@d-q222 d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Lane daniel-parent (Max 20x, mac-m5pro-dq222; not daniel-vpclaude). The \odot part was assigned by the Commander on #2 at 05:23Z; claim GH-314.

Problem

$a \odot b$ gave error[compiler] \odot is not supported in math mode and printed literally. math-layout already maps the glyph (cm.rs); the compiler's symbol table didn't. \ominus, \oslash and \bigcirc had the same gap.

Change (crates/compiler only; cm.rs and vendor/ untouched)

command glyph cmsy10 class LM Math advance
\ominus U+2296 ⊖ "09 Bin 778
\oslash U+2298 ⊘ "0B Bin 778
\odot U+2299 ⊙ "0C Bin 778
\bigcirc U+25EF ◯ "0D Bin 1013
  • Classes follow fontmath.ltx, which declares all four \mathbin.
  • Advances were measured with hb-shape from apps/mac/Fonts/latinmodern-math.otf.
  • COMMAND_GLYPHS, symbol_class, the vocabulary and the generated supported-LaTeX inventory and docs are updated.

Needs the vendor re-pin after merge

render-pipeline links the frozen vendor/compiler snapshot, so the app and CLI render these only after the integration lane re-pins past this PR. odot_is_painted_as_a_binary_math_glyph in crates/render-pipeline/tests/math_symbols.rs is #[ignore]d until then; un-ignore it in the re-pin.

Tests

  • daniel-parent, own run: compiler --lib 295/0, supported_latex 8/0.
  • Codex worker: lm_math_binding 6/0, export coverage 1/0, render-pipeline math_symbols 10 passed with 1 ignored.
  • Known and unrelated: robustness::deeply_nested_input_does_not_blow_the_stack overflows its stack in a debug build on base 9bd4b025 too.

Provenance

Implemented by Codex gpt-5.6-luna at max (cx slot xedu) as checkpoints cdc94bc3 → b1922e90 → a41796e5, plus a follow-up requested in review. daniel-parent reviewed, re-ran the gate and committed 54fbeb0c.

What changed: added a compiler spacing regression for a\\odot b.

What was run: CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-odot cargo test --manifest-path crates/compiler/Cargo.toml --lib math::spacing_tests::odot_is_a_binary_operator -- --exact; test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 294 filtered out.

Next step: add the compiler glyph and Bin-class mappings, then regenerate the supported inventory.

Open questions: render-pipeline uses a read-only vendored compiler mirror and will need a separate integration re-pin.

Implementation-Agent: codex gpt-5.6-luna (max, cx slot xedu)

Commit-Executor: codex

Lane-Owner: daniel-parent (mac-m5pro-dq222)
What changed: added COMMAND_GLYPHS and Bin-class mappings for odot, bound U+2299 to the pinned Latin Modern Math advance table at 778 font units, and regenerated the supported compiler inventory.

What was run: CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-odot sh crates/compiler/scripts/render_supported_latex.sh; regenerated successfully. cargo test --manifest-path crates/compiler/Cargo.toml --lib math::spacing_tests::odot_is_a_binary_operator -- --exact; test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 294 filtered out.

What was run: cargo test --manifest-path crates/compiler/Cargo.toml --lib export::tests::every_math_symbol_has_a_decided_export_outcome -- --exact; test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 294 filtered out. cargo test --manifest-path crates/compiler/Cargo.toml --test lm_math_binding; test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out.

Next step: add the render-pipeline glyph-drawn regression and verify the pinned vendor limitation.

Open questions: crates/render-pipeline/vendor/compiler remains read-only and needs a separate integration re-pin to consume this source fix.

Implementation-Agent: codex gpt-5.6-luna (max, cx slot xedu)

Commit-Executor: codex

Lane-Owner: daniel-parent (mac-m5pro-dq222)
What changed: added a render-pipeline regression that requires U+2299 to appear as a drawn math glyph with no odot diagnostic.

What was run: CARGO_TARGET_DIR=/Users/dqi26/flashtex/target-odot cargo test --manifest-path crates/render-pipeline/Cargo.toml --test math_symbols odot_is_painted_as_a_binary_math_glyph -- --exact; test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 10 filtered out.

Observed failure: the read-only vendor/compiler mirror emitted a literal a\\odotb run and compiler:\\odot is not supported in math mode.

Next step: integration must re-pin crates/render-pipeline/vendor/compiler (and its PIN) to this source change, then rerun the pipeline test.

Open questions: no vendor files were edited per vendor/VENDORING.md; the existing pipeline warnings are unchanged.

Implementation-Agent: codex gpt-5.6-luna (max, cx slot xedu)

Commit-Executor: codex

Lane-Owner: daniel-parent (mac-m5pro-dq222)
…aits for the re-pin

The sibling cmsy circled operators had the same gap as \odot (#314):
\ominus U+2296 ("09), \oslash U+2298 ("0B) and \bigcirc U+25EF ("0D), all
\mathbin in fontmath.ltx, mapped by math-layout's cm.rs already. Added to
COMMAND_GLYPHS, symbol_class (Bin), the vocabulary and the LM Math
advances (778/778/1013 font units, measured with hb-shape from
apps/mac/Fonts/latinmodern-math.otf); the spacing test covers all four;
supported-latex inventory regenerated.

odot_is_painted_as_a_binary_math_glyph is #[ignore]d: render-pipeline
links the frozen vendor/compiler snapshot, so it can only pass after the
integration lane re-pins vendor/compiler past this change.

Tests (daniel-parent, own target dir): compiler lib 295/0, supported_latex
8/0. Worker-reported: lm_math_binding 6/0, export coverage 1/0,
render-pipeline math_symbols 10/0/1 ignored.

Implementation-Agent: codex gpt-5.6-luna (max, cx slot xedu)
Commit-Executor: git, direct, by daniel-parent (worker sandbox could not write the git index on resume)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Co-authored-by: d-q222 <[email protected]>
…section

main (#343's re-pin batch) changed the generated counts in docs/user/compiler.md.
Regenerated with crates/compiler/scripts/render_supported_latex.sh: 244 text,
546 math (542 on main + \odot \ominus \oslash \bigcirc), 48 environments,
14 packages. supported_latex 8/0; full crates/compiler suite has no failures.

Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…mpiler inventory

The integration triage on #2 (5661305277) found this PR regenerates
crates/compiler/supported/supported-latex.json without the Mac bundled copy,
so CompletionTests.testBundledInventoryMatchesTheCompiler would fail once it
lands. Merged current main (which carries #327's sync), regenerated with
crates/compiler/scripts/render_supported_latex.sh, and copied the inventory
byte-for-byte to apps/mac/Sources/FlashTeXMac/Resources/supported-latex.json.
supported_latex 8/0.

Commit-Executor: Claude Code (daniel-parent, mac-m5pro-dq222)
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
@d-q222

d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

daniel-parent (per the integration triage on #2): Mac bundled supported-latex.json is now synced on this branch. I merged current main (with #327) and regenerated, and the Mac copy is byte-identical to the compiler inventory; supported_latex 8/0. It test-merges cleanly with main. No separate sync follow-up is needed.

…the supported-LaTeX artefacts after #380 and sync the Mac copy

Conflicts were generated files only; regenerated with render_supported_latex.sh
and copied the Mac bundled inventory byte-for-byte.

Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
@GoKubar
GoKubar merged commit 9cdf051 into main Sep 14, 2026
9 of 20 checks passed
@GoKubar
GoKubar deleted the agent/daniel-parent/odot-compiler branch September 14, 2026 14:49
d-q222 added a commit that referenced this pull request Sep 14, 2026
…atex.sh

Fixes GH-SUPPORTED-SYNC-TOOL: four PRs today (#317, #328, #379, #380)
regenerated crates/compiler/supported/supported-latex.json without also
running apps/mac/scripts/sync-supported-latex.sh, so main's Mac CI
inventory-sync check kept going red after merges.

render_supported_latex.sh now invokes sync-supported-latex.sh (regenerate
mode, no --check) after rewriting supported-latex.json, coverage.md, and
docs/user/compiler.md, so a re-render can never leave the Mac bundled copy
stale. Both script paths derive from $compiler (absolute, caller-cwd-
independent), so this works from any current working directory. Explicit
--root passed for visibility at the call site even though the sync script's
own default already resolves correctly here. Fails loudly (exit 1, named
path) if the sync script is missing or if it errors -- no silent
continuation under set -eu.

Header comments in both scripts now point at each other. No README/docs
line described the two scripts as a separate manual two-step process, so
none needed changing.

Tests, all re-run independently by the reviewer after rebasing onto current
main:
- Ran the combined script from /tmp (a foreign cwd): exit 0, ends with
  "sync-supported-latex.sh: bundled copy is current". Verified
  crates/compiler/supported/supported-latex.json and the Mac bundled copy
  are byte-identical (sha256 e98c9845aad0...).
- apps/mac/scripts/sync-supported-latex.sh --check: exit 0.
- Implementer's own evidence (fake-change round trip, missing-script
  failure path, cargo test --test supported_latex 8/8) reproduced the same
  results on the rebased commit.

Implementation-Agent: muse-spark-1.3-contributor (Muse Code, lane render-sync-tool, slice 1)
Commit-Executor: daniel-muse-lead (Claude Sonnet)
Reviewed-by: daniel-muse-lead (Claude Sonnet)
Muse-Lane-Head: 6afb4ce7c69032e0f2835e2c1d4e90d7943effbf
Co-authored-by: d-q222 <[email protected]>
d-q222 added a commit that referenced this pull request Sep 14, 2026
…atex.sh

Fixes GH-SUPPORTED-SYNC-TOOL: four PRs today (#317, #328, #379, #380)
regenerated crates/compiler/supported/supported-latex.json without also
running apps/mac/scripts/sync-supported-latex.sh, so main's Mac CI
inventory-sync check kept going red after merges.

render_supported_latex.sh now invokes sync-supported-latex.sh (regenerate
mode, no --check) after rewriting supported-latex.json, coverage.md, and
docs/user/compiler.md, so a re-render can never leave the Mac bundled copy
stale. Both script paths derive from $compiler (absolute, caller-cwd-
independent), so this works from any current working directory. Explicit
--root passed for visibility at the call site even though the sync script's
own default already resolves correctly here. Fails loudly (exit 1, named
path) if the sync script is missing or if it errors -- no silent
continuation under set -eu.

Header comments in both scripts now point at each other. No README/docs
line described the two scripts as a separate manual two-step process, so
none needed changing.

Tests, all re-run independently by the reviewer after rebasing onto current
main:
- Ran the combined script from /tmp (a foreign cwd): exit 0, ends with
  "sync-supported-latex.sh: bundled copy is current". Verified
  crates/compiler/supported/supported-latex.json and the Mac bundled copy
  are byte-identical (sha256 e98c9845aad0...).
- apps/mac/scripts/sync-supported-latex.sh --check: exit 0.
- Implementer's own evidence (fake-change round trip, missing-script
  failure path, cargo test --test supported_latex 8/8) reproduced the same
  results on the rebased commit.

Implementation-Agent: muse-spark-1.3-contributor (Muse Code, lane render-sync-tool, slice 1)
Commit-Executor: daniel-muse-lead (Claude Sonnet)
Reviewed-by: daniel-muse-lead (Claude Sonnet)
Muse-Lane-Head: 6afb4ce7c69032e0f2835e2c1d4e90d7943effbf
Co-authored-by: d-q222 <[email protected]>
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