WIRIS breaks MathML?

WIRIS breaks MathML?

by Björn Fisseler -
Number of replies: 5

Hello,

I'm currently doing some testing with math content in Moodle, using MathJax for display and WIRIS as an editor. As we are using Moodle 2.8, I activated the MathJax filter and updated the settings to use: https://cdn.mathjax.org/mathjax/latest/MathJax.js

Then I tried to use WIRIS as an editor for math content, installed both the filter and the Atto plugin. But somehow WIRIS seems to break the MathML. It produces something like this: «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»§#8712;«/mo»«/math»

Did anyone experience something similar? What is the best configuration to use both MathJax (because of their accessibility features) and WIRIS?

Regards, Björn

Average of ratings: -
In reply to Björn Fisseler

Re: WIRIS breaks MathML?

by WIRIS team -
Picture of Plugin developers
WIRIS plugin stores formulas in Moodle with a slightly modified MathML code that we call safeXML.
SafeXML is plain MathML changing some characters: http://www.wiris.com/en/plugins/docs/resources/encoding-attributes.

You can configure the plugin to store formulas as MathML instead of safeXML setting wiriseditorsavemode=xml in your plugin's configuration.ini file (http://www.wiris.com/plugins/docs/resources/configuration-table).

In order to edit the formulas using WIRIS you need to keep both WIRIS and MathJax filters enabled, however, due to an issue with Moodle's filter order in combination with our plugin and MathJax, you need to manually uncomment the filter in /wiris/filter.php.

Please note that this is a workaround until we fix the order issue in future WIRIS plugin versions.




In reply to WIRIS team

Re: WIRIS breaks MathML?

by Björn Fisseler -

Thank you for the explanation.

Unfortunatly it didn't solve the issues I experienced.

In reply to Björn Fisseler

Re: WIRIS breaks MathML?

by WIRIS team -
Picture of Plugin developers
The order issue is now fixed on our latest filter/plugin release, so enabling wiriseditorsavemode=xml and ordering the filters accordingly formulas could be rendered by MathJax if you prefer.
In reply to WIRIS team

Re: WIRIS breaks MathML?

by Sekar Govindaraj -

We are using Math editor before was working fine. WIRIS editor insert the maths equation editor, At present we insert the equation it will struct display the error pages unresponsive. 


Please help any one 

In reply to Sekar Govindaraj

Re: WIRIS breaks MathML?

by WIRIS team -
Picture of Plugin developers

Please provide us more details of the error you are seeing and the WIRIS versions you are using.

Besides that, it would also help if you could provide us the URL where you are using WIRIS, you can send it to support@wiris.com if you prefer.

Thanks.