UserJS processor for MathML may be used to simulate support for presentational MathML in Opera 9. To make it work, all you need is to set up UserJS directory and place mathml.js there.
*) alpha only, latest builds of Opera 9.50 already have MathML support
After you enable UserJS you can try the following examples.
If you need to disable UserJS for MathML, either rename it to mathml.txt or just delete it.
UserJS supports essential part of presentational MathML and a few content elements (matrix and piecewise constructions). It modifies document tree before applying style sheets. Formatting of radical signs, stretchy fences and accents is not properly implemented yet, but they should be readable.
Elements | Attributes | |||
---|---|---|---|---|
Element | Supported | Attribute | Values | Default |
maction2 | Yes | actiontype | (highlight | statusline | toggle | tooltip) | #REQUIRED |
maligngroup | No | |||
malignmark | No | |||
math | Yes | display | (block | inline) | inline |
xmlns | http://www.w3.org/1998/Math/MathML | #REQUIRED | ||
menclose | No | |||
merror | Yes | |||
mfenced | Yes | open | CDATA | ( |
close | CDATA | ) | ||
separators | CDATA | , | ||
mfrac | Yes | linethickness | (0 | 1 | 2 | 3| thin | medium | thick) | 1 |
mglyph3 | No | alt | CDATA | #REQUIRED |
mi | Yes | mathvariant | (normal|bold|italic|bold-italic|sans-serif|bold-sans-serif|sans-serif-italic|sans-serif-bold-italic|monospace) | italic4 |
mlabeledtr | No | |||
mmultiscripts5 | Yes | |||
mn | Yes | mathvariant | (normal|bold|italic|bold-italic|sans-serif|bold-sans-serif|sans-serif-italic|sans-serif-bold-italic|monospace) | normal |
mo6 | Yes | mathvariant | (normal|bold|italic|bold-italic|sans-serif|bold-sans-serif|sans-serif-italic|sans-serif-bold-italic|monospace) | normal |
mover | Yes | |||
mpadded | No | |||
mphantom | Yes | |||
mroot | Yes | |||
mrow | Yes | |||
ms | Yes | mathvariant | (normal|bold|italic|bold-italic|sans-serif|bold-sans-serif|sans-serif-italic|sans-serif-bold-italic|monospace) | normal |
lquote | CDATA | " | ||
rquote | CDATA | " | ||
mspace7 | No | linebreak | (auto | newline | indentingnewline | goodbreak) | auto |
msqrt | Yes | |||
mstyle | No | |||
msub | Yes | |||
msubsup | Yes | |||
msup | Yes | |||
mtable | Yes | |||
mtd | Yes | |||
mtext | Yes | mathvariant | (normal|bold|italic|bold-italic|sans-serif|bold-sans-serif|sans-serif-italic|sans-serif-bold-italic|monospace) | normal |
mtr | Yes | |||
munder | Yes | |||
munderover | Yes | |||
Element | Supported | Attribute | Values | Default |
Elements | Attributes |
In case if UserJS does not recognize MathML formulae on your page, make sure that the following requirements are satisfied
Any remarks, suggestions, bug reports and feature requests relevant to present UserJS can be posted on UserJS forum.