Skip to content

fix: Fix operator categories in symbol.rs to match MathML Core spec#806

Merged
tmke8 merged 1 commit intomainfrom
fix-categories
Feb 11, 2026
Merged

fix: Fix operator categories in symbol.rs to match MathML Core spec#806
tmke8 merged 1 commit intomainfrom
fix-categories

Conversation

@tmke8
Copy link
Copy Markdown
Owner

@tmke8 tmke8 commented Feb 11, 2026

Align Unicode character categories with the W3C MathML Core operator dictionary (operator-dictionary-compact.html):

  • Change 48 arrows from RelCategory::Default to RelCategory::A (stretchy)
  • Change 24 binary operators from BinCategory::BD to BinCategory::B (no prefix form in the spec)
  • Change ASTERISK_OPERATOR and SQUARED_SQUARE from Bin to Op::C

Add scripts/check_operator_categories.py to verify categories against the spec.

closes #388

Align Unicode character categories with the W3C MathML Core operator
dictionary (operator-dictionary-compact.html):

- Change 48 arrows from RelCategory::Default to RelCategory::A (stretchy)
- Change 24 binary operators from BinCategory::BD to BinCategory::B
  (no prefix form in the spec)
- Change ASTERISK_OPERATOR and SQUARED_SQUARE from Bin to Op::C

Add scripts/check_operator_categories.py to verify categories against
the spec.
@github-actions
Copy link
Copy Markdown

Wasm sizes:
Base branch: 118162 bytes
PR: 118159 bytes
Size diff: -3 bytes (-0.00%)

@tmke8 tmke8 merged commit a516dc9 into main Feb 11, 2026
12 checks passed
@tmke8 tmke8 deleted the fix-categories branch February 11, 2026 18:06
@tmke8 tmke8 mentioned this pull request Feb 11, 2026
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.

Operators that can stretch horizontally (like ⟹) should be set to stretchy="false" in places where they shouldn't stretch

1 participant