mathjax-rails 2.5.1 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mathjax/rails/version.rb +2 -2
- data/vendor/mathjax/.npmignore +7 -0
- data/vendor/mathjax/.travis.yml +18 -0
- data/vendor/mathjax/CONTRIBUTING.md +45 -47
- data/vendor/mathjax/MathJax.js +1 -1
- data/vendor/mathjax/README.md +11 -4
- data/vendor/mathjax/composer.json +2 -10
- data/vendor/mathjax/config/AM_CHTML-full.js +50 -0
- data/vendor/mathjax/config/AM_CHTML.js +46 -0
- data/vendor/mathjax/config/AM_HTMLorMML-full.js +22 -20
- data/vendor/mathjax/config/AM_HTMLorMML.js +19 -17
- data/vendor/mathjax/config/AM_SVG-full.js +50 -0
- data/vendor/mathjax/config/AM_SVG.js +44 -0
- data/vendor/mathjax/config/Accessible-full.js +29 -28
- data/vendor/mathjax/config/Accessible.js +26 -25
- data/vendor/mathjax/config/MML_CHTML-full.js +50 -0
- data/vendor/mathjax/config/MML_CHTML.js +46 -0
- data/vendor/mathjax/config/MML_HTMLorMML-full.js +22 -20
- data/vendor/mathjax/config/MML_HTMLorMML.js +19 -17
- data/vendor/mathjax/config/MML_SVG-full.js +50 -0
- data/vendor/mathjax/config/MML_SVG.js +46 -0
- data/vendor/mathjax/config/MMLorHTML.js +1 -1
- data/vendor/mathjax/config/TeX-AMS-MML_HTMLorMML-full.js +29 -27
- data/vendor/mathjax/config/TeX-AMS-MML_HTMLorMML.js +26 -24
- data/vendor/mathjax/config/TeX-AMS-MML_SVG-full.js +26 -24
- data/vendor/mathjax/config/TeX-AMS-MML_SVG.js +24 -22
- data/vendor/mathjax/config/TeX-AMS_CHTML-full.js +58 -0
- data/vendor/mathjax/config/TeX-AMS_CHTML.js +54 -0
- data/vendor/mathjax/config/TeX-AMS_HTML-full.js +23 -21
- data/vendor/mathjax/config/TeX-AMS_HTML.js +21 -19
- data/vendor/mathjax/config/TeX-AMS_SVG-full.js +58 -0
- data/vendor/mathjax/config/TeX-AMS_SVG.js +54 -0
- data/vendor/mathjax/config/TeX-MML-AM_CHTML-full.js +70 -0
- data/vendor/mathjax/config/TeX-MML-AM_CHTML.js +66 -0
- data/vendor/mathjax/config/TeX-MML-AM_HTMLorMML-full.js +32 -30
- data/vendor/mathjax/config/TeX-MML-AM_HTMLorMML.js +29 -27
- data/vendor/mathjax/config/TeX-MML-AM_SVG-full.js +70 -0
- data/vendor/mathjax/config/TeX-MML-AM_SVG.js +66 -0
- data/vendor/mathjax/config/default.js +6 -0
- data/vendor/mathjax/extensions/AssistiveMML.js +19 -0
- data/vendor/mathjax/extensions/CHTML-preview.js +1 -1
- data/vendor/mathjax/extensions/FontWarnings.js +1 -1
- data/vendor/mathjax/extensions/HTML-CSS/handle-floats.js +1 -1
- data/vendor/mathjax/extensions/HelpDialog.js +1 -1
- data/vendor/mathjax/extensions/MatchWebFonts.js +1 -1
- data/vendor/mathjax/extensions/MathEvents.js +1 -1
- data/vendor/mathjax/extensions/MathML/content-mathml.js +1 -1
- data/vendor/mathjax/extensions/MathML/mml3.js +1 -1
- data/vendor/mathjax/extensions/MathMenu.js +1 -1
- data/vendor/mathjax/extensions/MathZoom.js +1 -1
- data/vendor/mathjax/extensions/Safe.js +1 -1
- data/vendor/mathjax/extensions/TeX/AMScd.js +1 -1
- data/vendor/mathjax/extensions/TeX/AMSmath.js +1 -1
- data/vendor/mathjax/extensions/TeX/AMSsymbols.js +1 -1
- data/vendor/mathjax/extensions/TeX/HTML.js +1 -1
- data/vendor/mathjax/extensions/TeX/action.js +1 -1
- data/vendor/mathjax/extensions/TeX/autobold.js +1 -1
- data/vendor/mathjax/extensions/TeX/autoload-all.js +1 -1
- data/vendor/mathjax/extensions/TeX/bbox.js +1 -1
- data/vendor/mathjax/extensions/TeX/begingroup.js +1 -1
- data/vendor/mathjax/extensions/TeX/boldsymbol.js +1 -1
- data/vendor/mathjax/extensions/TeX/cancel.js +1 -1
- data/vendor/mathjax/extensions/TeX/color.js +1 -1
- data/vendor/mathjax/extensions/TeX/enclose.js +1 -1
- data/vendor/mathjax/extensions/TeX/extpfeil.js +1 -1
- data/vendor/mathjax/extensions/TeX/mathchoice.js +1 -1
- data/vendor/mathjax/extensions/TeX/mediawiki-texvc.js +1 -1
- data/vendor/mathjax/extensions/TeX/mhchem.js +1 -1
- data/vendor/mathjax/extensions/TeX/newcommand.js +1 -1
- data/vendor/mathjax/extensions/TeX/noErrors.js +1 -1
- data/vendor/mathjax/extensions/TeX/noUndefined.js +1 -1
- data/vendor/mathjax/extensions/TeX/unicode.js +1 -1
- data/vendor/mathjax/extensions/TeX/verb.js +1 -1
- data/vendor/mathjax/extensions/asciimath2jax.js +1 -1
- data/vendor/mathjax/extensions/fast-preview.js +19 -0
- data/vendor/mathjax/extensions/jsMath2jax.js +1 -1
- data/vendor/mathjax/extensions/mml2jax.js +1 -1
- data/vendor/mathjax/extensions/tex2jax.js +1 -1
- data/vendor/mathjax/extensions/toMathML.js +1 -1
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_AMS-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Caligraphic-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Caligraphic-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Fraktur-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Fraktur-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Italic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Main-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-BoldItalic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-Italic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Math-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Bold.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Italic.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_SansSerif-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Script-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size1-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size2-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size3-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Size4-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_Typewriter-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/eot/MathJax_WinIE6-Regular.eot +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_AMS-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Italic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-BoldItalic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-Italic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Math-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Bold.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Italic.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_SansSerif-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Script-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size1-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size2-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size3-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Size4-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Typewriter-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_WinChrome-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_WinIE6-Regular.otf +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff +0 -0
- data/vendor/mathjax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff +0 -0
- data/vendor/mathjax/jax/element/mml/jax.js +1 -1
- data/vendor/mathjax/jax/input/AsciiMath/config.js +1 -1
- data/vendor/mathjax/jax/input/AsciiMath/jax.js +1 -1
- data/vendor/mathjax/jax/input/MathML/config.js +1 -1
- data/vendor/mathjax/jax/input/MathML/jax.js +1 -1
- data/vendor/mathjax/jax/input/TeX/config.js +1 -1
- data/vendor/mathjax/jax/input/TeX/jax.js +1 -1
- data/vendor/mathjax/jax/output/CommonHTML/autoload/annotation-xml.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/maction.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/menclose.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/mglyph.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/mmultiscripts.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/ms.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/mtable.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/autoload/multiline.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/config.js +1 -1
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/fonts/TeX/fontdata.js +19 -0
- data/vendor/mathjax/jax/output/CommonHTML/jax.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/annotation-xml.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/maction.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/menclose.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/mglyph.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/mmultiscripts.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/ms.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/mtable.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/autoload/multiline.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/config.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Asana-Math/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/STIX/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/imageFonts.js +1 -1
- data/vendor/mathjax/jax/output/HTML-CSS/jax.js +1 -1
- data/vendor/mathjax/jax/output/NativeMML/config.js +1 -1
- data/vendor/mathjax/jax/output/NativeMML/jax.js +1 -1
- data/vendor/mathjax/jax/output/PlainSource/config.js +19 -0
- data/vendor/mathjax/jax/output/PlainSource/jax.js +19 -0
- data/vendor/mathjax/jax/output/PreviewHTML/config.js +19 -0
- data/vendor/mathjax/jax/output/PreviewHTML/jax.js +19 -0
- data/vendor/mathjax/jax/output/SVG/autoload/annotation-xml.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/maction.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/menclose.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/mglyph.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/mmultiscripts.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/ms.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/mtable.js +1 -1
- data/vendor/mathjax/jax/output/SVG/autoload/multiline.js +1 -1
- data/vendor/mathjax/jax/output/SVG/config.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Asana-Math/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Pagella/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Gyre-Termes/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Latin-Modern/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/Neo-Euler/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/STIX-Web/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/jax/output/SVG/fonts/TeX/fontdata.js +1 -1
- data/vendor/mathjax/jax/output/SVG/jax.js +1 -1
- data/vendor/mathjax/localization/ast/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ast/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ast/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ast/MathML.js +1 -1
- data/vendor/mathjax/localization/ast/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ast/TeX.js +1 -1
- data/vendor/mathjax/localization/ast/ast.js +1 -1
- data/vendor/mathjax/localization/bcc/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/bcc/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/bcc/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/bcc/MathML.js +1 -1
- data/vendor/mathjax/localization/bcc/MathMenu.js +1 -1
- data/vendor/mathjax/localization/bcc/TeX.js +1 -1
- data/vendor/mathjax/localization/bcc/bcc.js +1 -1
- data/vendor/mathjax/localization/bg/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/bg/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/bg/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/bg/MathML.js +19 -0
- data/vendor/mathjax/localization/bg/MathMenu.js +19 -0
- data/vendor/mathjax/localization/bg/TeX.js +19 -0
- data/vendor/mathjax/localization/bg/bg.js +19 -0
- data/vendor/mathjax/localization/br/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/br/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/br/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/br/MathML.js +1 -1
- data/vendor/mathjax/localization/br/MathMenu.js +1 -1
- data/vendor/mathjax/localization/br/TeX.js +1 -1
- data/vendor/mathjax/localization/br/br.js +1 -1
- data/vendor/mathjax/localization/ca/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ca/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ca/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ca/MathML.js +1 -1
- data/vendor/mathjax/localization/ca/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ca/TeX.js +1 -1
- data/vendor/mathjax/localization/ca/ca.js +1 -1
- data/vendor/mathjax/localization/cdo/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/cdo/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/cdo/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/cdo/MathML.js +1 -1
- data/vendor/mathjax/localization/cdo/MathMenu.js +1 -1
- data/vendor/mathjax/localization/cdo/TeX.js +1 -1
- data/vendor/mathjax/localization/cdo/cdo.js +1 -1
- data/vendor/mathjax/localization/ce/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ce/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ce/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ce/MathML.js +1 -1
- data/vendor/mathjax/localization/ce/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ce/TeX.js +1 -1
- data/vendor/mathjax/localization/ce/ce.js +1 -1
- data/vendor/mathjax/localization/cs/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/cs/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/cs/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/cs/MathML.js +1 -1
- data/vendor/mathjax/localization/cs/MathMenu.js +1 -1
- data/vendor/mathjax/localization/cs/TeX.js +1 -1
- data/vendor/mathjax/localization/cs/cs.js +1 -1
- data/vendor/mathjax/localization/cy/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/cy/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/cy/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/cy/MathML.js +1 -1
- data/vendor/mathjax/localization/cy/MathMenu.js +1 -1
- data/vendor/mathjax/localization/cy/TeX.js +1 -1
- data/vendor/mathjax/localization/cy/cy.js +1 -1
- data/vendor/mathjax/localization/da/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/da/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/da/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/da/MathML.js +1 -1
- data/vendor/mathjax/localization/da/MathMenu.js +1 -1
- data/vendor/mathjax/localization/da/TeX.js +1 -1
- data/vendor/mathjax/localization/da/da.js +1 -1
- data/vendor/mathjax/localization/de/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/de/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/de/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/de/MathML.js +1 -1
- data/vendor/mathjax/localization/de/MathMenu.js +1 -1
- data/vendor/mathjax/localization/de/TeX.js +1 -1
- data/vendor/mathjax/localization/de/de.js +1 -1
- data/vendor/mathjax/localization/en/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/en/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/en/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/en/MathML.js +1 -1
- data/vendor/mathjax/localization/en/MathMenu.js +1 -1
- data/vendor/mathjax/localization/en/TeX.js +1 -1
- data/vendor/mathjax/localization/en/en.js +1 -1
- data/vendor/mathjax/localization/eo/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/eo/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/eo/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/eo/MathML.js +1 -1
- data/vendor/mathjax/localization/eo/MathMenu.js +1 -1
- data/vendor/mathjax/localization/eo/TeX.js +1 -1
- data/vendor/mathjax/localization/eo/eo.js +1 -1
- data/vendor/mathjax/localization/es/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/es/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/es/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/es/MathML.js +1 -1
- data/vendor/mathjax/localization/es/MathMenu.js +1 -1
- data/vendor/mathjax/localization/es/TeX.js +1 -1
- data/vendor/mathjax/localization/es/es.js +1 -1
- data/vendor/mathjax/localization/fa/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/fa/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/fa/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/fa/MathML.js +1 -1
- data/vendor/mathjax/localization/fa/MathMenu.js +1 -1
- data/vendor/mathjax/localization/fa/TeX.js +1 -1
- data/vendor/mathjax/localization/fa/fa.js +1 -1
- data/vendor/mathjax/localization/fi/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/fi/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/fi/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/fi/MathML.js +1 -1
- data/vendor/mathjax/localization/fi/MathMenu.js +1 -1
- data/vendor/mathjax/localization/fi/TeX.js +1 -1
- data/vendor/mathjax/localization/fi/fi.js +1 -1
- data/vendor/mathjax/localization/fr/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/fr/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/fr/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/fr/MathML.js +1 -1
- data/vendor/mathjax/localization/fr/MathMenu.js +1 -1
- data/vendor/mathjax/localization/fr/TeX.js +1 -1
- data/vendor/mathjax/localization/fr/fr.js +1 -1
- data/vendor/mathjax/localization/gl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/gl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/gl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/gl/MathML.js +1 -1
- data/vendor/mathjax/localization/gl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/gl/TeX.js +1 -1
- data/vendor/mathjax/localization/gl/gl.js +1 -1
- data/vendor/mathjax/localization/he/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/he/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/he/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/he/MathML.js +1 -1
- data/vendor/mathjax/localization/he/MathMenu.js +1 -1
- data/vendor/mathjax/localization/he/TeX.js +1 -1
- data/vendor/mathjax/localization/he/he.js +1 -1
- data/vendor/mathjax/localization/ia/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ia/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ia/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ia/MathML.js +1 -1
- data/vendor/mathjax/localization/ia/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ia/TeX.js +1 -1
- data/vendor/mathjax/localization/ia/ia.js +1 -1
- data/vendor/mathjax/localization/it/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/it/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/it/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/it/MathML.js +1 -1
- data/vendor/mathjax/localization/it/MathMenu.js +1 -1
- data/vendor/mathjax/localization/it/TeX.js +1 -1
- data/vendor/mathjax/localization/it/it.js +1 -1
- data/vendor/mathjax/localization/ja/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ja/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ja/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ja/MathML.js +1 -1
- data/vendor/mathjax/localization/ja/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ja/TeX.js +1 -1
- data/vendor/mathjax/localization/ja/ja.js +1 -1
- data/vendor/mathjax/localization/kn/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/kn/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/kn/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/kn/MathML.js +1 -1
- data/vendor/mathjax/localization/kn/MathMenu.js +1 -1
- data/vendor/mathjax/localization/kn/TeX.js +1 -1
- data/vendor/mathjax/localization/kn/kn.js +1 -1
- data/vendor/mathjax/localization/ko/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ko/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ko/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ko/MathML.js +1 -1
- data/vendor/mathjax/localization/ko/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ko/TeX.js +1 -1
- data/vendor/mathjax/localization/ko/ko.js +1 -1
- data/vendor/mathjax/localization/lb/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/lb/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/lb/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/lb/MathML.js +1 -1
- data/vendor/mathjax/localization/lb/MathMenu.js +1 -1
- data/vendor/mathjax/localization/lb/TeX.js +1 -1
- data/vendor/mathjax/localization/lb/lb.js +1 -1
- data/vendor/mathjax/localization/lki/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/lki/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/lki/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/lki/MathML.js +19 -0
- data/vendor/mathjax/localization/lki/MathMenu.js +19 -0
- data/vendor/mathjax/localization/lki/TeX.js +19 -0
- data/vendor/mathjax/localization/lki/lki.js +19 -0
- data/vendor/mathjax/localization/lt/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/lt/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/lt/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/lt/MathML.js +19 -0
- data/vendor/mathjax/localization/lt/MathMenu.js +19 -0
- data/vendor/mathjax/localization/lt/TeX.js +19 -0
- data/vendor/mathjax/localization/lt/lt.js +19 -0
- data/vendor/mathjax/localization/mk/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/mk/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/mk/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/mk/MathML.js +1 -1
- data/vendor/mathjax/localization/mk/MathMenu.js +1 -1
- data/vendor/mathjax/localization/mk/TeX.js +1 -1
- data/vendor/mathjax/localization/mk/mk.js +1 -1
- data/vendor/mathjax/localization/nl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/nl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/nl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/nl/MathML.js +1 -1
- data/vendor/mathjax/localization/nl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/nl/TeX.js +1 -1
- data/vendor/mathjax/localization/nl/nl.js +1 -1
- data/vendor/mathjax/localization/oc/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/oc/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/oc/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/oc/MathML.js +1 -1
- data/vendor/mathjax/localization/oc/MathMenu.js +1 -1
- data/vendor/mathjax/localization/oc/TeX.js +1 -1
- data/vendor/mathjax/localization/oc/oc.js +1 -1
- data/vendor/mathjax/localization/pl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/pl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/pl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/pl/MathML.js +1 -1
- data/vendor/mathjax/localization/pl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/pl/TeX.js +1 -1
- data/vendor/mathjax/localization/pl/pl.js +1 -1
- data/vendor/mathjax/localization/pt-br/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/pt-br/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/pt-br/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/pt-br/MathML.js +1 -1
- data/vendor/mathjax/localization/pt-br/MathMenu.js +1 -1
- data/vendor/mathjax/localization/pt-br/TeX.js +1 -1
- data/vendor/mathjax/localization/pt-br/pt-br.js +1 -1
- data/vendor/mathjax/localization/pt/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/pt/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/pt/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/pt/MathML.js +1 -1
- data/vendor/mathjax/localization/pt/MathMenu.js +1 -1
- data/vendor/mathjax/localization/pt/TeX.js +1 -1
- data/vendor/mathjax/localization/pt/pt.js +1 -1
- data/vendor/mathjax/localization/qqq/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/qqq/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/qqq/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/qqq/MathML.js +1 -1
- data/vendor/mathjax/localization/qqq/MathMenu.js +1 -1
- data/vendor/mathjax/localization/qqq/TeX.js +1 -1
- data/vendor/mathjax/localization/qqq/qqq.js +1 -1
- data/vendor/mathjax/localization/ru/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/ru/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/ru/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/ru/MathML.js +1 -1
- data/vendor/mathjax/localization/ru/MathMenu.js +1 -1
- data/vendor/mathjax/localization/ru/TeX.js +1 -1
- data/vendor/mathjax/localization/ru/ru.js +1 -1
- data/vendor/mathjax/localization/scn/FontWarnings.js +19 -0
- data/vendor/mathjax/localization/scn/HTML-CSS.js +19 -0
- data/vendor/mathjax/localization/scn/HelpDialog.js +19 -0
- data/vendor/mathjax/localization/scn/MathML.js +19 -0
- data/vendor/mathjax/localization/scn/MathMenu.js +19 -0
- data/vendor/mathjax/localization/scn/TeX.js +19 -0
- data/vendor/mathjax/localization/scn/scn.js +19 -0
- data/vendor/mathjax/localization/sco/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/sco/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/sco/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/sco/MathML.js +1 -1
- data/vendor/mathjax/localization/sco/MathMenu.js +1 -1
- data/vendor/mathjax/localization/sco/TeX.js +1 -1
- data/vendor/mathjax/localization/sco/sco.js +1 -1
- data/vendor/mathjax/localization/sl/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/sl/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/sl/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/sl/MathML.js +1 -1
- data/vendor/mathjax/localization/sl/MathMenu.js +1 -1
- data/vendor/mathjax/localization/sl/TeX.js +1 -1
- data/vendor/mathjax/localization/sl/sl.js +1 -1
- data/vendor/mathjax/localization/sv/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/sv/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/sv/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/sv/MathML.js +1 -1
- data/vendor/mathjax/localization/sv/MathMenu.js +1 -1
- data/vendor/mathjax/localization/sv/TeX.js +1 -1
- data/vendor/mathjax/localization/sv/sv.js +1 -1
- data/vendor/mathjax/localization/tr/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/tr/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/tr/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/tr/MathML.js +1 -1
- data/vendor/mathjax/localization/tr/MathMenu.js +1 -1
- data/vendor/mathjax/localization/tr/TeX.js +1 -1
- data/vendor/mathjax/localization/tr/tr.js +1 -1
- data/vendor/mathjax/localization/uk/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/uk/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/uk/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/uk/MathML.js +1 -1
- data/vendor/mathjax/localization/uk/MathMenu.js +1 -1
- data/vendor/mathjax/localization/uk/TeX.js +1 -1
- data/vendor/mathjax/localization/uk/uk.js +1 -1
- data/vendor/mathjax/localization/vi/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/vi/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/vi/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/vi/MathML.js +1 -1
- data/vendor/mathjax/localization/vi/MathMenu.js +1 -1
- data/vendor/mathjax/localization/vi/TeX.js +1 -1
- data/vendor/mathjax/localization/vi/vi.js +1 -1
- data/vendor/mathjax/localization/zh-hans/FontWarnings.js +1 -1
- data/vendor/mathjax/localization/zh-hans/HTML-CSS.js +1 -1
- data/vendor/mathjax/localization/zh-hans/HelpDialog.js +1 -1
- data/vendor/mathjax/localization/zh-hans/MathML.js +1 -1
- data/vendor/mathjax/localization/zh-hans/MathMenu.js +1 -1
- data/vendor/mathjax/localization/zh-hans/TeX.js +1 -1
- data/vendor/mathjax/localization/zh-hans/zh-hans.js +1 -1
- data/vendor/mathjax/package.json +30 -0
- data/vendor/mathjax/test/examples.html +3 -0
- data/vendor/mathjax/test/index-images.html +1 -0
- data/vendor/mathjax/test/index.html +1 -0
- data/vendor/mathjax/test/localization.html +3 -1
- data/vendor/mathjax/test/sample-all-at-once.html +1 -0
- data/vendor/mathjax/test/sample-asciimath.html +1 -0
- data/vendor/mathjax/test/sample-autoload.html +1 -0
- data/vendor/mathjax/test/sample-dynamic-2.html +26 -12
- data/vendor/mathjax/test/sample-dynamic-steps.html +1 -0
- data/vendor/mathjax/test/sample-dynamic.html +7 -1
- data/vendor/mathjax/test/sample-eqnum.html +1 -0
- data/vendor/mathjax/test/sample-eqrefs.html +1 -0
- data/vendor/mathjax/test/sample-loader-config.html +1 -0
- data/vendor/mathjax/test/sample-loader.html +1 -0
- data/vendor/mathjax/test/sample-macros.html +1 -0
- data/vendor/mathjax/test/sample-mediawiki-texvc.html +2 -0
- data/vendor/mathjax/test/sample-mml.html +1 -0
- data/vendor/mathjax/test/sample-signals.html +1 -0
- data/vendor/mathjax/test/sample-tex.html +1 -0
- data/vendor/mathjax/test/sample.html +1 -0
- data/vendor/mathjax/unpacked/MathJax.js +103 -58
- data/vendor/mathjax/unpacked/config/AM_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/AM_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/AM_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/AM_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/AM_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/AM_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/Accessible-full.js +2 -2
- data/vendor/mathjax/unpacked/config/Accessible.js +2 -2
- data/vendor/mathjax/unpacked/config/MML_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/MML_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/MML_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/MML_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/MML_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/MML_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/MMLorHTML.js +1 -1
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_SVG-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS-MML_SVG.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-AMS_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-AMS_HTML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS_HTML.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-AMS_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-AMS_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_CHTML-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_CHTML.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_HTMLorMML-full.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_HTMLorMML.js +2 -2
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_SVG-full.js +24 -0
- data/vendor/mathjax/unpacked/config/TeX-MML-AM_SVG.js +24 -0
- data/vendor/mathjax/unpacked/config/default.js +6 -0
- data/vendor/mathjax/unpacked/extensions/AssistiveMML.js +160 -0
- data/vendor/mathjax/unpacked/extensions/CHTML-preview.js +5 -114
- data/vendor/mathjax/unpacked/extensions/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/extensions/HTML-CSS/handle-floats.js +1 -1
- data/vendor/mathjax/unpacked/extensions/HelpDialog.js +64 -15
- data/vendor/mathjax/unpacked/extensions/MatchWebFonts.js +1 -1
- data/vendor/mathjax/unpacked/extensions/MathEvents.js +111 -63
- data/vendor/mathjax/unpacked/extensions/MathML/content-mathml.js +15 -7
- data/vendor/mathjax/unpacked/extensions/MathML/mml3.js +661 -5
- data/vendor/mathjax/unpacked/extensions/MathMenu.js +635 -178
- data/vendor/mathjax/unpacked/extensions/MathZoom.js +4 -1
- data/vendor/mathjax/unpacked/extensions/Safe.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/AMScd.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/AMSmath.js +16 -24
- data/vendor/mathjax/unpacked/extensions/TeX/AMSsymbols.js +2 -2
- data/vendor/mathjax/unpacked/extensions/TeX/HTML.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/action.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/autobold.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/autoload-all.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/bbox.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/begingroup.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/boldsymbol.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/cancel.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/color.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/enclose.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/extpfeil.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/mathchoice.js +22 -8
- data/vendor/mathjax/unpacked/extensions/TeX/mediawiki-texvc.js +23 -3
- data/vendor/mathjax/unpacked/extensions/TeX/mhchem.js +55 -20
- data/vendor/mathjax/unpacked/extensions/TeX/newcommand.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/noErrors.js +63 -10
- data/vendor/mathjax/unpacked/extensions/TeX/noUndefined.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/unicode.js +1 -1
- data/vendor/mathjax/unpacked/extensions/TeX/verb.js +1 -1
- data/vendor/mathjax/unpacked/extensions/asciimath2jax.js +1 -1
- data/vendor/mathjax/unpacked/extensions/fast-preview.js +155 -0
- data/vendor/mathjax/unpacked/extensions/jsMath2jax.js +1 -1
- data/vendor/mathjax/unpacked/extensions/mml2jax.js +3 -3
- data/vendor/mathjax/unpacked/extensions/tex2jax.js +1 -1
- data/vendor/mathjax/unpacked/extensions/toMathML.js +15 -5
- data/vendor/mathjax/unpacked/jax/element/mml/jax.js +36 -12
- data/vendor/mathjax/unpacked/jax/input/AsciiMath/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/input/AsciiMath/jax.js +11 -3
- data/vendor/mathjax/unpacked/jax/input/MathML/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/input/MathML/jax.js +5 -3
- data/vendor/mathjax/unpacked/jax/input/TeX/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/input/TeX/jax.js +65 -45
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/annotation-xml.js +60 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/maction.js +178 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/menclose.js +317 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/mglyph.js +94 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/mmultiscripts.js +290 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/ms.js +73 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/mtable.js +596 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/autoload/multiline.js +777 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/config.js +12 -1
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js +289 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js +99 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js +125 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js +125 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Main-Bold.js +208 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js +208 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js +152 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js +152 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js +152 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Script-Regular.js +88 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js +155 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js +238 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata.js +1697 -0
- data/vendor/mathjax/unpacked/jax/output/CommonHTML/jax.js +2397 -857
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/annotation-xml.js +5 -3
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/maction.js +12 -11
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/menclose.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/mglyph.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/mmultiscripts.js +36 -11
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/ms.js +8 -5
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/mtable.js +24 -20
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/autoload/multiline.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Asana-Math/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Pagella/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Gyre-Termes/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/imageFonts.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/HTML-CSS/jax.js +117 -59
- data/vendor/mathjax/unpacked/jax/output/NativeMML/config.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/NativeMML/jax.js +19 -7
- data/vendor/mathjax/unpacked/jax/output/PlainSource/config.js +49 -0
- data/vendor/mathjax/unpacked/jax/output/PlainSource/jax.js +185 -0
- data/vendor/mathjax/unpacked/jax/output/PreviewHTML/config.js +54 -0
- data/vendor/mathjax/unpacked/jax/output/PreviewHTML/jax.js +1092 -0
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/annotation-xml.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/maction.js +6 -3
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/menclose.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/mglyph.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/mmultiscripts.js +10 -5
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/ms.js +8 -5
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/mtable.js +28 -12
- data/vendor/mathjax/unpacked/jax/output/SVG/autoload/multiline.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/config.js +2 -2
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Asana-Math/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Asana-Math/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Pagella/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Pagella/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Termes/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Gyre-Termes/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Latin-Modern/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Latin-Modern/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Neo-Euler/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/Neo-Euler/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/STIX-Web/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/STIX-Web/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/TeX/fontdata-extra.js +1 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/fonts/TeX/fontdata.js +4 -1
- data/vendor/mathjax/unpacked/jax/output/SVG/jax.js +58 -31
- data/vendor/mathjax/unpacked/localization/ast/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ast/ast.js +2 -2
- data/vendor/mathjax/unpacked/localization/bcc/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/bcc/bcc.js +3 -3
- data/vendor/mathjax/unpacked/localization/bg/FontWarnings.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/HTML-CSS.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/HelpDialog.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/MathML.js +32 -0
- data/vendor/mathjax/unpacked/localization/bg/MathMenu.js +60 -0
- data/vendor/mathjax/unpacked/localization/bg/TeX.js +72 -0
- data/vendor/mathjax/unpacked/localization/bg/bg.js +59 -0
- data/vendor/mathjax/unpacked/localization/br/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/br/TeX.js +3 -2
- data/vendor/mathjax/unpacked/localization/br/br.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/FontWarnings.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ca/HelpDialog.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ca/MathMenu.js +2 -2
- data/vendor/mathjax/unpacked/localization/ca/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ca/ca.js +2 -2
- data/vendor/mathjax/unpacked/localization/cdo/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/cdo/cdo.js +5 -5
- data/vendor/mathjax/unpacked/localization/ce/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ce/ce.js +2 -2
- data/vendor/mathjax/unpacked/localization/cs/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/cs/cs.js +2 -2
- data/vendor/mathjax/unpacked/localization/cy/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/cy/cy.js +2 -2
- data/vendor/mathjax/unpacked/localization/da/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/da/da.js +2 -2
- data/vendor/mathjax/unpacked/localization/de/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/de/TeX.js +14 -14
- data/vendor/mathjax/unpacked/localization/de/de.js +2 -2
- data/vendor/mathjax/unpacked/localization/en/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/en/en.js +2 -2
- data/vendor/mathjax/unpacked/localization/eo/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/eo/eo.js +2 -2
- data/vendor/mathjax/unpacked/localization/es/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/es/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/es/es.js +2 -2
- data/vendor/mathjax/unpacked/localization/fa/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/fa/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/fa/HelpDialog.js +3 -3
- data/vendor/mathjax/unpacked/localization/fa/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/fa/MathMenu.js +2 -2
- data/vendor/mathjax/unpacked/localization/fa/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/fa/fa.js +2 -2
- data/vendor/mathjax/unpacked/localization/fi/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/fi/fi.js +2 -2
- data/vendor/mathjax/unpacked/localization/fr/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/fr/MathMenu.js +2 -2
- data/vendor/mathjax/unpacked/localization/fr/TeX.js +11 -11
- data/vendor/mathjax/unpacked/localization/fr/fr.js +4 -4
- data/vendor/mathjax/unpacked/localization/gl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/gl/gl.js +2 -2
- data/vendor/mathjax/unpacked/localization/he/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/he/he.js +2 -2
- data/vendor/mathjax/unpacked/localization/ia/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ia/ia.js +2 -2
- data/vendor/mathjax/unpacked/localization/it/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/it/it.js +2 -2
- data/vendor/mathjax/unpacked/localization/ja/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ja/ja.js +2 -2
- data/vendor/mathjax/unpacked/localization/kn/FontWarnings.js +3 -2
- data/vendor/mathjax/unpacked/localization/kn/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/kn/kn.js +2 -2
- data/vendor/mathjax/unpacked/localization/ko/FontWarnings.js +4 -2
- data/vendor/mathjax/unpacked/localization/ko/HTML-CSS.js +6 -2
- data/vendor/mathjax/unpacked/localization/ko/HelpDialog.js +5 -2
- data/vendor/mathjax/unpacked/localization/ko/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ko/MathMenu.js +11 -3
- data/vendor/mathjax/unpacked/localization/ko/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ko/ko.js +2 -2
- data/vendor/mathjax/unpacked/localization/lb/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/lb/lb.js +2 -2
- data/vendor/mathjax/unpacked/localization/lki/FontWarnings.js +38 -0
- data/vendor/mathjax/unpacked/localization/lki/HTML-CSS.js +36 -0
- data/vendor/mathjax/unpacked/localization/lki/HelpDialog.js +41 -0
- data/vendor/mathjax/unpacked/localization/lki/MathML.js +41 -0
- data/vendor/mathjax/unpacked/localization/lki/MathMenu.js +111 -0
- data/vendor/mathjax/unpacked/localization/lki/TeX.js +102 -0
- data/vendor/mathjax/unpacked/localization/lki/lki.js +61 -0
- data/vendor/mathjax/unpacked/localization/lt/FontWarnings.js +38 -0
- data/vendor/mathjax/unpacked/localization/lt/HTML-CSS.js +36 -0
- data/vendor/mathjax/unpacked/localization/lt/HelpDialog.js +41 -0
- data/vendor/mathjax/unpacked/localization/lt/MathML.js +41 -0
- data/vendor/mathjax/unpacked/localization/lt/MathMenu.js +111 -0
- data/vendor/mathjax/unpacked/localization/lt/TeX.js +102 -0
- data/vendor/mathjax/unpacked/localization/lt/lt.js +66 -0
- data/vendor/mathjax/unpacked/localization/mk/FontWarnings.js +2 -2
- data/vendor/mathjax/unpacked/localization/mk/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/mk/mk.js +2 -2
- data/vendor/mathjax/unpacked/localization/nl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/nl/HTML-CSS.js +3 -3
- data/vendor/mathjax/unpacked/localization/nl/HelpDialog.js +2 -2
- data/vendor/mathjax/unpacked/localization/nl/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/nl/MathMenu.js +21 -21
- data/vendor/mathjax/unpacked/localization/nl/TeX.js +26 -26
- data/vendor/mathjax/unpacked/localization/nl/nl.js +7 -7
- data/vendor/mathjax/unpacked/localization/oc/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/oc/oc.js +2 -2
- data/vendor/mathjax/unpacked/localization/pl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/pl/pl.js +2 -2
- data/vendor/mathjax/unpacked/localization/pt-br/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt-br/TeX.js +2 -2
- data/vendor/mathjax/unpacked/localization/pt-br/pt-br.js +5 -5
- data/vendor/mathjax/unpacked/localization/pt/FontWarnings.js +8 -8
- data/vendor/mathjax/unpacked/localization/pt/HTML-CSS.js +4 -4
- data/vendor/mathjax/unpacked/localization/pt/HelpDialog.js +5 -5
- data/vendor/mathjax/unpacked/localization/pt/MathML.js +2 -2
- data/vendor/mathjax/unpacked/localization/pt/MathMenu.js +17 -17
- data/vendor/mathjax/unpacked/localization/pt/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/pt/pt.js +2 -2
- data/vendor/mathjax/unpacked/localization/qqq/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/qqq/qqq.js +2 -2
- data/vendor/mathjax/unpacked/localization/ru/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/ru/ru.js +2 -2
- data/vendor/mathjax/unpacked/localization/scn/FontWarnings.js +38 -0
- data/vendor/mathjax/unpacked/localization/scn/HTML-CSS.js +36 -0
- data/vendor/mathjax/unpacked/localization/scn/HelpDialog.js +41 -0
- data/vendor/mathjax/unpacked/localization/scn/MathML.js +41 -0
- data/vendor/mathjax/unpacked/localization/scn/MathMenu.js +111 -0
- data/vendor/mathjax/unpacked/localization/scn/TeX.js +102 -0
- data/vendor/mathjax/unpacked/localization/scn/scn.js +61 -0
- data/vendor/mathjax/unpacked/localization/sco/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/sco/sco.js +2 -2
- data/vendor/mathjax/unpacked/localization/sl/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/sl/sl.js +2 -2
- data/vendor/mathjax/unpacked/localization/sv/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/sv/sv.js +2 -2
- data/vendor/mathjax/unpacked/localization/tr/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/tr/tr.js +2 -2
- data/vendor/mathjax/unpacked/localization/uk/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/uk/uk.js +2 -2
- data/vendor/mathjax/unpacked/localization/vi/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/HelpDialog.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/TeX.js +1 -1
- data/vendor/mathjax/unpacked/localization/vi/vi.js +2 -2
- data/vendor/mathjax/unpacked/localization/zh-hans/FontWarnings.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/HTML-CSS.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/HelpDialog.js +2 -2
- data/vendor/mathjax/unpacked/localization/zh-hans/MathML.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/MathMenu.js +1 -1
- data/vendor/mathjax/unpacked/localization/zh-hans/TeX.js +2 -2
- data/vendor/mathjax/unpacked/localization/zh-hans/zh-hans.js +2 -2
- metadata +154 -11
- data/vendor/mathjax/images/CloseX-31.png +0 -0
- data/vendor/mathjax/images/MenuArrow-15.png +0 -0
@@ -4,21 +4,21 @@
|
|
4
4
|
/*************************************************************
|
5
5
|
*
|
6
6
|
* MathJax/extensions/MathMenu.js
|
7
|
-
*
|
7
|
+
*
|
8
8
|
* Implements a right-mouse (or CTRL-click) menu over mathematics
|
9
9
|
* elements that gives the user the ability to copy the source,
|
10
10
|
* change the math size, and zoom settings.
|
11
11
|
*
|
12
12
|
* ---------------------------------------------------------------------
|
13
|
-
*
|
13
|
+
*
|
14
14
|
* Copyright (c) 2010-2015 The MathJax Consortium
|
15
|
-
*
|
15
|
+
*
|
16
16
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
17
17
|
* you may not use this file except in compliance with the License.
|
18
18
|
* You may obtain a copy of the License at
|
19
|
-
*
|
19
|
+
*
|
20
20
|
* http://www.apache.org/licenses/LICENSE-2.0
|
21
|
-
*
|
21
|
+
*
|
22
22
|
* Unless required by applicable law or agreed to in writing, software
|
23
23
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
24
24
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@@ -27,10 +27,10 @@
|
|
27
27
|
*/
|
28
28
|
|
29
29
|
(function (HUB,HTML,AJAX,CALLBACK,OUTPUT) {
|
30
|
-
var VERSION = "2.
|
30
|
+
var VERSION = "2.6.1";
|
31
|
+
|
32
|
+
var SIGNAL = MathJax.Callback.Signal("menu"); // signal for menu events
|
31
33
|
|
32
|
-
var SIGNAL = MathJax.Callback.Signal("menu") // signal for menu events
|
33
|
-
|
34
34
|
MathJax.Extension.MathMenu = {
|
35
35
|
version: VERSION,
|
36
36
|
signal: SIGNAL
|
@@ -45,10 +45,9 @@
|
|
45
45
|
|
46
46
|
var isPC = HUB.Browser.isPC, isMSIE = HUB.Browser.isMSIE, isIE9 = ((document.documentMode||0) > 8);
|
47
47
|
var ROUND = (isPC ? null : "5px");
|
48
|
-
|
48
|
+
|
49
49
|
var CONFIG = HUB.CombineConfig("MathMenu",{
|
50
50
|
delay: 150, // the delay for submenus
|
51
|
-
closeImg: AJAX.urlRev(OUTPUT.imageDir+"/CloseX-31.png"), // image for close "X" for mobiles
|
52
51
|
|
53
52
|
showRenderer: true, // show the "Math Renderer" menu?
|
54
53
|
showMathPlayer: true, // show the "MathPlayer" menu?
|
@@ -73,7 +72,7 @@
|
|
73
72
|
left: Math.round((screen.width - 400)/2),
|
74
73
|
top: Math.round((screen.height - 300)/3)
|
75
74
|
},
|
76
|
-
|
75
|
+
|
77
76
|
styles: {
|
78
77
|
"#MathJax_About": {
|
79
78
|
position:"fixed", left:"50%", width:"auto", "text-align":"center",
|
@@ -94,6 +93,9 @@
|
|
94
93
|
"-khtml-box-shadow":"0px 10px 20px #808080", // Konqueror
|
95
94
|
filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')" // IE
|
96
95
|
},
|
96
|
+
"#MathJax_About.MathJax_MousePost": {
|
97
|
+
outline:"none"
|
98
|
+
},
|
97
99
|
|
98
100
|
".MathJax_Menu": {
|
99
101
|
position:"absolute", "background-color":"white", color:"black",
|
@@ -121,8 +123,8 @@
|
|
121
123
|
},
|
122
124
|
|
123
125
|
".MathJax_MenuArrow": {
|
124
|
-
position:"absolute", right:".5em", color:"#666666",
|
125
|
-
"font-family": (isMSIE ? "'Arial unicode MS'" : null)
|
126
|
+
position:"absolute", right:".5em", "padding-top":".25em", color:"#666666",
|
127
|
+
"font-family": (isMSIE ? "'Arial unicode MS'" : null), "font-size": ".75em"
|
126
128
|
},
|
127
129
|
".MathJax_MenuActive .MathJax_MenuArrow": {color:"white"},
|
128
130
|
".MathJax_MenuArrow.RTL": {left:".5em", right:"auto"},
|
@@ -144,46 +146,135 @@
|
|
144
146
|
padding: (isPC ? "2px 2em 4px 1.33em" : "1px 2em 3px 1.33em"),
|
145
147
|
"font-style":"italic"
|
146
148
|
},
|
147
|
-
|
149
|
+
|
148
150
|
".MathJax_MenuRule": {
|
149
151
|
"border-top": (isPC ? "1px solid #CCCCCC" : "1px solid #DDDDDD"),
|
150
152
|
margin: (isPC ? "4px 1px 0px" : "4px 3px")
|
151
153
|
},
|
152
|
-
|
154
|
+
|
153
155
|
".MathJax_MenuDisabled": {
|
154
156
|
color:"GrayText"
|
155
157
|
},
|
156
|
-
|
157
158
|
".MathJax_MenuActive": {
|
158
159
|
"background-color": (isPC ? "Highlight" : "#606872"),
|
159
160
|
color: (isPC ? "HighlightText" : "white")
|
160
161
|
},
|
161
|
-
|
162
|
-
".
|
163
|
-
|
164
|
-
|
165
|
-
|
162
|
+
|
163
|
+
".MathJax_MenuDisabled:focus, .MathJax_MenuLabel:focus": {
|
164
|
+
"background-color": "#E8E8E8"
|
165
|
+
},
|
166
|
+
".MathJax_ContextMenu:focus": {
|
167
|
+
outline:"none"
|
168
|
+
},
|
169
|
+
".MathJax_ContextMenu .MathJax_MenuItem:focus": {
|
170
|
+
outline:"none"
|
171
|
+
},
|
172
|
+
|
173
|
+
"#MathJax_AboutClose": {
|
174
|
+
top:".2em", right:".2em"
|
175
|
+
},
|
176
|
+
".MathJax_Menu .MathJax_MenuClose": {
|
177
|
+
top:"-10px", left:"-10px"
|
178
|
+
},
|
179
|
+
|
180
|
+
".MathJax_MenuClose": {
|
181
|
+
position:"absolute",
|
182
|
+
cursor:"pointer",
|
183
|
+
display:"inline-block",
|
184
|
+
border:"2px solid #AAA",
|
185
|
+
"border-radius":"18px",
|
186
|
+
"-webkit-border-radius": "18px", // Safari and Chrome
|
187
|
+
"-moz-border-radius": "18px", // Firefox
|
188
|
+
"-khtml-border-radius": "18px", // Konqueror
|
189
|
+
"font-family":"'Courier New',Courier",
|
190
|
+
"font-size":"24px",
|
191
|
+
color:"#F0F0F0"
|
192
|
+
},
|
193
|
+
".MathJax_MenuClose span": {
|
194
|
+
display:"block", "background-color":"#AAA", border:"1.5px solid",
|
195
|
+
"border-radius":"18px",
|
196
|
+
"-webkit-border-radius": "18px", // Safari and Chrome
|
197
|
+
"-moz-border-radius": "18px", // Firefox
|
198
|
+
"-khtml-border-radius": "18px", // Konqueror
|
199
|
+
"line-height":0,
|
200
|
+
padding:"8px 0 6px" // may need to be browser-specific
|
201
|
+
},
|
202
|
+
".MathJax_MenuClose:hover": {
|
203
|
+
color:"white!important",
|
204
|
+
border:"2px solid #CCC!important"
|
205
|
+
},
|
206
|
+
".MathJax_MenuClose:hover span": {
|
207
|
+
"background-color":"#CCC!important"
|
208
|
+
},
|
209
|
+
".MathJax_MenuClose:hover:focus": {
|
210
|
+
outline:"none"
|
166
211
|
}
|
167
212
|
}
|
168
213
|
});
|
169
|
-
|
170
|
-
var FALSE, HOVER;
|
214
|
+
|
215
|
+
var FALSE, HOVER, KEY;
|
171
216
|
HUB.Register.StartupHook("MathEvents Ready",function () {
|
172
217
|
FALSE = MathJax.Extension.MathEvents.Event.False;
|
173
218
|
HOVER = MathJax.Extension.MathEvents.Hover;
|
219
|
+
KEY = MathJax.Extension.MathEvents.Event.KEY;
|
174
220
|
});
|
175
|
-
|
221
|
+
|
222
|
+
|
223
|
+
/*************************************************************/
|
224
|
+
/*
|
225
|
+
* Abstract class of all keyboard navigatable objects.
|
226
|
+
*/
|
227
|
+
var NAV = MathJax.Object.Subclass({
|
228
|
+
/*
|
229
|
+
* Moving in the list of items.
|
230
|
+
*/
|
231
|
+
Keydown: function(event, menu) {
|
232
|
+
switch (event.keyCode) {
|
233
|
+
case KEY.ESCAPE:
|
234
|
+
this.Remove(event, menu);
|
235
|
+
break;
|
236
|
+
case KEY.RIGHT:
|
237
|
+
this.Right(event, menu);
|
238
|
+
break;
|
239
|
+
case KEY.LEFT:
|
240
|
+
this.Left(event, menu);
|
241
|
+
break;
|
242
|
+
case KEY.UP:
|
243
|
+
this.Up(event, menu);
|
244
|
+
break;
|
245
|
+
case KEY.DOWN:
|
246
|
+
this.Down(event, menu);
|
247
|
+
break;
|
248
|
+
case KEY.RETURN:
|
249
|
+
case KEY.SPACE:
|
250
|
+
this.Space(event, menu);
|
251
|
+
break;
|
252
|
+
default:
|
253
|
+
return;
|
254
|
+
break;
|
255
|
+
}
|
256
|
+
return FALSE(event);
|
257
|
+
},
|
258
|
+
Escape: function(event, menu) { },
|
259
|
+
Right: function(event, menu) { },
|
260
|
+
Left: function(event, menu) { },
|
261
|
+
Up: function(event, menu) { },
|
262
|
+
Down: function(event, menu) { },
|
263
|
+
Space: function(event, menu) { }
|
264
|
+
}, {});
|
265
|
+
|
266
|
+
|
176
267
|
/*************************************************************/
|
177
268
|
/*
|
178
269
|
* The main menu class
|
179
270
|
*/
|
180
|
-
var MENU = MathJax.Menu =
|
271
|
+
var MENU = MathJax.Menu = NAV.Subclass({
|
181
272
|
version: VERSION,
|
182
273
|
items: [],
|
183
274
|
posted: false,
|
184
275
|
title: null,
|
185
276
|
margin: 5,
|
186
|
-
|
277
|
+
|
187
278
|
Init: function (def) {this.items = [].slice.call(arguments,0)},
|
188
279
|
With: function (def) {if (def) {HUB.Insert(this,def)}; return this},
|
189
280
|
|
@@ -191,7 +282,7 @@
|
|
191
282
|
* Display the menu
|
192
283
|
*/
|
193
284
|
Post: function (event,parent,forceLTR) {
|
194
|
-
if (!event) {event = window.event}
|
285
|
+
if (!event) {event = window.event||{}}
|
195
286
|
var div = document.getElementById("MathJax_MenuFrame");
|
196
287
|
if (!div) {
|
197
288
|
div = MENU.Background(this);
|
@@ -203,28 +294,38 @@
|
|
203
294
|
var menu = HTML.Element("div",{
|
204
295
|
onmouseup: MENU.Mouseup, ondblclick: FALSE,
|
205
296
|
ondragstart: FALSE, onselectstart: FALSE, oncontextmenu: FALSE,
|
206
|
-
menuItem: this, className: "MathJax_Menu"
|
297
|
+
menuItem: this, className: "MathJax_Menu", onkeydown: MENU.Keydown,
|
298
|
+
role: "menu"
|
207
299
|
});
|
300
|
+
if (event.type === "contextmenu" || event.type === "mouseover")
|
301
|
+
menu.className += " MathJax_ContextMenu";
|
208
302
|
if (!forceLTR) {MathJax.Localization.setCSS(menu)}
|
209
303
|
|
210
304
|
for (var i = 0, m = this.items.length; i < m; i++) {this.items[i].Create(menu)}
|
211
305
|
if (MENU.isMobile) {
|
212
306
|
HTML.addElement(menu,"span",{
|
213
|
-
className: "
|
307
|
+
className: "MathJax_MenuClose", menu: parent,
|
214
308
|
ontouchstart: MENU.Close, ontouchend: FALSE, onmousedown: MENU.Close, onmouseup: FALSE
|
215
|
-
},[["
|
309
|
+
},[["span",{},"\u00D7"]]);
|
216
310
|
}
|
217
|
-
|
311
|
+
|
218
312
|
div.appendChild(menu);
|
219
313
|
this.posted = true;
|
220
|
-
|
221
|
-
menu.style.width = (menu.offsetWidth+2) + "px";
|
314
|
+
if (menu.offsetWidth) menu.style.width = (menu.offsetWidth+2) + "px";
|
222
315
|
var x = event.pageX, y = event.pageY;
|
223
|
-
if (!x && !y) {
|
316
|
+
if (!x && !y && "clientX" in event) {
|
224
317
|
x = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
|
225
318
|
y = event.clientY + document.body.scrollTop + document.documentElement.scrollTop;
|
226
319
|
}
|
227
320
|
if (!parent) {
|
321
|
+
var node = MENU.CurrentNode() || event.target;
|
322
|
+
if ((event.type === "keydown" || (!x && !y)) && node) {
|
323
|
+
var offsetX = window.pageXOffset || document.documentElement.scrollLeft;
|
324
|
+
var offsetY = window.pageYOffset || document.documentElement.scrollTop;
|
325
|
+
var rect = node.getBoundingClientRect();
|
326
|
+
x = (rect.right + rect.left) / 2 + offsetX;
|
327
|
+
y = (rect.bottom + rect.top) / 2 + offsetY;
|
328
|
+
}
|
228
329
|
if (x + menu.offsetWidth > document.body.offsetWidth - this.margin)
|
229
330
|
{x = document.body.offsetWidth - menu.offsetWidth - this.margin}
|
230
331
|
if (MENU.isMobile) {x = Math.max(5,x-Math.floor(menu.offsetWidth/2)); y -= 20}
|
@@ -249,10 +350,19 @@
|
|
249
350
|
menu.style["KhtmlBorderRadiusTop"+side] = 0; // Konqueror
|
250
351
|
}
|
251
352
|
}
|
252
|
-
|
353
|
+
|
253
354
|
menu.style.left = x+"px"; menu.style.top = y+"px";
|
254
|
-
|
255
355
|
if (document.selection && document.selection.empty) {document.selection.empty()}
|
356
|
+
|
357
|
+
// Focusing while keeping the scroll position.
|
358
|
+
var oldX = window.pageXOffset || document.documentElement.scrollLeft;
|
359
|
+
var oldY = window.pageYOffset || document.documentElement.scrollTop;
|
360
|
+
MENU.Focus(menu);
|
361
|
+
if (event.type === "keydown") {
|
362
|
+
MENU.skipMouseoverFromKey = true;
|
363
|
+
setTimeout(function() {delete MENU.skipMouseoverFromKey;}, CONFIG.delay);
|
364
|
+
}
|
365
|
+
window.scrollTo(oldX, oldY);
|
256
366
|
return FALSE(event);
|
257
367
|
},
|
258
368
|
|
@@ -270,6 +380,8 @@
|
|
270
380
|
delete MENU.jax.hover.nofade;
|
271
381
|
HOVER.UnHover(MENU.jax);
|
272
382
|
}
|
383
|
+
MENU.Unfocus(menu);
|
384
|
+
if (event.type === "mousedown") MENU.CurrentNode().blur();
|
273
385
|
return FALSE(event);
|
274
386
|
},
|
275
387
|
|
@@ -283,15 +395,15 @@
|
|
283
395
|
for (var i = 0, m = this.items.length; i < m; i++) {
|
284
396
|
if (this.items[i].name[n] === name) {
|
285
397
|
if (names.length) {
|
286
|
-
if (!this.items[i].
|
287
|
-
return this.items[i].
|
398
|
+
if (!this.items[i].submenu) {return null}
|
399
|
+
return this.items[i].submenu.FindN(n,names[0],names.slice(1));
|
288
400
|
}
|
289
401
|
return this.items[i];
|
290
402
|
}
|
291
403
|
}
|
292
404
|
return null;
|
293
405
|
},
|
294
|
-
|
406
|
+
|
295
407
|
/*
|
296
408
|
* Find the index of a menu item (so we can insert before or after it)
|
297
409
|
*/
|
@@ -301,25 +413,49 @@
|
|
301
413
|
for (var i = 0, m = this.items.length; i < m; i++)
|
302
414
|
{if (this.items[i].name[n] === name) {return i}}
|
303
415
|
return null;
|
416
|
+
},
|
417
|
+
|
418
|
+
Right: function(event, menu) {
|
419
|
+
MENU.Right(event, menu);
|
420
|
+
},
|
421
|
+
Left: function(event, menu) {
|
422
|
+
MENU.Left(event, menu);
|
423
|
+
},
|
424
|
+
Up: function(event, menu) {
|
425
|
+
var node = menu.lastChild;
|
426
|
+
node.menuItem.Activate(event, node);
|
427
|
+
},
|
428
|
+
Down: function(event, menu) {
|
429
|
+
var node = menu.firstChild;
|
430
|
+
node.menuItem.Activate(event, node);
|
431
|
+
},
|
432
|
+
Space: function(event, menu) {
|
433
|
+
this.Remove(event, menu);
|
304
434
|
}
|
305
|
-
|
306
435
|
},{
|
307
|
-
|
308
|
-
config: CONFIG,
|
309
436
|
|
310
|
-
|
437
|
+
config: CONFIG,
|
311
438
|
|
312
|
-
Close: function (event)
|
313
|
-
{return MENU.Event(event,this.menu||this.parentNode,(this.menu?"Touchend":"Remove"))},
|
314
439
|
Remove: function (event) {return MENU.Event(event,this,"Remove")},
|
315
440
|
Mouseover: function (event) {return MENU.Event(event,this,"Mouseover")},
|
316
441
|
Mouseout: function (event) {return MENU.Event(event,this,"Mouseout")},
|
317
442
|
Mousedown: function (event) {return MENU.Event(event,this,"Mousedown")},
|
318
443
|
Mouseup: function (event) {return MENU.Event(event,this,"Mouseup")},
|
444
|
+
Keydown: function (event) {return MENU.Event(event,this,"Keydown")},
|
445
|
+
/*
|
446
|
+
* Events for mobile devices.
|
447
|
+
*/
|
319
448
|
Touchstart: function (event) {return MENU.Event(event,this,"Touchstart")},
|
320
449
|
Touchend: function (event) {return MENU.Event(event,this,"Touchend")},
|
450
|
+
Close: function (event) {
|
451
|
+
return MENU.Event(event,this.menu||this.parentNode,(this.menu?"Touchend":"Remove"));
|
452
|
+
},
|
321
453
|
Event: function (event,menu,type,force) {
|
322
454
|
if (MENU.skipMouseover && type === "Mouseover" && !force) {return FALSE(event)}
|
455
|
+
if (MENU.skipMouseoverFromKey && type === "Mouseover") {
|
456
|
+
delete MENU.skipMouseoverFromKey;
|
457
|
+
return FALSE(event);
|
458
|
+
}
|
323
459
|
if (MENU.skipUp) {
|
324
460
|
if (type.match(/Mouseup|Touchend/)) {delete MENU.skipUp; return FALSE(event)}
|
325
461
|
if (type === "Touchstart" ||
|
@@ -330,7 +466,6 @@
|
|
330
466
|
if (item && item[type]) {return item[type](event,menu)}
|
331
467
|
return null;
|
332
468
|
},
|
333
|
-
|
334
469
|
/*
|
335
470
|
* Style for the background DIV
|
336
471
|
*/
|
@@ -340,7 +475,8 @@
|
|
340
475
|
},
|
341
476
|
|
342
477
|
Background: function (menu) {
|
343
|
-
var div = HTML.addElement(document.body,"div",
|
478
|
+
var div = HTML.addElement(document.body,"div",
|
479
|
+
{style:this.BGSTYLE, id:"MathJax_MenuFrame"},
|
344
480
|
[["div",{style: this.BGSTYLE, menuItem: menu, onmousedown: this.Remove}]]);
|
345
481
|
var bg = div.firstChild;
|
346
482
|
if (MENU.msieBackgroundBug) {
|
@@ -369,65 +505,178 @@
|
|
369
505
|
bg.style.height = document.body.scrollHeight + "px";
|
370
506
|
}
|
371
507
|
},
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
508
|
+
|
509
|
+
/*************************************************************/
|
510
|
+
/*
|
511
|
+
* Keyboard navigation of menu.
|
512
|
+
*/
|
513
|
+
posted: false, // Is a menu open?
|
514
|
+
active: null, // The focused in HTML node in the menu.
|
515
|
+
|
516
|
+
GetNode: function(jax) {
|
517
|
+
var node = document.getElementById(jax.inputID + "-Frame");
|
518
|
+
return node.isMathJax ? node : node.firstChild;
|
519
|
+
},
|
520
|
+
CurrentNode: function() {
|
521
|
+
return MENU.GetNode(MENU.jax);
|
522
|
+
},
|
523
|
+
AllNodes: function() {
|
524
|
+
var jaxs = MathJax.Hub.getAllJax();
|
525
|
+
var nodes = [];
|
526
|
+
for (var i = 0, jax; jax = jaxs[i]; i++) {
|
527
|
+
nodes.push(MENU.GetNode(jax));
|
528
|
+
}
|
529
|
+
return nodes;
|
530
|
+
},
|
531
|
+
ActiveNode: function() {
|
532
|
+
return MENU.active;
|
533
|
+
},
|
534
|
+
FocusNode: function(node) {
|
535
|
+
MENU.active = node;
|
536
|
+
node.focus();
|
537
|
+
},
|
376
538
|
//
|
377
|
-
//
|
539
|
+
// Focus is a global affair, since we only ever want a single focused item.
|
378
540
|
//
|
379
|
-
|
380
|
-
|
381
|
-
|
541
|
+
Focus: function(menu) {
|
542
|
+
!MENU.posted ? MENU.Activate(menu) : MENU.ActiveNode().tabIndex = -1;
|
543
|
+
menu.tabIndex = 0;
|
544
|
+
MENU.FocusNode(menu);
|
545
|
+
},
|
546
|
+
Activate: function(event, menu) {
|
547
|
+
MENU.UnsetTabIndex();
|
548
|
+
MENU.posted = true;
|
549
|
+
},
|
550
|
+
Unfocus: function() {
|
551
|
+
MENU.ActiveNode().tabIndex = -1;
|
552
|
+
MENU.SetTabIndex();
|
553
|
+
MENU.FocusNode(MENU.CurrentNode());
|
554
|
+
MENU.posted = false;
|
555
|
+
},
|
556
|
+
MoveHorizontal: function(event, menu, move) {
|
557
|
+
if (!event.shiftKey) return;
|
558
|
+
var jaxs = MENU.AllNodes();
|
559
|
+
var len = jaxs.length;
|
560
|
+
if (len === 0) return;
|
561
|
+
var next = jaxs[MENU.Mod(move(MENU.IndexOf(jaxs, MENU.CurrentNode())), len)];
|
562
|
+
if (next === MENU.CurrentNode()) return;
|
563
|
+
MENU.menu.Remove(event, menu);
|
564
|
+
MENU.jax = MathJax.Hub.getJaxFor(next);
|
565
|
+
MENU.FocusNode(next);
|
566
|
+
MENU.menu.Post(null);
|
567
|
+
},
|
568
|
+
Right: function(event, menu) {
|
569
|
+
MENU.MoveHorizontal(event, menu, function(x) {return x + 1;});
|
570
|
+
},
|
571
|
+
Left: function(event, menu) {
|
572
|
+
MENU.MoveHorizontal(event, menu, function(x) {return x - 1;});
|
573
|
+
},
|
574
|
+
UnsetTabIndex: function () {
|
575
|
+
var jaxs = MENU.AllNodes();
|
576
|
+
for (var j = 0, jax; jax = jaxs[j]; j++) {
|
577
|
+
if (jax.tabIndex > 0) {
|
578
|
+
jax.oldTabIndex = jax.tabIndex;
|
579
|
+
}
|
580
|
+
jax.tabIndex = -1;
|
581
|
+
}
|
582
|
+
},
|
583
|
+
SetTabIndex: function () {
|
584
|
+
var jaxs = MENU.AllNodes();
|
585
|
+
for (var j = 0, jax; jax = jaxs[j]; j++) {
|
586
|
+
if (jax.oldTabIndex !== undefined) {
|
587
|
+
jax.tabIndex = jax.oldTabIndex
|
588
|
+
delete jax.oldTabIndex;
|
589
|
+
} else {
|
590
|
+
jax.tabIndex = HUB.getTabOrder(jax);
|
591
|
+
}
|
592
|
+
}
|
593
|
+
},
|
594
|
+
|
595
|
+
//TODO: Move to utility class.
|
596
|
+
// Computes a mod n.
|
597
|
+
Mod: function(a, n) {
|
598
|
+
return ((a % n) + n) % n;
|
599
|
+
},
|
600
|
+
IndexOf: (Array.prototype.indexOf ?
|
601
|
+
function (A, item, start) {return A.indexOf(item, start);} :
|
602
|
+
function (A, item, start) {
|
603
|
+
for (var i = (start || 0), j = A.length; i < j; i++) {
|
604
|
+
if (item === A[i]) return i;
|
605
|
+
}
|
606
|
+
return -1;
|
607
|
+
}),
|
608
|
+
|
609
|
+
saveCookie: function () {HTML.Cookie.Set("menu",this.cookie)},
|
610
|
+
getCookie: function () {this.cookie = HTML.Cookie.Get("menu")}
|
382
611
|
|
383
612
|
});
|
384
613
|
|
614
|
+
MathJax.Menu.NAV = NAV;
|
615
|
+
|
385
616
|
/*************************************************************/
|
386
617
|
/*
|
387
|
-
*
|
618
|
+
* Abstract class of menu items.
|
388
619
|
*/
|
389
|
-
var ITEM = MENU.ITEM =
|
390
|
-
|
620
|
+
var ITEM = MENU.ITEM = NAV.Subclass({
|
621
|
+
|
622
|
+
name: "", // The menu item's label as [id,label] pair.
|
623
|
+
node: null, // The HTML node of the item.
|
624
|
+
menu: null, // The parent menu containing that item. HTML node.
|
625
|
+
|
626
|
+
Attributes: function(def) {
|
627
|
+
return HUB.Insert(
|
628
|
+
{onmouseup: MENU.Mouseup,
|
629
|
+
ondragstart: FALSE, onselectstart: FALSE, onselectend: FALSE,
|
630
|
+
ontouchstart: MENU.Touchstart, ontouchend: MENU.Touchend,
|
631
|
+
className: "MathJax_MenuItem", role: this.role,
|
632
|
+
menuItem: this},
|
633
|
+
def);
|
634
|
+
},
|
391
635
|
|
392
636
|
Create: function (menu) {
|
393
637
|
if (!this.hidden) {
|
394
|
-
var def =
|
395
|
-
|
396
|
-
|
397
|
-
ondragstart: FALSE, onselectstart: FALSE, onselectend: FALSE,
|
398
|
-
ontouchstart: MENU.Touchstart, ontouchend: MENU.Touchend,
|
399
|
-
className: "MathJax_MenuItem", menuItem: this
|
400
|
-
};
|
401
|
-
if (this.disabled) {def.className += " MathJax_MenuDisabled"}
|
402
|
-
HTML.addElement(menu,"div",def,this.Label(def,menu));
|
638
|
+
var def = this.Attributes();
|
639
|
+
var label = this.Label(def,menu);
|
640
|
+
HTML.addElement(menu, "div", def, label);
|
403
641
|
}
|
404
642
|
},
|
405
643
|
Name: function () {return _(this.name[0],this.name[1])},
|
406
644
|
|
407
645
|
Mouseover: function (event,menu) {
|
408
|
-
if (
|
409
|
-
|
410
|
-
var menus = document.getElementById("MathJax_MenuFrame").childNodes,
|
411
|
-
items = menu.parentNode.childNodes;
|
412
|
-
for (var i = 0, m = items.length; i < m; i++) {
|
413
|
-
var item = items[i].menuItem;
|
414
|
-
if (item && item.menu && item.menu.posted) {item.Deactivate(items[i])}
|
415
|
-
}
|
416
|
-
m = menus.length-1;
|
417
|
-
while (m >= 0 && menu.parentNode.menuItem !== menus[m].menuItem) {
|
418
|
-
menus[m].menuItem.posted = false;
|
419
|
-
menus[m].parentNode.removeChild(menus[m]);
|
420
|
-
m--;
|
421
|
-
}
|
422
|
-
if (this.Timer && !MENU.isMobile) {this.Timer(event,menu)}
|
646
|
+
if (menu.parentNode === MENU.ActiveNode().parentNode) {
|
647
|
+
this.Deactivate(MENU.ActiveNode());
|
423
648
|
}
|
649
|
+
this.Activate(event, menu);
|
424
650
|
},
|
425
651
|
Mouseout: function (event,menu) {
|
426
|
-
|
427
|
-
if (this.timer) {clearTimeout(this.timer); delete this.timer}
|
652
|
+
this.Deactivate(menu);
|
428
653
|
},
|
429
654
|
Mouseup: function (event,menu) {return this.Remove(event,menu)},
|
430
|
-
|
655
|
+
|
656
|
+
|
657
|
+
DeactivateSubmenus: function(menu) {
|
658
|
+
var menus = document.getElementById("MathJax_MenuFrame").childNodes,
|
659
|
+
items = ITEM.GetMenuNode(menu).childNodes;
|
660
|
+
for (var i = 0, m = items.length; i < m; i++) {
|
661
|
+
var item = items[i].menuItem;
|
662
|
+
// Deactivates submenu items.
|
663
|
+
if (item && item.submenu && item.submenu.posted &&
|
664
|
+
item !== menu.menuItem) {
|
665
|
+
item.Deactivate(items[i]);
|
666
|
+
}
|
667
|
+
}
|
668
|
+
this.RemoveSubmenus(menu, menus);
|
669
|
+
},
|
670
|
+
RemoveSubmenus: function(menu, menus) {
|
671
|
+
menus = menus || document.getElementById("MathJax_MenuFrame").childNodes;
|
672
|
+
var m = menus.length-1;
|
673
|
+
while (m >= 0 && ITEM.GetMenuNode(menu).menuItem !== menus[m].menuItem) {
|
674
|
+
menus[m].menuItem.posted = false;
|
675
|
+
menus[m].parentNode.removeChild(menus[m]);
|
676
|
+
m--;
|
677
|
+
}
|
678
|
+
},
|
679
|
+
|
431
680
|
Touchstart: function (event,menu) {return this.TouchEvent(event,menu,"Mousedown")},
|
432
681
|
Touchend: function (event,menu) {return this.TouchEvent(event,menu,"Mouseup")},
|
433
682
|
TouchEvent: function (event,menu,type) {
|
@@ -440,26 +689,117 @@
|
|
440
689
|
MENU.Event(event,menu,type);
|
441
690
|
return false;
|
442
691
|
},
|
443
|
-
|
692
|
+
|
444
693
|
Remove: function (event,menu) {
|
445
694
|
menu = menu.parentNode.menuItem;
|
446
695
|
return menu.Remove(event,menu);
|
447
696
|
},
|
448
697
|
|
449
|
-
Activate: function (menu) {this.Deactivate(menu); menu.className += " MathJax_MenuActive"},
|
450
|
-
Deactivate: function (menu) {menu.className = menu.className.replace(/ MathJax_MenuActive/,"")},
|
451
|
-
|
452
698
|
With: function (def) {if (def) {HUB.Insert(this,def)}; return this},
|
453
|
-
|
699
|
+
|
454
700
|
isRTL: function () {return MENU.isRTL},
|
455
701
|
rtlClass: function () {return (this.isRTL() ? " RTL" : "")}
|
702
|
+
}, {
|
703
|
+
GetMenuNode: function(item) {
|
704
|
+
return item.parentNode;
|
705
|
+
}
|
706
|
+
});
|
707
|
+
|
708
|
+
/*************************************************************/
|
709
|
+
/*
|
710
|
+
* Abstract class of menu items that are focusable and perform some action
|
711
|
+
*/
|
712
|
+
MENU.ENTRY = MENU.ITEM.Subclass({
|
713
|
+
role: "menuitem", // Aria role.
|
714
|
+
|
715
|
+
Attributes: function(def) {
|
716
|
+
def = HUB.Insert(
|
717
|
+
{onmouseover: MENU.Mouseover, onmouseout: MENU.Mouseout,
|
718
|
+
onmousedown: MENU.Mousedown, onkeydown: MENU.Keydown,
|
719
|
+
"aria-disabled": !!this.disabled},
|
720
|
+
def);
|
721
|
+
def = this.SUPER(arguments).Attributes.call(this, def);
|
722
|
+
if (this.disabled) {
|
723
|
+
def.className += " MathJax_MenuDisabled";
|
724
|
+
}
|
725
|
+
return def;
|
726
|
+
},
|
727
|
+
MoveVertical: function(event, item, move) {
|
728
|
+
var menuNode = ITEM.GetMenuNode(item);
|
729
|
+
var items = [];
|
730
|
+
for (var i = 0, allItems = menuNode.menuItem.items, it;
|
731
|
+
it = allItems[i]; i++) {
|
732
|
+
if (!it.hidden) {
|
733
|
+
items.push(it);
|
734
|
+
}
|
735
|
+
}
|
736
|
+
var index = MENU.IndexOf(items, this);
|
737
|
+
if (index === -1) return;
|
738
|
+
var len = items.length;
|
739
|
+
var children = menuNode.childNodes;
|
740
|
+
do {
|
741
|
+
index = MENU.Mod(move(index), len);
|
742
|
+
} while (items[index].hidden || !children[index].role ||
|
743
|
+
children[index].role === "separator");
|
744
|
+
this.Deactivate(item);
|
745
|
+
items[index].Activate(event, children[index]);
|
746
|
+
},
|
747
|
+
Up: function(event, item) {
|
748
|
+
this.MoveVertical(event, item, function(x) { return x - 1; });
|
749
|
+
},
|
750
|
+
Down: function(event, item) {
|
751
|
+
this.MoveVertical(event, item, function(x) { return x + 1; });
|
752
|
+
},
|
753
|
+
Right: function(event, item) {
|
754
|
+
this.MoveHorizontal(event, item, MENU.Right, !this.isRTL());
|
755
|
+
},
|
756
|
+
Left: function(event, item) {
|
757
|
+
this.MoveHorizontal(event, item, MENU.Left, this.isRTL());
|
758
|
+
},
|
759
|
+
MoveHorizontal: function(event, item, move, rtl) {
|
760
|
+
var menuNode = ITEM.GetMenuNode(item);
|
761
|
+
if (menuNode.menuItem === MENU.menu && event.shiftKey) {
|
762
|
+
move(event, item);
|
763
|
+
}
|
764
|
+
if (rtl) return;
|
765
|
+
if (menuNode.menuItem !== MENU.menu) {
|
766
|
+
this.Deactivate(item);
|
767
|
+
}
|
768
|
+
var parentNodes = menuNode.previousSibling.childNodes;
|
769
|
+
var length = parentNodes.length;
|
770
|
+
while (length--) {
|
771
|
+
var parent = parentNodes[length];
|
772
|
+
if (parent.menuItem.submenu &&
|
773
|
+
parent.menuItem.submenu === menuNode.menuItem) {
|
774
|
+
MENU.Focus(parent);
|
775
|
+
break;
|
776
|
+
}
|
777
|
+
}
|
778
|
+
this.RemoveSubmenus(item);
|
779
|
+
},
|
780
|
+
Space: function (event, menu) {
|
781
|
+
this.Mouseup(event, menu);
|
782
|
+
},
|
783
|
+
|
784
|
+
Activate: function (event, menu) {
|
785
|
+
this.Deactivate(menu);
|
786
|
+
if (!this.disabled) {
|
787
|
+
menu.className += " MathJax_MenuActive";
|
788
|
+
}
|
789
|
+
this.DeactivateSubmenus(menu);
|
790
|
+
MENU.Focus(menu);
|
791
|
+
},
|
792
|
+
Deactivate: function (menu) {
|
793
|
+
menu.className = menu.className.replace(/ MathJax_MenuActive/,"");
|
794
|
+
}
|
795
|
+
|
456
796
|
});
|
457
797
|
|
458
798
|
/*************************************************************/
|
459
799
|
/*
|
460
800
|
* A menu item that performs a command when selected
|
461
801
|
*/
|
462
|
-
MENU.ITEM.COMMAND = MENU.
|
802
|
+
MENU.ITEM.COMMAND = MENU.ENTRY.Subclass({
|
463
803
|
action: function () {},
|
464
804
|
|
465
805
|
Init: function (name,action,def) {
|
@@ -467,7 +807,7 @@
|
|
467
807
|
this.name = name; this.action = action;
|
468
808
|
this.With(def);
|
469
809
|
},
|
470
|
-
|
810
|
+
|
471
811
|
Label: function (def,menu) {return [this.Name()]},
|
472
812
|
Mouseup: function (event,menu) {
|
473
813
|
if (!this.disabled) {
|
@@ -483,52 +823,97 @@
|
|
483
823
|
/*
|
484
824
|
* A menu item that posts a submenu
|
485
825
|
*/
|
486
|
-
MENU.ITEM.SUBMENU = MENU.
|
487
|
-
|
488
|
-
marker:
|
489
|
-
markerRTL:
|
826
|
+
MENU.ITEM.SUBMENU = MENU.ENTRY.Subclass({
|
827
|
+
submenu: null, // the submenu
|
828
|
+
marker: "\u25BA", // the submenu arrow
|
829
|
+
markerRTL: "\u25C4", // the submenu arrow for RTL
|
490
830
|
|
831
|
+
Attributes: function(def) {
|
832
|
+
def = HUB.Insert({"aria-haspopup": "true"}, def);
|
833
|
+
def = this.SUPER(arguments).Attributes.call(this, def);
|
834
|
+
return def;
|
835
|
+
},
|
491
836
|
Init: function (name,def) {
|
492
837
|
if (!(name instanceof Array)) {name = [name,name]} // make [id,label] pair
|
493
838
|
this.name = name; var i = 1;
|
494
839
|
if (!(def instanceof MENU.ITEM)) {this.With(def), i++}
|
495
|
-
this.
|
840
|
+
this.submenu = MENU.apply(MENU,[].slice.call(arguments,i));
|
496
841
|
},
|
497
842
|
Label: function (def,menu) {
|
498
|
-
this.
|
843
|
+
this.submenu.posted = false;
|
499
844
|
return [this.Name()+" ",["span",{
|
500
845
|
className:"MathJax_MenuArrow" + this.rtlClass()
|
501
846
|
},[this.isRTL() ? this.markerRTL : this.marker]]];
|
502
847
|
},
|
503
848
|
Timer: function (event,menu) {
|
504
|
-
|
505
|
-
event = {
|
849
|
+
this.ClearTimer();
|
850
|
+
event = {type: event.type,
|
851
|
+
clientX: event.clientX, clientY: event.clientY}; // MSIE can't pass the event below
|
506
852
|
this.timer = setTimeout(CALLBACK(["Mouseup",this,event,menu]),CONFIG.delay);
|
507
853
|
},
|
854
|
+
ClearTimer: function() {
|
855
|
+
if (this.timer) {
|
856
|
+
clearTimeout(this.timer);
|
857
|
+
}
|
858
|
+
},
|
508
859
|
Touchend: function (event,menu) {
|
509
|
-
var forceout = this.
|
860
|
+
var forceout = this.submenu.posted;
|
510
861
|
var result = this.SUPER(arguments).Touchend.apply(this,arguments);
|
511
862
|
if (forceout) {this.Deactivate(menu); delete ITEM.lastItem; delete ITEM.lastMenu}
|
512
863
|
return result;
|
513
864
|
},
|
865
|
+
Mouseout: function(event, menu) {
|
866
|
+
if (!this.submenu.posted) {
|
867
|
+
this.Deactivate(menu);
|
868
|
+
}
|
869
|
+
this.ClearTimer();
|
870
|
+
},
|
871
|
+
Mouseover: function(event, menu) {
|
872
|
+
this.Activate(event, menu);
|
873
|
+
},
|
514
874
|
Mouseup: function (event,menu) {
|
515
875
|
if (!this.disabled) {
|
516
|
-
if (!this.
|
517
|
-
|
518
|
-
this.
|
876
|
+
if (!this.submenu.posted) {
|
877
|
+
this.ClearTimer();
|
878
|
+
this.submenu.Post(event, menu, this.ltr);
|
879
|
+
MENU.Focus(menu);
|
519
880
|
} else {
|
520
|
-
|
521
|
-
m = menus.length-1;
|
522
|
-
while (m >= 0) {
|
523
|
-
var child = menus[m];
|
524
|
-
child.menuItem.posted = false;
|
525
|
-
child.parentNode.removeChild(child);
|
526
|
-
if (child.menuItem === this.menu) {break};
|
527
|
-
m--;
|
528
|
-
}
|
881
|
+
this.DeactivateSubmenus(menu);
|
529
882
|
}
|
530
883
|
}
|
531
884
|
return FALSE(event);
|
885
|
+
},
|
886
|
+
Activate: function (event, menu) {
|
887
|
+
if (!this.disabled) {
|
888
|
+
this.Deactivate(menu);
|
889
|
+
menu.className += " MathJax_MenuActive";
|
890
|
+
}
|
891
|
+
if (!this.submenu.posted) {
|
892
|
+
this.DeactivateSubmenus(menu);
|
893
|
+
if (!MENU.isMobile) {
|
894
|
+
this.Timer(event,menu);
|
895
|
+
}
|
896
|
+
}
|
897
|
+
MENU.Focus(menu);
|
898
|
+
},
|
899
|
+
MoveVertical: function(event, item, move) {
|
900
|
+
this.ClearTimer();
|
901
|
+
this.SUPER(arguments).MoveVertical.apply(this, arguments);
|
902
|
+
},
|
903
|
+
MoveHorizontal: function(event, menu, move, rtl) {
|
904
|
+
if (!rtl) {
|
905
|
+
this.SUPER(arguments).MoveHorizontal.apply(this, arguments);
|
906
|
+
return;
|
907
|
+
}
|
908
|
+
if (this.disabled) return;
|
909
|
+
if (!this.submenu.posted) {
|
910
|
+
this.Activate(event, menu);
|
911
|
+
return;
|
912
|
+
}
|
913
|
+
var submenuNodes = ITEM.GetMenuNode(menu).nextSibling.childNodes;
|
914
|
+
if (submenuNodes.length > 0) {
|
915
|
+
this.submenu.items[0].Activate(event, submenuNodes[0]);
|
916
|
+
}
|
532
917
|
}
|
533
918
|
});
|
534
919
|
|
@@ -536,10 +921,17 @@
|
|
536
921
|
/*
|
537
922
|
* A menu item that is one of several radio buttons
|
538
923
|
*/
|
539
|
-
MENU.ITEM.RADIO = MENU.
|
924
|
+
MENU.ITEM.RADIO = MENU.ENTRY.Subclass({
|
540
925
|
variable: null, // the variable name
|
541
926
|
marker: (isPC ? "\u25CF" : "\u2713"), // the checkmark
|
927
|
+
role: "menuitemradio",
|
542
928
|
|
929
|
+
Attributes: function(def) {
|
930
|
+
var checked = CONFIG.settings[this.variable] === this.value ? "true" : "false";
|
931
|
+
def = HUB.Insert({"aria-checked": checked}, def);
|
932
|
+
def = this.SUPER(arguments).Attributes.call(this, def);
|
933
|
+
return def;
|
934
|
+
},
|
543
935
|
Init: function (name,variable,def) {
|
544
936
|
if (!(name instanceof Array)) {name = [name,name]} // make [id,label] pair
|
545
937
|
this.name = name; this.variable = variable; this.With(def);
|
@@ -547,7 +939,9 @@
|
|
547
939
|
},
|
548
940
|
Label: function (def,menu) {
|
549
941
|
var span = {className:"MathJax_MenuRadioCheck" + this.rtlClass()};
|
550
|
-
if (CONFIG.settings[this.variable] !== this.value) {
|
942
|
+
if (CONFIG.settings[this.variable] !== this.value) {
|
943
|
+
span = {style:{display:"none"}};
|
944
|
+
}
|
551
945
|
return [["span",span,[this.marker]]," "+this.Name()];
|
552
946
|
},
|
553
947
|
Mouseup: function (event,menu) {
|
@@ -555,10 +949,11 @@
|
|
555
949
|
var child = menu.parentNode.childNodes;
|
556
950
|
for (var i = 0, m = child.length; i < m; i++) {
|
557
951
|
var item = child[i].menuItem;
|
558
|
-
if (item && item.variable === this.variable)
|
559
|
-
|
952
|
+
if (item && item.variable === this.variable) {
|
953
|
+
child[i].firstChild.style.display = "none";
|
954
|
+
}
|
560
955
|
}
|
561
|
-
menu.firstChild.display = "";
|
956
|
+
menu.firstChild.display = "";
|
562
957
|
CONFIG.settings[this.variable] = this.value;
|
563
958
|
MENU.cookie[this.variable] = CONFIG.settings[this.variable]; MENU.saveCookie();
|
564
959
|
SIGNAL.Post(["radio button",this]);
|
@@ -573,10 +968,17 @@
|
|
573
968
|
/*
|
574
969
|
* A menu item that is checkable
|
575
970
|
*/
|
576
|
-
MENU.ITEM.CHECKBOX = MENU.
|
971
|
+
MENU.ITEM.CHECKBOX = MENU.ENTRY.Subclass({
|
577
972
|
variable: null, // the variable name
|
578
973
|
marker: "\u2713", // the checkmark
|
974
|
+
role: "menuitemcheckbox",
|
579
975
|
|
976
|
+
Attributes: function(def) {
|
977
|
+
var checked = CONFIG.settings[this.variable] ? "true" : "false";
|
978
|
+
def = HUB.Insert({"aria-checked": checked}, def);
|
979
|
+
def = this.SUPER(arguments).Attributes.call(this, def);
|
980
|
+
return def;
|
981
|
+
},
|
580
982
|
Init: function (name,variable,def) {
|
581
983
|
if (!(name instanceof Array)) {name = [name,name]} // make [id,label] pair
|
582
984
|
this.name = name; this.variable = variable; this.With(def);
|
@@ -603,16 +1005,22 @@
|
|
603
1005
|
/*
|
604
1006
|
* A menu item that is a label
|
605
1007
|
*/
|
606
|
-
MENU.ITEM.LABEL = MENU.
|
1008
|
+
MENU.ITEM.LABEL = MENU.ENTRY.Subclass({
|
1009
|
+
role: "menuitem", // Aria role.
|
1010
|
+
|
607
1011
|
Init: function (name,def) {
|
608
1012
|
if (!(name instanceof Array)) {name = [name,name]} // make [id,label] pair
|
609
1013
|
this.name = name; this.With(def);
|
610
1014
|
},
|
611
1015
|
Label: function (def,menu) {
|
612
|
-
delete def.onmouseover, delete def.onmouseout; delete def.onmousedown;
|
613
1016
|
def.className += " MathJax_MenuLabel";
|
614
1017
|
return [this.Name()];
|
615
|
-
}
|
1018
|
+
},
|
1019
|
+
Activate: function(event, menu) {
|
1020
|
+
this.Deactivate(menu);
|
1021
|
+
MENU.Focus(menu);
|
1022
|
+
},
|
1023
|
+
Mouseup: function (event,menu) { }
|
616
1024
|
});
|
617
1025
|
|
618
1026
|
/*************************************************************/
|
@@ -620,28 +1028,28 @@
|
|
620
1028
|
* A rule in a menu
|
621
1029
|
*/
|
622
1030
|
MENU.ITEM.RULE = MENU.ITEM.Subclass({
|
1031
|
+
role: "separator",
|
1032
|
+
|
1033
|
+
Attributes: function(def) {
|
1034
|
+
def = HUB.Insert({"aria-orientation": "vertical"}, def);
|
1035
|
+
def = this.SUPER(arguments).Attributes.call(this, def);
|
1036
|
+
return def;
|
1037
|
+
},
|
623
1038
|
Label: function (def,menu) {
|
624
|
-
delete def.onmouseover, delete def.onmouseout; delete def.onmousedown;
|
625
1039
|
def.className += " MathJax_MenuRule";
|
626
1040
|
return null;
|
627
1041
|
}
|
628
1042
|
});
|
629
|
-
|
1043
|
+
|
630
1044
|
/*************************************************************/
|
631
1045
|
/*************************************************************/
|
632
1046
|
|
633
1047
|
/*
|
634
1048
|
* Handle the ABOUT box
|
635
1049
|
*/
|
636
|
-
MENU.About = function () {
|
637
|
-
var
|
638
|
-
var
|
639
|
-
(HTMLCSS.imgFonts ? "image" :
|
640
|
-
(HTMLCSS.fontInUse ?
|
641
|
-
(HTMLCSS.webFonts ? "web" : "local")+" "+HTMLCSS.fontInUse :
|
642
|
-
(OUTPUT.SVG ? "web SVG" : "generic")) ) + " fonts";
|
643
|
-
var format = (!HTMLCSS.webFonts || HTMLCSS.imgFonts ? null :
|
644
|
-
HTMLCSS.allowWebFonts.replace(/otf/,"woff or otf") + " fonts");
|
1050
|
+
MENU.About = function (event) {
|
1051
|
+
var font = MENU.About.GetFont();
|
1052
|
+
var format = MENU.About.GetFormat();
|
645
1053
|
var jax = ["MathJax.js v"+MathJax.fileversion,["br"]];
|
646
1054
|
jax.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}]);
|
647
1055
|
MENU.About.GetJax(jax,MathJax.InputJax,["InputJax","%1 Input Jax v%2"]);
|
@@ -650,27 +1058,29 @@
|
|
650
1058
|
jax.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}]);
|
651
1059
|
MENU.About.GetJax(jax,MathJax.Extension,["Extension","%1 Extension v%2"],true);
|
652
1060
|
jax.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}],["center",{},[
|
653
|
-
HUB.Browser + " v"+HUB.Browser.version + (format ?
|
1061
|
+
HUB.Browser + " v"+HUB.Browser.version + (format ?
|
654
1062
|
" \u2014 " + _(format.replace(/ /g,""),format) : "")
|
655
1063
|
]]);
|
656
1064
|
MENU.About.div = MENU.Background(MENU.About);
|
657
1065
|
var about = HTML.addElement(MENU.About.div,"div",{
|
658
|
-
id: "MathJax_About"
|
1066
|
+
id: "MathJax_About", tabIndex: 0, onkeydown: MENU.About.Keydown
|
659
1067
|
},[
|
660
1068
|
["b",{style:{fontSize:"120%"}},["MathJax"]]," v"+MathJax.version,["br"],
|
661
1069
|
_(font.replace(/ /g,""),"using "+font),["br"],["br"],
|
662
1070
|
["span",{style:{
|
663
1071
|
display:"inline-block", "text-align":"left", "font-size":"80%",
|
664
|
-
"max-height":"20em", overflow:"auto",
|
1072
|
+
"max-height":"20em", overflow:"auto",
|
665
1073
|
"background-color":"#E4E4E4", padding:".4em .6em", border:"1px inset"
|
666
|
-
}},jax],["br"],["br"],
|
1074
|
+
}, tabIndex: 0},jax],["br"],["br"],
|
667
1075
|
["a",{href:"http://www.mathjax.org/"},["www.mathjax.org"]],
|
668
|
-
["
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
1076
|
+
["span",{className:"MathJax_MenuClose",id:"MathJax_AboutClose",
|
1077
|
+
onclick:MENU.About.Remove,
|
1078
|
+
onkeydown: MENU.About.Keydown, tabIndex: 0, role: "button",
|
1079
|
+
"aria-label": _("CloseAboutDialog","Close about MathJax dialog")},
|
1080
|
+
[["span",{},"\u00D7"]]]
|
673
1081
|
]);
|
1082
|
+
if (event.type === "mouseup") about.className += " MathJax_MousePost";
|
1083
|
+
about.focus();
|
674
1084
|
MathJax.Localization.setCSS(about);
|
675
1085
|
var doc = (document.documentElement||{});
|
676
1086
|
var H = window.innerHeight || doc.clientHeight || doc.scrollHeight || 0;
|
@@ -686,6 +1096,15 @@
|
|
686
1096
|
MENU.About.Remove = function (event) {
|
687
1097
|
if (MENU.About.div) {document.body.removeChild(MENU.About.div); delete MENU.About.div}
|
688
1098
|
};
|
1099
|
+
MENU.About.Keydown = function(event) {
|
1100
|
+
if (event.keyCode === KEY.ESCAPE ||
|
1101
|
+
(this.id === "MathJax_AboutClose" &&
|
1102
|
+
(event.keyCode === KEY.SPACE || event.keyCode === KEY.RETURN))) {
|
1103
|
+
MENU.About.Remove(event);
|
1104
|
+
MENU.CurrentNode().focus();
|
1105
|
+
FALSE(event);
|
1106
|
+
}
|
1107
|
+
},
|
689
1108
|
MENU.About.GetJax = function (jax,JAX,type,noTypeCheck) {
|
690
1109
|
var info = [];
|
691
1110
|
for (var id in JAX) {if (JAX.hasOwnProperty(id) && JAX[id]) {
|
@@ -696,16 +1115,30 @@
|
|
696
1115
|
for (var i = 0, m = info.length; i < m; i++) {jax.push(info[i],["br"])}
|
697
1116
|
return jax;
|
698
1117
|
};
|
1118
|
+
MENU.About.GetFont = function () {
|
1119
|
+
var jax = MathJax.Hub.outputJax["jax/mml"][0] || {};
|
1120
|
+
var font = {
|
1121
|
+
SVG: "web SVG",
|
1122
|
+
CommonHTML: "web TeX",
|
1123
|
+
"HTML-CSS": (jax.imgFonts ? "image" : (jax.webFonts ? "web" : "local")+" "+jax.fontInUse)
|
1124
|
+
}[jax.id] || "generic";
|
1125
|
+
return font + " fonts";
|
1126
|
+
};
|
1127
|
+
MENU.About.GetFormat = function () {
|
1128
|
+
var jax = MathJax.Hub.outputJax["jax/mml"][0] || {};
|
1129
|
+
if (jax.id !== "HTML-CSS"|| !jax.webFonts || jax.imgFonts) return;
|
1130
|
+
return jax.allowWebFonts.replace(/otf/,"woff or otf") + " fonts";
|
1131
|
+
};
|
1132
|
+
|
699
1133
|
|
700
|
-
|
701
1134
|
/*
|
702
1135
|
* Handle the MathJax HELP menu
|
703
1136
|
*/
|
704
|
-
MENU.Help = function () {
|
1137
|
+
MENU.Help = function (event) {
|
705
1138
|
AJAX.Require("[MathJax]/extensions/HelpDialog.js",
|
706
|
-
function () {MathJax.Extension.Help.Dialog()});
|
1139
|
+
function () {MathJax.Extension.Help.Dialog({type:event.type})});
|
707
1140
|
};
|
708
|
-
|
1141
|
+
|
709
1142
|
/*
|
710
1143
|
* Handle showing of element's source
|
711
1144
|
*/
|
@@ -776,7 +1209,7 @@
|
|
776
1209
|
var table = w.document.body.firstChild;
|
777
1210
|
setTimeout(function () {
|
778
1211
|
var H = (w.outerHeight-w.innerHeight)||30, W = (w.outerWidth-w.innerWidth)||30, x, y;
|
779
|
-
W = Math.max(
|
1212
|
+
W = Math.max(140,Math.min(Math.floor(.5*screen.width),table.offsetWidth+W+25));
|
780
1213
|
H = Math.max(40,Math.min(Math.floor(.5*screen.height),table.offsetHeight+H+25));
|
781
1214
|
if (MENU.prototype.msieHeightBug) {H += 35}; // for title bar in XP
|
782
1215
|
w.resizeTo(W,H);
|
@@ -789,38 +1222,44 @@
|
|
789
1222
|
},50);
|
790
1223
|
}
|
791
1224
|
};
|
792
|
-
|
1225
|
+
|
793
1226
|
/*
|
794
1227
|
* Handle rescaling all the math
|
795
1228
|
*/
|
796
1229
|
MENU.Scale = function () {
|
797
|
-
var
|
798
|
-
|
1230
|
+
var JAX = ["CommonHTML","HTML-CSS","SVG","NativeMML","PreviewHTML"], m = JAX.length,
|
1231
|
+
SCALE = 100, i, jax;
|
1232
|
+
for (i = 0; i < m; i++) {
|
1233
|
+
jax = OUTPUT[JAX[i]];
|
1234
|
+
if (jax) {SCALE = jax.config.scale; break}
|
1235
|
+
}
|
799
1236
|
var scale = prompt(_("ScaleMath","Scale all mathematics (compared to surrounding text) by"),SCALE+"%");
|
800
1237
|
if (scale) {
|
801
1238
|
if (scale.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)) {
|
802
1239
|
scale = parseFloat(scale);
|
803
1240
|
if (scale) {
|
804
1241
|
if (scale !== SCALE) {
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
MENU.
|
1242
|
+
for (i = 0; i < m; i++) {
|
1243
|
+
jax = OUTPUT[JAX[i]];
|
1244
|
+
if (jax) jax.config.scale = scale;
|
1245
|
+
}
|
1246
|
+
MENU.cookie.scale = HUB.config.scale = scale;
|
1247
|
+
MENU.saveCookie();
|
1248
|
+
HUB.Queue(["Rerender",HUB]);
|
810
1249
|
}
|
811
1250
|
} else {alert(_("NonZeroScale","The scale should not be zero"))}
|
812
1251
|
} else {alert(_("PercentScale",
|
813
1252
|
"The scale should be a percentage (e.g., 120%%)"))}
|
814
1253
|
}
|
815
1254
|
};
|
816
|
-
|
1255
|
+
|
817
1256
|
/*
|
818
1257
|
* Handle loading the zoom code
|
819
1258
|
*/
|
820
1259
|
MENU.Zoom = function () {
|
821
1260
|
if (!MathJax.Extension.MathZoom) {AJAX.Require("[MathJax]/extensions/MathZoom.js")}
|
822
1261
|
};
|
823
|
-
|
1262
|
+
|
824
1263
|
/*
|
825
1264
|
* Handle changing the renderer
|
826
1265
|
*/
|
@@ -834,9 +1273,10 @@
|
|
834
1273
|
switch (CONFIG.settings.renderer) {
|
835
1274
|
case "NativeMML":
|
836
1275
|
if (!CONFIG.settings.warnedMML) {
|
837
|
-
if (BROWSER.isChrome && BROWSER.version.substr(0,3) !== "24.") {message = MESSAGE.MML.WebKit}
|
1276
|
+
if (BROWSER.isChrome && BROWSER.version.substr(0,3) !== "24.") {message = MESSAGE.MML.WebKit}
|
838
1277
|
else if (BROWSER.isSafari && !BROWSER.versionAtLeast("5.0")) {message = MESSAGE.MML.WebKit}
|
839
1278
|
else if (BROWSER.isMSIE) {if (!BROWSER.hasMathPlayer) {message = MESSAGE.MML.MSIE}}
|
1279
|
+
else if (BROWSER.isEdge) {message = MESSAGE.MML.WebKit}
|
840
1280
|
else {message = MESSAGE.MML[BROWSER]}
|
841
1281
|
warned = "warnedMML";
|
842
1282
|
}
|
@@ -846,7 +1286,7 @@
|
|
846
1286
|
if (!CONFIG.settings.warnedSVG) {
|
847
1287
|
if (BROWSER.isMSIE && !isIE9) {message = MESSAGE.SVG.MSIE}
|
848
1288
|
}
|
849
|
-
break;
|
1289
|
+
break;
|
850
1290
|
}
|
851
1291
|
if (message) {
|
852
1292
|
message = _(message[0],message[1]);
|
@@ -879,7 +1319,7 @@
|
|
879
1319
|
MSIE: ["MSIENativeMMLWarning",
|
880
1320
|
"Internet Explorer requires the MathPlayer plugin " +
|
881
1321
|
"in order to process MathML output."],
|
882
|
-
|
1322
|
+
|
883
1323
|
Opera: ["OperaNativeMMLWarning",
|
884
1324
|
"Opera's support for MathML is limited, so switching to " +
|
885
1325
|
"MathML output may cause some expressions to render poorly."],
|
@@ -892,7 +1332,7 @@
|
|
892
1332
|
"Your browser's native MathML does not implement all the features " +
|
893
1333
|
"used by MathJax, so some expressions may not render properly."]
|
894
1334
|
},
|
895
|
-
|
1335
|
+
|
896
1336
|
SVG: {
|
897
1337
|
MSIE: ["MSIESVGWarning",
|
898
1338
|
"SVG is not implemented in Internet Explorer prior to " +
|
@@ -902,6 +1342,20 @@
|
|
902
1342
|
}
|
903
1343
|
};
|
904
1344
|
|
1345
|
+
/*
|
1346
|
+
* Toggle assistive MML settings
|
1347
|
+
*/
|
1348
|
+
MENU.AssistiveMML = function (item,restart) {
|
1349
|
+
var AMML = MathJax.Extension.AssistiveMML;
|
1350
|
+
if (!AMML) {
|
1351
|
+
// Try to load the extension, but only try once.
|
1352
|
+
if (!restart)
|
1353
|
+
AJAX.Require("[MathJax]/extensions/AssistiveMML.js",["AssistiveMML",MENU,item,true]);
|
1354
|
+
return;
|
1355
|
+
}
|
1356
|
+
MathJax.Hub.Queue([(CONFIG.settings.assistiveMML ? "Add" : "Remove")+"AssistiveMathML",AMML]);
|
1357
|
+
};
|
1358
|
+
|
905
1359
|
/*
|
906
1360
|
* Handle setting the HTMLCSS fonts
|
907
1361
|
*/
|
@@ -909,7 +1363,7 @@
|
|
909
1363
|
var HTMLCSS = OUTPUT["HTML-CSS"]; if (!HTMLCSS) return;
|
910
1364
|
document.location.reload();
|
911
1365
|
};
|
912
|
-
|
1366
|
+
|
913
1367
|
/*
|
914
1368
|
* Handle selection of locale and rerender the page
|
915
1369
|
*/
|
@@ -931,7 +1385,7 @@
|
|
931
1385
|
});
|
932
1386
|
}
|
933
1387
|
};
|
934
|
-
|
1388
|
+
|
935
1389
|
/*
|
936
1390
|
* Handle setting MathPlayer events
|
937
1391
|
*/
|
@@ -964,7 +1418,7 @@
|
|
964
1418
|
"The MathJax contextual menu will be disabled, but you can " +
|
965
1419
|
"Alt-Click on an expression to obtain the MathJax menu instead."]
|
966
1420
|
};
|
967
|
-
|
1421
|
+
|
968
1422
|
/*************************************************************/
|
969
1423
|
/*************************************************************/
|
970
1424
|
|
@@ -1000,7 +1454,7 @@
|
|
1000
1454
|
//
|
1001
1455
|
MENU.CreateLocaleMenu = function () {
|
1002
1456
|
if (!MENU.menu) return;
|
1003
|
-
var menu = MENU.menu.Find("Language").
|
1457
|
+
var menu = MENU.menu.Find("Language").submenu, items = menu.items;
|
1004
1458
|
//
|
1005
1459
|
// Get the names of the languages and sort them
|
1006
1460
|
//
|
@@ -1026,7 +1480,7 @@
|
|
1026
1480
|
//
|
1027
1481
|
MENU.CreateAnnotationMenu = function () {
|
1028
1482
|
if (!MENU.menu) return;
|
1029
|
-
var menu = MENU.menu.Find("Show Math As","Annotation").
|
1483
|
+
var menu = MENU.menu.Find("Show Math As","Annotation").submenu;
|
1030
1484
|
var annotations = CONFIG.semanticsAnnotations;
|
1031
1485
|
for (var a in annotations) {
|
1032
1486
|
if (annotations.hasOwnProperty(a)) {
|
@@ -1089,12 +1543,16 @@
|
|
1089
1543
|
),
|
1090
1544
|
ITEM.RULE(),
|
1091
1545
|
ITEM.SUBMENU(["Renderer","Math Renderer"], {hidden:!CONFIG.showRenderer},
|
1092
|
-
ITEM.RADIO("HTML-CSS",
|
1093
|
-
ITEM.RADIO("
|
1094
|
-
ITEM.RADIO("
|
1095
|
-
ITEM.RADIO("
|
1546
|
+
ITEM.RADIO(["HTML-CSS","HTML-CSS"], "renderer", {action: MENU.Renderer}),
|
1547
|
+
ITEM.RADIO(["CommonHTML","Common HTML"], "renderer", {action: MENU.Renderer, value:"CommonHTML"}),
|
1548
|
+
ITEM.RADIO(["PreviewHTML","Preview HTML"],"renderer", {action: MENU.Renderer, value:"PreviewHTML"}),
|
1549
|
+
ITEM.RADIO(["MathML","MathML"], "renderer", {action: MENU.Renderer, value:"NativeMML"}),
|
1550
|
+
ITEM.RADIO(["SVG","SVG"], "renderer", {action: MENU.Renderer}),
|
1551
|
+
ITEM.RADIO(["PlainSource","Plain Source"],"renderer", {action: MENU.Renderer, value:"PlainSource"}),
|
1096
1552
|
ITEM.RULE(),
|
1097
|
-
ITEM.CHECKBOX("Fast Preview", "
|
1553
|
+
ITEM.CHECKBOX(["FastPreview","Fast Preview"], "FastPreview"),
|
1554
|
+
ITEM.CHECKBOX(["AssistiveMML","Assistive MathML"], "assistiveMML", {action:MENU.AssistiveMML}),
|
1555
|
+
ITEM.CHECKBOX(["InTabOrder","Include in Tab Order"], "inTabOrder")
|
1098
1556
|
),
|
1099
1557
|
ITEM.SUBMENU("MathPlayer", {hidden:!HUB.Browser.isMSIE || !CONFIG.showMathPlayer,
|
1100
1558
|
disabled:!HUB.Browser.hasMathPlayer},
|
@@ -1121,7 +1579,7 @@
|
|
1121
1579
|
ITEM.RADIO(["NeoEulerWeb","Neo Euler (web)"], "font", {action: MENU.Font})
|
1122
1580
|
),
|
1123
1581
|
ITEM.SUBMENU(["ContextMenu","Contextual Menu"], {hidden:!CONFIG.showContext},
|
1124
|
-
ITEM.RADIO("MathJax", "context"),
|
1582
|
+
ITEM.RADIO(["MathJax","MathJax"], "context"),
|
1125
1583
|
ITEM.RADIO(["Browser","Browser"], "context")
|
1126
1584
|
),
|
1127
1585
|
ITEM.COMMAND(["Scale","Scale All Math ..."],MENU.Scale),
|
@@ -1141,11 +1599,11 @@
|
|
1141
1599
|
if (MENU.isMobile) {
|
1142
1600
|
(function () {
|
1143
1601
|
var settings = CONFIG.settings;
|
1144
|
-
var trigger = MENU.menu.Find("Math Settings","Zoom Trigger").
|
1602
|
+
var trigger = MENU.menu.Find("Math Settings","Zoom Trigger").submenu;
|
1145
1603
|
trigger.items[0].disabled = trigger.items[1].disabled = true;
|
1146
1604
|
if (settings.zoom === "Hover" || settings.zoom == "Click") {settings.zoom = "None"}
|
1147
1605
|
trigger.items = trigger.items.slice(0,4);
|
1148
|
-
|
1606
|
+
|
1149
1607
|
if (navigator.appVersion.match(/[ (]Android[) ]/)) {
|
1150
1608
|
MENU.ITEM.SUBMENU.Augment({marker: "\u00BB"});
|
1151
1609
|
}
|
@@ -1155,7 +1613,7 @@
|
|
1155
1613
|
MENU.CreateLocaleMenu();
|
1156
1614
|
MENU.CreateAnnotationMenu();
|
1157
1615
|
});
|
1158
|
-
|
1616
|
+
|
1159
1617
|
MENU.showRenderer = function (show) {
|
1160
1618
|
MENU.cookie.showRenderer = CONFIG.showRenderer = show; MENU.saveCookie();
|
1161
1619
|
MENU.menu.Find("Math Settings","Math Renderer").hidden = !show;
|
@@ -1181,17 +1639,16 @@
|
|
1181
1639
|
MENU.cookie.showLocale = CONFIG.showLocale = show; MENU.saveCookie();
|
1182
1640
|
MENU.menu.Find("Language").hidden = !show;
|
1183
1641
|
};
|
1184
|
-
|
1642
|
+
|
1185
1643
|
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
1186
1644
|
if (!MathJax.OutputJax["HTML-CSS"].config.imageFont)
|
1187
1645
|
{MENU.menu.Find("Math Settings","Font Preference","TeX (image)").disabled = true}
|
1188
1646
|
});
|
1189
|
-
|
1647
|
+
|
1190
1648
|
/*************************************************************/
|
1191
1649
|
|
1192
1650
|
CALLBACK.Queue(
|
1193
1651
|
HUB.Register.StartupHook("End Config",{}), // wait until config is complete
|
1194
|
-
["getImages",MENU],
|
1195
1652
|
["Styles",AJAX,CONFIG.styles],
|
1196
1653
|
["Post",HUB.Startup.signal,"MathMenu Ready"],
|
1197
1654
|
["loadComplete",AJAX,"[MathJax]/extensions/MathMenu.js"]
|