-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
Add unicode minus symbol #10636
Add unicode minus symbol #10636
Conversation
Note that this isn't an utf-8 symbol but an Unicode symbol. Utf-8 is an encoded representation of Unicode. |
Roger that, my mistake. Updated the PR to correct that. Thanks for pointing it out. |
Adds support for the unicode minus symbol, including when used for a negative number.
7768b53
to
8a625c5
Compare
@LeonarddeR should I be requesting a review from someone? If so, who would you suggest? Tx |
@JamesCatt you can request review from @michaelDCurran or from @feerrenrut in this case since they are from NV Access and the only people who can merge pull requests into master, beta or any other branch. |
Will do, thanks! |
Does this allow minus to be read out if it's not directly prefacing a financial symbol? For example, a math sentence: 3 − 2 ? (with a space after it?) I'm rusty on my regexen, but I think that's what I'm seeing: just as a dash on its own is generally silent but sounds "minus" when directly next to a number, does this mean we still have zero recourse to get the |
Nope, I added a standalone entry for the character as well (see line 59 in the diff), so it will be announced regardless of the context it appears in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, I added some information to the PR description about the exact Unicode symbol (U+2212).
I have tested this (very quickly) with espeak, I assume @JamesCatt you did the same. Please could you test with several other synthesizers, in particular OneCore.
I'll merge this now, but please comment on here to let me know which synthesizers have been tested. Thanks for the contribution!
Will do, and thanks! |
Adds support for the unicode minus symbol, including when used for a negative number.
Link to issue number:
Fixes #10633
Summary of the issue:
NVDA does not identify negative numbers (including currencies) that use the unicode minus symbol, or announce unicode minus symbol in general.
Information on the minus symbol (U+2212)
Description of how this pull request fixes the issue:
Testing performed:
Known issues with pull request:
None
Change log entry:
Bug Fixes
Fixed not announcing Unicode minus symbol (U+2212) (#10633)