drmacro / wordinator

Generate high-quality DOCX files using a simplified XML format (simple word processing XML).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add MathML support

larsga opened this issue · comments

We need MathML support in Wordinator, and are willing to implement it, and make a PR.

If we do we'll add it to the SWPX schema, and use Microsoft's MML2OMML.xsl to transform the MathML into Office math format. We'll then use the POI API to load the transformed XML into org.openxmlformats.schemas.wordprocessingml.x2006.main objects, and then put those into the XWPFDocument.

There may be issues with redistributing the stylesheet as part of Wordinator, so we may need a workaround for that.

Would a PR adding this feature be welcome? Are there any particular issues you'd be concerned about? I'm asking about this before we start to avoid complications down the road.

We probably can't add the stylesheet to Wordinator, but what we can do is to have Wordinator load the stylesheet from the classpath. The user woud then be responsible for providing the stylesheet, and we can document that it comes with Office and explain how to get it and make it available to Wordinator.

This PR is now created: #94

Fixed by merging #94