View Single Post
Old 06-01-2017, 12:35 PM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by KevinH View Post
Toxaris,
How do you convert MS math to an SVG or PNG? Can it be done on the fly? I have looked at a number of projects that try to convert mathml to svg but these are typically MathJax based javascript routines that are not easy to integrate into Sigil.

Thanks,

Kevin
I can either extract it from a Word document in the OMath format and convert that to MathML and subsequent to SVG. The SVG can be converted to PNG.
The MathML to SVG code is based on SVGMath I believe it was, which is written in Python. I have converted it to C# for easier integration. However, the current version of my add-in uses a compiled version of SVGMath, but that is going away in the new version. Then I will use my library.
Toxaris is offline   Reply With Quote