[NTG-context] MathML in ConTeXt conforming to MathML3?

Hans Hagen pragma at wxs.nl
Wed May 21 23:13:15 CEST 2014


On 5/21/2014 10:43 PM, Meer, H. van der wrote:
> Examples below, the two examples change between "tex" and
> "application/x-tex" in the <annotation>.
> Hans van der Meer
>
>
>
>
> On 21 May 2014, at 22:14, Hans Hagen <pragma at wxs.nl
> <mailto:pragma at wxs.nl>> wrote:
>
>> On 5/21/2014 8:09 PM, Meer, H. van der wrote:
>>> Does the MathML in ConText conforms to the MathML3 specification?
>>> (see http://www.w3.org/TR/MathML3/chapter5.html)
>>>
>>> I find that with \usemodule[mathml]
>>> (1)<semantics><annotation
>>> encoding="application/x-tex">TeX-code</annotation></semantics> does
>>> not typesets, but
>>> (2)<semantics><annotation
>>> encoding="tex">TeX-code</annotation></semantics> does.

you can patch x-math.mkiv:

     \xmldoifelse {#1} 
{.[oneof(@encoding,'TeX','tex','application/x-tex','TEX','ConTeXt','context','CONTEXT','ctx')]} 
{

as that seems to work okay

>>> As I understand from the specification, (1) should have been correct,
>>> but does not processes the TeX and the attribute "application/x-tex"
>>> seems not to be recognized. Does ConTeXt-MathML deviates in this
>>> respect from the current standard? Or do I miss some important fact?
>>
>> I can add that encoding spec but you post to make a complete minimal
>> example first.
>>
>> Hans
>>
>>
>> -----------------------------------------------------------------
>>                                          Hans Hagen | PRAGMA ADE
>>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>    tel: 038 477 53 69 | voip: 087 875 68 74 |www.pragma-ade.com
>> <http://www.pragma-ade.com/>
>>                                             |www.pragma-pod.nl
>> <http://www.pragma-pod.nl/>
>> -----------------------------------------------------------------
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry
>> to the Wiki!
>>
>> maillist : ntg-context at ntg.nl <mailto:ntg-context at ntg.nl> /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list