react-mathjax-preview icon indicating copy to clipboard operation
react-mathjax-preview copied to clipboard

Screen readers don't announce exponents correctly

Open andrewlphilpott opened this issue 5 years ago • 5 comments

Currently, when a screen reader (specifically Mac VoiceOver, but maybe others too) reads out an equation that contains exponents, it doesn't properly announce the exponents. In the example screenshot, it simply reads out "cos two theta minus sin two theta" where both of the twos are supposed to be exponents.

Is there any way to address this?

Screen Shot 2020-03-23 at 10 42 32 AM

Edit: forgot to add screenshot

andrewlphilpott avatar Mar 23 '20 15:03 andrewlphilpott

For reference, here's how the same equation is read by VoiceOver on the MathJax demo page:

Screen Shot 2020-03-23 at 12 11 05 PM

andrewlphilpott avatar Mar 23 '20 16:03 andrewlphilpott

@andrewlphilpott thanks for the bug report. I will look at it when I get some free time. Meanwhile you are very welcome to send a PR if you find the problem.

mehdisadeghi avatar Mar 30 '20 08:03 mehdisadeghi

@mehdisadeghi I haven't investigated it a ton, but it may just be an issue with the older version of MathJax. I tested it out a bit and changing it to v3 seemed to fix the problem, but I'm not sure if doing that would cause other issues.

andrewlphilpott avatar Mar 30 '20 15:03 andrewlphilpott

MathJax v3 is not backward compatible so some changes are necessary to make the component work with it. See my other comment please. If you could make it work and render the demo with TeX, asciimath and MathML send a PR!

mehdisadeghi avatar Mar 30 '20 15:03 mehdisadeghi

Ah okay thanks for pointing me to that!

andrewlphilpott avatar Mar 30 '20 16:03 andrewlphilpott