Skip to content

feat(math): implement m:acc accent converter#2748

Open
Abdeltoto wants to merge 1 commit intosuperdoc-dev:mainfrom
Abdeltoto:feat/math-accent-converter
Open

feat(math): implement m:acc accent converter#2748
Abdeltoto wants to merge 1 commit intosuperdoc-dev:mainfrom
Abdeltoto:feat/math-accent-converter

Conversation

@Abdeltoto
Copy link
Copy Markdown

Closes #2604

Summary

  • Implements the m:acc OMML-to-MathML converter (diacritical marks above a base expression)
  • Maps m:acc to MathML <mover accent="true"> with a stretchy <mo> for the accent character
  • Defaults to circumflex (U+0302) when m:chr is absent, matching Word behavior
  • Registers the converter in MATH_OBJECT_REGISTRY
  • Adds 3 unit tests covering tilde, default circumflex, and dot accent

Spec reference

ECMA-376 Section 22.1.2.1

Test plan

  • vitest run passes for omml-to-mathml.test.ts
  • Linter and formatter pass (lefthook pre-commit)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Math: implement m:acc accent converter (community)

2 participants