On 12/02/2016 11:31 AM, Hugo van Versendaal wrote:
I’m currently trying out some text editors for MathML in DTBook
documents. I’ve installed XMLmind XML Editor 7.2.0 and I noticed that
the whitespace within MathML elements is automatically stripped. For
example:
<m:math xmlns:dtbook="http://www.daisy.org/z3986/2005/dtbook/"
display="inline">
<m:mn>6</m:mn>
<m:mrow>
<m:mtext> km</m:mtext>
</m:mrow>
<m:mo>/</m:mo>
<m:mrow>
<m:mtext>h</m:mtext></m:mrow></m:math>
When opened in XMLmind becomes:
<m:math xmlns:dtbook="http://www.daisy.org/z3986/2005/dtbook/"
display="inline">
<m:mn>6</m:mn>
<m:mrow>
<m:mtext>km</m:mtext>
</m:mrow>
<m:mo>/</m:mo>
<m:mrow>
<m:mtext>h</m:mtext></m:mrow></m:math>
Is there any possibility to avoid this?
It seems that XMLmind XML Editor is correct regarding whitespace in
<m:mtext>. See for example the <m:mtext> examples found in
Mathematical Markup Language (MathML) Version 2.0 (Second Edition)
2.4.6 Collapsing Whitespace in Input
https://www.w3.org/TR/MathML2/chapter2.html#fund.collapse
You'll also find a workaround for your issue explained there.
---
PS: With XMLmind XML Editor, Ctrl-SPACE is a keyboard shortcut which
inserts a non-breaking space character. Moreover, in XMLmind XML Editor,
a non-breaking space character is rendered as a little dot, and not
like an ordinary space character.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support