junep
junep

Reputation: 2164

Displaying mathematic expression using MathML with OpenMath

First, what I'm trying to show is

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Mixed Markup</title>

    <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
            MathML: {
                extensions: ["content-mathml.js"]
            }
        });
    </script>

    <script type="text/javascript" async
        src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-    AMS-MML_HTMLorMML">
    </script>

</head>
<body>

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <apply><csymbol cd="relation1">eq</csymbol>
        <apply><csymbol cd="fns1">domain</csymbol>
            <apply><csymbol cd="fns1">restriction</csymbol><ci>f</ci><ci>S</ci></apply>
        </apply>
        <ci>S</ci>
    </apply>
</math>

</body>

Second, when I try it on Chrome or IE, the representation is

enter image description here

That is, the words domain and restriction are displayed words as those are in HTML elements not as symbol.

It is just an example. Most of identifier or symbols using OpenMath are not displayed on web.

Sites which I referenced MathML Content Markup

OpenMath Content Dictionaries

OpenMath Content Dictionaries, fns1

Please let me know, why... thanks

Upvotes: 2

Views: 163

Answers (1)

Peter Krautzberger
Peter Krautzberger

Reputation: 5305

As can be seen from this issue, MathJax's Content MathML extension does not (fully) support Strict Content MathML; you are seeing a side effect of this.

Upvotes: 2

Related Questions