Skip to content

Math: implement m:sPre pre-sub-superscript converter (community) #2609

@caio-pizzol

Description

@caio-pizzol

What

Implement the m:sPre (pre-sub-superscript) OMML → MathML converter. Places subscript and superscript to the LEFT of the base.

OMML: m:sPrem:sPrePr + m:sub + m:sup + m:e (base)
MathML: with separator
Spec: §22.1.2.99
Difficulty: Medium

Details

MathML <mmultiscripts> structure:

<mmultiscripts>
  base
  <mprescripts/>
  pre-subscript
  pre-superscript
</mmultiscripts>

How to implement

  1. Create converters/pre-sub-superscript.ts
  2. Build <mmultiscripts> with base, <mprescripts/>, then sub and sup
  3. Register as 'm:sPre': convertPreSubSuperscript

Test Document

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

sd-2385-prescript.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-2385

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions