Move old CommonHTML to be FastHTML
This commit is contained in:
parent
f3374f9c05
commit
425c9df6e9
|
@ -2542,8 +2542,8 @@ MathJax.Hub.Startup = {
|
||||||
["Post",this.signal,"Begin Cookie"],
|
["Post",this.signal,"Begin Cookie"],
|
||||||
["Get",MathJax.HTML.Cookie,"menu",MathJax.Hub.config.menuSettings],
|
["Get",MathJax.HTML.Cookie,"menu",MathJax.Hub.config.menuSettings],
|
||||||
[function (config) {
|
[function (config) {
|
||||||
if (config.menuSettings.locale)
|
var SETTINGS = config.menuSettings;
|
||||||
{MathJax.Localization.resetLocale(config.menuSettings.locale)}
|
if (SETTINGS.locale) MathJax.Localization.resetLocale(SETTINGS.locale);
|
||||||
var renderer = config.menuSettings.renderer, jax = config.jax;
|
var renderer = config.menuSettings.renderer, jax = config.jax;
|
||||||
if (renderer) {
|
if (renderer) {
|
||||||
var name = "output/"+renderer; jax.sort();
|
var name = "output/"+renderer; jax.sort();
|
||||||
|
@ -2555,8 +2555,12 @@ MathJax.Hub.Startup = {
|
||||||
}
|
}
|
||||||
jax.unshift(name);
|
jax.unshift(name);
|
||||||
}
|
}
|
||||||
if (config.menuSettings.CHTMLpreview && !MathJax.Extension["CHTML-preview"])
|
if (SETTINGS.CHTMLpreview != null) {
|
||||||
{MathJax.Hub.config.extensions.push("CHTML-preview.js")}
|
if (SETTINGS.FHTMLpreview == null) SETTINGS.FHTMLpreview = SETTINGS.CHTMLpreview;
|
||||||
|
delete SETTINGS.CHTMLpreview;
|
||||||
|
}
|
||||||
|
if (SETTINGS.FHTMLpreview && !MathJax.Extension["FHTML-preview"])
|
||||||
|
MathJax.Hub.config.extensions.push("FHTML-preview.js");
|
||||||
},MathJax.Hub.config],
|
},MathJax.Hub.config],
|
||||||
["Post",this.signal,"End Cookie"]
|
["Post",this.signal,"End Cookie"]
|
||||||
);
|
);
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","CHTML-preview.js"],
|
extensions: ["asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","CHTML-preview.js"],
|
||||||
jax: ["input/AsciiMath","output/HTML-CSS","output/NativeMML","output/CommonHTML"]
|
jax: ["input/AsciiMath","output/HTML-CSS","output/NativeMML","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/AM_HTMLorMML-full.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/AM_HTMLorMML-full.js");
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","CHTML-preview.js"],
|
extensions: ["asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","CHTML-preview.js"],
|
||||||
jax: ["input/AsciiMath","output/HTML-CSS","output/NativeMML","output/CommonHTML"]
|
jax: ["input/AsciiMath","output/HTML-CSS","output/NativeMML","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/AM_HTMLorMML.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/AM_HTMLorMML.js");
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/CommonHTML"],
|
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/FastHTML"],
|
||||||
menuSettings: {
|
menuSettings: {
|
||||||
zoom: "Double-Click",
|
zoom: "Double-Click",
|
||||||
mpContext: true,
|
mpContext: true,
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/CommonHTML"],
|
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/FastHTML"],
|
||||||
menuSettings: {
|
menuSettings: {
|
||||||
zoom: "Double-Click",
|
zoom: "Double-Click",
|
||||||
mpContext: true,
|
mpContext: true,
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","CHTML-preview.js"],
|
extensions: ["mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","CHTML-preview.js"],
|
||||||
jax: ["input/MathML","output/HTML-CSS","output/NativeMML","output/CommonHTML"]
|
jax: ["input/MathML","output/HTML-CSS","output/NativeMML","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/MML_HTMLorMML.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/MML_HTMLorMML.js");
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/CommonHTML"]
|
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_HTMLorMML-full.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_HTMLorMML-full.js");
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/CommonHTML"]
|
jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_HTMLorMML.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_HTMLorMML.js");
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","output/SVG","output/CommonHTML"]
|
jax: ["input/TeX","input/MathML","output/SVG","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_SVG-full.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_SVG-full.js");
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","output/SVG","output/CommonHTML"]
|
jax: ["input/TeX","input/MathML","output/SVG","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_SVG.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS-MML_SVG.js");
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
extensions: ["tex2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","output/HTML-CSS","output/CommonHTML"]
|
jax: ["input/TeX","output/HTML-CSS","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS_HTML-full.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS_HTML-full.js");
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
extensions: ["tex2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","output/HTML-CSS","output/CommonHTML"]
|
jax: ["input/TeX","output/HTML-CSS","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS_HTML.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-AMS_HTML.js");
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML","output/CommonHTML"]
|
jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-MML-AM_HTMLorMML-full.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-MML-AM_HTMLorMML-full.js");
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
MathJax.Hub.Config({
|
MathJax.Hub.Config({
|
||||||
config: ["MMLorHTML.js"],
|
config: ["MMLorHTML.js"],
|
||||||
extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","CHTML-preview.js"],
|
||||||
jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML","output/CommonHTML"]
|
jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML","output/FastHTML"]
|
||||||
});
|
});
|
||||||
|
|
||||||
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-MML-AM_HTMLorMML.js");
|
MathJax.Ajax.loadComplete("[MathJax]/config/TeX-MML-AM_HTMLorMML.js");
|
||||||
|
|
|
@ -1089,12 +1089,13 @@
|
||||||
),
|
),
|
||||||
ITEM.RULE(),
|
ITEM.RULE(),
|
||||||
ITEM.SUBMENU(["Renderer","Math Renderer"], {hidden:!CONFIG.showRenderer},
|
ITEM.SUBMENU(["Renderer","Math Renderer"], {hidden:!CONFIG.showRenderer},
|
||||||
ITEM.RADIO("HTML-CSS", "renderer", {action: MENU.Renderer}),
|
ITEM.RADIO("HTML-CSS", "renderer", {action: MENU.Renderer}),
|
||||||
ITEM.RADIO("Fast HTML", "renderer", {action: MENU.Renderer, value:"CommonHTML"}),
|
ITEM.RADIO("Common HTML","renderer", {action: MENU.Renderer, value:"CommonHTML"}),
|
||||||
ITEM.RADIO("MathML", "renderer", {action: MENU.Renderer, value:"NativeMML"}),
|
ITEM.RADIO("Fast HTML", "renderer", {action: MENU.Renderer, value:"FastHTML"}),
|
||||||
ITEM.RADIO("SVG", "renderer", {action: MENU.Renderer}),
|
ITEM.RADIO("MathML", "renderer", {action: MENU.Renderer, value:"NativeMML"}),
|
||||||
|
ITEM.RADIO("SVG", "renderer", {action: MENU.Renderer}),
|
||||||
ITEM.RULE(),
|
ITEM.RULE(),
|
||||||
ITEM.CHECKBOX("Fast Preview", "CHTMLpreview")
|
ITEM.CHECKBOX("Fast Preview", "FHTMLpreview")
|
||||||
),
|
),
|
||||||
ITEM.SUBMENU("MathPlayer", {hidden:!HUB.Browser.isMSIE || !CONFIG.showMathPlayer,
|
ITEM.SUBMENU("MathPlayer", {hidden:!HUB.Browser.isMSIE || !CONFIG.showMathPlayer,
|
||||||
disabled:!HUB.Browser.hasMathPlayer},
|
disabled:!HUB.Browser.hasMathPlayer},
|
||||||
|
|
53
unpacked/jax/output/FastHTML/config.js
Normal file
53
unpacked/jax/output/FastHTML/config.js
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
|
||||||
|
/* vim: set ts=2 et sw=2 tw=80: */
|
||||||
|
|
||||||
|
/*************************************************************
|
||||||
|
*
|
||||||
|
* MathJax/jax/output/FastHTML/config.js
|
||||||
|
*
|
||||||
|
* Initializes the FastHTML OutputJax (the main definition is in
|
||||||
|
* MathJax/jax/input/FastHTML/jax.js, which is loaded when needed).
|
||||||
|
*
|
||||||
|
* ---------------------------------------------------------------------
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013-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.OutputJax.FastHTML = MathJax.OutputJax({
|
||||||
|
id: "FastHTML",
|
||||||
|
version: "2.5.0",
|
||||||
|
directory: MathJax.OutputJax.directory + "/FastHTML",
|
||||||
|
extensionDir: MathJax.OutputJax.extensionDir + "/FastHTML",
|
||||||
|
|
||||||
|
config: {
|
||||||
|
scale: 100, minScaleAdjust: 50, // global math scaling factor, and minimum adjusted scale factor
|
||||||
|
mtextFontInherit: false, // to make <mtext> be in page font rather than MathJax font
|
||||||
|
|
||||||
|
linebreaks: {
|
||||||
|
automatic: false, // when false, only process linebreak="newline",
|
||||||
|
// when true, insert line breaks automatically in long expressions.
|
||||||
|
|
||||||
|
width: "container" // maximum width of a line for automatic line breaks (e.g. "30em").
|
||||||
|
// use "container" to compute size from containing element,
|
||||||
|
// use "nn% container" for a portion of the container,
|
||||||
|
// use "nn%" for a portion of the window size
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!MathJax.Hub.config.delayJaxRegistration) {MathJax.OutputJax.FastHTML.Register("jax/mml")}
|
||||||
|
|
||||||
|
MathJax.OutputJax.FastHTML.loadComplete("config.js");
|
1085
unpacked/jax/output/FastHTML/jax.js
Normal file
1085
unpacked/jax/output/FastHTML/jax.js
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user