What
Implement the m:nary (n-ary operator) OMML → MathML converter. Covers integrals (∫), summations (∑), products (∏), unions (∪), etc.
OMML: m:nary → m:naryPr (chr, limLoc, grow, subHide, supHide) + m:sub + m:sup + m:e
MathML: (limits below/above) or (limits as sub/superscript) + `` for the operator
Spec: §22.1.2.70
Difficulty: Medium
Details
m:naryPr/m:chr@m:val — operator character (default ∫, U+222B)
m:naryPr/m:limLoc@m:val — "undOvr" → <munderover>, "subSup" → <msubsup>
m:naryPr/m:subHide / m:supHide — hide lower/upper limit
m:sub — lower limit (e.g. i=1)
m:sup — upper limit (e.g. n)
m:e — integrand/summand
How to implement
- Create
converters/nary.ts
- Read operator char and limLoc from
m:naryPr
- Build
<munderover> or <msubsup> with <mo>chr</mo> + sub + sup, then append m:e content
- Register as
'm:nary': convertNary
Test Document
Download the test file and upload it to the SuperDoc dev app to verify your implementation renders correctly:
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-2381
What
Implement the
m:nary(n-ary operator) OMML → MathML converter. Covers integrals (∫), summations (∑), products (∏), unions (∪), etc.OMML:
m:nary→m:naryPr(chr, limLoc, grow, subHide, supHide) +m:sub+m:sup+m:eMathML:
(limits below/above) or(limits as sub/superscript) + `` for the operatorSpec: §22.1.2.70
Difficulty: Medium
Details
m:naryPr/m:chr@m:val— operator character (default ∫, U+222B)m:naryPr/m:limLoc@m:val—"undOvr"→<munderover>,"subSup"→<msubsup>m:naryPr/m:subHide/m:supHide— hide lower/upper limitm:sub— lower limit (e.g. i=1)m:sup— upper limit (e.g. n)m:e— integrand/summandHow to implement
converters/nary.tsm:naryPr<munderover>or<msubsup>with<mo>chr</mo>+ sub + sup, then appendm:econtent'm:nary': convertNaryTest Document
Download the test file and upload it to the SuperDoc dev app to verify your implementation renders correctly:
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-2381