* 仕様書

[REFS[
- [17] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-05-25 20:37:04 +09:00]]) <https://html.spec.whatwg.org/#mathml>
]REFS]

* 内容

[8] 任意の [[XML]] [[内容]]が含められるようです。

[9] しかし実際の例示文を見るとたいていは [[RDF/XML]] の [CODE(XMLe)@en[[[rdf:RDF]]]]
[[要素]]が1つだけ入っています。

[18] [[子供]]が[[HTML要素]]の場合、[[フロー内容]]でなければ[MUST[なりません]] [SRC[>>17]]。

* 相互運用性

[13] どのようなものを記述するべきかは[[著者]]に委ねられているようで、
[[相互運用性]]もほとんどなさそうに見えます。

* 関連

[7] [CODE(XMLe)@en[[[annotation]]]] [[要素]]もあります。

[10] [[マーク付け言語]]の流儀によっては存在する [CODE(XMLe)@en[[[metadata]]]] [[要素]]と似ています。

* メモ

[1]
[CITE[The MathML Interface]] ([CODE[2003-10-21 04:36:56 +09:00]] 版) <http://www.w3.org/TR/MathML/chapter7.html#interf.graphics>

[CODE@en[[[SVG1.1]]]]

[CODE@en[[[application/xhtml+xml]]]]
([[名無しさん]])

[2]
[CITE[Content Markup]] ([CODE[2003-10-21 04:36:56 +09:00]] 版) <http://www.w3.org/TR/MathML/chapter4.html#id.4.4.11.3.2>
([[名無しさん]] [WEAK[2008-04-13 11:02:48 +00:00]])

[3]
[CODE@en[[[OpenMath]]]]
([[名無しさん]])


[4]
[CITE[Content Markup]] ([TIME[2003-10-21 04:36:56 +09:00]] 版) <http://www.w3.org/TR/MathML/chapter4.html#id.4.4.11.2.2>

[CODE@en[[[MathML-Presentation]]]]

[5] [CITE[IRC logs: freenode / #whatwg / 20100617]]
([TIME[2010-06-27 14:30:04 +09:00]] 版)
<http://krijnhoetmer.nl/irc-logs/whatwg/20100617>

[6] [CITE[Ink Markup Language (InkML)]]
( ([TIME[2011-09-20 17:16:49 +09:00]] 版))
<http://www.w3.org/TR/2011/REC-InkML-20110920/#annotationXMLElement>

[11] [CITE@en[Bug 9887 – parsing algorithm should allow HTML content in MathML <annotation-xml>]]
( ([TIME[2013-11-20 07:15:04 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=9887>

[12] [CITE@en[Web Applications 1.0 r8465   Allow HTML content in certain places in MathML]]
( ([TIME[2014-02-06 04:25:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=8464&to=8465>

[FIG(quote)[
[FIGCAPTION[
[14] [CITE@ja[<semantics> - MathML | MDN]]
( ([TIME[2016-05-21 21:30:19 +09:00]]))
<https://developer.mozilla.org/ja/docs/Web/MathML/Element/semantics>
]FIGCAPTION]

> If no Presentation MathML is found, render the first <annotation> or <annotation-xml> child element of <semantics>.
> Beware that <annotation-xml> elements are only recognized, if the encoding attribute is set to one of the following:
> "application/mathml-presentation+xml"
> "MathML-Presentation"
> "SVG1.1"
> "text/html"
> "image/svg+xml"
> "application/xml".
> Note that "application/mathml+xml" is not mentioned here as it does not distinguish between Content or Presentation MathML.

]FIG]


[FIG(quote)[
[FIGCAPTION[
[15] [CITE@en[SnuggleTeX - MathML Semantic Enrichment Demo]]
( ([[David McKain]]著, [TIME[2016-05-21 21:36:19 +09:00]]))
<http://www2.ph.ed.ac.uk/snuggletex/UpConversionDemo>
]FIGCAPTION]

> 
>     <annotation encoding="SnuggleTeX">\'''[''' \frac{2f(x)-e^x}{\sin xy^2(x-2)} \''']'''</annotation>
>     <annotation encoding="LaTeX">\'''[''' \frac{2f(x)-e^x}{\sin xy^2(x-2)} \''']'''</annotation>
>     <annotation encoding="Maxima">((2 * f(x)) - exp(x)) / sin((x * (y^2) * (x - 2)))</annotation>
>     <annotation-xml encoding="SnuggleTeX-upconversion-options">
>       <s:upconversion-options xmlns:s="http://www.ph.ed.ac.uk/snuggletex">

]FIG]


[FIG(quote)[
[FIGCAPTION[
[16] [CITE@en[Descriptions | MathML | EPUB 3 Accessibility Guidelines]]
( ([TIME[2016-05-21 21:37:57 +09:00]]))
<http://www.idpf.org/accessibility/guidelines/content/mathml/desc.php>
]FIGCAPTION]

> 
>       <m:annotation-xml
>               encoding="application/xhtml+xml"
>               name="alternate-representation">
>          <span xmlns="http://www.w3.org/1999/xhtml">
>             Frac Root a EndRoot Over b EndFrac
>          </span>
>       </m:annotation-xml>
>    </m:semantics>

]FIG]