Skip to content

Commit 6000aa1

Browse files
committed
Bring menuSettings up to date in MathJax.js and default.js, and add localization IDs for menu items where they were missing (i.e, implied).
1 parent 32c540b commit 6000aa1

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

unpacked/MathJax.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,8 @@ MathJax.Hub = {
18961896
mpContext: false, // true means pass menu events to MathPlayer in IE
18971897
mpMouse: false, // true means pass mouse events to MathPlayer in IE
18981898
texHints: true, // include class names for TeXAtom elements
1899+
FastPreview: true, // use PreviewHTML output as preview?
1900+
assistiveMML: true, // include hidden MathML for screen readers?
18991901
inTabOrder: true, // set to false if math elements should be included in the tabindex
19001902
semantics: false // add semantics tag with original form in MathML output
19011903
},

unpacked/config/default.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,17 @@ MathJax.Hub.Config({
240240
ALT: false, // require Alt or Option?
241241
CMD: false, // require CMD?
242242
Shift: false, // require Shift?
243+
discoverable: false, // make math menu discoverable on hover?
243244
zscale: "200%", // the scaling factor for MathZoom
245+
renderer: "", // set when Jax are loaded
244246
font: "Auto", // what font HTML-CSS should use
245247
context: "MathJax", // or "Browser" for pass-through to browser menu
248+
locale: "en", // the language to use for messages
246249
mpContext: false, // true means pass menu events to MathPlayer in IE
247250
mpMouse: false, // true means pass mouse events to MathPlayer in IE
248251
texHints: true, // include class names for TeXAtom elements
252+
FastPreview: true, // use PreviewHTML output as preview?
253+
assistiveMML: true, // include hidden MathML for screen readers?
249254
inTabOrder: true, // set to true if math elements should be included in the tabindex
250255
semantics: false // add semantics tag with original form in MathML output
251256
},

unpacked/extensions/MathMenu.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,16 +1543,16 @@
15431543
),
15441544
ITEM.RULE(),
15451545
ITEM.SUBMENU(["Renderer","Math Renderer"], {hidden:!CONFIG.showRenderer},
1546-
ITEM.RADIO("HTML-CSS", "renderer", {action: MENU.Renderer}),
1547-
ITEM.RADIO("Common HTML","renderer", {action: MENU.Renderer, value:"CommonHTML"}),
1548-
ITEM.RADIO("Fast HTML", "renderer", {action: MENU.Renderer, value:"PreviewHTML"}),
1549-
ITEM.RADIO("MathML", "renderer", {action: MENU.Renderer, value:"NativeMML"}),
1550-
ITEM.RADIO("SVG", "renderer", {action: MENU.Renderer}),
1551-
ITEM.RADIO("PlainSource","renderer", {action: MENU.Renderer, value:"PlainSource"}),
1546+
ITEM.RADIO(["HTML-CSS","HTML-CSS"], "renderer", {action: MENU.Renderer}),
1547+
ITEM.RADIO(["CommonHTML","Common HTML"], "renderer", {action: MENU.Renderer, value:"CommonHTML"}),
1548+
ITEM.RADIO(["PreviewHTML","Preview HTML"],"renderer", {action: MENU.Renderer, value:"PreviewHTML"}),
1549+
ITEM.RADIO(["MathML","MathML"], "renderer", {action: MENU.Renderer, value:"NativeMML"}),
1550+
ITEM.RADIO(["SVG","SVG"], "renderer", {action: MENU.Renderer}),
1551+
ITEM.RADIO(["PlainSource","Plain Source"],"renderer", {action: MENU.Renderer, value:"PlainSource"}),
15521552
ITEM.RULE(),
1553-
ITEM.CHECKBOX("Fast Preview", "FastPreview"),
1554-
ITEM.CHECKBOX("Assistive MathML", "assistiveMML", {action:MENU.AssistiveMML}),
1555-
ITEM.CHECKBOX("Include in Tab Order", "inTabOrder")
1553+
ITEM.CHECKBOX(["FastPreview","Fast Preview"], "FastPreview"),
1554+
ITEM.CHECKBOX(["AssistiveMML","Assistive MathML"], "assistiveMML", {action:MENU.AssistiveMML}),
1555+
ITEM.CHECKBOX(["InTabOrder","Include in Tab Order"], "inTabOrder")
15561556
),
15571557
ITEM.SUBMENU("MathPlayer", {hidden:!HUB.Browser.isMSIE || !CONFIG.showMathPlayer,
15581558
disabled:!HUB.Browser.hasMathPlayer},
@@ -1579,7 +1579,7 @@
15791579
ITEM.RADIO(["NeoEulerWeb","Neo Euler (web)"], "font", {action: MENU.Font})
15801580
),
15811581
ITEM.SUBMENU(["ContextMenu","Contextual Menu"], {hidden:!CONFIG.showContext},
1582-
ITEM.RADIO("MathJax", "context"),
1582+
ITEM.RADIO(["MathJax","MathJax"], "context"),
15831583
ITEM.RADIO(["Browser","Browser"], "context")
15841584
),
15851585
ITEM.COMMAND(["Scale","Scale All Math ..."],MENU.Scale),

0 commit comments

Comments
 (0)