-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assistive Technology can't be disabled #2651
Comments
Can you be a little clearer about your setup? Can you provide the code that sets up and runs MathJax? Are you running this in node, or in a browser? Also, there are a number of assistive components, so when you say "turn off assistive technology" is not clear which one you really mean. Do you mean the assistive MathML that is produced automatically? To disable that, use MathJax = {
options: {
enableAssistiveMml: false
}
}; It turns out that the As for the location that SRE uses for the maps, that can be configured in the HTML file using an SRE configuration script, or in a node application using |
I run MathJax in my browser, and I mostly use google chrome. My setup is pretty basic. I installed MathJax using npm command
My point on doing all that is to keep just the bare minimum to make it run fast. When I found that Since I didn't know how to configure sre_browser, I just erase the I don't know how Do we really need all those to parse mathematical formulas in the browser? I try the option you proposed ( |
Have you activated those assistive tools in the MathJax contextual menu? If so, that will cause Mathjax to load the assistive tools (the changes in the menu are sticky so will stay in effect). You can select the "Reset to defaults" in the "Math Settings" submenu to reset all the menu settings (which should turn off those features). Then reload the page and see if you still see them. The menu settings override the page settings, so that is probably what is causing them to load. |
You got it Mr. Davide P. Cervone!! It works like a charm now.. But I must admit that I couldn't have the contextual menu back by switching So maybe there is a problem there, it doesn't seem to change according to the updated MathJax setup. |
Depending on how the javascript is packaged, some browsers may not clear it from cache, so you may not have gotten the updated version when you changed the |
Add a11y enable options to menu handler so that they can be configured (mathjax/MathJax#2651)
Issue Summary
I installed my own copy of the project from npm and I am not able to turn off assistive technology.
Everything works just fine, but it breaks when I try to disable.
Also, I am confuse about the line
sre.Variables.url="https://cdn.jsdelivr.net/npm/speech-rule-engine@"+sre.Variables.VERSION+"/lib/mathmaps
in the filees5/sre/sre_browser.js
.Why it doesn't load from my local copy?
Steps to Reproduce:
When I add this configuration:
MathJax = { options: { enableEnrichment: false, // false to disable enrichment } };
(as the documentation said
http://docs.mathjax.org/en/latest/options/accessibility.html
)I get this error:
MathJax(?): Invalid option "enableEnrichment" (no default value).
The same thing happen with this configuration:
MathJax = { options: { enableComplexity: false, } };
which give this error:
MathJax(?): Invalid option "enableComplexity" (no default value).
The text was updated successfully, but these errors were encountered: