Skip to content
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

Bracketed uncertainty in numbers #725

Open
limefrogyank opened this issue Jul 26, 2023 · 1 comment
Open

Bracketed uncertainty in numbers #725

limefrogyank opened this issue Jul 26, 2023 · 1 comment

Comments

@limefrogyank
Copy link

limefrogyank commented Jul 26, 2023

Brackets in MathML seem to default to multiplication in SRE. For an
uncertainty written in the form:

8.35(4)

MathML: <mn>8.35</mn><mo>(</mo><mn>4</mn><mo>)</mo>

This means that the last digit (5) has an uncertainty of plus or
minus 4.

i.e. 8.35 +- 0.04

While MathSpeak just literally announces the brackets after the main number,
ClearSpeak uses the word "times" which is incorrect.

One possible (perhaps naive) solution is to wrap the uncertainty section in an <mrow>
then define a class like "Bracketed-Uncertainty"
(or something similar to "MathML-Unit") that could identify the
start of the uncertainty so that it is interpreted correctly in SRE.

Ideally, this would change the operator that separates the number and
the leading bracket for the uncertainty from multiplication to something
else.

@pkra
Copy link
Contributor

pkra commented Aug 7, 2023

I would add a wrapper with an aria-label attribute that specifies your preferred voicing. SRE will still provide for exploring the layout, i.e., find out that this is visually represented with parentheses. For an example, see https://krautzource.github.io/mathjax-aria-label/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants