commit 3653fcccafd9ab7ed322a30a713cec16b3aa2149
parent bc9443b25230d7d958aeeb3cda55bba12edd4912
Author: Frédéric Wang <fred.wang@free.fr>
Date: Mon, 5 Aug 2013 17:32:08 +0200
Address Review comments.
Diffstat:
6 files changed, 17 insertions(+), 34 deletions(-)
diff --git a/unpacked/extensions/MathEvents.js b/unpacked/extensions/MathEvents.js
@@ -166,13 +166,13 @@
// Try and find each known annotation format and enable the menu
// items accordingly.
//
- var annotations = source.items[2]; annotations.hidden = true;
+ var annotations = source.items[2]; annotations.disabled = true;
var annotationItems = annotations.menu.items;
annotationList = MathJax.Hub.Config.semanticsAnnotations;
for (var i = 0, m = annotationItems.length; i < m; i++) {
var name = annotationItems[i].name[1]
if (jax.root.getAnnotation(name) !== null) {
- annotations.hidden = false;
+ annotations.disabled = false;
annotationItems[i].hidden = false;
} else {
annotationItems[i].hidden = true;
diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js
@@ -58,6 +58,14 @@
showLocale: true, // show the "Locale" 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
status: "no", toolbar: "no", locationbar: "no", menubar: "no",
directories: "no", personalbar: "no", resizable: "yes", scrollbars: "yes",
@@ -1029,7 +1037,7 @@
ITEM.SUBMENU(["Show","Show Math As"],
ITEM.COMMAND(["MathMLcode","MathML Code"], MENU.ShowSource, {nativeTouch: true, format: "MathML"}),
ITEM.COMMAND(["Original","Original Form"], MENU.ShowSource, {nativeTouch: true}),
- ITEM.SUBMENU(["Annotation","Annotation"], {hidden:true}),
+ ITEM.SUBMENU(["Annotation","Annotation"], {disabled:true}),
ITEM.RULE(),
ITEM.CHECKBOX(["texHints","Show TeX hints in MathML"], "texHints")
),
diff --git a/unpacked/localization/de/MathMenu.js b/unpacked/localization/de/MathMenu.js
@@ -184,16 +184,9 @@ MathJax.Localization.addTranslation("de","MathMenu",{
// "Close",
EqSource:
- "Original MathJax Formel",
+ "Original MathJax Formel"
// "MathJax Equation Source"
- "Annotation": "Annotation",
- "TeX": "TeX",
- "StarMath": "StarMath",
- "Maple": "Maple",
- "Content MathML": "Content MathML",
- "OpenMath": "OpenMath"
-
}
});
diff --git a/unpacked/localization/en/MathMenu.js b/unpacked/localization/en/MathMenu.js
@@ -145,14 +145,8 @@ MathJax.Localization.addTranslation("en","MathMenu",{
"Close", // NOTE: for closing button in the 'MathJax Menu => SHow Math As' window.
EqSource:
- "MathJax Equation Source",
-
- "Annotation": "Annotation",
- "TeX": "TeX",
- "StarMath": "StarMath",
- "Maple": "Maple",
- "Content MathML": "Content MathML",
- "OpenMath": "OpenMath"
+ "MathJax Equation Source"
+
}
});
diff --git a/unpacked/localization/fr/MathMenu.js b/unpacked/localization/fr/MathMenu.js
@@ -145,14 +145,8 @@ MathJax.Localization.addTranslation("fr","MathMenu",{
"Fermer",
EqSource:
- "Source de l'\u00E9quation MathJax",
-
- "Annotation": "d'annotation",
- "TeX": "TeX",
- "StarMath": "StarMath",
- "Maple": "Maple",
- "Content MathML": "MathML de contenu",
- "OpenMath": "OpenMath"
+ "Source de l'\u00E9quation MathJax"
+
}
});
diff --git a/unpacked/localization/it/MathMenu.js b/unpacked/localization/it/MathMenu.js
@@ -179,15 +179,9 @@ MathJax.Localization.addTranslation("it","MathMenu",{
//"Close", // NOTE: for closing button in the 'MathJax Menu => SHow Math As' window.
EqSource:
- "Codice sorgente formula MathJax",
+ "Codice sorgente formula MathJax"
//"MathJax Equation Source"
- "Annotation": "Annotation",
- "TeX": "TeX",
- "StarMath": "StarMath",
- "Maple": "Maple",
- "Content MathML": "Content MathML",
- "OpenMath": "OpenMath"
}
});