Re: Non-Marking Characters

On 05/02/2013 21:26, Ionel Alexandru wrote:
> Hi,
>
> thank you for previous answer,
>
> Another problem:
> In MathML 2 specification to Non-Marking Characters
> (http://www.w3.org/TR/2001/REC-MathML2-20010221/chapter6.html)
> we have a list of Whitespace entities: 	, 
, &Space;,
>  , ...
>
> But this list is not in the new specification for MathML 3 at 7.6
> Non-Marking Characters (http://www.w3.org/TR/MathML3/chapter7.html)
>
> *This list is the list of entities accepted to be displayed in a mtext
> element ?*
> If not, do you have a list of accepted "renderable whitespace" ?


The entities list has been moved to its own specification:

http://www.w3.org/TR/xml-entity-names/

and is also the list used in HTML5.

The handling of Entity references is really a feature of the html or xml 
parser and the MathML application should accept any XML unicode string 
without knowing whether they were originally entered as references and 
expanded by the parser, or if they were entered as character data.

MathML treats some character s(same as XML) as "white space" and trims 
them but these are just space tab and newline and carriage return, other 
characters like #160 (non breaking space) and zerowidth space
may produce "white" space but they are not whitespace characters in teh 
sense they get special handling by XML or MathML.

David

Received on Tuesday, 5 February 2013 21:36:21 UTC