Fr'ed'eric Wang: MathML Accessibility |
In a previous blog post about MathML in Wikipedia, I mentioned that, despite ongoing efforts there was still no accessibility support for MathML in Gecko. The situation changed two months ago: Design Science and NV Access released new versions of MathPlayer and NVDA, which in particular add MathML accessibility support on Windows, as shown in the demos below. This is exciting news and I am really willing to see this support extended to other platforms...
Last December, I also met Joanmarie Diggs at the Web Engines Hackfest and we have been able to start some preliminary work for Linux (WebKit/Gecko/Orca). I had the opportunity to refresh some of the patches written by Jonathan Wei during a Mozilla internship and to get part of his work landed into trunk. I have also made basic improvements to how we expose the accessible tree for ATK in order to prepare future support in Orca. It is certainly too early to announce anything. Just as a comparison, I also provide how Orca currently (badly) reads the MathML formulas below.
MathML accessibility support is also available in the latest versions of Safari+VoiceOver. So in theory, we "only" need to make Gecko expose the same accessible tree as WebKit in order to support the Mac platform. Jonathan Wei had a work-in-progress patch for that, see bug 1001641. Since it is far from being ready, I will cheat a bit and just show how VoiceOver reads the MathML examples in Safari.
Finally, the mobile platforms (Firefox OS and Android) are also very important. So far, I have only submitted some patches to make the GeckoView accessible and to fix some other small accessibility bugs. So I am interested in hearing more from Mozilla developers about the AccessFu stuff and how we could make MathML accessible on these platforms.
The table below contains some concrete examples taken from Wikipedia (in MathML mode), Mozilla Developer Network, KaTeX and MathJax. Note that at the moment, MathJax MathML formulas are not exposed to all assistive technologies. I recommend to force native MathML using an add-on for Gecko browsers or Safari ; or to use this GreaseMonkey script.
MathML Example | NVDA | VoiceOver | Orca (no support) | |
---|---|---|---|---|
Pythagorean theorem (Wikipedia) | ||||
Real roots of a quadratic equation (Wikipedia) | ||||
Math.cosh from ECMAScript 6 (MDN) | ||||
Polyfill for Math.atanh from ECMAScript 6 (MDN) | ||||
Matrix of SVG's rotate transform (MDN) | ||||
Two other formulas (KaTeX home page) | ||||
Another Formula (MathJax home page) |
For the record, the detailed software versions used are:
Note: all these audio files are distributed under the Creative Commons Attribution-Share Alike 4.0 International license.
All of these developments are still in progress and there are certainly many bugs to fix and improvements to do. Next month, I expect to have several opportunities to meet people and make progress on MathML. For people interested to help, here is my schedule:
http://www.maths-informatique-jeux.com/blog/frederic/?post/2015/05/06/MathML-Accessibility
Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |