From 1d4b285c1473f315b009c77bcb4ee7fa3b2c18d0 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 7 Sep 2017 21:23:15 -0400 Subject: [PATCH 01/36] Fix problem with \left...\right where inferred mrows would be incorrectly inserted around the content of the delimiters. Resolves issue #1829. --- unpacked/jax/input/TeX/jax.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index 416981b13b..7ffde60fae 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -2285,8 +2285,14 @@ fenced: function (open,mml,close) { var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.INNER}); mrow.Append( - MML.mo(open).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.OPEN}), - mml, + MML.mo(open).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.OPEN}) + ); + if (mml.type === "mrow" && mml.inferred) { + mrow.Append.apply(mrow, mml.data); + } else { + mrow.Append(mml); + } + mrow.Append( MML.mo(close).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.CLOSE}) ); return mrow; From f3644edd49717676790b16829530d822ef9fb882 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 29 Oct 2017 08:14:36 -0400 Subject: [PATCH 02/36] Don't add duplicate xmls attribute when original is empty. --- unpacked/extensions/toMathML.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/extensions/toMathML.js b/unpacked/extensions/toMathML.js index abf137b742..d83d49745a 100644 --- a/unpacked/extensions/toMathML.js +++ b/unpacked/extensions/toMathML.js @@ -56,7 +56,7 @@ MathJax.Hub.Register.LoadHook("[MathJax]/jax/element/mml/jax.js",function () { skip = MML.skipAttributes, copy = MML.copyAttributes; var attr = []; - if (this.type === "math" && (!this.attr || !this.attr.xmlns)) + if (this.type === "math" && (!this.attr || !('xmlns' in this.attr))) {attr.push('xmlns="http://www.w3.org/1998/Math/MathML"')} if (!this.attrNames) { for (var id in defaults) {if (!skip[id] && !copy[id] && defaults.hasOwnProperty(id)) { From c29cae781f66cc4b0e62d1ca2715e3e5324635ab Mon Sep 17 00:00:00 2001 From: Ger Hobbelt Date: Sat, 2 Dec 2017 00:53:23 +0100 Subject: [PATCH 03/36] fix: typos in comments and a message string (English) --- config/default.js | 2 +- unpacked/config/default.js | 2 +- unpacked/extensions/HelpDialog.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/default.js b/config/default.js index fc54590c08..8df4646096 100644 --- a/config/default.js +++ b/config/default.js @@ -752,7 +752,7 @@ MathJax.Hub.Config({ // // When true, MathJax will not measure the widths or heights of the // subexpressions as it creates its output, but instead will rely on - // its internal calculautions based on teh bounding boxes of the + // its internal calculations based on the bounding boxes of the // characters it uses, and will only take measurements when it // absolutely has to. Since measurements cause display reflows, they // slows down MathJax considerably, so without them MathJax runs diff --git a/unpacked/config/default.js b/unpacked/config/default.js index fc54590c08..8df4646096 100644 --- a/unpacked/config/default.js +++ b/unpacked/config/default.js @@ -752,7 +752,7 @@ MathJax.Hub.Config({ // // When true, MathJax will not measure the widths or heights of the // subexpressions as it creates its output, but instead will rely on - // its internal calculautions based on teh bounding boxes of the + // its internal calculations based on the bounding boxes of the // characters it uses, and will only take measurements when it // absolutely has to. Since measurements cause display reflows, they // slows down MathJax considerably, so without them MathJax runs diff --git a/unpacked/extensions/HelpDialog.js b/unpacked/extensions/HelpDialog.js index 57a2162faa..a811f91c52 100644 --- a/unpacked/extensions/HelpDialog.js +++ b/unpacked/extensions/HelpDialog.js @@ -196,7 +196,7 @@ MathJax.Callback.Queue( HUB.Register.StartupHook("End Config",{}), // wait until config is complete ["Styles",AJAX,CONFIG.styles], - ["Post",HUB.Startup.signal,"HelpDialig Ready"], + ["Post",HUB.Startup.signal,"HelpDialog Ready"], ["loadComplete",AJAX,"[MathJax]/extensions/HelpDialog.js"] ); From a6cdc429abf028eed76c287d82b8bcbf17942726 Mon Sep 17 00:00:00 2001 From: Ger Hobbelt Date: Sat, 2 Dec 2017 00:57:06 +0100 Subject: [PATCH 04/36] fix: `HUB.Startup.signal.Post()` API expects a single message STRING, so we must concatenate parts into a single string before queueing a call to this API. Fixes crash in `HUB.Startup.signal.Post()` itself where code expects a string type call parameter, rather than an array type parameter. --- unpacked/jax/output/CommonHTML/jax.js | 2 +- unpacked/jax/output/HTML-CSS/jax.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index ae3e6ffae5..2dd892e7d0 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -343,7 +343,7 @@ if (!font.match(/-|fontdata/)) font += "-Regular"; if (!font.match(/\.js$/)) font += ".js" MathJax.Callback.Queue( - ["Post",HUB.Startup.signal,["CommonHTML - font data loaded",font]], + ["Post",HUB.Startup.signal,"CommonHTML - font data loaded for " + font], ["loadComplete",AJAX,this.fontDir+"/"+font] ); }, diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index f1ebe0b60c..d2a10d0f55 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -197,7 +197,7 @@ }, loadError: function (font) { MESSAGE(["CantLoadWebFont","Can't load web font %1",HTMLCSS.fontInUse+"/"+font.directory],null,2000); - HUB.Startup.signal.Post(["HTML-CSS Jax - web font error",HTMLCSS.fontInUse+"/"+font.directory,font]); + HUB.Startup.signal.Post("HTML-CSS Jax - web font error for " + HTMLCSS.fontInUse+"/"+font.directory); }, firefoxFontError: function (font) { MESSAGE(["FirefoxCantLoadWebFont","Firefox can't load web fonts from a remote host"],null,3000); From e0fa333a7b0b2bee77bd836f21dc2c0104a94d3a Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 5 Dec 2017 10:31:41 -0500 Subject: [PATCH 05/36] Misc. trivial typos Most are source comments. Few are user-facing. Found using `codespell -i 3 -w --skip="./localization,./unpacked/localization" -I ../mathjax-whitelist.txt` --- config/default.js | 18 +++++++++--------- .../TeX/png/AMS/Regular/unpacked/Arrows.js | 2 +- .../TeX/png/AMS/Regular/unpacked/BBBold.js | 2 +- .../TeX/png/AMS/Regular/unpacked/BoxDrawing.js | 2 +- .../AMS/Regular/unpacked/CombDiacritMarks.js | 2 +- .../TeX/png/AMS/Regular/unpacked/Dingbats.js | 2 +- .../AMS/Regular/unpacked/EnclosedAlphanum.js | 2 +- .../AMS/Regular/unpacked/GeneralPunctuation.js | 2 +- .../AMS/Regular/unpacked/GeometricShapes.js | 2 +- .../png/AMS/Regular/unpacked/GreekAndCoptic.js | 2 +- .../AMS/Regular/unpacked/Latin1Supplement.js | 2 +- .../png/AMS/Regular/unpacked/LatinExtendedA.js | 2 +- .../AMS/Regular/unpacked/LetterlikeSymbols.js | 2 +- .../TeX/png/AMS/Regular/unpacked/Main.js | 2 +- .../png/AMS/Regular/unpacked/MathOperators.js | 2 +- .../AMS/Regular/unpacked/MiscMathSymbolsB.js | 2 +- .../png/AMS/Regular/unpacked/MiscSymbols.js | 2 +- .../png/AMS/Regular/unpacked/MiscTechnical.js | 2 +- .../TeX/png/AMS/Regular/unpacked/PUA.js | 2 +- .../AMS/Regular/unpacked/SpacingModLetters.js | 2 +- .../AMS/Regular/unpacked/SuppMathOperators.js | 2 +- .../TeX/png/Caligraphic/Bold/unpacked/Main.js | 2 +- .../png/Caligraphic/Regular/unpacked/Main.js | 2 +- .../png/Fraktur/Bold/unpacked/BasicLatin.js | 2 +- .../TeX/png/Fraktur/Bold/unpacked/Main.js | 2 +- .../TeX/png/Fraktur/Bold/unpacked/Other.js | 2 +- .../TeX/png/Fraktur/Bold/unpacked/PUA.js | 2 +- .../png/Fraktur/Regular/unpacked/BasicLatin.js | 2 +- .../TeX/png/Fraktur/Regular/unpacked/Main.js | 2 +- .../TeX/png/Fraktur/Regular/unpacked/Other.js | 2 +- .../TeX/png/Fraktur/Regular/unpacked/PUA.js | 2 +- .../TeX/png/Main/Bold/unpacked/Arrows.js | 2 +- .../png/Main/Bold/unpacked/CombDiacritMarks.js | 2 +- .../Main/Bold/unpacked/CombDiactForSymbols.js | 2 +- .../Main/Bold/unpacked/GeneralPunctuation.js | 2 +- .../png/Main/Bold/unpacked/GeometricShapes.js | 2 +- .../png/Main/Bold/unpacked/GreekAndCoptic.js | 2 +- .../png/Main/Bold/unpacked/Latin1Supplement.js | 2 +- .../png/Main/Bold/unpacked/LatinExtendedA.js | 2 +- .../png/Main/Bold/unpacked/LatinExtendedB.js | 2 +- .../Main/Bold/unpacked/LetterlikeSymbols.js | 2 +- .../TeX/png/Main/Bold/unpacked/Main.js | 2 +- .../png/Main/Bold/unpacked/MathOperators.js | 2 +- .../png/Main/Bold/unpacked/MiscMathSymbolsA.js | 2 +- .../TeX/png/Main/Bold/unpacked/MiscSymbols.js | 2 +- .../png/Main/Bold/unpacked/MiscTechnical.js | 2 +- .../Main/Bold/unpacked/SpacingModLetters.js | 2 +- .../Main/Bold/unpacked/SuppMathOperators.js | 2 +- .../Main/Bold/unpacked/SupplementalArrowsA.js | 2 +- .../Main/Italic/unpacked/CombDiacritMarks.js | 2 +- .../Main/Italic/unpacked/GeneralPunctuation.js | 2 +- .../png/Main/Italic/unpacked/GreekAndCoptic.js | 2 +- .../Main/Italic/unpacked/Latin1Supplement.js | 2 +- .../png/Main/Italic/unpacked/LatinExtendedA.js | 2 +- .../png/Main/Italic/unpacked/LatinExtendedB.js | 2 +- .../Main/Italic/unpacked/LetterlikeSymbols.js | 2 +- .../TeX/png/Main/Italic/unpacked/Main.js | 2 +- .../TeX/png/Main/Regular/unpacked/Arrows.js | 2 +- .../Main/Regular/unpacked/CombDiacritMarks.js | 2 +- .../Regular/unpacked/CombDiactForSymbols.js | 2 +- .../Regular/unpacked/GeneralPunctuation.js | 2 +- .../Main/Regular/unpacked/GeometricShapes.js | 2 +- .../Main/Regular/unpacked/GreekAndCoptic.js | 2 +- .../Main/Regular/unpacked/Latin1Supplement.js | 2 +- .../Main/Regular/unpacked/LatinExtendedA.js | 2 +- .../Main/Regular/unpacked/LatinExtendedB.js | 2 +- .../Main/Regular/unpacked/LetterlikeSymbols.js | 2 +- .../TeX/png/Main/Regular/unpacked/Main.js | 2 +- .../png/Main/Regular/unpacked/MathOperators.js | 2 +- .../Main/Regular/unpacked/MiscMathSymbolsA.js | 2 +- .../png/Main/Regular/unpacked/MiscSymbols.js | 2 +- .../png/Main/Regular/unpacked/MiscTechnical.js | 2 +- .../Main/Regular/unpacked/SpacingModLetters.js | 2 +- .../Main/Regular/unpacked/SuppMathOperators.js | 2 +- .../Regular/unpacked/SupplementalArrowsA.js | 2 +- .../TeX/png/Math/BoldItalic/unpacked/Main.js | 2 +- .../TeX/png/Math/Italic/unpacked/Main.js | 2 +- .../png/SansSerif/Bold/unpacked/BasicLatin.js | 2 +- .../Bold/unpacked/CombDiacritMarks.js | 2 +- .../TeX/png/SansSerif/Bold/unpacked/Main.js | 2 +- .../TeX/png/SansSerif/Bold/unpacked/Other.js | 2 +- .../SansSerif/Italic/unpacked/BasicLatin.js | 2 +- .../Italic/unpacked/CombDiacritMarks.js | 2 +- .../TeX/png/SansSerif/Italic/unpacked/Main.js | 2 +- .../TeX/png/SansSerif/Italic/unpacked/Other.js | 2 +- .../SansSerif/Regular/unpacked/BasicLatin.js | 2 +- .../Regular/unpacked/CombDiacritMarks.js | 2 +- .../TeX/png/SansSerif/Regular/unpacked/Main.js | 2 +- .../png/SansSerif/Regular/unpacked/Other.js | 2 +- .../png/Script/Regular/unpacked/BasicLatin.js | 2 +- .../TeX/png/Script/Regular/unpacked/Main.js | 2 +- .../TeX/png/Script/Regular/unpacked/Other.js | 2 +- .../TeX/png/Size1/Regular/unpacked/Main.js | 2 +- .../TeX/png/Size2/Regular/unpacked/Main.js | 2 +- .../TeX/png/Size3/Regular/unpacked/Main.js | 2 +- .../TeX/png/Size4/Regular/unpacked/Main.js | 2 +- .../Typewriter/Regular/unpacked/BasicLatin.js | 2 +- .../Regular/unpacked/CombDiacritMarks.js | 2 +- .../png/Typewriter/Regular/unpacked/Main.js | 2 +- .../png/Typewriter/Regular/unpacked/Other.js | 2 +- latest.js | 2 +- unpacked/MathJax.js | 6 +++--- unpacked/config/default.js | 18 +++++++++--------- unpacked/extensions/TeX/AMSmath.js | 4 ++-- unpacked/extensions/TeX/mhchem.js | 2 +- unpacked/extensions/a11y/auto-collapse.js | 2 +- unpacked/jax/input/TeX/jax.js | 2 +- .../output/CommonHTML/fonts/TeX/fontdata.js | 2 +- unpacked/jax/output/CommonHTML/jax.js | 4 ++-- .../jax/output/HTML-CSS/fonts/TeX/fontdata.js | 4 ++-- unpacked/jax/output/NativeMML/jax.js | 2 +- unpacked/jax/output/SVG/jax.js | 2 +- unpacked/latest.js | 2 +- 113 files changed, 134 insertions(+), 134 deletions(-) diff --git a/config/default.js b/config/default.js index fc54590c08..144944ca1e 100644 --- a/config/default.js +++ b/config/default.js @@ -111,7 +111,7 @@ MathJax.Hub.Config({ // tag usually doesn't add content to the page, if there is a space before and after // a MathJax SCRIPT tag, IE will remove the first space. When MathJax inserts // the typeset mathematics, this means there will be no space before it and the - // preceeding text. In order to avoid this, you should include some "guard characters" + // preceding text. In order to avoid this, you should include some "guard characters" // before or after the math SCRIPT tag; define the patterns you want to use below. // Note that these are used as regular expressions, so you will need to quote // special characters. Furthermore, since they are javascript strings, you must @@ -134,7 +134,7 @@ MathJax.Hub.Config({ postJax: null, // - // The CSS class for a math preview to be removed preceeding a MathJax + // The CSS class for a math preview to be removed preceding a MathJax // SCRIPT tag. If the tag just before the MathJax SCRIPT tag is of this // class, its contents are removed when MathJax processes the SCRIPT // tag. This allows you to include a math preview in a form that will @@ -323,7 +323,7 @@ MathJax.Hub.Config({ // not be processed by tex2jax (other than to look for the // processClass pattern below). Note that this is a regular // expression, and so you need to be sure to quote any regexp special - // characters. The pattern is automatically preceeded by '(^| )(' and + // characters. The pattern is automatically preceded by '(^| )(' and // followed by ')( |$)', so your pattern will have to match full words // in the class name. Assigning an element this class name will // prevent `tex2jax` from processing its contents. @@ -336,7 +336,7 @@ MathJax.Hub.Config({ // tags that have been marked as ignored or skipped above. Note that // this is a regular expression, and so you need to be sure to quote // any regexp special characters. The pattern is automatically - // preceeded by '(^| )(' and followed by ')( |$)', so your pattern + // preceded by '(^| )(' and followed by ')( |$)', so your pattern // will have to match full words in the class name. Use this to // restart processing within an element that has been marked as // ignored above. @@ -410,7 +410,7 @@ MathJax.Hub.Config({ // not be processed by asciimath2jax (other than to look for the // processClass pattern below). Note that this is a regular // expression, and so you need to be sure to quote any regexp special - // characters. The pattern is automatically preceeded by '(^| )(' and + // characters. The pattern is automatically preceded by '(^| )(' and // followed by ')( |$)', so your pattern will have to match full words // in the class name. Assigning an element this class name will // prevent `asciimath2jax` from processing its contents. @@ -423,7 +423,7 @@ MathJax.Hub.Config({ // within tags that have been marked as ignored or skipped above. // Note that this is a regular expression, and so you need to be sure // to quote any regexp special characters. The pattern is - // automatically preceeded by '(^| )(' and followed by ')( |$)', so + // automatically preceded by '(^| )(' and followed by ')( |$)', so // your pattern will have to match full words in the class name. Use // this to restart processing within an element that has been marked // as ignored above. @@ -752,7 +752,7 @@ MathJax.Hub.Config({ // // When true, MathJax will not measure the widths or heights of the // subexpressions as it creates its output, but instead will rely on - // its internal calculautions based on teh bounding boxes of the + // its internal calculations based on the bounding boxes of the // characters it uses, and will only take measurements when it // absolutely has to. Since measurements cause display reflows, they // slows down MathJax considerably, so without them MathJax runs @@ -814,7 +814,7 @@ MathJax.Hub.Config({ // // Configuration for tooltips // (see also the #MathJax_Tooltip CSS in MathJax/jax/output/HTML-CSS/config.js, - // which can be overriden using the styles values above). + // which can be overridden using the styles values above). // tooltip: { delayPost: 600, // milliseconds delay before tooltip is posted after mouseover @@ -1005,7 +1005,7 @@ MathJax.Hub.Config({ // // Configuration for tooltips // (see also the #MathJax_Tooltip CSS in MathJax/jax/output/SVG/config.js, - // which can be overriden using the styles values above). + // which can be overridden using the styles values above). // tooltip: { delayPost: 600, // milliseconds delay before tooltip is posted after mouseover diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Arrows.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Arrows.js index aecfe145e5..235f541cdf 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Arrows.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Arrows.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BBBold.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BBBold.js index 03f89df1f4..ab2e6e0ad1 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BBBold.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BBBold.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BoxDrawing.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BoxDrawing.js index 0dfc3c9e0b..b7876f3597 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BoxDrawing.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/BoxDrawing.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/CombDiacritMarks.js index 1fa1e0199f..b4b5a190bd 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Dingbats.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Dingbats.js index 633996977b..4262c0edc7 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Dingbats.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Dingbats.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/EnclosedAlphanum.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/EnclosedAlphanum.js index aca026e9e3..cd26075999 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/EnclosedAlphanum.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/EnclosedAlphanum.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeneralPunctuation.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeneralPunctuation.js index e3fd3bfcb6..2d09c468ea 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeneralPunctuation.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeneralPunctuation.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeometricShapes.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeometricShapes.js index 6401838624..f5c06048c4 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeometricShapes.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GeometricShapes.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GreekAndCoptic.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GreekAndCoptic.js index d0580135cb..2bb514973c 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GreekAndCoptic.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/GreekAndCoptic.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Latin1Supplement.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Latin1Supplement.js index 0c53d99754..d083434aaf 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Latin1Supplement.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Latin1Supplement.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LatinExtendedA.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LatinExtendedA.js index 38ec11b2a1..36a83961de 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LatinExtendedA.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LatinExtendedA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LetterlikeSymbols.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LetterlikeSymbols.js index a4e9387f9b..7794be9a60 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LetterlikeSymbols.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/LetterlikeSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Main.js index 2027a99a1b..9b5b258f6b 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MathOperators.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MathOperators.js index a140a3cd76..c6b4b2cb75 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MathOperators.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MathOperators.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscMathSymbolsB.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscMathSymbolsB.js index 9923380874..fc0db952bf 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscMathSymbolsB.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscMathSymbolsB.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscSymbols.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscSymbols.js index ba6b81b77c..f69f1431e5 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscSymbols.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscTechnical.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscTechnical.js index 42caa0b365..9eb67b57b9 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscTechnical.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/MiscTechnical.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/PUA.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/PUA.js index 00b2b14090..3a58787bec 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/PUA.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/PUA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SpacingModLetters.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SpacingModLetters.js index 373f7efb88..b927057c10 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SpacingModLetters.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SpacingModLetters.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SuppMathOperators.js b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SuppMathOperators.js index 9a5acc5f52..a6811a470f 100644 --- a/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SuppMathOperators.js +++ b/fonts/HTML-CSS/TeX/png/AMS/Regular/unpacked/SuppMathOperators.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Caligraphic/Bold/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Caligraphic/Bold/unpacked/Main.js index 83bac4a12c..40d402171e 100644 --- a/fonts/HTML-CSS/TeX/png/Caligraphic/Bold/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Caligraphic/Bold/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Caligraphic/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Caligraphic/Regular/unpacked/Main.js index 4d3bc3daf9..2ff8124cb3 100644 --- a/fonts/HTML-CSS/TeX/png/Caligraphic/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Caligraphic/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/BasicLatin.js b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/BasicLatin.js index d6d9d46054..1f389060bd 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/BasicLatin.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/BasicLatin.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Main.js index 91b84bf95a..cfcd65a056 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Other.js b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Other.js index a98c62545f..89357f51cb 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Other.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/Other.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/PUA.js b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/PUA.js index df951ea05a..6b32f2dc3f 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/PUA.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Bold/unpacked/PUA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/BasicLatin.js b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/BasicLatin.js index 499cc1ec55..45a3a9ade2 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/BasicLatin.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/BasicLatin.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Main.js index fe26acee71..d383fed516 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Other.js b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Other.js index a92c07dea3..2d867aebc4 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Other.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/Other.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/PUA.js b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/PUA.js index e78e72648a..cbbd567064 100644 --- a/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/PUA.js +++ b/fonts/HTML-CSS/TeX/png/Fraktur/Regular/unpacked/PUA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Arrows.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Arrows.js index 5790c14813..c33d6d5e47 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Arrows.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Arrows.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiacritMarks.js index c4237437b2..c6489fa9d3 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiactForSymbols.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiactForSymbols.js index 803d43d441..a7573d10de 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiactForSymbols.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/CombDiactForSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeneralPunctuation.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeneralPunctuation.js index afaf458ac6..e0d1006d1e 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeneralPunctuation.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeneralPunctuation.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeometricShapes.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeometricShapes.js index 570c4917e8..4b1cbdef3f 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeometricShapes.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GeometricShapes.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GreekAndCoptic.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GreekAndCoptic.js index 2bb7205fe7..8c6400a725 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GreekAndCoptic.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/GreekAndCoptic.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Latin1Supplement.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Latin1Supplement.js index 64697ff824..614f5c6242 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Latin1Supplement.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Latin1Supplement.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedA.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedA.js index d35f4b0ac4..e6c65063ec 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedA.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedB.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedB.js index bca437913c..de4b104ea1 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedB.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LatinExtendedB.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LetterlikeSymbols.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LetterlikeSymbols.js index c20bb71315..6467ef97d5 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LetterlikeSymbols.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/LetterlikeSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Main.js index fcab7d1a79..100b3ccb6c 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MathOperators.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MathOperators.js index d7fff57ed5..8aa12b9c9c 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MathOperators.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MathOperators.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscMathSymbolsA.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscMathSymbolsA.js index 98900789ee..e87fcdc5ed 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscMathSymbolsA.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscMathSymbolsA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscSymbols.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscSymbols.js index d0accd6f39..0c70bd0d81 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscSymbols.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscTechnical.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscTechnical.js index 0dd3955131..2e3cfb6fa1 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscTechnical.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/MiscTechnical.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SpacingModLetters.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SpacingModLetters.js index e611d9a5ea..9169426f69 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SpacingModLetters.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SpacingModLetters.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SuppMathOperators.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SuppMathOperators.js index aa1ac986ac..cd200e8cc6 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SuppMathOperators.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SuppMathOperators.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SupplementalArrowsA.js b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SupplementalArrowsA.js index a6c881a611..5d0687bc16 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SupplementalArrowsA.js +++ b/fonts/HTML-CSS/TeX/png/Main/Bold/unpacked/SupplementalArrowsA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/CombDiacritMarks.js index 485aa1ba34..02bac601e5 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GeneralPunctuation.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GeneralPunctuation.js index befc88e06c..872fda030a 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GeneralPunctuation.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GeneralPunctuation.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GreekAndCoptic.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GreekAndCoptic.js index a6855beceb..67b3ad1b3d 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GreekAndCoptic.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/GreekAndCoptic.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Latin1Supplement.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Latin1Supplement.js index 64d3aca045..526419e6f1 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Latin1Supplement.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Latin1Supplement.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedA.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedA.js index 25c5e5d07b..d70abc03a7 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedA.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedB.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedB.js index 100a1cbe64..60ea819c6a 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedB.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LatinExtendedB.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LetterlikeSymbols.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LetterlikeSymbols.js index 3916832c75..3f6be567c1 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LetterlikeSymbols.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/LetterlikeSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Main.js index 8109a72b1e..b13fb213d7 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Main/Italic/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Arrows.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Arrows.js index 9b098a4171..cb1a99749c 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Arrows.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Arrows.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiacritMarks.js index fb08a34753..3abf9933af 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiactForSymbols.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiactForSymbols.js index 5c891a3847..722c854032 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiactForSymbols.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/CombDiactForSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeneralPunctuation.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeneralPunctuation.js index 5faee43c62..bc1b552565 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeneralPunctuation.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeneralPunctuation.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeometricShapes.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeometricShapes.js index b55b7aed86..d900c8918b 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeometricShapes.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GeometricShapes.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GreekAndCoptic.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GreekAndCoptic.js index 4af83b33c5..4ea48dd9b3 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GreekAndCoptic.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/GreekAndCoptic.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Latin1Supplement.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Latin1Supplement.js index dd2b9ac119..d91d05b8a8 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Latin1Supplement.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Latin1Supplement.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedA.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedA.js index 9b714133c1..545a5e23ba 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedA.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedB.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedB.js index 7427dd4a4d..0ba1f3a89d 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedB.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LatinExtendedB.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LetterlikeSymbols.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LetterlikeSymbols.js index 2aafb4310d..71e18781c1 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LetterlikeSymbols.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/LetterlikeSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Main.js index f918edd6ac..af9d55f685 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MathOperators.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MathOperators.js index d1e55cb3bb..e3de6ed830 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MathOperators.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MathOperators.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscMathSymbolsA.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscMathSymbolsA.js index 72408c68f6..eb2dfb008b 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscMathSymbolsA.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscMathSymbolsA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscSymbols.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscSymbols.js index 417990be68..eddb831559 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscSymbols.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscSymbols.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscTechnical.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscTechnical.js index 3e39db487b..7e6e03f771 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscTechnical.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/MiscTechnical.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SpacingModLetters.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SpacingModLetters.js index 497f997095..6603b3956c 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SpacingModLetters.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SpacingModLetters.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SuppMathOperators.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SuppMathOperators.js index 8daafff5ba..83712892ab 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SuppMathOperators.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SuppMathOperators.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SupplementalArrowsA.js b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SupplementalArrowsA.js index 408fabb2f4..7318d2a338 100644 --- a/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SupplementalArrowsA.js +++ b/fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SupplementalArrowsA.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Math/BoldItalic/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Math/BoldItalic/unpacked/Main.js index 8084ef022f..8b8a1d2fd4 100644 --- a/fonts/HTML-CSS/TeX/png/Math/BoldItalic/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Math/BoldItalic/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Math/Italic/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Math/Italic/unpacked/Main.js index 3be9d26ff5..9a56d0b8b5 100644 --- a/fonts/HTML-CSS/TeX/png/Math/Italic/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Math/Italic/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/BasicLatin.js b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/BasicLatin.js index d7815c8eff..80eea03d66 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/BasicLatin.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/BasicLatin.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/CombDiacritMarks.js index 72b9ca6af3..85d32790e8 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Main.js index 8ba7798f29..5f175180c4 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Other.js b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Other.js index aad6d947ad..86a4d119d0 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Other.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Bold/unpacked/Other.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/BasicLatin.js b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/BasicLatin.js index 1895ea5c2c..60a91ee7eb 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/BasicLatin.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/BasicLatin.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/CombDiacritMarks.js index a7ad64455e..703c705b79 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Main.js index b270d8cd7d..0b9fd0362f 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Other.js b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Other.js index 25d9bb09e4..75dd9636bd 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Other.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Italic/unpacked/Other.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/BasicLatin.js b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/BasicLatin.js index 807315243b..bf7869eec1 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/BasicLatin.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/BasicLatin.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/CombDiacritMarks.js index 6fa1cde48d..a09a41ddca 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Main.js index bdc6bc578e..9b3416ea38 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Other.js b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Other.js index 1e880d4d53..a9661e9cd7 100644 --- a/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Other.js +++ b/fonts/HTML-CSS/TeX/png/SansSerif/Regular/unpacked/Other.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/BasicLatin.js b/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/BasicLatin.js index f16df3c2fd..90d1099bc9 100644 --- a/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/BasicLatin.js +++ b/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/BasicLatin.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Main.js index 5a1d925330..d4e24308b3 100644 --- a/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Other.js b/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Other.js index 2eed3006b8..2649e97280 100644 --- a/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Other.js +++ b/fonts/HTML-CSS/TeX/png/Script/Regular/unpacked/Other.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Size1/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Size1/Regular/unpacked/Main.js index 43b6077a77..82206dcacc 100644 --- a/fonts/HTML-CSS/TeX/png/Size1/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Size1/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Size2/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Size2/Regular/unpacked/Main.js index da93cc3250..ff0cbaeb5c 100644 --- a/fonts/HTML-CSS/TeX/png/Size2/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Size2/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Size3/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Size3/Regular/unpacked/Main.js index 23c1162a43..79be2e0b0c 100644 --- a/fonts/HTML-CSS/TeX/png/Size3/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Size3/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Size4/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Size4/Regular/unpacked/Main.js index f70c112f43..cd11720c00 100644 --- a/fonts/HTML-CSS/TeX/png/Size4/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Size4/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/BasicLatin.js b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/BasicLatin.js index 88f13b98db..c58e13f5d0 100644 --- a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/BasicLatin.js +++ b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/BasicLatin.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/CombDiacritMarks.js b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/CombDiacritMarks.js index d6f39f1e83..dca30e804b 100644 --- a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/CombDiacritMarks.js +++ b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/CombDiacritMarks.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Main.js b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Main.js index 9e9214653c..414d19ee87 100644 --- a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Main.js +++ b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Main.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Other.js b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Other.js index 86211cd1da..e71f71c220 100644 --- a/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Other.js +++ b/fonts/HTML-CSS/TeX/png/Typewriter/Regular/unpacked/Other.js @@ -4,7 +4,7 @@ * * Defines the image size data needed for the HTML-CSS OutputJax * to display mathematics using fallback images when the fonts - * are not availble to the client browser. + * are not available to the client browser. * * --------------------------------------------------------------------- * diff --git a/latest.js b/latest.js index 82d1cf630b..b0510c12b5 100644 --- a/latest.js +++ b/latest.js @@ -16,4 +16,4 @@ * limitations under the License. */ -(function(){var h={"cdnjs.cloudflare.com":{api:"https://api.cdnjs.com/libraries/mathjax?fields=version",version:"version",mathjax:"https://cdnjs.cloudflare.com/ajax/libs/mathjax/"},"cdn.rawgit.com":{api:"https://api.github.com/repos/mathjax/mathjax/releases/latest",version:"tag_name",mathjax:"https://cdn.rawgit.com/mathjax/MathJax/"},"cdn.jsdelivr.net":{api:"https://api.jsdelivr.com/v1/jsdelivr/libraries?name=mathjax&lastversion=*",version:"lastversion",mathjax:"https://cdn.jsdelivr.net/mathjax/"}};function g(q){if(console&&console.log){console.log(q)}}function e(){if(document.currentScript){return document.currentScript}var r=document.getElementsByTagName("script");for(var v=0,q=r.length;v element")}}function i(){var q=e();if(q){o(q.src.replace(/\/latest\.js/,"/MathJax.js"))}else{g("Can't determine the URL for loading MathJax")}}function m(q,r,s){var t=j();if(t){t.onreadystatechange=function(){if(t.readyState===4){if(t.status===200){var v=JSON.parse(t.responseText);if(v instanceof Array){v=v[0]}var u=v[q.version];if(u.substr(0,2)==="2."){c(u);o(q.mathjax+v[q.version]+s+"/MathJax.js"+r);return}}else{g("Problem aquiring MathJax version: status = "+t.status)}i()}};t.open("GET",q.api,true);t.send(null)}else{g("Can't create XMLHttpRequest object");i()}}var n=e();var p=a(n);if(p){var b=n.src.replace(/.*?(\?|$)/,"$1");b+=(b?"&":"?")+"latest";var f=(n.src.match(/\/unpacked\/latest\.js/)?"/unpacked":"");var k=d();if(k){o(p.mathjax+k+f+"/MathJax.js"+b)}else{m(p,b,f)}}else{i()}})(); +(function(){var h={"cdnjs.cloudflare.com":{api:"https://api.cdnjs.com/libraries/mathjax?fields=version",version:"version",mathjax:"https://cdnjs.cloudflare.com/ajax/libs/mathjax/"},"cdn.rawgit.com":{api:"https://api.github.com/repos/mathjax/mathjax/releases/latest",version:"tag_name",mathjax:"https://cdn.rawgit.com/mathjax/MathJax/"},"cdn.jsdelivr.net":{api:"https://api.jsdelivr.com/v1/jsdelivr/libraries?name=mathjax&lastversion=*",version:"lastversion",mathjax:"https://cdn.jsdelivr.net/mathjax/"}};function g(q){if(console&&console.log){console.log(q)}}function e(){if(document.currentScript){return document.currentScript}var r=document.getElementsByTagName("script");for(var v=0,q=r.length;v element")}}function i(){var q=e();if(q){o(q.src.replace(/\/latest\.js/,"/MathJax.js"))}else{g("Can't determine the URL for loading MathJax")}}function m(q,r,s){var t=j();if(t){t.onreadystatechange=function(){if(t.readyState===4){if(t.status===200){var v=JSON.parse(t.responseText);if(v instanceof Array){v=v[0]}var u=v[q.version];if(u.substr(0,2)==="2."){c(u);o(q.mathjax+v[q.version]+s+"/MathJax.js"+r);return}}else{g("Problem acquiring MathJax version: status = "+t.status)}i()}};t.open("GET",q.api,true);t.send(null)}else{g("Can't create XMLHttpRequest object");i()}}var n=e();var p=a(n);if(p){var b=n.src.replace(/.*?(\?|$)/,"$1");b+=(b?"&":"?")+"latest";var f=(n.src.match(/\/unpacked\/latest\.js/)?"/unpacked":"");var k=d();if(k){o(p.mathjax+k+f+"/MathJax.js"+b)}else{m(p,b,f)}}else{i()}})(); diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 25f5e9cd05..dee69d2a13 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -825,7 +825,7 @@ MathJax.cdnFileVersions = {}; // can be used to specify revisions for individua }; // // Add this to the structure above after it is created to prevent recursion - // when loading the initial localization file (before loading messsage is available) + // when loading the initial localization file (before loading message is available) // this.loading[file].message = BASE.Message.File(name); script.onerror = timeout; // doesn't work in IE and no apparent substitute @@ -1359,7 +1359,7 @@ MathJax.Localization = { // Split the string by the Markdown pattern // (the text blocks are separated by // c,stars,star-text,backtics,code-text,link-text,URL). - // Start with teh first text string from the split. + // Start with the first text string from the split. // var parts = phrase.split(this.markdownPattern); var string = parts[0]; @@ -1898,7 +1898,7 @@ MathJax.Hub = { postJax: null, // pattern to remove from after math script tag displayAlign: 'center', // how to align displayed equations (left, center, right) displayIndent: '0', // indentation for displayed equations (when not centered) - preRemoveClass: 'MathJax_Preview', // class of objects to remove preceeding math script + preRemoveClass: 'MathJax_Preview', // class of objects to remove preceding math script showProcessingMessages: true, // display "Processing math: nn%" messages or not messageStyle: "normal", // set to "none" or "simple" (for "Loading..." and "Processing...") delayStartupUntil: "none", // set to "onload" to delay setup until the onload handler runs diff --git a/unpacked/config/default.js b/unpacked/config/default.js index fc54590c08..144944ca1e 100644 --- a/unpacked/config/default.js +++ b/unpacked/config/default.js @@ -111,7 +111,7 @@ MathJax.Hub.Config({ // tag usually doesn't add content to the page, if there is a space before and after // a MathJax SCRIPT tag, IE will remove the first space. When MathJax inserts // the typeset mathematics, this means there will be no space before it and the - // preceeding text. In order to avoid this, you should include some "guard characters" + // preceding text. In order to avoid this, you should include some "guard characters" // before or after the math SCRIPT tag; define the patterns you want to use below. // Note that these are used as regular expressions, so you will need to quote // special characters. Furthermore, since they are javascript strings, you must @@ -134,7 +134,7 @@ MathJax.Hub.Config({ postJax: null, // - // The CSS class for a math preview to be removed preceeding a MathJax + // The CSS class for a math preview to be removed preceding a MathJax // SCRIPT tag. If the tag just before the MathJax SCRIPT tag is of this // class, its contents are removed when MathJax processes the SCRIPT // tag. This allows you to include a math preview in a form that will @@ -323,7 +323,7 @@ MathJax.Hub.Config({ // not be processed by tex2jax (other than to look for the // processClass pattern below). Note that this is a regular // expression, and so you need to be sure to quote any regexp special - // characters. The pattern is automatically preceeded by '(^| )(' and + // characters. The pattern is automatically preceded by '(^| )(' and // followed by ')( |$)', so your pattern will have to match full words // in the class name. Assigning an element this class name will // prevent `tex2jax` from processing its contents. @@ -336,7 +336,7 @@ MathJax.Hub.Config({ // tags that have been marked as ignored or skipped above. Note that // this is a regular expression, and so you need to be sure to quote // any regexp special characters. The pattern is automatically - // preceeded by '(^| )(' and followed by ')( |$)', so your pattern + // preceded by '(^| )(' and followed by ')( |$)', so your pattern // will have to match full words in the class name. Use this to // restart processing within an element that has been marked as // ignored above. @@ -410,7 +410,7 @@ MathJax.Hub.Config({ // not be processed by asciimath2jax (other than to look for the // processClass pattern below). Note that this is a regular // expression, and so you need to be sure to quote any regexp special - // characters. The pattern is automatically preceeded by '(^| )(' and + // characters. The pattern is automatically preceded by '(^| )(' and // followed by ')( |$)', so your pattern will have to match full words // in the class name. Assigning an element this class name will // prevent `asciimath2jax` from processing its contents. @@ -423,7 +423,7 @@ MathJax.Hub.Config({ // within tags that have been marked as ignored or skipped above. // Note that this is a regular expression, and so you need to be sure // to quote any regexp special characters. The pattern is - // automatically preceeded by '(^| )(' and followed by ')( |$)', so + // automatically preceded by '(^| )(' and followed by ')( |$)', so // your pattern will have to match full words in the class name. Use // this to restart processing within an element that has been marked // as ignored above. @@ -752,7 +752,7 @@ MathJax.Hub.Config({ // // When true, MathJax will not measure the widths or heights of the // subexpressions as it creates its output, but instead will rely on - // its internal calculautions based on teh bounding boxes of the + // its internal calculations based on the bounding boxes of the // characters it uses, and will only take measurements when it // absolutely has to. Since measurements cause display reflows, they // slows down MathJax considerably, so without them MathJax runs @@ -814,7 +814,7 @@ MathJax.Hub.Config({ // // Configuration for tooltips // (see also the #MathJax_Tooltip CSS in MathJax/jax/output/HTML-CSS/config.js, - // which can be overriden using the styles values above). + // which can be overridden using the styles values above). // tooltip: { delayPost: 600, // milliseconds delay before tooltip is posted after mouseover @@ -1005,7 +1005,7 @@ MathJax.Hub.Config({ // // Configuration for tooltips // (see also the #MathJax_Tooltip CSS in MathJax/jax/output/SVG/config.js, - // which can be overriden using the styles values above). + // which can be overridden using the styles values above). // tooltip: { delayPost: 600, // milliseconds delay before tooltip is posted after mouseover diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js index 7c97143819..73a9cb726c 100644 --- a/unpacked/extensions/TeX/AMSmath.js +++ b/unpacked/extensions/TeX/AMSmath.js @@ -479,7 +479,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { /* * If the initial child, skipping any initial space or * empty braces (TeXAtom with child being an empty inferred row), - * is an , preceed it by an empty to force the to + * is an , precede it by an empty to force the to * be infix. */ fixInitialMO: function (data) { @@ -602,7 +602,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { /******************************************************************************/ /* - * Add pre- and post-filters to handle the equation number maintainance. + * Add pre- and post-filters to handle the equation number maintenance. */ TEX.prefilterHooks.Add(function (data) { AMS.display = data.display; diff --git a/unpacked/extensions/TeX/mhchem.js b/unpacked/extensions/TeX/mhchem.js index b10a1a4e2b..2a584dc369 100644 --- a/unpacked/extensions/TeX/mhchem.js +++ b/unpacked/extensions/TeX/mhchem.js @@ -166,7 +166,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { }, // - // Make a number or fraction preceeding an atom, + // Make a number or fraction preceding an atom, // or a subscript for an atom. // ParseNumber: function () { diff --git a/unpacked/extensions/a11y/auto-collapse.js b/unpacked/extensions/a11y/auto-collapse.js index 4794e2fe0e..949b7156c2 100644 --- a/unpacked/extensions/a11y/auto-collapse.js +++ b/unpacked/extensions/a11y/auto-collapse.js @@ -179,7 +179,7 @@ }, // - // Find the actions that need to be collapsed to acheive + // Find the actions that need to be collapsed to achieve // the correct width, and retain the sizes that would cause // the equation to be expanded or collapsed further. // diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index 7ffde60fae..b9ea294c49 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -2159,7 +2159,7 @@ }, /* - * Replace macro paramters with their values + * Replace macro parameters with their values */ SubstituteArgs: function (args,string) { var text = ''; var newstring = ''; var c; var i = 0; diff --git a/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata.js b/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata.js index 8b98e5ce68..5ea667658c 100644 --- a/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata.js +++ b/unpacked/jax/output/CommonHTML/fonts/TeX/fontdata.js @@ -49,7 +49,7 @@ ".MJXc-TeX-unknown-BI": {"font-family":UNDEFINEDFAMILY, "font-style":"italic", "font-weight":"bold"} }); - CHTML.TEX = CHTML.TEXDEF; // use default TeX paramaters + CHTML.TEX = CHTML.TEXDEF; // use default TeX parameters CHTML.FONTDEF.TeX = { version: VERSION, diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index ae3e6ffae5..1c0b79f762 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -832,7 +832,7 @@ // After all remapping has been done, look up a character // in the fonts for a given variant, chaining to other // variants as needed. Return an undefined character if - // it isnt' found in the given variant. + // it isn't found in the given variant. // lookupChar: function (variant,n,N) { var VARIANT = variant; @@ -2243,7 +2243,7 @@ bbox[i] = this.CHTMLbboxFor(i); bbox[i].x = bbox[i].y = 0; if (this.data[i]) bbox[i].stretch = this.data[i].CHTMLcanStretch("Horizontal"); scale = (i === this.base ? 1 : bbox[i].rscale); - if (i !== this.base) {delete bbox[i].L; delete bbox[i].R} // these are overriden by CSS + if (i !== this.base) {delete bbox[i].L; delete bbox[i].R} // these are overridden by CSS W = Math.max(W,scale*(bbox[i].w + (bbox[i].L||0) + (bbox[i].R||0))); if (!bbox[i].stretch && W > w) w = W; } diff --git a/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata.js b/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata.js index 4b3da637e5..1fc04ac21c 100644 --- a/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata.js +++ b/unpacked/jax/output/HTML-CSS/fonts/TeX/fontdata.js @@ -1822,7 +1822,7 @@ 0x2571:0xE2CE, 0x2572:0xE2CF, 0x25A0:0xE2D0, 0x25A1:0xE2D1, // \diagup, \diagdown, \blacksquare, \square 0x25B2:0xE2D2, 0x25B6:0xE2D4, 0x25BC:0xE2D5, // \blacktriangle, \blacktriangleright, \blacktriangledown 0x25BD:0xE2D6, 0x25C0:0xE2D7, 0x25CA:0xE2D8, // \vartriangledown, \blacktriangleleft, \lozenge - 0x2234:0xE2D9, 0x2235:0xE2DA, 0x2252:0xE2DB, 0x2605:0xE2DC, // \therefor, \because, \fallingdotseq, \bigstar + 0x2234:0xE2D9, 0x2235:0xE2DA, 0x2252:0xE2DB, 0x2605:0xE2DC, // \therefore, \because, \fallingdotseq, \bigstar 0x223D:0xE2DD // \backsim }; var REMAPBOLD = {variant:"-WinIE6", @@ -1844,7 +1844,7 @@ 0x2571:0xE2CE, 0x2572:0xE2CF, 0x25A0:0xE2D0, 0x25A1:0xE2D1, // \diagup, \diagdown, \blacksquare, \square 0x25B2:0xE2D2, 0x25B6:0xE2D4, 0x25BC:0xE2D5, // \blacktriangle, \blacktriangleright, \blacktriangledown 0x25BD:0xE2D6, 0x25C0:0xE2D7, 0x25CA:0xE2D8, // \vartriangledown, \blacktriangleleft, \lozenge - 0x2234:0xE2D9, 0x2235:0xE2DA, 0x2252:0xE2DB, 0x2605:0xE2DC, // \therefor, \because, \fallingdotseq, \bigstar + 0x2234:0xE2D9, 0x2235:0xE2DA, 0x2252:0xE2DB, 0x2605:0xE2DC, // \therefore, \because, \fallingdotseq, \bigstar 0x223D:0xE2DD // \backsim }; var VARNORMAL = {offsetAR:0xE200, variantAR:"-WinIE6", remap: REMAP}; diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js index b6bb5acb91..cd598a8883 100644 --- a/unpacked/jax/output/NativeMML/jax.js +++ b/unpacked/jax/output/NativeMML/jax.js @@ -348,7 +348,7 @@ }, // - // Remove MathML preceeding the script + // Remove MathML preceding the script // Remove: function (jax) { var span = jax.SourceElement(); if (!span) return; diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index d73e2b1e65..99e44ffb2b 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -1711,7 +1711,7 @@ var values = this.getValues("height","depth","width","lspace","voffset"), X = 0, Y = 0; if (values.lspace) {X = this.SVGlength2em(pad,values.lspace,mu)} if (values.voffset) {Y = this.SVGlength2em(pad,values.voffset,mu)} - var h = pad.h, d = pad.d, w = pad.w, y = pad.y; // these can change durring the Add() + var h = pad.h, d = pad.d, w = pad.w, y = pad.y; // these can change during the Add() svg.Add(pad,X,Y); svg.Clean(); svg.h = h+y; svg.d = d-y; svg.w = w; svg.removeable = false; if (values.height !== "") {svg.h = this.SVGlength2em(svg,values.height,mu,"h",0)} diff --git a/unpacked/latest.js b/unpacked/latest.js index 3c5a4e7153..623b5b7cf0 100644 --- a/unpacked/latest.js +++ b/unpacked/latest.js @@ -127,7 +127,7 @@ return; } } else { - Error("Problem aquiring MathJax version: status = " + request.status); + Error("Problem acquiring MathJax version: status = " + request.status); } loadDefaultMathJax(); } From d4ad1a9130d0c23911498eb05bb3738e96c9bd4a Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Thu, 28 Dec 2017 17:27:00 +0300 Subject: [PATCH 06/36] Do not use let as variable name --- unpacked/extensions/TeX/newcommand.js | 2 +- unpacked/jax/input/TeX/jax.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/extensions/TeX/newcommand.js b/unpacked/extensions/TeX/newcommand.js index dec9900076..fab2add58e 100644 --- a/unpacked/extensions/TeX/newcommand.js +++ b/unpacked/extensions/TeX/newcommand.js @@ -41,7 +41,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { newenvironment: 'NewEnvironment', renewenvironment: 'NewEnvironment', def: 'MacroDef', - let: 'Let' + 'let': 'Let' } },null,true); diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index 7ffde60fae..22a3ee105d 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -989,7 +989,7 @@ newenvironment: ['Extension','newcommand'], renewenvironment: ['Extension','newcommand'], def: ['Extension','newcommand'], - let: ['Extension','newcommand'], + 'let': ['Extension','newcommand'], verb: ['Extension','verb'], From 40e06886ee211742bea733b28270f613b8236391 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Fri, 12 Jan 2018 16:14:04 -0500 Subject: [PATCH 07/36] Fix position of rightmost glyph in horizontal stretchy characters in HTML-CSS. Resolves issue #1896 --- unpacked/jax/output/HTML-CSS/jax.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index f1ebe0b60c..55ac364697 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -1457,6 +1457,7 @@ if (delim.mid) {this.placeBox(mid,x,0,true); x += mid.bbox.w}; x -= (w - W)/2; } + x -= right.bbox.lw; this.placeBox(right,x,0,true); span.bbox = { w: x+right.bbox.rw, lw: 0, rw: x+right.bbox.rw, From 9276979cefb43083c046d0b02ffce57c1719177f Mon Sep 17 00:00:00 2001 From: zorkow Date: Sat, 13 Jan 2018 19:59:49 +0000 Subject: [PATCH 08/36] Adds a signal for resetting the locale. --- unpacked/MathJax.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 25f5e9cd05..2ce8fdd2ce 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -1554,6 +1554,7 @@ MathJax.Localization = { } var remap = this.strings[locale].remap; this.locale = remap ? remap : locale; + MathJax.Callback.Signal("Hub").Post(["Locale Reset", this.locale]); }, // From f5daa00156b8846eeacfef3a1222238aee01e818 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 15:44:15 -0500 Subject: [PATCH 09/36] Fix mispelling of 'initial'. (see #1879) --- unpacked/jax/element/mml/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js index 40f34fa26e..e44320d01b 100644 --- a/unpacked/jax/element/mml/jax.js +++ b/unpacked/jax/element/mml/jax.js @@ -78,7 +78,7 @@ MathJax.ElementJax.mml.Augment({ SANSSERIFITALIC: "sans-serif-italic", SANSSERIFBOLDITALIC: "sans-serif-bold-italic", MONOSPACE: "monospace", - INITIAL: "inital", + INITIAL: "initial", TAILED: "tailed", LOOPED: "looped", STRETCHED: "stretched", From a05f4bcc7340eaf0e3398f2e3ea0a3cc38dec505 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 15:50:17 -0500 Subject: [PATCH 10/36] Update README.md Make links to website live, and reword somewhat. --- README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3d0ab08557..7ca6f7e4ba 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,8 @@ See for additional details. ## Installation and Usage The MathJax installation and usage documentation is available in a -separate GitHub repository at - - https://github.com/mathjax/mathjax-docs - -The HTML versions are now available at - - http://docs.mathjax.org/ - +separate GitHub repository at . +The HTML versions can now be viewed at , where it is possible for you to submit corrections and modifications directly to the documentation on line. From 158e41cb93001030c6b08133cb8cc5f5223d604b Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 16:22:32 -0500 Subject: [PATCH 11/36] Properly scale element widths when looking for linebreaks in SVG output. Resolves #1881. --- unpacked/jax/output/CommonHTML/autoload/multiline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/multiline.js b/unpacked/jax/output/CommonHTML/autoload/multiline.js index 742c061846..a07be695c9 100644 --- a/unpacked/jax/output/CommonHTML/autoload/multiline.js +++ b/unpacked/jax/output/CommonHTML/autoload/multiline.js @@ -172,7 +172,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { CHTMLaddWidth: function (i,info,scanW) { if (this.data[i]) { var bbox = this.data[i].CHTML; - scanW += bbox.w + (bbox.L||0) + (bbox.R||0); + scanW += (bbox.w + (bbox.L||0) + (bbox.R||0)) * (bbox.rscale || 1); info.W = info.scanW = scanW; info.w = 0; } return scanW; From 7db1e0c4f9075cf0fdc195524587edaf2e48f8a9 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 16:26:37 -0500 Subject: [PATCH 12/36] Reset character width if equation reloads. Resolves issue #1837 --- unpacked/jax/output/CommonHTML/jax.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 2493308ac4..45d1b2c60f 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -1785,6 +1785,7 @@ MML.chars.Augment({ toCommonHTML: function (node,options) { + this.CHTML = null; if (options == null) options = {}; var text = this.toString(); if (options.remap) text = options.remap(text,options.remapchars); From 1cbdd2de0cc3c2a8aa70446e2111b071cfbe97bd Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 16:30:07 -0500 Subject: [PATCH 13/36] Decode hash URI component so that special character are properly handled. Resolves issue #1843. --- unpacked/MathJax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index b90bb7ba42..b3da87de93 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -2706,7 +2706,7 @@ MathJax.Hub.Startup = { Hash: function () { if (MathJax.Hub.config.positionToHash && document.location.hash && document.body && document.body.scrollIntoView) { - var name = document.location.hash.substr(1); + var name = decodeURIComponent(document.location.hash.substr(1)); var target = document.getElementById(name); if (!target) { var a = document.getElementsByTagName("a"); From bd69c5e0e4b468aa74b274976d58f50e171fa98b Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 16:33:39 -0500 Subject: [PATCH 14/36] Handle default border width as browsers do in SVG and HTML-CSS output. Resolves issue #1855 --- unpacked/jax/output/HTML-CSS/jax.js | 12 +++++++++--- unpacked/jax/output/SVG/jax.js | 8 +++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index d2a10d0f55..ddec00a175 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -1074,10 +1074,16 @@ thickness2em: function (length,mu) { var thick = HTMLCSS.TeX.rule_thickness; if (length === MML.LINETHICKNESS.MEDIUM) {return thick} - if (length === MML.LINETHICKNESS.THIN) {return .67*thick} - if (length === MML.LINETHICKNESS.THICK) {return 1.67*thick} + if (length === MML.LINETHICKNESS.THIN) {return .67*thick} + if (length === MML.LINETHICKNESS.THICK) {return 1.67*thick} return this.length2em(length,mu,thick); }, + border2em: function (length,mu) { + if (length === MML.LINETHICKNESS.THIN) {length = "1px"} + if (length === MML.LINETHICKNESS.MEDIUM) {length = "3px"} + if (length === MML.LINETHICKNESS.THICK) {length = "5px"} + return this.length2em(length,mu); + }, getPadding: function (span) { var padding = {top:0, right:0, bottom:0, left:0}, has = false; @@ -1094,7 +1100,7 @@ var style = span.style[ID+"Style"]; if (style) { has = true; - border[id] = this.length2em(span.style[ID+"Width"]); + border[id] = this.border2em(span.style[ID+"Width"] || MML.LINETHICKNESS.MEDIUM); css[ID] = [span.style[ID+"Width"],span.style[ID+"Style"],span.style[ID+"Color"]].join(" "); } }} diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 99e44ffb2b..b5738b4a91 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -558,6 +558,12 @@ if (length === MML.LINETHICKNESS.THICK) {return 1.67*thick} return this.length2em(length,mu,thick); }, + border2em: function (length,mu) { + if (length === MML.LINETHICKNESS.THIN) {length = "1px"} + if (length === MML.LINETHICKNESS.MEDIUM) {length = "3px"} + if (length === MML.LINETHICKNESS.THICK) {length = "5px"} + return this.length2em(length,mu); + }, getPadding: function (styles) { var padding = {top:0, right:0, bottom:0, left:0}, has = false; @@ -574,7 +580,7 @@ var style = styles[ID+"Style"]; if (style && style !== "none") { has = true; - border[id] = this.length2em(styles[ID+"Width"]); + border[id] = this.border2em(styles[ID+"Width"] || MML.LINETHICKNESS.MEDIUM); border[id+"Style"] = styles[ID+"Style"]; border[id+"Color"] = styles[ID+"Color"]; if (border[id+"Color"] === "initial") {border[id+"Color"] = ""} From a4b6f413fdcd724002271a9cb39a5ef4d1b0813e Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 17:13:42 -0500 Subject: [PATCH 15/36] Have \bigg and friends to trim spaces from their arguments. Resolves issue #1819 --- unpacked/jax/input/TeX/jax.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index 92ba99a9b8..77bacb29a7 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -2037,8 +2037,12 @@ while (this.nextIsSpace()) {this.i++} var c = this.string.charAt(this.i); this.i++; if (this.i <= this.string.length) { - if (c == "\\") {c += this.GetCS(name)} - else if (c === "{" && braceOK) {this.i--; c = this.GetArgument(name)} + if (c == "\\") { + c += this.GetCS(name); + } else if (c === "{" && braceOK) { + this.i--; + c = this.GetArgument(name).replace(/^\s+/,'').replace(/\s+$/,''); + } if (TEXDEF.delimiter[c] != null) {return this.convertDelimiter(c)} } TEX.Error(["MissingOrUnrecognizedDelim", From 156bb4df7737ac308deb747ddbb4ed37f7253180 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 17:30:28 -0500 Subject: [PATCH 16/36] Measure sizes of annotation-xml properly in SVG. Resolves issue #1870. --- unpacked/jax/output/SVG/jax.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 99e44ffb2b..70f46aabcd 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -87,6 +87,10 @@ "-o-transition": "none" }, + ".MathJax_SVG > div": { + display: "inline-block" + }, + ".mjx-svg-href": { fill: "blue", stroke: "blue" }, From 952f611812211c7684cd09411f9b122050e54278 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 20 Jan 2018 18:18:01 -0500 Subject: [PATCH 17/36] Move setDef and setEnv to TeX jax, and use them for \DeclareMathOperator and \Newextarrow so they can be localized via the begingroup extension. Resolves issue #1876 --- unpacked/extensions/TeX/AMSmath.js | 2 +- unpacked/extensions/TeX/begingroup.js | 77 +++++++++++---------------- unpacked/extensions/TeX/extpfeil.js | 2 +- unpacked/extensions/TeX/newcommand.js | 7 --- unpacked/jax/input/TeX/jax.js | 7 +++ 5 files changed, 39 insertions(+), 56 deletions(-) diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js index 73a9cb726c..cecfd553d0 100644 --- a/unpacked/extensions/TeX/AMSmath.js +++ b/unpacked/extensions/TeX/AMSmath.js @@ -224,7 +224,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { if (cs.charAt(0) == "\\") {cs = cs.substr(1)} var op = this.GetArgument(name); op = op.replace(/\*/g,'\\text{*}').replace(/-/g,'\\text{-}'); - TEX.Definitions.macros[cs] = ['Macro','\\mathop{\\rm '+op+'}'+limits]; + this.setDef(cs, ['Macro', '\\mathop{\\rm '+op+'}'+limits]); }, HandleOperatorName: function (name) { diff --git a/unpacked/extensions/TeX/begingroup.js b/unpacked/extensions/TeX/begingroup.js index 3e24cea0df..1cc4487d06 100644 --- a/unpacked/extensions/TeX/begingroup.js +++ b/unpacked/extensions/TeX/begingroup.js @@ -193,9 +193,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { macros: { begingroup: "BeginGroup", endgroup: "EndGroup", - global: ["Extension","newcommand"], - gdef: ["Extension","newcommand"] - } + global: "Global", + gdef: ["Macro","\\global\\def"] + } },null,true); TEX.Parse.Augment({ @@ -232,8 +232,34 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { }, envFindName: function (name) { return (TEX.eqnStack.Find(name,"environments") || TEX.rootStack.Find(name,"environments")); - } + }, + + // + // Modify the way macros and environments are defined + // to make them go into the equation namespace stack + // + setDef: function (name,value) { + value.isUser = true; + TEX.eqnStack.Def(name,value,"macros",this.stack.env.isGlobal); + delete this.stack.env.isGlobal; + }, + setEnv: function (name,value) { + value.isUser = true; + TEX.eqnStack.Def(name,value,"environments") + }, + // + // Implement \global (for \global\let, \global\def and \global\newcommand) + // + Global: function (name) { + var i = this.i; var cs = this.GetCSname(name); this.i = i; + if (cs !== "let" && cs !== "def" && cs !== "newcommand" && + cs !== "DeclareMathOperator" && cs !== "Newextarrow") { + TEX.Error(["GlobalNotFollowedBy", + "%1 not followed by \\let, \\def, or \\newcommand",name]); + } + this.stack.env.isGlobal = true; + } }); /****************************************************/ @@ -259,49 +285,6 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { /*********************************************************/ - MathJax.Hub.Register.StartupHook("TeX newcommand Ready",function () { - - // - // Add the commands that depend on the newcommand code - // - TEXDEF.Add({ - macros: { - global: "Global", - gdef: ["Macro","\\global\\def"] - } - },null,true); - - TEX.Parse.Augment({ - // - // Modify the way macros and environments are defined - // to make them go into the equation namespace stack - // - setDef: function (name,value) { - value.isUser = true; - TEX.eqnStack.Def(name,value,"macros",this.stack.env.isGlobal); - delete this.stack.env.isGlobal; - }, - setEnv: function (name,value) { - value.isUser = true; - TEX.eqnStack.Def(name,value,"environments") - }, - - // - // Implement \global (for \global\let, \global\def and \global\newcommand) - // - Global: function (name) { - var i = this.i; var cs = this.GetCSname(name); this.i = i; - if (cs !== "let" && cs !== "def" && cs !== "newcommand") { - TEX.Error(["GlobalNotFollowedBy", - "%1 not followed by \\let, \\def, or \\newcommand",name]); - } - this.stack.env.isGlobal = true; - } - - }); - - }); - MathJax.Hub.Startup.signal.Post("TeX begingroup Ready"); }); diff --git a/unpacked/extensions/TeX/extpfeil.js b/unpacked/extensions/TeX/extpfeil.js index 9fdaba1da3..ad8ff5801f 100644 --- a/unpacked/extensions/TeX/extpfeil.js +++ b/unpacked/extensions/TeX/extpfeil.js @@ -92,7 +92,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { ); } cs = cs.substr(1); space = space.split(","); chr = parseInt(chr); - TEXDEF.macros[cs] = ['xArrow',chr,parseInt(space[0]),parseInt(space[1])]; + this.setDef(cs, ['xArrow', chr, parseInt(space[0]), parseInt(space[1])]); } }); diff --git a/unpacked/extensions/TeX/newcommand.js b/unpacked/extensions/TeX/newcommand.js index fab2add58e..fe625de8c8 100644 --- a/unpacked/extensions/TeX/newcommand.js +++ b/unpacked/extensions/TeX/newcommand.js @@ -130,13 +130,6 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { this.setDef(cs,macro); }, - /* - * Routines to set the macro and environment definitions - * (overridden by begingroup to make localized versions) - */ - setDef: function (name,value) {value.isUser = true; TEXDEF.macros[name] = value}, - setEnv: function (name,value) {value.isUser = true; TEXDEF.environment[name] = value}, - /* * Get a CS name or give an error */ diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js index 92ba99a9b8..ce776fc8f0 100644 --- a/unpacked/jax/input/TeX/jax.js +++ b/unpacked/jax/input/TeX/jax.js @@ -2158,6 +2158,13 @@ return MML.mtext(MML.chars(text)).With(def); }, + /* + * Routines to set the macro and environment definitions + * (overridden by begingroup to make localized versions) + */ + setDef: function (name,value) {value.isUser = true; TEXDEF.macros[name] = value}, + setEnv: function (name,value) {value.isUser = true; TEXDEF.environment[name] = value}, + /* * Replace macro parameters with their values */ From b1c25ffbbe0521ac1a42513dd7f9ef65a776fc34 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 22 Jan 2018 13:08:39 -0500 Subject: [PATCH 18/36] Remove unwanted .htaccess from a11y/mathmaps --- unpacked/extensions/a11y/mathmaps/.htaccess | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 unpacked/extensions/a11y/mathmaps/.htaccess diff --git a/unpacked/extensions/a11y/mathmaps/.htaccess b/unpacked/extensions/a11y/mathmaps/.htaccess deleted file mode 100644 index a8d2444544..0000000000 --- a/unpacked/extensions/a11y/mathmaps/.htaccess +++ /dev/null @@ -1,3 +0,0 @@ -Header add Access-Control-Allow-Origin "*" -Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type" -Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS" From 7a00695915814f443a4e666fa43066294512a8b4 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 22 Jan 2018 15:58:40 -0500 Subject: [PATCH 19/36] Remove spaces from tag IDs, but allow other characters (since they are legal in HTML5) and use encodeURIComponent() rather than encode(). People who want to filter more characters can override this funciton in their own configurations. Resolves issue #1899. --- unpacked/jax/input/TeX/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/input/TeX/config.js b/unpacked/jax/input/TeX/config.js index 168e8358f6..cb39586019 100644 --- a/unpacked/jax/input/TeX/config.js +++ b/unpacked/jax/input/TeX/config.js @@ -41,8 +41,8 @@ MathJax.InputJax.TeX = MathJax.InputJax({ // or "all" for all displayed equations formatNumber: function (n) {return n}, formatTag: function (n) {return '('+n+')'}, - formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/[:"'<>&]/g,"")}, - formatURL: function (id,base) {return base+'#'+escape(id)}, + formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/\s/g,"_")}, + formatURL: function (id,base) {return base+'#'+escapeURIComponent(id)}, useLabelIds: true } }, From 5787c82b063c2d7fd4890a7127e80762b7046974 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 22 Jan 2018 16:17:35 -0500 Subject: [PATCH 20/36] Remove balanceBraces from tex2jax (no longer needed, and never implemented anyway). Resolves issue #1871 --- unpacked/config/default.js | 13 ------------- unpacked/extensions/tex2jax.js | 4 ---- 2 files changed, 17 deletions(-) diff --git a/unpacked/config/default.js b/unpacked/config/default.js index 144944ca1e..c769418209 100644 --- a/unpacked/config/default.js +++ b/unpacked/config/default.js @@ -296,19 +296,6 @@ MathJax.Hub.Config({ ['$$','$$'], ['\\[','\\]'] ], - - // - // This value determines whether tex2jax requires braces to be - // balanced within math delimiters (which allows for nested dollar - // signs). Set to false to get pre-v2.0 compatibility. When true, - // - // $y = x^2 \hbox{ when $x > 2$}$. - // - // will be properly handled as a single expression. When false, it - // would be interpreted as two searpate expressions, each with - // improperly balanced braces. - // - balanceBraces: true, // // This array lists the names of the tags whose contents should not be diff --git a/unpacked/extensions/tex2jax.js b/unpacked/extensions/tex2jax.js index d0c6153708..e15abd9b82 100644 --- a/unpacked/extensions/tex2jax.js +++ b/unpacked/extensions/tex2jax.js @@ -39,10 +39,6 @@ MathJax.Extension.tex2jax = { ['\\[','\\]'] // be sure that you don't have an extra comma at the end) ], - balanceBraces: true, // determines whether tex2jax requires braces to be - // balanced within math delimiters (allows for nested - // dollar signs). Set to false to get pre-v2.0 compatibility. - skipTags: ["script","noscript","style","textarea","pre","code","annotation","annotation-xml"], // The names of the tags whose contents will not be // scanned for math delimiters From 14980f0e22c2a0d8c6acb0002a052fab61f88a1a Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 23 Jan 2018 10:52:23 -0500 Subject: [PATCH 21/36] Fix width of roots in CHTML when they contain linebreaks. Resolves issue #1882. --- unpacked/jax/output/CommonHTML/jax.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 45d1b2c60f..fbc3af4276 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -2632,13 +2632,19 @@ BBOX.clean(); return node; }, - CHTMLaddRoot: function () {return 0} + CHTMLaddRoot: function () {return 0}, + CHTMLhandleBBox: function (node) { + var bbox = this.CHTMLbboxFor(0); + delete bbox.pwidth; + this.SUPER(arguments).CHTMLhandleBBox.apply(this,arguments); + } }); /********************************************************/ MML.mroot.Augment({ toCommonHTML: MML.msqrt.prototype.toCommonHTML, + CHTMLhandleBBox: MML.msqrt.prototype.CHTMLhandleBBox, CHTMLaddRoot: function (sqrt,sbox,d) { if (!this.data[1]) return; var BBOX = this.CHTML, bbox = this.data[1].CHTML, root = sqrt.firstChild; From 937cbd4ec96b099649c7e60e91ad6b5885731051 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 23 Jan 2018 11:49:40 -0500 Subject: [PATCH 22/36] Properly handle pre-spacing for elements with linebreaks in SVG output. Resolves issue #1866. --- unpacked/jax/output/SVG/autoload/multiline.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/jax/output/SVG/autoload/multiline.js b/unpacked/jax/output/SVG/autoload/multiline.js index da069d76cf..8abbb0dcdd 100644 --- a/unpacked/jax/output/SVG/autoload/multiline.js +++ b/unpacked/jax/output/SVG/autoload/multiline.js @@ -310,6 +310,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { slice.Clean(); if (this.href) {this.SVGaddHref(slice)} this.SVGhandleColor(slice); + if (start.length == 0) this.SVGhandleSpace(slice); svg.Add(slice,svg.w,0,true); return slice; }, From 36484b53bcb4def99bb092171aed4fc10bf74adc Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 28 Jan 2018 17:16:40 -0500 Subject: [PATCH 23/36] Make maximum linebreak width a parameter, and only stop if a linebreak has been found. Resolves issue #1883. --- unpacked/jax/output/CommonHTML/autoload/multiline.js | 5 +++-- unpacked/jax/output/HTML-CSS/autoload/multiline.js | 5 +++-- unpacked/jax/output/SVG/autoload/multiline.js | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/multiline.js b/unpacked/jax/output/CommonHTML/autoload/multiline.js index a07be695c9..4b644549b3 100644 --- a/unpacked/jax/output/CommonHTML/autoload/multiline.js +++ b/unpacked/jax/output/CommonHTML/autoload/multiline.js @@ -40,6 +40,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { badbreak: [+200], auto: [0], + maxwidth: 1.33, // stop looking for breaks after this time the line-break width toobig: 800, nestfactor: 400, spacefactor: -100, @@ -150,7 +151,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { // Look through the line for breakpoints, // (as long as we are not too far past the breaking width) // - while (i < m && info.scanW < 1.33*CHTML.linebreakWidth) { + while (i < m && (info.scanW < PENALTY.maxwidth*CHTML.linebreakWidth || info.w === 0)) { if (this.data[i]) { if (this.data[i].CHTMLbetterBreak(info,state)) { better = true; index = [i].concat(info.index); W = info.W; w = info.w; @@ -400,7 +401,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { // Look through the line for breakpoints, including the open, close, and separators // (as long as we are not too far past the breaking width) // - while (i < m && info.scanW < 1.33*CHTML.linebreakWidth) { + while (i < m && (info.scanW < PENALTY.maxwidth*CHTML.linebreakWidth || info.w === 0)) { var k = this.dataI[i]; if (this.data[k]) { if (this.data[k].CHTMLbetterBreak(info,state)) { diff --git a/unpacked/jax/output/HTML-CSS/autoload/multiline.js b/unpacked/jax/output/HTML-CSS/autoload/multiline.js index 805d654cea..7c00c02781 100644 --- a/unpacked/jax/output/HTML-CSS/autoload/multiline.js +++ b/unpacked/jax/output/HTML-CSS/autoload/multiline.js @@ -39,6 +39,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { badbreak: [+200], auto: [0], + maxwidth: 1.33, // stop looking for breaks after this time the line-break width toobig: 800, nestfactor: 400, spacefactor: -100, @@ -157,7 +158,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { // Look through the line for breakpoints, // (as long as we are not too far past the breaking width) // - while (i < m && info.scanW < 1.33*HTMLCSS.linebreakWidth) { + while (i < m && (info.scanW < PENALTY.maxwidth*HTMLCSS.linebreakWidth || info.w === 0)) { if (this.data[i]) { if (this.data[i].HTMLbetterBreak(info,state)) { better = true; index = [i].concat(info.index); W = info.W; w = info.w; @@ -411,7 +412,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { // Look through the line for breakpoints, including the open, close, and separators // (as long as we are not too far past the breaking width) // - while (i < m && info.scanW < 1.33*HTMLCSS.linebreakWidth) { + while (i < m && (info.scanW < PENALTY.maxwidth*HTMLCSS.linebreakWidth || info.w === 0)) { var k = this.dataI[i]; if (this.data[k]) { if (this.data[k].HTMLbetterBreak(info,state)) { diff --git a/unpacked/jax/output/SVG/autoload/multiline.js b/unpacked/jax/output/SVG/autoload/multiline.js index da069d76cf..7a89321174 100644 --- a/unpacked/jax/output/SVG/autoload/multiline.js +++ b/unpacked/jax/output/SVG/autoload/multiline.js @@ -40,6 +40,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { badbreak: [+200], auto: [0], + maxwidth: 1.33, // stop looking for breaks after this time the line-break width toobig: 800, nestfactor: 400, spacefactor: -100, @@ -162,7 +163,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { // Look through the line for breakpoints, // (as long as we are not too far past the breaking width) // - while (i < m && info.scanW < 1.33*SVG.linebreakWidth) { + while (i < m && (info.scanW < PENALTY.maxwidth*SVG.linebreakWidth || info.w === 0)) { if (this.data[i]) { if (this.data[i].SVGbetterBreak(info,state)) { better = true; index = [i].concat(info.index); W = info.W; w = info.w; @@ -369,7 +370,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { // Look through the line for breakpoints, including the open, close, and separators // (as long as we are not too far past the breaking width) // - while (i < m && info.scanW < 1.33*SVG.linebreakWidth) { + while (i < m && (info.scanW < PENALTY.maxwidth*SVG.linebreakWidth || info.w === 0)) { var k = this.dataI[i]; if (this.data[k]) { if (this.data[k].SVGbetterBreak(info,state)) { From e5792a23e9a907b1d61e77a8fcd09c99cdc49e98 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 29 Jan 2018 15:48:15 -0500 Subject: [PATCH 24/36] Add max-width and min-widht resets to MathJax_Font_Test element. Resolves issue #517. --- unpacked/jax/output/HTML-CSS/jax.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index 700f708d7c..3d0e862c91 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -57,6 +57,7 @@ }},[["div",{ id: "MathJax_Font_Test", style: {position:"absolute", visibility:"hidden", top:0, left:0, width: "auto", + "min-width": 0, "max-width": "none", padding:0, border:0, margin:0, whiteSpace:"nowrap", textAlign:"left", textIndent:0, textTransform:"none", lineHeight:"normal", letterSpacing:"normal", wordSpacing:"normal", From 723e05e4ea56547ec8d488bedbdd9b9438d247c8 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 30 Jan 2018 17:19:34 -0500 Subject: [PATCH 25/36] Fix scaling to use actual scale not relative scale, since parent scale isn't taken into account. #1881. --- unpacked/jax/output/CommonHTML/autoload/multiline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/autoload/multiline.js b/unpacked/jax/output/CommonHTML/autoload/multiline.js index 4b644549b3..9ec84d7a7f 100644 --- a/unpacked/jax/output/CommonHTML/autoload/multiline.js +++ b/unpacked/jax/output/CommonHTML/autoload/multiline.js @@ -173,7 +173,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () { CHTMLaddWidth: function (i,info,scanW) { if (this.data[i]) { var bbox = this.data[i].CHTML; - scanW += (bbox.w + (bbox.L||0) + (bbox.R||0)) * (bbox.rscale || 1); + scanW += (bbox.w + (bbox.L||0) + (bbox.R||0)) * (bbox.scale || 1); info.W = info.scanW = scanW; info.w = 0; } return scanW; From bd86d0a9d76b5a58dc6c6783cf3de4305eba1843 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 31 Jan 2018 12:45:35 -0500 Subject: [PATCH 26/36] Fix incorrect name of encodeURIComponent, and fix default.js to correspond to changes. --- unpacked/config/default.js | 4 ++-- unpacked/jax/input/TeX/config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unpacked/config/default.js b/unpacked/config/default.js index c769418209..c5bbb56248 100644 --- a/unpacked/config/default.js +++ b/unpacked/config/default.js @@ -535,9 +535,9 @@ MathJax.Hub.Config({ // or "all" to number all displayed equations // formatNumber: function (n) {return n}, // format for equation number n // formatTag: function (n) {return '('+n+')'}, // format for \tag and \eqref -// formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/[:'"<>&]/g,"")}, +// formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/\s/g,"_")}, // // element ID to use for reference -// formatURL: function (id,base) {return base+'#'+escape(id)}, +// formatURL: function (id,base) {return base+'#'+encodeURIComponent(id)}, // // URL to use for references useLabelIds: true // make element ID's use \label name rather than equation number }, diff --git a/unpacked/jax/input/TeX/config.js b/unpacked/jax/input/TeX/config.js index cb39586019..9f342a1b00 100644 --- a/unpacked/jax/input/TeX/config.js +++ b/unpacked/jax/input/TeX/config.js @@ -42,7 +42,7 @@ MathJax.InputJax.TeX = MathJax.InputJax({ formatNumber: function (n) {return n}, formatTag: function (n) {return '('+n+')'}, formatID: function (n) {return 'mjx-eqn-'+String(n).replace(/\s/g,"_")}, - formatURL: function (id,base) {return base+'#'+escapeURIComponent(id)}, + formatURL: function (id,base) {return base+'#'+encodeURIComponent(id)}, useLabelIds: true } }, From 06223178ae08346c8ae2f31848c5d7a373934c09 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Fri, 2 Feb 2018 17:24:14 -0500 Subject: [PATCH 27/36] Recreate MathJax.Message.text if needed. Resolves issue #1920. --- unpacked/MathJax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index b3da87de93..81e0c775e5 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -1694,6 +1694,8 @@ MathJax.Message = { this.MoveFrame(); } this.div = this.addDiv(frame); this.div.style.display = "none"; + } + if (!this.text) { this.text = this.div.appendChild(document.createTextNode("")); } return true; From d67a91bb724853ac3aa310b880d9b9fafa03b954 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 4 Feb 2018 06:11:58 -0500 Subject: [PATCH 28/36] Make sure Message.text gets reset if Message.div is not found. --- unpacked/MathJax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 81e0c775e5..c64bddc7a2 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -1678,7 +1678,7 @@ MathJax.Message = { // if (this.div && this.div.parentNode == null) { this.div = document.getElementById("MathJax_Message"); - if (this.div) {this.text = this.div.firstChild} + this.text = (this.div ? this.div.firstChild : null); } if (!this.div) { var frame = document.body; From 347c7c964844d9c16ec9110ec7a7ee4fd47d35fe Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 7 Feb 2018 09:44:11 -0500 Subject: [PATCH 29/36] Update npm API key in travis.yaml --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 63c5dcb9b9..2dc532faae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,11 @@ script: - npm test branches: only: - - "/^\\d+\\.\\d+/" + - /^\d+\.\d+/ deploy: provider: npm email: manager@mathjax.org api_key: - secure: inYGps+hr2lFFtZ93ee0InerDO+ljwsHM7qBGUCwTfEZyvAbaZ8Xa/tkLc/s/IdhzEW79ZTTL/kd/r+SIoTAYqsSOCYtN+lvcK0fLxfzSaTVmr9E44UStz63Yl5wDPD8iq4ultQVLDp3Rbdo5KL9aMWKawA/pNV+QPpawXuUfkk= + secure: VDi7vBGTH3+3+EHoGRAHABgKV4CIBNHgJPxtLO14h+J8jwxLGxS/04pbNe5c5UxwAA05IqCXCuNovppQVJ3uWTpN9s1JUnbskXPPEEUF8jqut+/lAQEXTxCiYG8RH9YNgtx03aGYVW6WTjp7Li8sG5yJzMhx5+Yf5rOUXoGR++qWDRrKOxGbPCE2Bm0P/CNmPsb24ZLV6ojnt5MMPE+3ZiKlNP9vMN/W0MaugYLyEbXk/dpz5sbOVR3IJOIdhab2sCrc0aimE97jdvyRb7tYzCMPtntWUer9BEQk8nlWjIQKFyGKG85zPwlpmlXJNkfyTBQs9Wo2iL+hJpMbokKoSUygWpAcuvIs/iVc9kP0nE8pwCs7jl93qH1OnQsOw68h2vXosXbzK4lwR4RU3on1cw3BomFdjxkZdO9humjIx4Wmcb8X3ALMfixf+wLDILlZtOF/0C0xT54+58+PXgtyBNgfKAN3KF6R4gImtJP79kNGZL+GEaW0PA9AcrC82NU+LtEuuK7By5p+RIjKaNxZ4+bJW8TGapGooG854e7y2Z3i3DeadIcFTE7dRRjkomCQRxiVLOKdMb6aXhbQyP+usymo2cpveN/YbsQ3CpdD4A0ICCsdwqDZiY/FEfNAp6Y88l1Ujh+SUh6LR6X5VteCW/GYSKuN3fC0kyS+Vk/TMS0= on: tags: true From 4d1795507b7206c73b7e9a06609370992f21f704 Mon Sep 17 00:00:00 2001 From: zorkow Date: Wed, 7 Feb 2018 22:20:22 +0000 Subject: [PATCH 30/36] Adds new version of the a11y extension. --- extensions/a11y/accessibility-menu.js | 2 +- extensions/a11y/auto-collapse.js | 2 +- extensions/a11y/collapsible.js | 2 +- extensions/a11y/explorer.js | 2 +- extensions/a11y/mathjax-sre.js | 702 +++++++++++------- extensions/a11y/mathmaps/functions/algebra.js | 2 +- .../a11y/mathmaps/functions/elementary.js | 2 +- .../mathmaps/functions/functions_spanish.js | 1 + .../a11y/mathmaps/functions/hyperbolic.js | 2 +- .../a11y/mathmaps/functions/trigonometry.js | 2 +- extensions/a11y/mathmaps/mathmaps_ie.js | 2 +- .../a11y/mathmaps/symbols/greek-capital.js | 2 +- .../a11y/mathmaps/symbols/greek-mathfonts.js | 2 +- .../a11y/mathmaps/symbols/greek-scripts.js | 2 +- .../a11y/mathmaps/symbols/greek-small.js | 2 +- .../a11y/mathmaps/symbols/greek-symbols.js | 2 +- .../a11y/mathmaps/symbols/hebrew_letters.js | 2 +- .../symbols/latin-lower-double-accent.js | 2 +- .../mathmaps/symbols/latin-lower-normal.js | 2 +- .../mathmaps/symbols/latin-lower-phonetic.js | 2 +- .../symbols/latin-lower-single-accent.js | 2 +- .../a11y/mathmaps/symbols/latin-mathfonts.js | 2 +- .../a11y/mathmaps/symbols/latin-rest.js | 2 +- .../symbols/latin-upper-double-accent.js | 2 +- .../mathmaps/symbols/latin-upper-normal.js | 2 +- .../symbols/latin-upper-single-accent.js | 2 +- .../a11y/mathmaps/symbols/math_angles.js | 2 +- .../a11y/mathmaps/symbols/math_arrows.js | 2 +- .../a11y/mathmaps/symbols/math_characters.js | 2 +- .../a11y/mathmaps/symbols/math_delimiters.js | 2 +- .../a11y/mathmaps/symbols/math_digits.js | 2 +- .../a11y/mathmaps/symbols/math_geometry.js | 2 +- .../a11y/mathmaps/symbols/math_harpoons.js | 2 +- .../mathmaps/symbols/math_non_characters.js | 2 +- .../a11y/mathmaps/symbols/math_symbols.js | 2 +- .../a11y/mathmaps/symbols/math_whitespace.js | 2 +- .../a11y/mathmaps/symbols/other_stars.js | 2 +- extensions/a11y/mathmaps/symbols/spanish.js | 1 + .../mathmaps/symbols/spanish_mathfonts.js | 1 + extensions/a11y/mathmaps/units/energy.js | 2 +- extensions/a11y/mathmaps/units/length.js | 2 +- extensions/a11y/mathmaps/units/memory.js | 2 +- extensions/a11y/mathmaps/units/other.js | 2 +- extensions/a11y/mathmaps/units/speed.js | 2 +- extensions/a11y/mathmaps/units/temperature.js | 2 +- extensions/a11y/mathmaps/units/time.js | 2 +- .../a11y/mathmaps/units/units_spanish.js | 1 + extensions/a11y/mathmaps/units/volume.js | 2 +- extensions/a11y/mathmaps/units/weight.js | 2 +- extensions/a11y/semantic-enrich.js | 2 +- 50 files changed, 498 insertions(+), 298 deletions(-) create mode 100644 extensions/a11y/mathmaps/functions/functions_spanish.js create mode 100644 extensions/a11y/mathmaps/symbols/spanish.js create mode 100644 extensions/a11y/mathmaps/symbols/spanish_mathfonts.js create mode 100644 extensions/a11y/mathmaps/units/units_spanish.js diff --git a/extensions/a11y/accessibility-menu.js b/extensions/a11y/accessibility-menu.js index bba6aa99a0..f3405606fd 100644 --- a/extensions/a11y/accessibility-menu.js +++ b/extensions/a11y/accessibility-menu.js @@ -1 +1 @@ -!function(a,b){var c,d,e=a.config.menuSettings,f=Function.prototype.bind?function(a,b){return a.bind(b)}:function(a,b){return function(){a.apply(b,arguments)}},g=Object.keys||function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},h=MathJax.Ajax.config.path;h.a11y||(h.a11y=a.config.root+"/extensions/a11y");var i=b["accessibility-menu"]={version:"1.2.3",prefix:"",defaults:{},modules:[],MakeOption:function(a){return i.prefix+a},GetOption:function(a){return e[i.MakeOption(a)]},AddDefaults:function(){for(var a,b=g(i.defaults),c=0;a=b[c];c++){var d=i.MakeOption(a);void 0===e[d]&&(e[d]=i.defaults[a])}},AddMenu:function(){for(var a,b=Array(this.modules.length),e=0;a=this.modules[e];e++)b[e]=a.placeHolder;var f=d.FindId("Accessibility");if(f)b.unshift(c.RULE()),f.submenu.items.push.apply(f.submenu.items,b);else{var g=(d.FindId("Settings","Renderer")||{}).submenu;g&&(b.unshift(c.RULE()),b.unshift(g.items.pop()),b.unshift(g.items.pop())),b.unshift("Accessibility");var f=c.SUBMENU.apply(c.SUBMENU,b),h=d.IndexOfId("Locale");h?d.items.splice(h,0,f):d.items.push(c.RULE(),f)}},Register:function(a){i.defaults[a.option]=!1,i.modules.push(a)},Startup:function(){c=MathJax.Menu.ITEM,d=MathJax.Menu.menu;for(var a,b=0;a=this.modules[b];b++)a.CreateMenu();this.AddMenu()},LoadExtensions:function(){for(var b,c=[],d=0;b=this.modules[d];d++)e[b.option]&&c.push(b.module);return c.length?a.Startup.loadArray(c):null}},j=MathJax.Extension.ModuleLoader=MathJax.Object.Subclass({option:"",name:["",""],module:"",placeHolder:null,submenu:!1,extension:null,Init:function(a,b,c,d,e){this.option=a,this.name=[b.replace(/ /g,""),b],this.module=c,this.extension=d,this.submenu=e||!1},CreateMenu:function(){var a=f(this.Load,this);this.submenu?this.placeHolder=c.SUBMENU(this.name,c.CHECKBOX(["Activate","Activate"],i.MakeOption(this.option),{action:a}),c.RULE(),c.COMMAND(["OptionsWhenActive","(Options when Active)"],null,{disabled:!0})):this.placeHolder=c.CHECKBOX(this.name,i.MakeOption(this.option),{action:a})},Load:function(){a.Queue(["Require",MathJax.Ajax,this.module,["Enable",this]])},Enable:function(a){var b=MathJax.Extension[this.extension];b&&(b.Enable(!0,!0),MathJax.Menu.saveCookie())}});i.Register(j("collapsible","Collapsible Math","[a11y]/collapsible.js","collapsible")),i.Register(j("autocollapse","Auto Collapse","[a11y]/auto-collapse.js","auto-collapse")),i.Register(j("explorer","Explorer","[a11y]/explorer.js","explorer",!0)),i.AddDefaults(),a.Register.StartupHook("End Extensions",function(){a.Register.StartupHook("MathMenu Ready",function(){i.Startup(),a.Startup.signal.Post("Accessibility Menu Ready")},5)},5),MathJax.Hub.Register.StartupHook("End Cookie",function(){MathJax.Callback.Queue(["LoadExtensions",i],["loadComplete",MathJax.Ajax,"[a11y]/accessibility-menu.js"])})}(MathJax.Hub,MathJax.Extension); \ No newline at end of file +!function(a,b){var c,d,e=a.config.menuSettings,f=Function.prototype.bind?function(a,b){return a.bind(b)}:function(a,b){return function(){a.apply(b,arguments)}},g=Object.keys||function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},h=MathJax.Ajax.config.path;h.a11y||(h.a11y=a.config.root+"/extensions/a11y");var i=b["accessibility-menu"]={version:"1.4.0",prefix:"",defaults:{},modules:[],MakeOption:function(a){return i.prefix+a},GetOption:function(a){return e[i.MakeOption(a)]},AddDefaults:function(){for(var a,b=g(i.defaults),c=0;a=b[c];c++){var d=i.MakeOption(a);void 0===e[d]&&(e[d]=i.defaults[a])}},AddMenu:function(){for(var a,b=Array(this.modules.length),e=0;a=this.modules[e];e++)b[e]=a.placeHolder;var f=d.FindId("Accessibility");if(f)b.unshift(c.RULE()),f.submenu.items.push.apply(f.submenu.items,b);else{var g=(d.FindId("Settings","Renderer")||{}).submenu;g&&(b.unshift(c.RULE()),b.unshift(g.items.pop()),b.unshift(g.items.pop())),b.unshift("Accessibility");var f=c.SUBMENU.apply(c.SUBMENU,b),h=d.IndexOfId("Locale");h?d.items.splice(h,0,f):d.items.push(c.RULE(),f)}},Register:function(a){i.defaults[a.option]=!1,i.modules.push(a)},Startup:function(){c=MathJax.Menu.ITEM,d=MathJax.Menu.menu;for(var a,b=0;a=this.modules[b];b++)a.CreateMenu();this.AddMenu()},LoadExtensions:function(){for(var b,c=[],d=0;b=this.modules[d];d++)e[b.option]&&c.push(b.module);return c.length?a.Startup.loadArray(c):null}},j=MathJax.Extension.ModuleLoader=MathJax.Object.Subclass({option:"",name:["",""],module:"",placeHolder:null,submenu:!1,extension:null,Init:function(a,b,c,d,e){this.option=a,this.name=[b.replace(/ /g,""),b],this.module=c,this.extension=d,this.submenu=e||!1},CreateMenu:function(){var a=f(this.Load,this);this.submenu?this.placeHolder=c.SUBMENU(this.name,c.CHECKBOX(["Activate","Activate"],i.MakeOption(this.option),{action:a}),c.RULE(),c.COMMAND(["OptionsWhenActive","(Options when Active)"],null,{disabled:!0})):this.placeHolder=c.CHECKBOX(this.name,i.MakeOption(this.option),{action:a})},Load:function(){a.Queue(["Require",MathJax.Ajax,this.module,["Enable",this]])},Enable:function(a){var b=MathJax.Extension[this.extension];b&&(b.Enable(!0,!0),MathJax.Menu.saveCookie())}});i.Register(j("collapsible","Collapsible Math","[a11y]/collapsible.js","collapsible")),i.Register(j("autocollapse","Auto Collapse","[a11y]/auto-collapse.js","auto-collapse")),i.Register(j("explorer","Explorer","[a11y]/explorer.js","explorer",!0)),i.AddDefaults(),a.Register.StartupHook("End Extensions",function(){a.Register.StartupHook("MathMenu Ready",function(){i.Startup(),a.Startup.signal.Post("Accessibility Menu Ready")},5)},5),MathJax.Hub.Register.StartupHook("End Cookie",function(){MathJax.Callback.Queue(["LoadExtensions",i],["loadComplete",MathJax.Ajax,"[a11y]/accessibility-menu.js"])})}(MathJax.Hub,MathJax.Extension); \ No newline at end of file diff --git a/extensions/a11y/auto-collapse.js b/extensions/a11y/auto-collapse.js index f170adf7a2..5ff0951d15 100644 --- a/extensions/a11y/auto-collapse.js +++ b/extensions/a11y/auto-collapse.js @@ -1 +1 @@ -!function(a){var b=a.config.menuSettings,c={},d=MathJax.Ajax.config.path;d.a11y||(d.a11y=a.config.root+"/extensions/a11y");var e=MathJax.Extension["auto-collapse"]={version:"1.2.3",config:a.CombineConfig("auto-collapse",{disabled:!1}),dependents:[],Enable:function(d,e){b.autocollapse=!0,e&&(c.autocollapse=!0),this.config.disabled=!1,MathJax.Extension.collapsible.Enable(!1,e),d&&a.Queue(["Reprocess",a],["CollapseWideMath",this])},Disable:function(d,e){b.autocollapse=!1,e&&(c.autocollapse=!1),this.config.disabled=!0;for(var f=this.dependents.length-1;f>=0;f--){var g=this.dependents[f];g.Disable&&g.Disable(!1,e)}d&&a.Queue(["Rerender",a])},Dependent:function(a){this.dependents.push(a)},Startup:function(){var b=MathJax.Extension.collapsible;b&&b.Dependent(this),a.postInputHooks.Add(["Filter",e],150),a.Queue(function(){return e.CollapseWideMath()}),window.addEventListener?window.addEventListener("resize",e.resizeHandler,!1):window.attachEvent?window.attachEvent("onresize",e.resizeHandler):window.onresize=e.resizeHandler},Filter:function(a,b,c){a.enriched&&!this.config.disabled&&("block"===a.root.Get("display")||c.parentNode.childNodes.length<=3)&&(a.root.SRE={action:this.Actions(a.root)})},Actions:function(a){var b=[];return this.getActions(a,0,b),this.sortActions(b)},getActions:function(a,b,c){if(!a.isToken&&a.data){b++;for(var d=0,e=a.data.length;db?1:0},CollapseWideMath:function(b){if(!this.config.disabled){this.GetContainerWidths(b);var c=a.getAllJax(b),d={collapse:[],jax:c,m:c.length,i:0,changed:!1};return this.collapseState(d)}},collapseState:function(b){for(var c=b.collapse;b.ie.M)){var f=this.getActionWidths(d,b);if(f)return f;this.collapseActions(e,b),b.changed&&c.push(d.SourceElement())}b.i++}if(0!==c.length)return 1===c.length&&(c=c[0]),a.Rerender(c)},collapseActions:function(a,b){for(var c=a.width,d=c,e=1e6,f=a.action.length-1;f>=0;f--){var g=a.action[f],h=g.selection;c>a.cwidth?(g.selection=1,d=g.SREwidth,e=c):g.selection=2,c=g.SREwidth,a.DOMupdate?document.getElementById(g.id).setAttribute("selection",g.selection):g.selection!==h&&(b.changed=!0)}a.m=d,a.M=e},getActionWidths:function(a,b){if(!a.root.SRE.actionWidths){MathJax.OutputJax[a.outputJax].getMetrics(a);try{this.computeActionWidths(a)}catch(a){if(!a.restart)throw a;return MathJax.Callback.After(["collapseState",this,b],a.restart)}b.changed=!0}return null},computeActionWidths:function(a){var b,c=a.root.SRE,d=c.action,e={};for(c.width=a.sreGetRootWidth(e),b=d.length-1;b>=0;b--)d[b].selection=2;for(b=d.length-1;b>=0;b--){var f=d[b];null==f.SREwidth&&(f.selection=1,f.SREwidth=a.sreGetActionWidth(e,f))}c.actionWidths=!0},GetContainerWidths:function(b){var c,d,e,f,g,h=a.getAllJax(b),i=MathJax.HTML.Element("span",{style:{display:"block"}}),j=[];for(c=0,d=h.length;c=0;f--){var g=this.dependents[f];g.Disable&&g.Disable(!1,e)}d&&a.Queue(["Rerender",a])},Dependent:function(a){this.dependents.push(a)},Startup:function(){var b=MathJax.Extension.collapsible;b&&b.Dependent(this),a.postInputHooks.Add(["Filter",e],150),a.Queue(function(){return e.CollapseWideMath()}),window.addEventListener?window.addEventListener("resize",e.resizeHandler,!1):window.attachEvent?window.attachEvent("onresize",e.resizeHandler):window.onresize=e.resizeHandler},Filter:function(a,b,c){a.enriched&&!this.config.disabled&&("block"===a.root.Get("display")||c.parentNode.childNodes.length<=3)&&(a.root.SRE={action:this.Actions(a.root)})},Actions:function(a){var b=[];return this.getActions(a,0,b),this.sortActions(b)},getActions:function(a,b,c){if(!a.isToken&&a.data){b++;for(var d=0,e=a.data.length;db?1:0},CollapseWideMath:function(b){if(!this.config.disabled){this.GetContainerWidths(b);var c=a.getAllJax(b),d={collapse:[],jax:c,m:c.length,i:0,changed:!1};return this.collapseState(d)}},collapseState:function(b){for(var c=b.collapse;b.ie.M)){var f=this.getActionWidths(d,b);if(f)return f;this.collapseActions(e,b),b.changed&&c.push(d.SourceElement())}b.i++}if(0!==c.length)return 1===c.length&&(c=c[0]),a.Rerender(c)},collapseActions:function(a,b){for(var c=a.width,d=c,e=1e6,f=a.action.length-1;f>=0;f--){var g=a.action[f],h=g.selection;c>a.cwidth?(g.selection=1,d=g.SREwidth,e=c):g.selection=2,c=g.SREwidth,a.DOMupdate?document.getElementById(g.id).setAttribute("selection",g.selection):g.selection!==h&&(b.changed=!0)}a.m=d,a.M=e},getActionWidths:function(a,b){if(!a.root.SRE.actionWidths){MathJax.OutputJax[a.outputJax].getMetrics(a);try{this.computeActionWidths(a)}catch(a){if(!a.restart)throw a;return MathJax.Callback.After(["collapseState",this,b],a.restart)}b.changed=!0}return null},computeActionWidths:function(a){var b,c=a.root.SRE,d=c.action,e={};for(c.width=a.sreGetRootWidth(e),b=d.length-1;b>=0;b--)d[b].selection=2;for(b=d.length-1;b>=0;b--){var f=d[b];null==f.SREwidth&&(f.selection=1,f.SREwidth=a.sreGetActionWidth(e,f))}c.actionWidths=!0},GetContainerWidths:function(b){var c,d,e,f,g,h=a.getAllJax(b),i=MathJax.HTML.Element("span",{style:{display:"block"}}),j=[];for(c=0,d=h.length;c=0;f--){var g=this.dependents[f];g.Disable&&g.Disable(!1,e)}b&&a.Queue(["Reprocess",a])},Dependent:function(a){this.dependents.push(a)},Startup:function(){b=MathJax.ElementJax.mml;var c=MathJax.Extension["semantic-enrich"];c&&c.Dependent(this),a.postInputHooks.Add(["Filter",h],100)},Filter:function(a,b,c){a.enriched&&!this.config.disabled&&(a.root=a.root.Collapse(),a.root.inputID=c.id)},Marker:function(a){return b.mtext("\u25c2"+a+"\u25b8").With({mathcolor:"blue",attr:{},attrNames:[]})},MakeAction:function(a,c){var d=b.maction(a).With({id:this.getActionID(),actiontype:"toggle",complexity:a.getComplexity(),collapsible:!0,attrNames:["id","actiontype","selection",f],attr:{},selection:2});if(d.attr[f]=d.complexity,"math"===c.type){var e=b.mrow().With({complexity:c.complexity,attrNames:[],attr:{}});e.Append.apply(e,c.data);for(var g,h=c.attrNames.length-1;g=c.attrNames[h];h--)"data-semantic-"===g.substr(0,14)&&(e.attr[g]=c.attr[g],e.attrNames.push(g),delete c.attr[g],c.attrNames.splice(h,1));e.complexity=c.complexity,d.Append(e),c.data=[],c.Append(d),c.complexity=d.complexity,d=c}else d.Append(c);return d},actionID:1,getActionID:function(){return"MJX-Collapse-"+this.actionID++},Collapse:function(a){a.getComplexity();var b=(a.attr||{})["data-semantic-type"];if(b)if(this["Collapse_"+b])a=this["Collapse_"+b](a);else if(this.COLLAPSE[b]&&this.MARKER[b]){var c=a.attr["data-semantic-role"],d=this.COLLAPSE[b];if("number"!=typeof d&&(d=d[c]||d.value),a.complexity>d){var e=this.MARKER[b];"string"!=typeof e&&(e=e[c]||e.value),a=this.MakeAction(this.Marker(e),a)}}return a},UncollapseChild:function(a,b,c){if(null==c&&(c=1),this.SplitAttribute(a,"children").length===c){var d=1===a.data.length&&a.data[0].inferred?a.data[0]:a;if(d&&d.data[b]&&d.data[b].collapsible)return d.SetData(b,d.data[b].data[1]),a.complexity=d.complexity=null,a.getComplexity(),1}return 0},FindChildText:function(a,b){var c=this.FindChild(a,b);return c?(c.CoreMO()||c).data.join(""):"?"},FindChild:function(a,b){if(a){if(a.attr&&a.attr["data-semantic-id"]===b)return a;if(!a.isToken)for(var c=0,d=a.data.length;cthis.COLLAPSE.fenced&&"leftright"===a.attr["data-semantic-role"]){var b=a.data[0].data.join("")+a.data[a.data.length-1].data.join("");a=this.MakeAction(this.Marker(b),a)}return a},Collapse_appl:function(a){if(this.UncollapseChild(a,2,2)){var b=this.MARKER.appl;b=b[a.attr["data-semantic-role"]]||b.value,a=this.MakeAction(this.Marker(b),a)}return a},Collapse_sqrt:function(a){return this.UncollapseChild(a,0),a.complexity>this.COLLAPSE.sqrt&&(a=this.MakeAction(this.Marker(this.MARKER.sqrt),a)),a},Collapse_root:function(a){return this.UncollapseChild(a,0),a.complexity>this.COLLAPSE.sqrt&&(a=this.MakeAction(this.Marker(this.MARKER.sqrt),a)),a},Collapse_enclose:function(a){if(1===this.SplitAttribute(a,"children").length){var b=1===a.data.length&&a.data[0].inferred?a.data[0]:a;if(b.data[0]&&b.data[0].collapsible){var c=b.data[0];b.SetData(0,c.data[1]),c.SetData(1,a),a=c}}return a},Collapse_bigop:function(a){if(a.complexity>this.COLLAPSE.bigop||"mo"!==a.data[0].type){var b=this.SplitAttribute(a,"content").pop(),c=h.FindChildText(a,b);a=this.MakeAction(this.Marker(c),a)}return a},Collapse_integral:function(a){if(a.complexity>this.COLLAPSE.integral||"mo"!==a.data[0].type){var b=this.SplitAttribute(a,"content")[0],c=h.FindChildText(a,b);a=this.MakeAction(this.Marker(c),a)}return a},Collapse_relseq:function(a){if(a.complexity>this.COLLAPSE.relseq){var b=this.SplitAttribute(a,"content"),c=h.FindChildText(a,b[0]);b.length>1&&(c+="\u22ef"),a=this.MakeAction(this.Marker(c),a)}return a},Collapse_multirel:function(a){if(a.complexity>this.COLLAPSE.multirel){var b=this.SplitAttribute(a,"content"),c=h.FindChildText(a,b[0])+"\u22ef";a=this.MakeAction(this.Marker(c),a)}return a},Collapse_superscript:function(a){return this.UncollapseChild(a,0,2),a.complexity>this.COLLAPSE.superscript&&(a=this.MakeAction(this.Marker(this.MARKER.superscript),a)),a},Collapse_subscript:function(a){return this.UncollapseChild(a,0,2),a.complexity>this.COLLAPSE.subscript&&(a=this.MakeAction(this.Marker(this.MARKER.subscript),a)),a},Collapse_subsup:function(a){return this.UncollapseChild(a,0,3),a.complexity>this.COLLAPSE.subsup&&(a=this.MakeAction(this.Marker(this.MARKER.subsup),a)),a}};a.Register.StartupHook("End Extensions",function(){null==c.collapsible?c.collapsible=!h.config.disabled:h.config.disabled=!c.collapsible,a.Register.StartupHook("MathMenu Ready",function(){d=MathJax.Menu.cookie;var a,b=function(a){h[c.collapsible?"Enable":"Disable"](!0,!0),MathJax.Menu.saveCookie()},e=MathJax.Menu.ITEM,f=MathJax.Menu.menu,g=e.CHECKBOX(["CollapsibleMath","Collapsible Math"],"collapsible",{action:b}),i=(f.FindId("Accessibility")||{}).submenu;i?(a=i.IndexOfId("CollapsibleMath"),null!==a?i.items[a]=g:i.items.push(e.RULE(),g)):(a=f.IndexOfId("About"),f.items.splice(a,0,g,e.RULE()))},15)},15)}(MathJax.Hub),MathJax.Ajax.Require("[a11y]/semantic-enrich.js"),MathJax.Hub.Register.StartupHook("Semantic Enrich Ready",function(){var a=MathJax.ElementJax.mml,b=MathJax.Extension.collapsible,c=b.COMPLEXITY,d=b.COMPLEXATTR;b.Startup(),a.mbase.Augment({Collapse:function(){return b.Collapse(this)},getComplexity:function(){if(null==this.complexity){var a=0;if(this.isToken)a=c.TEXT*this.data.join("").length+c.TOKEN;else{for(var b=0,e=this.data.length;b1&&(a+=e*c.CHILD)}!this.attrNames||"complexity"in this||this.attrNames.push(d),this.attr&&(this.attr[d]=a),this.complexity=a}return this.complexity},reportComplexity:function(){!this.attr||!this.attrNames||d in this.attr||(this.attrNames.push(d),this.attr[d]=this.complexity)}}),a.mfrac.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity*=c.SCRIPT,this.complexity+=c.FRACTION,this.attr[d]=this.complexity),this.complexity}}),a.msqrt.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity+=c.SQRT,this.attr[d]=this.complexity),this.complexity}}),a.mroot.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity-=(1-c.SCRIPT)*this.data[1].getComplexity(),this.complexity+=c.SQRT,this.attr[d]=this.complexity),this.complexity}}),a.msubsup.Augment({getComplexity:function(){if(null==this.complexity){var a=0;this.data[this.sub]&&(a=this.data[this.sub].getComplexity()+c.CHILD),this.data[this.sup]&&(a=Math.max(this.data[this.sup].getComplexity(),a)),a*=c.SCRIPT,this.data[this.sub]&&(a+=c.CHILD),this.data[this.sup]&&(a+=c.CHILD),this.data[this.base]&&(a+=this.data[this.base].getComplexity()+c.CHILD),this.complexity=a+c.SUBSUP,this.reportComplexity()}return this.complexity}}),a.munderover.Augment({getComplexity:function(){if(null==this.complexity){var a=0;this.data[this.sub]&&(a=this.data[this.sub].getComplexity()+c.CHILD),this.data[this.sup]&&(a=Math.max(this.data[this.sup].getComplexity(),a)),a*=c.SCRIPT,this.data[this.base]&&(a=Math.max(this.data[this.base].getComplexity(),a)),this.data[this.sub]&&(a+=c.CHILD),this.data[this.sup]&&(a+=c.CHILD),this.data[this.base]&&(a+=c.CHILD),this.complexity=a+c.UNDEROVER,this.reportComplexity()}return this.complexity}}),a.mphantom.Augment({getComplexity:function(){return this.complexity=c.PHANTOM,this.reportComplexity(),this.complexity}}),a.ms.Augment({getComplexity:function(){return this.SUPER(arguments).getComplexity.call(this),this.complexity+=this.Get("lquote").length*c.TEXT,this.complexity+=this.Get("rquote").length*c.TEXT,this.attr[d]=this.complexity,this.complexity}}),a.menclose.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity+=c.ACTION,this.attr[d]=this.complexity),this.complexity}}),a.maction.Augment({getComplexity:function(){return this.complexity=(this.collapsible?this.data[0]:this.selected()).getComplexity(),this.reportComplexity(),this.complexity}}),a.semantics.Augment({getComplexity:function(){return null==this.complexity&&(this.complexity=this.data[0]?this.data[0].getComplexity():0,this.reportComplexity()),this.complexity}}),a["annotation-xml"].Augment({getComplexity:function(){return this.complexity=c.XML,this.reportComplexity(),this.complexity}}),a.annotation.Augment({getComplexity:function(){return this.complexity=c.XML,this.reportComplexity(),this.complexity}}),a.mglyph.Augment({getComplexity:function(){return this.complexity=c.GLYPH,this.reportComplexity(),this.complexity}}),MathJax.Hub.Startup.signal.Post("Collapsible Ready"),MathJax.Ajax.loadComplete("[a11y]/collapsible.js")}); \ No newline at end of file +!function(a){var b,c=a.config.menuSettings,d={},e=1e7,f="data-semantic-complexity",g=MathJax.Ajax.config.path;g.a11y||(g.a11y=a.config.root+"/extensions/a11y");var h=MathJax.Extension.collapsible={version:"1.4.0",config:a.CombineConfig("collapsible",{disabled:!1}),dependents:[],COMPLEXATTR:f,COMPLEXITY:{TEXT:.5,TOKEN:.5,CHILD:1,SCRIPT:.8,SQRT:2,SUBSUP:2,UNDEROVER:2,FRACTION:2,ACTION:2,PHANTOM:0,XML:2,GLYPH:2},COLLAPSE:{identifier:3,number:3,text:10,infixop:15,relseq:15,multirel:15,fenced:18,bigop:20,integral:20,fraction:12,sqrt:9,root:12,vector:15,matrix:15,cases:15,superscript:9,subscript:9,subsup:9,punctuated:{endpunct:e,startpunct:e,value:12}},MARKER:{identifier:"x",number:"#",text:"...",appl:{"limit function":"lim",value:"f()"},fraction:"/",sqrt:"\u221a",root:"\u221a",superscript:"\u25fd\u02d9",subscript:"\u25fd.",subsup:"\u25fd:",vector:{binomial:"(:)",determinant:"|:|",value:"\u27e8:\u27e9"},matrix:{squarematrix:"[::]",rowvector:"\u27e8\u22ef\u27e9",columnvector:"\u27e8\u22ee\u27e9",determinant:"|::|",value:"(::)"},cases:"{:",infixop:{addition:"+",subtraction:"\u2212",multiplication:"\u22c5",implicit:"\u22c5",value:"+"},punctuated:{text:"...",value:","}},Enable:function(b,e){c.collapsible=!0,e&&(d.collapsible=!0),this.config.disabled=!1,MathJax.Extension["semantic-enrich"].Enable(!1,e),b&&a.Queue(["Reprocess",a])},Disable:function(b,e){c.collapsible=!1,e&&(d.collapsible=!1),this.config.disabled=!0;for(var f=this.dependents.length-1;f>=0;f--){var g=this.dependents[f];g.Disable&&g.Disable(!1,e)}b&&a.Queue(["Reprocess",a])},Dependent:function(a){this.dependents.push(a)},Startup:function(){b=MathJax.ElementJax.mml;var c=MathJax.Extension["semantic-enrich"];c&&c.Dependent(this),a.postInputHooks.Add(["Filter",h],100)},Filter:function(a,b,c){a.enriched&&!this.config.disabled&&(a.root=a.root.Collapse(),a.root.inputID=c.id)},Marker:function(a){return b.mtext("\u25c2"+a+"\u25b8").With({mathcolor:"blue",attr:{},attrNames:[]})},MakeAction:function(a,c){var d=b.maction(a).With({id:this.getActionID(),actiontype:"toggle",complexity:a.getComplexity(),collapsible:!0,attrNames:["id","actiontype","selection",f],attr:{},selection:2});if(d.attr[f]=d.complexity,"math"===c.type){var e=b.mrow().With({complexity:c.complexity,attrNames:[],attr:{}});e.Append.apply(e,c.data);for(var g,h=c.attrNames.length-1;g=c.attrNames[h];h--)"data-semantic-"===g.substr(0,14)&&(e.attr[g]=c.attr[g],e.attrNames.push(g),delete c.attr[g],c.attrNames.splice(h,1));e.complexity=c.complexity,d.Append(e),c.data=[],c.Append(d),c.complexity=d.complexity,d=c}else d.Append(c);return d},actionID:1,getActionID:function(){return"MJX-Collapse-"+this.actionID++},Collapse:function(a){a.getComplexity();var b=(a.attr||{})["data-semantic-type"];if(b)if(this["Collapse_"+b])a=this["Collapse_"+b](a);else if(this.COLLAPSE[b]&&this.MARKER[b]){var c=a.attr["data-semantic-role"],d=this.COLLAPSE[b];if("number"!=typeof d&&(d=d[c]||d.value),a.complexity>d){var e=this.MARKER[b];"string"!=typeof e&&(e=e[c]||e.value),a=this.MakeAction(this.Marker(e),a)}}return a},UncollapseChild:function(a,b,c){if(null==c&&(c=1),this.SplitAttribute(a,"children").length===c){var d=1===a.data.length&&a.data[0].inferred?a.data[0]:a;if(d&&d.data[b]&&d.data[b].collapsible)return d.SetData(b,d.data[b].data[1]),a.complexity=d.complexity=null,a.getComplexity(),1}return 0},FindChildText:function(a,b){var c=this.FindChild(a,b);return c?(c.CoreMO()||c).data.join(""):"?"},FindChild:function(a,b){if(a){if(a.attr&&a.attr["data-semantic-id"]===b)return a;if(!a.isToken)for(var c=0,d=a.data.length;cthis.COLLAPSE.fenced&&"leftright"===a.attr["data-semantic-role"]){var b=a.data[0].data.join("")+a.data[a.data.length-1].data.join("");a=this.MakeAction(this.Marker(b),a)}return a},Collapse_appl:function(a){if(this.UncollapseChild(a,2,2)){var b=this.MARKER.appl;b=b[a.attr["data-semantic-role"]]||b.value,a=this.MakeAction(this.Marker(b),a)}return a},Collapse_sqrt:function(a){return this.UncollapseChild(a,0),a.complexity>this.COLLAPSE.sqrt&&(a=this.MakeAction(this.Marker(this.MARKER.sqrt),a)),a},Collapse_root:function(a){return this.UncollapseChild(a,0),a.complexity>this.COLLAPSE.sqrt&&(a=this.MakeAction(this.Marker(this.MARKER.sqrt),a)),a},Collapse_enclose:function(a){if(1===this.SplitAttribute(a,"children").length){var b=1===a.data.length&&a.data[0].inferred?a.data[0]:a;if(b.data[0]&&b.data[0].collapsible){var c=b.data[0];b.SetData(0,c.data[1]),c.SetData(1,a),a=c}}return a},Collapse_bigop:function(a){if(a.complexity>this.COLLAPSE.bigop||"mo"!==a.data[0].type){var b=this.SplitAttribute(a,"content").pop(),c=h.FindChildText(a,b);a=this.MakeAction(this.Marker(c),a)}return a},Collapse_integral:function(a){if(a.complexity>this.COLLAPSE.integral||"mo"!==a.data[0].type){var b=this.SplitAttribute(a,"content")[0],c=h.FindChildText(a,b);a=this.MakeAction(this.Marker(c),a)}return a},Collapse_relseq:function(a){if(a.complexity>this.COLLAPSE.relseq){var b=this.SplitAttribute(a,"content"),c=h.FindChildText(a,b[0]);b.length>1&&(c+="\u22ef"),a=this.MakeAction(this.Marker(c),a)}return a},Collapse_multirel:function(a){if(a.complexity>this.COLLAPSE.multirel){var b=this.SplitAttribute(a,"content"),c=h.FindChildText(a,b[0])+"\u22ef";a=this.MakeAction(this.Marker(c),a)}return a},Collapse_superscript:function(a){return this.UncollapseChild(a,0,2),a.complexity>this.COLLAPSE.superscript&&(a=this.MakeAction(this.Marker(this.MARKER.superscript),a)),a},Collapse_subscript:function(a){return this.UncollapseChild(a,0,2),a.complexity>this.COLLAPSE.subscript&&(a=this.MakeAction(this.Marker(this.MARKER.subscript),a)),a},Collapse_subsup:function(a){return this.UncollapseChild(a,0,3),a.complexity>this.COLLAPSE.subsup&&(a=this.MakeAction(this.Marker(this.MARKER.subsup),a)),a}};a.Register.StartupHook("End Extensions",function(){null==c.collapsible?c.collapsible=!h.config.disabled:h.config.disabled=!c.collapsible,a.Register.StartupHook("MathMenu Ready",function(){d=MathJax.Menu.cookie;var a,b=function(a){h[c.collapsible?"Enable":"Disable"](!0,!0),MathJax.Menu.saveCookie()},e=MathJax.Menu.ITEM,f=MathJax.Menu.menu,g=e.CHECKBOX(["CollapsibleMath","Collapsible Math"],"collapsible",{action:b}),i=(f.FindId("Accessibility")||{}).submenu;i?(a=i.IndexOfId("CollapsibleMath"),null!==a?i.items[a]=g:i.items.push(e.RULE(),g)):(a=f.IndexOfId("About"),f.items.splice(a,0,g,e.RULE()))},15)},15)}(MathJax.Hub),MathJax.Ajax.Require("[a11y]/semantic-enrich.js"),MathJax.Hub.Register.StartupHook("Semantic Enrich Ready",function(){var a=MathJax.ElementJax.mml,b=MathJax.Extension.collapsible,c=b.COMPLEXITY,d=b.COMPLEXATTR;b.Startup(),a.mbase.Augment({Collapse:function(){return b.Collapse(this)},getComplexity:function(){if(null==this.complexity){var a=0;if(this.isToken)a=c.TEXT*this.data.join("").length+c.TOKEN;else{for(var b=0,e=this.data.length;b1&&(a+=e*c.CHILD)}!this.attrNames||"complexity"in this||this.attrNames.push(d),this.attr&&(this.attr[d]=a),this.complexity=a}return this.complexity},reportComplexity:function(){!this.attr||!this.attrNames||d in this.attr||(this.attrNames.push(d),this.attr[d]=this.complexity)}}),a.mfrac.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity*=c.SCRIPT,this.complexity+=c.FRACTION,this.attr[d]=this.complexity),this.complexity}}),a.msqrt.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity+=c.SQRT,this.attr[d]=this.complexity),this.complexity}}),a.mroot.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity-=(1-c.SCRIPT)*this.data[1].getComplexity(),this.complexity+=c.SQRT,this.attr[d]=this.complexity),this.complexity}}),a.msubsup.Augment({getComplexity:function(){if(null==this.complexity){var a=0;this.data[this.sub]&&(a=this.data[this.sub].getComplexity()+c.CHILD),this.data[this.sup]&&(a=Math.max(this.data[this.sup].getComplexity(),a)),a*=c.SCRIPT,this.data[this.sub]&&(a+=c.CHILD),this.data[this.sup]&&(a+=c.CHILD),this.data[this.base]&&(a+=this.data[this.base].getComplexity()+c.CHILD),this.complexity=a+c.SUBSUP,this.reportComplexity()}return this.complexity}}),a.munderover.Augment({getComplexity:function(){if(null==this.complexity){var a=0;this.data[this.sub]&&(a=this.data[this.sub].getComplexity()+c.CHILD),this.data[this.sup]&&(a=Math.max(this.data[this.sup].getComplexity(),a)),a*=c.SCRIPT,this.data[this.base]&&(a=Math.max(this.data[this.base].getComplexity(),a)),this.data[this.sub]&&(a+=c.CHILD),this.data[this.sup]&&(a+=c.CHILD),this.data[this.base]&&(a+=c.CHILD),this.complexity=a+c.UNDEROVER,this.reportComplexity()}return this.complexity}}),a.mphantom.Augment({getComplexity:function(){return this.complexity=c.PHANTOM,this.reportComplexity(),this.complexity}}),a.ms.Augment({getComplexity:function(){return this.SUPER(arguments).getComplexity.call(this),this.complexity+=this.Get("lquote").length*c.TEXT,this.complexity+=this.Get("rquote").length*c.TEXT,this.attr[d]=this.complexity,this.complexity}}),a.menclose.Augment({getComplexity:function(){return null==this.complexity&&(this.SUPER(arguments).getComplexity.call(this),this.complexity+=c.ACTION,this.attr[d]=this.complexity),this.complexity}}),a.maction.Augment({getComplexity:function(){return this.complexity=(this.collapsible?this.data[0]:this.selected()).getComplexity(),this.reportComplexity(),this.complexity}}),a.semantics.Augment({getComplexity:function(){return null==this.complexity&&(this.complexity=this.data[0]?this.data[0].getComplexity():0,this.reportComplexity()),this.complexity}}),a["annotation-xml"].Augment({getComplexity:function(){return this.complexity=c.XML,this.reportComplexity(),this.complexity}}),a.annotation.Augment({getComplexity:function(){return this.complexity=c.XML,this.reportComplexity(),this.complexity}}),a.mglyph.Augment({getComplexity:function(){return this.complexity=c.GLYPH,this.reportComplexity(),this.complexity}}),MathJax.Hub.Startup.signal.Post("Collapsible Ready"),MathJax.Ajax.loadComplete("[a11y]/collapsible.js")}); \ No newline at end of file diff --git a/extensions/a11y/explorer.js b/extensions/a11y/explorer.js index c15efc0b2d..563e347b75 100644 --- a/extensions/a11y/explorer.js +++ b/extensions/a11y/explorer.js @@ -1 +1 @@ -MathJax.Hub.Register.StartupHook("Sre Ready",function(){var a,b,c=MathJax.Hub.config.menuSettings,d={};MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){a=MathJax.Extension.MathEvents.Event.False,b=MathJax.Extension.MathEvents.Event.KEY});var e=MathJax.Extension.explorer={version:"1.2.3",dependents:[],defaults:{walker:"syntactic",highlight:"none",background:"blue",foreground:"black",speech:!0,generation:"lazy",subtitle:!1,ruleset:"mathspeak-default"},eagerComplexity:80,prefix:"Assistive-",hook:null,oldrules:null,addMenuOption:function(a,b){c[e.prefix+a]=b},addDefaults:function(){for(var a,b=MathJax.Hub.CombineConfig("explorer",e.defaults),d=Object.keys(b),f=0;a=d[f];f++)void 0===c[e.prefix+a]&&e.addMenuOption(a,b[a]);e.setSpeechOption(),h.Reset()},setOption:function(a,b){c[e.prefix+a]!==b&&(e.addMenuOption(a,b),h.Reset())},getOption:function(a){return c[e.prefix+a]},speechOption:function(a){e.oldrules!==a.value&&(e.setSpeechOption(),h.Regenerate())},setSpeechOption:function(){var a=c[e.prefix+"ruleset"],b=a.split("-");sre.System.getInstance().setupEngine({domain:e.Domain(b[0]),style:b[1],rules:e.RuleSet(b[0])}),e.oldrules=a},Domain:function(a){switch(a){case"chromevox":return"default";case"mathspeak":default:return"mathspeak"}},RuleSet:function(a){switch(a){case"chromevox":return["AbstractionRules","SemanticTreeRules"];case"mathspeak":default:return["AbstractionRules","MathspeakRules"]}},hook:null,Enable:function(a,b){c.explorer=!0,b&&(d.explorer=!0),MathJax.Extension.collapsible.Enable(!1,b),MathJax.Extension.AssistiveMML&&(MathJax.Extension.AssistiveMML.config.disabled=!0,c.assistiveMML=!1,b&&(d.assistiveMML=!1)),this.DisableMenus(!1),this.hook||(this.hook=MathJax.Hub.Register.MessageHook("New Math",["Register",this.Explorer])),a&&MathJax.Hub.Queue(["Reprocess",MathJax.Hub])},Disable:function(a,b){c.explorer=!1,b&&(d.explorer=!1),this.DisableMenus(!0),this.hook&&(MathJax.Hub.UnRegister.MessageHook(this.hook),this.hook=null);for(var e=this.dependents.length-1;e>=0;e--){var f=this.dependents[e];f.Disable&&f.Disable(!1,b)}},DisableMenus:function(a){if(MathJax.Menu){var b=MathJax.Menu.menu.FindId("Accessibility","Explorer");if(b){b=b.submenu;for(var d,f=b.items,g=2;d=f[g];g++)d.disabled=a;a||!b.FindId("SpeechOutput")||c[e.prefix+"speech"]||(b.FindId("Subtitles").disabled=!0,b.FindId("Generation").disabled=!0)}}},Dependent:function(a){this.dependents.push(a)}},f=MathJax.Object.Subclass({div:null,inner:null,Init:function(){this.div=f.Create("assertive"),this.inner=MathJax.HTML.addElement(this.div,"div")},Add:function(){f.added||(document.body.appendChild(this.div),f.added=!0)},Show:function(a,b){this.div.classList.add("MJX_LiveRegion_Show");var c=a.getBoundingClientRect(),d=c.bottom+10+window.pageYOffset,e=c.left+window.pageXOffset;this.div.style.top=d+"px",this.div.style.left=e+"px";var f=b.colorString();this.inner.style.backgroundColor=f.background,this.inner.style.color=f.foreground},Hide:function(a){this.div.classList.remove("MJX_LiveRegion_Show")},Clear:function(){this.Update(""),this.inner.style.top="",this.inner.style.backgroundColor=""},Update:function(a){e.getOption("speech")&&f.Update(this.inner,a)}},{ANNOUNCE:"Navigatable Math in page. Explore with shift space and arrow keys. Expand or collapse elements hitting enter.",announced:!1,added:!1,styles:{".MJX_LiveRegion":{position:"absolute",top:"0",height:"1px",width:"1px",padding:"1px",overflow:"hidden"},".MJX_LiveRegion_Show":{top:"0",position:"absolute",width:"auto",height:"auto",padding:"0px 0px",opacity:1,"z-index":"202",left:0,right:0,margin:"0 auto","background-color":"white","box-shadow":"0px 10px 20px #888",border:"2px solid #CCCCCC"}},Create:function(a){var b=MathJax.HTML.Element("div",{className:"MJX_LiveRegion"});return b.setAttribute("aria-live",a),b},Update:MathJax.Hub.Browser.isPC?function(a,b){a.textContent="",setTimeout(function(){a.textContent=b},100)}:function(a,b){a.textContent="",a.textContent=b},Announce:function(){if(e.getOption("speech")){f.announced=!0,MathJax.Ajax.Styles(f.styles);var a=f.Create("polite");document.body.appendChild(a),f.Update(a,f.ANNOUNCE),setTimeout(function(){document.body.removeChild(a)},1e3)}}});MathJax.Extension.explorer.LiveRegion=f;var g=MathJax.Ajax.fileURL(MathJax.Ajax.config.path.a11y),h=MathJax.Extension.explorer.Explorer={liveRegion:f(),walker:null,highlighter:null,hoverer:null,flamer:null,speechDiv:null,earconFile:g+"/invalid_keypress"+(-1!==["Firefox","Chrome","Opera"].indexOf(MathJax.Hub.Browser.name)?".ogg":".mp3"),expanded:!1,focusoutEvent:MathJax.Hub.Browser.isFirefox?"blur":"focusout",focusinEvent:"focus",ignoreFocusOut:!1,jaxCache:{},messageID:null,Reset:function(){h.FlameEnriched()},Register:function(a){if(e.hook){var b=document.getElementById(a[1]);if(b&&b.id){var c=MathJax.Hub.getJaxFor(b.id);c&&c.enriched&&(h.StateChange(b.id,c),h.liveRegion.Add(),h.AddEvent(b))}}},StateChange:function(a,b){h.GetHighlighter(.2);var c=h.jaxCache[a];c&&c===b.root||(c&&h.highlighter.resetState(a+"-Frame"),h.jaxCache[a]=b.root)},AddAria:function(a){a.setAttribute("role","application"),a.setAttribute("aria-label","Math")},AddHook:function(a){h.RemoveHook(),h.hook=MathJax.Hub.Register.MessageHook("End Math",function(b){var c=b[1].id+"-Frame",d=document.getElementById(c);a&&c===h.expanded&&(h.ActivateWalker(d,a),d.focus(),h.expanded=!1)})},RemoveHook:function(){h.hook&&(MathJax.Hub.UnRegister.MessageHook(h.hook),h.hook=null)},AddMessage:function(){return MathJax.Message.Set("Generating Speech Output")},RemoveMessage:function(a){a&&MathJax.Message.Clear(a)},AddEvent:function(a){var b=a.id+"-Frame",c=a.previousSibling;if(c){var d=c.id!==b?c.firstElementChild:c;h.AddAria(d),h.AddMouseEvents(d),"MathJax_MathML"===d.className&&(d=d.firstElementChild),d&&(d.onkeydown=h.Keydown,h.Flame(d),d.addEventListener(h.focusinEvent,function(a){e.hook&&(f.announced||f.Announce())}),d.addEventListener(h.focusoutEvent,function(a){if(e.hook)return h.ignoreFocusOut&&(h.ignoreFocusOut=!1,"enter"===h.walker.moved)?void a.target.focus():void(h.walker&&h.DeactivateWalker())}),e.getOption("speech")&&h.AddSpeech(d))}},AddSpeech:function(a){var b=a.id,c=MathJax.Hub.getJaxFor(b),d=c.root.toMathML();if(a.getAttribute("haslabel")||h.AddMathLabel(d,b),!a.getAttribute("hasspeech"))switch(e.getOption("generation")){case"eager":h.AddSpeechEager(d,b);break;case"mixed":a.querySelectorAll("[data-semantic-complexity]").length>=e.eagerComplexity&&h.AddSpeechEager(d,b)}},AddSpeechLazy:function(a){var b=new sre.TreeSpeechGenerator;b.setRebuilt(h.walker.rebuilt),b.getSpeech(h.walker.rootNode,h.walker.xml),a.setAttribute("hasspeech","true")},AddSpeechEager:function(a,b){h.MakeSpeechTask(a,b,sre.TreeSpeechGenerator,function(a,b){a.setAttribute("hasspeech","true")},5)},AddMathLabel:function(a,b){h.MakeSpeechTask(a,b,sre.SummarySpeechGenerator,function(a,b){a.setAttribute("haslabel","true"),a.setAttribute("aria-label",b)},5)},MakeSpeechTask:function(a,b,c,d,e){var f=h.AddMessage();setTimeout(function(){var e=new c,g=document.getElementById(b),i=new sre.DummyWalker(g,e,h.highlighter,a),j=i.speech();j&&d(g,j),h.RemoveMessage(f)},e)},Keydown:function(c){if(c.keyCode===b.ESCAPE){if(!h.walker)return;return h.RemoveHook(),h.DeactivateWalker(),void a(c)}if(h.walker&&h.walker.isActive()){var d=h.walker.move(c.keyCode);if(null===d)return;if(d){if("expand"===h.walker.moved){if(h.expanded=h.walker.node.id,MathJax.Hub.Browser.isEdge)return h.ignoreFocusOut=!0,void h.DeactivateWalker();if(MathJax.Hub.Browser.isFirefox||MathJax.Hub.Browser.isMSIE)return void h.DeactivateWalker()}h.liveRegion.Update(h.walker.speech()),h.Highlight()}else h.PlayEarcon();return void a(c)}var f=c.target;if(c.keyCode===b.SPACE){if(c.shiftKey&&e.hook){var g=MathJax.Hub.getJaxFor(f);h.ActivateWalker(f,g),h.AddHook(g)}else MathJax.Extension.MathEvents.Event.ContextMenu(c,f);return void a(c)}},GetHighlighter:function(a){h.highlighter=sre.HighlighterFactory.highlighter({color:e.getOption("background"),alpha:a},{color:e.getOption("foreground"),alpha:1},{renderer:MathJax.Hub.outputJax["jax/mml"][0].id,browser:MathJax.Hub.Browser.name})},AddMouseEvents:function(a){sre.HighlighterFactory.addEvents(a,{mouseover:h.MouseOver,mouseout:h.MouseOut},{renderer:MathJax.Hub.outputJax["jax/mml"][0].id,browser:MathJax.Hub.Browser.name})},MouseOver:function(b){if("none"!==e.getOption("highlight")){if("hover"===e.getOption("highlight")){var c=b.currentTarget;h.GetHighlighter(.1),h.highlighter.highlight([c]),h.hoverer=!0}a(b)}},MouseOut:function(b){return h.hoverer&&(h.highlighter.unhighlight(),h.hoverer=!1),a(b)},Flame:function(a){if("flame"===e.getOption("highlight"))return h.GetHighlighter(.05),h.highlighter.highlightAll(a),void(h.flamer=!0)},UnFlame:function(){h.flamer&&(h.highlighter.unhighlightAll(),h.flamer=null)},FlameEnriched:function(){h.UnFlame();for(var a,b=0,c=MathJax.Hub.getAllJax();a=c[b];b++)h.Flame(a.SourceElement().previousSibling)},Walkers:{syntactic:sre.SyntaxWalker,semantic:sre.SemanticWalker,none:sre.DummyWalker},ActivateWalker:function(a,b){var c=e.getOption("speech"),d=h.Walkers[e.getOption("walker")]||h.Walkers.none,f=c?new sre.DirectSpeechGenerator:new sre.DummySpeechGenerator;h.GetHighlighter(.2),h.walker=new d(a,f,h.highlighter,b.root.toMathML()),c&&!a.getAttribute("hasspeech")&&h.AddSpeechLazy(a),h.walker.activate(),c&&(e.getOption("subtitle")&&h.liveRegion.Show(a,h.highlighter),h.liveRegion.Update(h.walker.speech())),h.Highlight(),h.ignoreFocusOut&&setTimeout(function(){h.ignoreFocusOut=!1},500)},DeactivateWalker:function(){h.liveRegion.Clear(),h.liveRegion.Hide(),h.Unhighlight(),h.currentHighlight=null,h.walker.deactivate(),h.walker=null},Highlight:function(){h.Unhighlight(),h.highlighter.highlight(h.walker.getFocus().getNodes())},Unhighlight:function(){h.highlighter.unhighlight()},PlayEarcon:function(){new Audio(h.earconFile).play()},SpeechOutput:function(){h.Reset(),["Subtitles","Generation"].forEach(function(a){var b=MathJax.Menu.menu.FindId("Accessibility","Explorer",a);b&&(b.disabled=!b.disabled)}),h.Regenerate()},Regenerate:function(){for(var a,b=0,c=MathJax.Hub.getAllJax();a=c[b];b++){var d=document.getElementById(a.inputID+"-Frame");d&&(d.removeAttribute("hasSpeech"),h.AddSpeech(d))}},Startup:function(){var a=MathJax.Extension.collapsible;a&&a.Dependent(e),e.addDefaults()}};MathJax.Hub.Register.StartupHook("End Extensions",function(){e[!1===c.explorer?"Disable":"Enable"](),MathJax.Hub.Startup.signal.Post("Explorer Ready"),MathJax.Hub.Register.StartupHook("MathMenu Ready",function(){d=MathJax.Menu.cookie;var a,b=function(a){e[c.explorer?"Enable":"Disable"](!0,!0),MathJax.Menu.saveCookie()},f=MathJax.Menu.ITEM,g=MathJax.Menu.menu,i={action:h.Reset},j={action:e.speechOption},k=f.SUBMENU(["Explorer","Explorer"],f.CHECKBOX(["Active","Active"],"explorer",{action:b}),f.RULE(),f.SUBMENU(["Walker","Walker"],f.RADIO(["nowalker","No walker"],"Assistive-walker",{value:"none"}),f.RADIO(["syntactic","Syntax walker"],"Assistive-walker"),f.RADIO(["semantic","Semantic walker"],"Assistive-walker")),f.SUBMENU(["Highlight","Highlight"],f.RADIO(["none","None"],"Assistive-highlight",i),f.RADIO(["hover","Hover"],"Assistive-highlight",i),f.RADIO(["flame","Flame"],"Assistive-highlight",i)),f.SUBMENU(["Background","Background"],f.RADIO(["blue","Blue"],"Assistive-background",i),f.RADIO(["red","Red"],"Assistive-background",i),f.RADIO(["green","Green"],"Assistive-background",i),f.RADIO(["yellow","Yellow"],"Assistive-background",i),f.RADIO(["cyan","Cyan"],"Assistive-background",i),f.RADIO(["magenta","Magenta"],"Assistive-background",i),f.RADIO(["white","White"],"Assistive-background",i),f.RADIO(["black","Black"],"Assistive-background",i)),f.SUBMENU(["Foreground","Foreground"],f.RADIO(["black","Black"],"Assistive-foreground",i),f.RADIO(["white","White"],"Assistive-foreground",i),f.RADIO(["magenta","Magenta"],"Assistive-foreground",i),f.RADIO(["cyan","Cyan"],"Assistive-foreground",i),f.RADIO(["yellow","Yellow"],"Assistive-foreground",i),f.RADIO(["green","Green"],"Assistive-foreground",i),f.RADIO(["red","Red"],"Assistive-foreground",i),f.RADIO(["blue","Blue"],"Assistive-foreground",i)),f.RULE(),f.CHECKBOX(["SpeechOutput","Speech Output"],"Assistive-speech",{action:h.SpeechOutput}),f.CHECKBOX(["Subtitles","Subtitles"],"Assistive-subtitle",{disabled:!c["Assistive-speech"]}),f.SUBMENU(["Generation","Generation"],{disabled:!c["Assistive-speech"]},f.RADIO(["eager","Eager"],"Assistive-generation",{action:h.Regenerate}),f.RADIO(["mixed","Mixed"],"Assistive-generation",{action:h.Regenerate}),f.RADIO(["lazy","Lazy"],"Assistive-generation",{action:h.Regenerate})),f.RULE(),f.SUBMENU(["Mathspeak","Mathspeak Rules"],f.RADIO(["mathspeak-default","Verbose"],"Assistive-ruleset",j),f.RADIO(["mathspeak-brief","Brief"],"Assistive-ruleset",j),f.RADIO(["mathspeak-sbrief","Superbrief"],"Assistive-ruleset",j)),f.SUBMENU(["Chromevox","ChromeVox Rules"],f.RADIO(["chromevox-default","Verbose"],"Assistive-ruleset",j),f.RADIO(["chromevox-short","Short"],"Assistive-ruleset",j),f.RADIO(["chromevox-alternative","Alternative"],"Assistive-ruleset",j))),l=(g.FindId("Accessibility")||{}).submenu;l?(a=l.IndexOfId("Explorer"),null!==a?l.items[a]=k:(a=l.IndexOfId("CollapsibleMath"),l.items.splice(a+1,0,k))):(a=g.IndexOfId("CollapsibleMath"),g.items.splice(a+1,0,k)),c.explorer||e.DisableMenus(!0)},20)},20)}),MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){MathJax.Hub.Config({SVG:{addMMLclasses:!0}});var a=MathJax.OutputJax.SVG;if(parseFloat(a.version)<2.7){var b=a.getJaxFromMath;a.Augment({getJaxFromMath:function(a){return a.parentNode.className.match(/MathJax_SVG_Display/)&&(a=a.parentNode),b.call(this,a)}})}}),MathJax.Ajax.config.path.a11y||(MathJax.Ajax.config.path.a11y=MathJax.Hub.config.root+"/extensions/a11y"),MathJax.Ajax.Require("[a11y]/collapsible.js"),MathJax.Hub.Register.StartupHook("Collapsible Ready",function(){MathJax.Extension.explorer.Explorer.Startup(),MathJax.Ajax.loadComplete("[a11y]/explorer.js")}); \ No newline at end of file +MathJax.Hub.Register.StartupHook("Sre Ready",function(){var a,b,c=MathJax.Hub.config.menuSettings,d={};MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){a=MathJax.Extension.MathEvents.Event.False,b=MathJax.Extension.MathEvents.Event.KEY});var e=MathJax.Extension.explorer={version:"1.4.0",dependents:[],defaults:{walker:"table",highlight:"none",background:"blue",foreground:"black",speech:!0,generation:"lazy",subtitle:!1,ruleset:"mathspeak-default"},eagerComplexity:80,prefix:"Assistive-",hook:null,locHook:null,oldrules:null,addMenuOption:function(a,b){c[e.prefix+a]=b},addDefaults:function(){for(var a,b=MathJax.Hub.CombineConfig("explorer",e.defaults),d=Object.keys(b),f=0;a=d[f];f++)void 0===c[e.prefix+a]&&e.addMenuOption(a,b[a]);e.setSpeechOption(),h.Reset()},setOption:function(a,b){c[e.prefix+a]!==b&&(e.addMenuOption(a,b),h.Reset())},getOption:function(a){return c[e.prefix+a]},speechOption:function(a){e.oldrules!==a.value&&(e.setSpeechOption(),h.Regenerate())},setSpeechOption:function(){var a=c[e.prefix+"ruleset"],b=a.split("-");sre.System.getInstance().setupEngine({locale:MathJax.Localization.locale,domain:e.Domain(b[0]),style:b[1],rules:e.RuleSet(b[0])}),e.oldrules=a},Domain:function(a){switch(a){case"chromevox":return"default";case"mathspeak":default:return"mathspeak"}},RuleSet:function(a){switch(a){case"chromevox":return["AbstractionRules","SemanticTreeRules"];case"mathspeak":default:return["AbstractionRules","AbstractionSpanish","MathspeakRules","MathspeakSpanish"]}},hook:null,locHook:null,Enable:function(a,b){c.explorer=!0,b&&(d.explorer=!0),MathJax.Extension.collapsible.Enable(!1,b),MathJax.Extension.AssistiveMML&&(MathJax.Extension.AssistiveMML.config.disabled=!0,c.assistiveMML=!1,b&&(d.assistiveMML=!1)),this.DisableMenus(!1),this.hook||(this.hook=MathJax.Hub.Register.MessageHook("New Math",["Register",this.Explorer])),this.locHook||(this.locHook=MathJax.Hub.Register.MessageHook("Locale Reset",["RemoveSpeech",this.Explorer])),a&&MathJax.Hub.Queue(["Reprocess",MathJax.Hub])},Disable:function(a,b){c.explorer=!1,b&&(d.explorer=!1),this.DisableMenus(!0),this.hook&&(MathJax.Hub.UnRegister.MessageHook(this.hook),this.hook=null);for(var e=this.dependents.length-1;e>=0;e--){var f=this.dependents[e];f.Disable&&f.Disable(!1,b)}},DisableMenus:function(a){if(MathJax.Menu){var b=MathJax.Menu.menu.FindId("Accessibility","Explorer");if(b){b=b.submenu;for(var d,f=b.items,g=2;d=f[g];g++)d.disabled=a;a||!b.FindId("SpeechOutput")||c[e.prefix+"speech"]||(b.FindId("Subtitles").disabled=!0)}}},Dependent:function(a){this.dependents.push(a)}},f=MathJax.Object.Subclass({div:null,inner:null,Init:function(){this.div=f.Create("assertive"),this.inner=MathJax.HTML.addElement(this.div,"div")},Add:function(){f.added||(document.body.appendChild(this.div),f.added=!0)},Show:function(a,b){this.div.classList.add("MJX_LiveRegion_Show");var c=a.getBoundingClientRect(),d=c.bottom+10+window.pageYOffset,e=c.left+window.pageXOffset;this.div.style.top=d+"px",this.div.style.left=e+"px";var f=b.colorString();this.inner.style.backgroundColor=f.background,this.inner.style.color=f.foreground},Hide:function(a){this.div.classList.remove("MJX_LiveRegion_Show")},Clear:function(){this.Update(""),this.inner.style.top="",this.inner.style.backgroundColor=""},Update:function(a){e.getOption("speech")&&f.Update(this.inner,a)}},{ANNOUNCE:"Navigatable Math in page. Explore with shift space and arrow keys. Expand or collapse elements hitting enter.",announced:!1,added:!1,styles:{".MJX_LiveRegion":{position:"absolute",top:"0",height:"1px",width:"1px",padding:"1px",overflow:"hidden"},".MJX_LiveRegion_Show":{top:"0",position:"absolute",width:"auto",height:"auto",padding:"0px 0px",opacity:1,"z-index":"202",left:0,right:0,margin:"0 auto","background-color":"white","box-shadow":"0px 10px 20px #888",border:"2px solid #CCCCCC"}},Create:function(a){var b=MathJax.HTML.Element("div",{className:"MJX_LiveRegion"});return b.setAttribute("aria-live",a),b},Update:MathJax.Hub.Browser.isPC?function(a,b){a.textContent="",setTimeout(function(){a.textContent=b},100)}:function(a,b){a.textContent="",a.textContent=b},Announce:function(){if(e.getOption("speech")){f.announced=!0,MathJax.Ajax.Styles(f.styles);var a=f.Create("polite");document.body.appendChild(a),f.Update(a,f.ANNOUNCE),setTimeout(function(){document.body.removeChild(a)},1e3)}}});MathJax.Extension.explorer.LiveRegion=f;var g=MathJax.Ajax.fileURL(MathJax.Ajax.config.path.a11y),h=MathJax.Extension.explorer.Explorer={liveRegion:f(),walker:null,highlighter:null,hoverer:null,flamer:null,speechDiv:null,earconFile:g+"/invalid_keypress"+(-1!==["Firefox","Chrome","Opera"].indexOf(MathJax.Hub.Browser.name)?".ogg":".mp3"),expanded:!1,focusoutEvent:MathJax.Hub.Browser.isFirefox?"blur":"focusout",focusinEvent:"focus",ignoreFocusOut:!1,jaxCache:{},messageID:null,Reset:function(){h.FlameEnriched()},Register:function(a){if(e.hook){var b=document.getElementById(a[1]);if(b&&b.id){var c=MathJax.Hub.getJaxFor(b.id);c&&c.enriched&&(h.StateChange(b.id,c),h.liveRegion.Add(),h.AddEvent(b))}}},StateChange:function(a,b){h.GetHighlighter(.2);var c=h.jaxCache[a];c&&c===b.root||(c&&h.highlighter.resetState(a+"-Frame"),h.jaxCache[a]=b.root)},AddAria:function(a){a.setAttribute("role","application"),a.setAttribute("aria-label","Math")},AddHook:function(a){h.RemoveHook(),h.hook=MathJax.Hub.Register.MessageHook("End Math",function(b){var c=b[1].id+"-Frame",d=document.getElementById(c);a&&c===h.expanded&&(h.ActivateWalker(d,a),d.focus(),h.expanded=!1)})},RemoveHook:function(){h.hook&&(MathJax.Hub.UnRegister.MessageHook(h.hook),h.hook=null)},AddMessage:function(){return MathJax.Message.Set("Generating Speech Output")},RemoveMessage:function(a){a&&MathJax.Message.Clear(a)},AddEvent:function(a){var b=a.id+"-Frame",c=a.previousSibling;if(c){var d=c.id!==b?c.firstElementChild:c;h.AddAria(d),h.AddMouseEvents(d),"MathJax_MathML"===d.className&&(d=d.firstElementChild),d&&(d.onkeydown=h.Keydown,h.Flame(d),d.addEventListener(h.focusinEvent,function(a){e.hook&&(f.announced||f.Announce())}),d.addEventListener(h.focusoutEvent,function(a){if(e.hook)return h.ignoreFocusOut&&(h.ignoreFocusOut=!1,"enter"===h.walker.moved)?void a.target.focus():void(h.walker&&h.DeactivateWalker())}),e.getOption("speech")&&h.AddSpeech(d))}},AddSpeech:function(a){var b=a.id,c=MathJax.Hub.getJaxFor(b),d=c.root.toMathML();if(a.getAttribute("haslabel")||h.AddMathLabel(d,b),!a.getAttribute("hasspeech"))switch(MathJax.Hub.config.explorer.generation){case"eager":h.AddSpeechEager(d,b);break;case"mixed":a.querySelectorAll("[data-semantic-complexity]").length>=e.eagerComplexity&&h.AddSpeechEager(d,b)}},AddSpeechLazy:function(a){var b=new sre.TreeSpeechGenerator;b.setRebuilt(h.walker.rebuilt),b.getSpeech(h.walker.rootNode,h.walker.xml),a.setAttribute("hasspeech","true")},AddSpeechEager:function(a,b){h.MakeSpeechTask(a,b,sre.TreeSpeechGenerator,function(a,b){a.setAttribute("hasspeech","true")},5)},AddMathLabel:function(a,b){h.MakeSpeechTask(a,b,sre.SummarySpeechGenerator,function(a,b){a.setAttribute("haslabel","true"),a.setAttribute("aria-label",b)},5)},MakeSpeechTask:function(a,b,c,d,e){var f=h.AddMessage();setTimeout(function(){var e=new c,g=document.getElementById(b),i=new sre.DummyWalker(g,e,h.highlighter,a),j=i.speech();j&&d(g,j),h.RemoveMessage(f)},e)},Keydown:function(c){if(c.keyCode===b.ESCAPE){if(!h.walker)return;return h.RemoveHook(),h.DeactivateWalker(),void a(c)}if(h.walker&&h.walker.isActive()){void 0!==h.walker.modifier&&(h.walker.modifier=c.shiftKey);var d=h.walker.move(c.keyCode);if(null===d)return;if(d){if("expand"===h.walker.moved){if(h.expanded=h.walker.node.id,MathJax.Hub.Browser.isEdge)return h.ignoreFocusOut=!0,void h.DeactivateWalker();if(MathJax.Hub.Browser.isFirefox||MathJax.Hub.Browser.isMSIE)return void h.DeactivateWalker()}h.liveRegion.Update(h.walker.speech()),h.Highlight()}else h.PlayEarcon();return void a(c)}var f=c.target;if(c.keyCode===b.SPACE){if(c.shiftKey&&e.hook){var g=MathJax.Hub.getJaxFor(f);h.ActivateWalker(f,g),h.AddHook(g)}else MathJax.Extension.MathEvents.Event.ContextMenu(c,f);return void a(c)}},GetHighlighter:function(a){h.highlighter=sre.HighlighterFactory.highlighter({color:e.getOption("background"),alpha:a},{color:e.getOption("foreground"),alpha:1},{renderer:MathJax.Hub.outputJax["jax/mml"][0].id,browser:MathJax.Hub.Browser.name})},AddMouseEvents:function(a){sre.HighlighterFactory.addEvents(a,{mouseover:h.MouseOver,mouseout:h.MouseOut},{renderer:MathJax.Hub.outputJax["jax/mml"][0].id,browser:MathJax.Hub.Browser.name})},MouseOver:function(b){if("none"!==e.getOption("highlight")){if("hover"===e.getOption("highlight")){var c=b.currentTarget;h.GetHighlighter(.1),h.highlighter.highlight([c]),h.hoverer=!0}a(b)}},MouseOut:function(b){return h.hoverer&&(h.highlighter.unhighlight(),h.hoverer=!1),a(b)},Flame:function(a){if("flame"===e.getOption("highlight"))return h.GetHighlighter(.05),h.highlighter.highlightAll(a),void(h.flamer=!0)},UnFlame:function(){h.flamer&&(h.highlighter.unhighlightAll(),h.flamer=null)},FlameEnriched:function(){h.UnFlame();for(var a,b=0,c=MathJax.Hub.getAllJax();a=c[b];b++)h.Flame(a.SourceElement().previousSibling)},Walkers:{syntactic:sre.SyntaxWalker,table:sre.TableWalker,semantic:sre.SemanticWalker,none:sre.DummyWalker},ActivateWalker:function(a,b){var c=e.getOption("speech"),d=e.getOption("walker")?h.Walkers[MathJax.Hub.config.explorer.walker]:h.Walkers.none,f=c?new sre.DirectSpeechGenerator:new sre.DummySpeechGenerator;h.GetHighlighter(.2),h.walker=new d(a,f,h.highlighter,b.root.toMathML()),c&&!a.getAttribute("hasspeech")&&h.AddSpeechLazy(a),h.walker.activate(),c&&(e.getOption("subtitle")&&h.liveRegion.Show(a,h.highlighter),h.liveRegion.Update(h.walker.speech())),h.Highlight(),h.ignoreFocusOut&&setTimeout(function(){h.ignoreFocusOut=!1},500)},DeactivateWalker:function(){h.liveRegion.Clear(),h.liveRegion.Hide(),h.Unhighlight(),h.currentHighlight=null,h.walker.deactivate(),h.walker=null},Highlight:function(){h.Unhighlight(),h.highlighter.highlight(h.walker.getFocus().getNodes())},Unhighlight:function(){h.highlighter.unhighlight()},PlayEarcon:function(){new Audio(h.earconFile).play()},SpeechOutput:function(){h.Reset(),["Subtitles"].forEach(function(a){var b=MathJax.Menu.menu.FindId("Accessibility","Explorer",a);b&&(b.disabled=!b.disabled)}),h.Regenerate()},RemoveSpeech:function(){e.setSpeechOption();for(var a,b=0,c=MathJax.Hub.getAllJax();a=c[b];b++){var d=document.getElementById(a.inputID+"-Frame");d&&(d.removeAttribute("hasspeech"),d.removeAttribute("haslabel"))}},Regenerate:function(){for(var a,b=0,c=MathJax.Hub.getAllJax();a=c[b];b++){var d=document.getElementById(a.inputID+"-Frame");d&&(d.removeAttribute("hasspeech"),h.AddSpeech(d))}},Startup:function(){var a=MathJax.Extension.collapsible;a&&a.Dependent(e),e.addDefaults()}};MathJax.Hub.Register.StartupHook("End Extensions",function(){e[!1===c.explorer?"Disable":"Enable"](),MathJax.Hub.Startup.signal.Post("Explorer Ready"),MathJax.Hub.Register.StartupHook("MathMenu Ready",function(){d=MathJax.Menu.cookie;var a,b=function(a){e[c.explorer?"Enable":"Disable"](!0,!0),MathJax.Menu.saveCookie()},f=MathJax.Menu.ITEM,g=MathJax.Menu.menu,i={action:h.Reset},j={action:e.speechOption},k=f.SUBMENU(["Explorer","Explorer"],f.CHECKBOX(["Active","Active"],"explorer",{action:b}),f.RULE(),f.CHECKBOX(["Walker","Walker"],"Assistive-walker"),f.SUBMENU(["Highlight","Highlight"],f.RADIO(["none","None"],"Assistive-highlight",i),f.RADIO(["hover","Hover"],"Assistive-highlight",i),f.RADIO(["flame","Flame"],"Assistive-highlight",i)),f.SUBMENU(["Background","Background"],f.RADIO(["blue","Blue"],"Assistive-background",i),f.RADIO(["red","Red"],"Assistive-background",i),f.RADIO(["green","Green"],"Assistive-background",i),f.RADIO(["yellow","Yellow"],"Assistive-background",i),f.RADIO(["cyan","Cyan"],"Assistive-background",i),f.RADIO(["magenta","Magenta"],"Assistive-background",i),f.RADIO(["white","White"],"Assistive-background",i),f.RADIO(["black","Black"],"Assistive-background",i)),f.SUBMENU(["Foreground","Foreground"],f.RADIO(["black","Black"],"Assistive-foreground",i),f.RADIO(["white","White"],"Assistive-foreground",i),f.RADIO(["magenta","Magenta"],"Assistive-foreground",i),f.RADIO(["cyan","Cyan"],"Assistive-foreground",i),f.RADIO(["yellow","Yellow"],"Assistive-foreground",i),f.RADIO(["green","Green"],"Assistive-foreground",i),f.RADIO(["red","Red"],"Assistive-foreground",i),f.RADIO(["blue","Blue"],"Assistive-foreground",i)),f.RULE(),f.CHECKBOX(["SpeechOutput","Speech Output"],"Assistive-speech",{action:h.SpeechOutput}),f.CHECKBOX(["Subtitles","Subtitles"],"Assistive-subtitle",{disabled:!c["Assistive-speech"]}),f.RULE(),f.SUBMENU(["Mathspeak","Mathspeak Rules"],f.RADIO(["mathspeak-default","Verbose"],"Assistive-ruleset",j),f.RADIO(["mathspeak-brief","Brief"],"Assistive-ruleset",j),f.RADIO(["mathspeak-sbrief","Superbrief"],"Assistive-ruleset",j)),f.SUBMENU(["Chromevox","ChromeVox Rules"],f.RADIO(["chromevox-default","Verbose"],"Assistive-ruleset",j),f.RADIO(["chromevox-short","Short"],"Assistive-ruleset",j),f.RADIO(["chromevox-alternative","Alternative"],"Assistive-ruleset",j))),l=(g.FindId("Accessibility")||{}).submenu;l?(a=l.IndexOfId("Explorer"),null!==a?l.items[a]=k:(a=l.IndexOfId("CollapsibleMath"),l.items.splice(a+1,0,k))):(a=g.IndexOfId("CollapsibleMath"),g.items.splice(a+1,0,k)),c.explorer||e.DisableMenus(!0)},20)},20)}),MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){MathJax.Hub.Config({SVG:{addMMLclasses:!0}});var a=MathJax.OutputJax.SVG;if(parseFloat(a.version)<2.7){var b=a.getJaxFromMath;a.Augment({getJaxFromMath:function(a){return a.parentNode.className.match(/MathJax_SVG_Display/)&&(a=a.parentNode),b.call(this,a)}})}}),MathJax.Ajax.config.path.a11y||(MathJax.Ajax.config.path.a11y=MathJax.Hub.config.root+"/extensions/a11y"),MathJax.Ajax.Require("[a11y]/collapsible.js"),MathJax.Hub.Register.StartupHook("Collapsible Ready",function(){MathJax.Extension.explorer.Explorer.Startup(),MathJax.Ajax.loadComplete("[a11y]/explorer.js")}); \ No newline at end of file diff --git a/extensions/a11y/mathjax-sre.js b/extensions/a11y/mathjax-sre.js index 76642c3cb5..2f86814ce9 100644 --- a/extensions/a11y/mathjax-sre.js +++ b/extensions/a11y/mathjax-sre.js @@ -1,38 +1,25 @@ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; -$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++}; +$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+a++}}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b\x3c/script>')},goog.appendScriptSrcNode_=function(a){var b=goog.global.document,c=b.createElement("script"); -c.type="text/javascript";c.src=a;c.defer=!1;c.async=!1;b.head.appendChild(c)},goog.writeScriptTag_=function(a,b){if(goog.inHtmlDocument_()){var c=goog.global.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}void 0===b?goog.IS_OLD_IE_?(goog.oldIeWaiting_=!0,b=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ",c.write('