r112761 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112760‎ | r112761 | r112762 >
Date:01:57, 1 March 2012
Author:brion
Status:ok
Tags:
Comment:
MathJax 2.0 update mostly works!
Modified paths:
  • /trunk/extensions/Math/modules/ext.math.mathjax.enabler.js (modified) (history)
  • /trunk/extensions/Math/modules/ext.math.mathjax.preload.js (added) (history)

Diff [purge]

Index: trunk/extensions/Math/modules/ext.math.mathjax.preload.js
@@ -0,0 +1,18 @@
 2+MathJax.Ajax.Preloading(
 3+ "[MathJax]/jax/input/TeX/config.js",
 4+ "[MathJax]/jax/output/HTML-CSS/config.js",
 5+ "[MathJax]/extensions/tex2jax.js",
 6+ "[MathJax]/extensions/MathEvents.js",
 7+ "[MathJax]/extensions/MathZoom.js",
 8+ "[MathJax]/extensions/MathMenu.js",
 9+ "[MathJax]/jax/element/mml/jax.js",
 10+ "[MathJax]/extensions/toMathML.js",
 11+ "[MathJax]/extensions/TeX/noErrors.js",
 12+ "[MathJax]/extensions/TeX/noUndefined.js",
 13+ "[MathJax]/jax/input/TeX/jax.js",
 14+ "[MathJax]/extensions/TeX/AMSmath.js",
 15+ "[MathJax]/extensions/TeX/AMSsymbols.js",
 16+ "[MathJax]/jax/output/HTML-CSS/jax.js",
 17+ "[MathJax]/jax/output/HTML-CSS/autoload/mtable.js"
 18+);
 19+
Property changes on: trunk/extensions/Math/modules/ext.math.mathjax.preload.js
___________________________________________________________________
Added: svn:eol-style
120 + native
Index: trunk/extensions/Math/modules/ext.math.mathjax.enabler.js
@@ -10,8 +10,8 @@
1111
1212 mathJax.Config = function() {
1313 MathJax.Hub.Config({
14 - root: mediaWiki.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax/',
15 - config: "TeX-AMS-texvc_HTML.js",
 14+ root: mediaWiki.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax',
 15+ //config: "TeX-AMS-texvc_HTML.js",
1616 "v1.0-compatible": false,
1717 styles: { ".mtext": { "font-family": "sans-serif ! important", "font-size": "80%" } },
1818 displayAlign: "left",
@@ -21,14 +21,18 @@
2222 MathJax.Message.styles["#MathJax_Message"].right = MathJax.Message.styles["#MathJax_Message"].left;
2323 delete MathJax.Message.styles["#MathJax_Message"].left;
2424 if ( typeof(mathJax.userConfig) !== "undefined" ) MathJax.Hub.Config( mathJax.userConfig );
25 - if ( typeof(mathJax.fontDir) !== "undefined" ) MathJax.OutputJax.fontDir = mathJax.fontDir; else MathJax.Hub.Config({ NativeMML: {webFont: null} });
 25+ //if ( typeof(mathJax.fontDir) !== "undefined" ) MathJax.OutputJax.fontDir = mathJax.fontDir; else MathJax.Hub.Config({ NativeMML: {webFont: null} });
2626 MathJax.Hub.Register.StartupHook("End Extensions", function() {
 27+ /*
 28+ // this section is newly commented out while updating to MJ 2.0
2729 var TEX = MathJax.InputJax.TeX;
2830 var MACROS = TEX.config.Macros;
2931 for (var id in MACROS) {
3032 if (typeof(MACROS[id]) === "string") TEX.Macro(id, MACROS[id]);
3133 else TEX.Macro(id, MACROS[id][0], MACROS[id][1]);
3234 }
 35+ */
 36+ // this next section was already commented out
3337 /* TEX.Parse.Augment({
3438 Cr: function(name) {
3539 this.GetBrackets(name);

Status & tagging log