Address Review comments.
This commit is contained in:
parent
bc9443b252
commit
3653fcccaf
|
@ -166,13 +166,13 @@
|
||||||
// Try and find each known annotation format and enable the menu
|
// Try and find each known annotation format and enable the menu
|
||||||
// items accordingly.
|
// items accordingly.
|
||||||
//
|
//
|
||||||
var annotations = source.items[2]; annotations.hidden = true;
|
var annotations = source.items[2]; annotations.disabled = true;
|
||||||
var annotationItems = annotations.menu.items;
|
var annotationItems = annotations.menu.items;
|
||||||
annotationList = MathJax.Hub.Config.semanticsAnnotations;
|
annotationList = MathJax.Hub.Config.semanticsAnnotations;
|
||||||
for (var i = 0, m = annotationItems.length; i < m; i++) {
|
for (var i = 0, m = annotationItems.length; i < m; i++) {
|
||||||
var name = annotationItems[i].name[1]
|
var name = annotationItems[i].name[1]
|
||||||
if (jax.root.getAnnotation(name) !== null) {
|
if (jax.root.getAnnotation(name) !== null) {
|
||||||
annotations.hidden = false;
|
annotations.disabled = false;
|
||||||
annotationItems[i].hidden = false;
|
annotationItems[i].hidden = false;
|
||||||
} else {
|
} else {
|
||||||
annotationItems[i].hidden = true;
|
annotationItems[i].hidden = true;
|
||||||
|
|
|
@ -58,6 +58,14 @@
|
||||||
showLocale: true, // show the "Locale" menu?
|
showLocale: true, // show the "Locale" menu?
|
||||||
showLocaleURL: false, // show the "Load from URL" menu?
|
showLocaleURL: false, // show the "Load from URL" menu?
|
||||||
|
|
||||||
|
semanticsAnnotations: {
|
||||||
|
"TeX": ["TeX", "LaTeX", "application/x-tex"],
|
||||||
|
"StarMath": ["StarMath 5.0"],
|
||||||
|
"Maple": ["Maple"],
|
||||||
|
"Content MathML": ["MathML-Content", "application/mathml-content+xml"],
|
||||||
|
"OpenMath": ["OpenMath"]
|
||||||
|
},
|
||||||
|
|
||||||
windowSettings: { // for source window
|
windowSettings: { // for source window
|
||||||
status: "no", toolbar: "no", locationbar: "no", menubar: "no",
|
status: "no", toolbar: "no", locationbar: "no", menubar: "no",
|
||||||
directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes",
|
directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes",
|
||||||
|
@ -1029,7 +1037,7 @@
|
||||||
ITEM.SUBMENU(["Show","Show Math As"],
|
ITEM.SUBMENU(["Show","Show Math As"],
|
||||||
ITEM.COMMAND(["MathMLcode","MathML Code"], MENU.ShowSource, {nativeTouch: true, format: "MathML"}),
|
ITEM.COMMAND(["MathMLcode","MathML Code"], MENU.ShowSource, {nativeTouch: true, format: "MathML"}),
|
||||||
ITEM.COMMAND(["Original","Original Form"], MENU.ShowSource, {nativeTouch: true}),
|
ITEM.COMMAND(["Original","Original Form"], MENU.ShowSource, {nativeTouch: true}),
|
||||||
ITEM.SUBMENU(["Annotation","Annotation"], {hidden:true}),
|
ITEM.SUBMENU(["Annotation","Annotation"], {disabled:true}),
|
||||||
ITEM.RULE(),
|
ITEM.RULE(),
|
||||||
ITEM.CHECKBOX(["texHints","Show TeX hints in MathML"], "texHints")
|
ITEM.CHECKBOX(["texHints","Show TeX hints in MathML"], "texHints")
|
||||||
),
|
),
|
||||||
|
|
|
@ -184,16 +184,9 @@ MathJax.Localization.addTranslation("de","MathMenu",{
|
||||||
// "Close",
|
// "Close",
|
||||||
|
|
||||||
EqSource:
|
EqSource:
|
||||||
"Original MathJax Formel",
|
"Original MathJax Formel"
|
||||||
// "MathJax Equation Source"
|
// "MathJax Equation Source"
|
||||||
|
|
||||||
"Annotation": "Annotation",
|
|
||||||
"TeX": "TeX",
|
|
||||||
"StarMath": "StarMath",
|
|
||||||
"Maple": "Maple",
|
|
||||||
"Content MathML": "Content MathML",
|
|
||||||
"OpenMath": "OpenMath"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -145,14 +145,8 @@ MathJax.Localization.addTranslation("en","MathMenu",{
|
||||||
"Close", // NOTE: for closing button in the 'MathJax Menu => SHow Math As' window.
|
"Close", // NOTE: for closing button in the 'MathJax Menu => SHow Math As' window.
|
||||||
|
|
||||||
EqSource:
|
EqSource:
|
||||||
"MathJax Equation Source",
|
"MathJax Equation Source"
|
||||||
|
|
||||||
"Annotation": "Annotation",
|
|
||||||
"TeX": "TeX",
|
|
||||||
"StarMath": "StarMath",
|
|
||||||
"Maple": "Maple",
|
|
||||||
"Content MathML": "Content MathML",
|
|
||||||
"OpenMath": "OpenMath"
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -145,14 +145,8 @@ MathJax.Localization.addTranslation("fr","MathMenu",{
|
||||||
"Fermer",
|
"Fermer",
|
||||||
|
|
||||||
EqSource:
|
EqSource:
|
||||||
"Source de l'\u00E9quation MathJax",
|
"Source de l'\u00E9quation MathJax"
|
||||||
|
|
||||||
"Annotation": "d'annotation",
|
|
||||||
"TeX": "TeX",
|
|
||||||
"StarMath": "StarMath",
|
|
||||||
"Maple": "Maple",
|
|
||||||
"Content MathML": "MathML de contenu",
|
|
||||||
"OpenMath": "OpenMath"
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -179,15 +179,9 @@ MathJax.Localization.addTranslation("it","MathMenu",{
|
||||||
//"Close", // NOTE: for closing button in the 'MathJax Menu => SHow Math As' window.
|
//"Close", // NOTE: for closing button in the 'MathJax Menu => SHow Math As' window.
|
||||||
|
|
||||||
EqSource:
|
EqSource:
|
||||||
"Codice sorgente formula MathJax",
|
"Codice sorgente formula MathJax"
|
||||||
//"MathJax Equation Source"
|
//"MathJax Equation Source"
|
||||||
|
|
||||||
"Annotation": "Annotation",
|
|
||||||
"TeX": "TeX",
|
|
||||||
"StarMath": "StarMath",
|
|
||||||
"Maple": "Maple",
|
|
||||||
"Content MathML": "Content MathML",
|
|
||||||
"OpenMath": "OpenMath"
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user