After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752162 - [BLOCKED] Orca does not read the mathvariant of MathML variable
[BLOCKED] Orca does not read the mathvariant of MathML variable
Status: RESOLVED NOTGNOME
Product: orca
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Orca Maintainers
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-09 08:23 UTC by Frédéric Wang
Modified: 2018-02-08 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frédéric Wang 2015-07-09 08:23:26 UTC
I'm opening this bug for reference, as I believe this will require WebKit/Gecko to expose the mathvariant property in the accessible tree.

Currently, Orca reads

data:text/html;charset=UTF-8,<math><mi>
Comment 1 Frédéric Wang 2015-07-09 08:25:40 UTC
(Resending as I forgot this old Bugzilla bug with non-BMP characters...)

-----------------

I'm opening this bug for reference, as I believe this will require WebKit/Gecko to expose the mathvariant property in the accessible tree.

Currently, Orca reads

data:text/html;charset=UTF-8,<math><mi>&#x1D504;</mi></math>

as "fraktur A".

However, MathML has an equivalent way to do that, using the mathvariant attribute (used by MathJax, Wikipedia and many LaTeX-to-MathML converters):

data:text/html;charset=UTF-8,<math><mi mathvariant="fraktur">A</mi></math>

or even

data:text/html;charset=UTF-8,<math><mstyle mathvariant="fraktur"><mrow><mrow><mi>A</mi></mrow></mrow></math>

In these cases, Orca just reads "A".

Some remarks:

* Internally, in Gecko the mathvariant MathML attribute is mapped to an internal CSS property "-moz-mathvariant" so I believe the obvious solution would be to map this CSS property to a text attribute, just like we do for font-family etc:

https://dxr.mozilla.org/mozilla-central/source/accessible/base/TextAttrs.h#289

* mathvariant is not supported by WebKit (https://bugs.webkit.org/show_bug.cgi?id=85735)
Comment 2 Joanmarie Diggs (IRC: joanie) 2015-07-22 19:22:42 UTC
Marking as "blocked" because I cannot add support in Orca for things which Orca has no way of knowing.
Comment 3 Joanmarie Diggs (IRC: joanie) 2018-02-08 12:46:53 UTC
Closing blocked bugs because we need the issue fixed in the blocker.