Skip to content

Math: implement m:acc accent converter (community) #2604

@caio-pizzol

Description

@caio-pizzol

What

Implement the m:acc (accent/diacritical mark) OMML → MathML converter.

OMML: m:accm:accPr (chr, default U+0302 circumflex) + m:e (base)
MathML: basechr
Spec: §22.1.2.1
Difficulty: Medium

Details

  • m:accPr/m:chr@m:val — accent character (default ^ / U+0302)
  • Common accents: hat (^), dot (˙), double dot (¨), tilde (~), arrow (→)

How to implement

  1. Create converters/accent.ts
  2. Read chr from m:accPr (default U+0302)
  3. Build <mover accent="true"> with base + <mo>chr</mo>
  4. Register as 'm:acc': convertAccent

Test Document

Download the test file and upload it to the SuperDoc dev app to verify your implementation renders correctly:

sd-2382-accent.docx


Want to work on this? Check the Contributing Guide to get started. Comment on this issue to let us know you're picking it up.

Ref: SD-2382

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions