Skip to content

Commit

Permalink
添加mathjax本地化
Browse files Browse the repository at this point in the history
  • Loading branch information
ksky521 committed Sep 16, 2015
1 parent d0fe29a commit 6ce1fc1
Show file tree
Hide file tree
Showing 1,144 changed files with 23,407 additions and 6 deletions.
19 changes: 19 additions & 0 deletions assets/js/mathjax/MathJax.js

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions assets/js/mathjax/config/AM_HTMLorMML-full.js

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions assets/js/mathjax/config/AM_HTMLorMML.js

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions assets/js/mathjax/config/Accessible-full.js

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions assets/js/mathjax/config/Accessible.js

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions assets/js/mathjax/config/MML_HTMLorMML-full.js

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions assets/js/mathjax/config/MML_HTMLorMML.js

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions assets/js/mathjax/config/MMLorHTML.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* /MathJax/config/MMLorHTML.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

(function(c,g){var f="2.5.0";var a=MathJax.Hub.CombineConfig("MMLorHTML",{prefer:{MSIE:"MML",Firefox:"HTML",Opera:"HTML",Chrome:"HTML",Safari:"HTML",other:"HTML"}});var e={Firefox:3,Opera:9.52,MSIE:6,Chrome:0.3,Safari:2,Konqueror:4};var b=(g.version==="0.0"||g.versionAtLeast(e[g]||0));var d=(g.isFirefox&&g.versionAtLeast("1.5"))||(g.isMSIE&&g.hasMathPlayer)||(g.isSafari&&g.versionAtLeast("5.0"))||(g.isOpera&&g.versionAtLeast("9.52"));c.Register.StartupHook("End Config",function(){var h=(a.prefer&&typeof(a.prefer)==="object"?a.prefer[MathJax.Hub.Browser]||a.prefer.other||"HTML":a.prefer);if(b||d){if(d&&(h==="MML"||!b)){if(MathJax.OutputJax.NativeMML){MathJax.OutputJax.NativeMML.Register("jax/mml")}else{c.config.jax.unshift("output/NativeMML")}c.Startup.signal.Post("NativeMML output selected")}else{if(MathJax.OutputJax["HTML-CSS"]){MathJax.OutputJax["HTML-CSS"].Register("jax/mml")}else{c.config.jax.unshift("output/HTML-CSS")}c.Startup.signal.Post("HTML-CSS output selected")}}else{c.PreProcess.disabled=true;c.prepareScripts.disabled=true;MathJax.Message.Set(["MathJaxNotSupported","Your browser does not support MathJax"],null,4000);c.Startup.signal.Post("MathJax not supported")}})})(MathJax.Hub,MathJax.Hub.Browser);MathJax.Ajax.loadComplete("[MathJax]/config/MMLorHTML.js");
19 changes: 19 additions & 0 deletions assets/js/mathjax/config/Safe.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* /MathJax/config/Safe.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

MathJax.Hub.Register.StartupHook("End Config",function(){if(!MathJax.Hub.config.extensions){MathJax.Hub.config.extensions=[]}MathJax.Hub.config.extensions.push("Safe.js")});MathJax.Ajax.loadComplete("[MathJax]/config/Safe.js");
70 changes: 70 additions & 0 deletions assets/js/mathjax/config/TeX-AMS-MML_HTMLorMML-full.js

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions assets/js/mathjax/config/TeX-AMS-MML_HTMLorMML.js

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions assets/js/mathjax/config/TeX-AMS-MML_SVG-full.js

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions assets/js/mathjax/config/TeX-AMS-MML_SVG.js

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions assets/js/mathjax/config/TeX-AMS_HTML-full.js

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions assets/js/mathjax/config/TeX-AMS_HTML.js

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions assets/js/mathjax/config/TeX-MML-AM_HTMLorMML-full.js

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions assets/js/mathjax/config/TeX-MML-AM_HTMLorMML.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6ce1fc1

Please sign in to comment.