diff --git a/unpacked/extensions/MathEvents.js b/unpacked/extensions/MathEvents.js index 597e9b387..0b16a229a 100644 --- 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 index b854aaf90..b5696217b 100644 --- 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 index 78f08eda0..b5353de0c 100644 --- 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 index d389a0c2c..4363661a4 100644 --- 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", + "MathJax Equation Source" - "Annotation": "Annotation", - "TeX": "TeX", - "StarMath": "StarMath", - "Maple": "Maple", - "Content MathML": "Content MathML", - "OpenMath": "OpenMath" } }); diff --git a/unpacked/localization/fr/MathMenu.js b/unpacked/localization/fr/MathMenu.js index 3eb611e4b..c2356dd0a 100644 --- 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", + "Source de l'\u00E9quation MathJax" - "Annotation": "d'annotation", - "TeX": "TeX", - "StarMath": "StarMath", - "Maple": "Maple", - "Content MathML": "MathML de contenu", - "OpenMath": "OpenMath" } }); diff --git a/unpacked/localization/it/MathMenu.js b/unpacked/localization/it/MathMenu.js index 93f6f0cfc..c65e1b5e6 100644 --- 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" } });