Fix NVDA reading the Unicode hyphen (U+2010) as hyphen (#19114)#19248
Merged
Conversation
Resolves nvaccess#19114 NVDA reads the Unicode hyphen (U+2010) differently from the standard ASCII hyphen-minus (U+002D). When U+2010 appears inside compound words like "open‑source", NVDA would read it explicitly as “hyphen” which is incorrect. Compound words containing U+2010 are now read naturally without calling out “hyphen.” Added the following line to source/locale/en/symbols.dic under Standard punctuation/symbols: hyphen most always This ensures U+2010 is preserved inside words but not spoken explicitly. U+2010 (Unicode hyphen) previously had level=0 and preserve=0, causing it to be read aloud as “hyphen” inside words. By adding an entry in source/locale/en/symbols.dic: This sets an appropriate level and preserve value so that U+2010 is preserved in compound words but not explicitly spoken. Manually tested examples: - open‑source -> "open source" (U+2010) - open-source -> "open source" (U+002D) Confirms compound words read correctly. No other functionality affected.
Member
|
Is this ready for review? |
seanbudd
approved these changes
Nov 21, 2025
Member
|
Thanks @sidkar5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Resolves #19114
Summary of the issue:
NVDA reads the Unicode hyphen (U+2010) differently from the standard ASCII hyphen-minus (U+002D). When U+2010 appears inside compound words like "open‑source", NVDA would read it explicitly as “open hyphen source” which is incorrect.
Description of user facing changes:
Compound words containing U+2010 are now read naturally without calling out “hyphen.”
Description of developer facing changes:
Added the following line to source/locale/en/symbols.dic under Standard punctuation/symbols:
hyphen most alwaysThis ensures U+2010 is preserved inside words but not spoken explicitly.
Description of development approach:
U+2010 (Unicode hyphen) previously had level=0 and preserve=0, causing it to be read aloud as “hyphen” inside words. By adding an entry in source/locale/en/symbols.dic: This sets an appropriate level and preserve value so that U+2010 is preserved in compound words but not explicitly spoken.
Testing strategy:
Manually tested examples:
Confirms that NVDA is reading these compound words read correctly, with "hyphen" now not being spoken explicitly in the U+2010 case.
Known issues with pull request:
Note that due to the small nature of this change, I decided not to include a change log entry.
Currently, this change only updates
source/locale/en/symbols.dic. It is unclear whether U+2010 should also be added to other locales and may require further review.Code Review Checklist: