Hi Hussein,

Thanks for the explanation and sorry for my late response to it.

Kind regards,

Hugo van Versendaal

-----Oorspronkelijk bericht-----
Van: Hussein Shafie [mailto:huss...@xmlmind.com]
Verzonden: donderdag 8 december 2016 15:52
Aan: Hugo van Versendaal <hugovanversend...@dedicon.nl>
CC: 'xmleditor-support@xmlmind.com' <xmleditor-support@xmlmind.com>
Onderwerp: Re: [XXE] Whitespace in MathML <mtext>element

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.


DISCLAIMER:
De informatie verzonden met dit e-mail bericht is uitsluitend bestemd voor de 
geadresseerde. Indien u niet de beoogde geadresseerde bent, verzoeken wij u 
vriendelijk dit aan de afzender te melden (of via: 
i...@dedicon.nl<mailto:i...@dedicon.nl>) en het origineel en eventuele kopieën 
te verwijderen.

The information sent in this e-mail is solely intended for the individual or 
company to whom it is addressed. If you received this message in error, please 
notify the sender immediately (or mail to 
i...@dedicon.nl<mailto:i...@dedicon.nl>) and delete the original message and 
possible copies.


--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to