Skip to content
Browse files

Modify NVDA behavior with CLDR characters (#9707)

* Modify NVDA behavior with CLDR characters to have them announced everytimes and quicker configurable.
* In the cldr.dic files, set the punctuation level to none
* Add shift+NVDA+p to toggle on and off CLDR characters anouncement
Fix #8826

* User guide: add gesture

* Changes after reviewS.
* Add a comment to specify why punctuation level is set to none
* Use script decorator instead of old-style coding
* Fix translators comments
* commented gesture assignment until final advice

* Fix code style for Lint check
One error left: continuation line under-indented for hanging indent
I don't understand how to fix this when I took it from another part of this file

* Code style fix

* Reverted to original code style as codestyle checks now pass

* Delete the commented gesture, will add it back if needed when PR will be reviewed again by @josephsl or someone else

* Remove keyboard shortcut from user guide

* User guide: advise users to assign a command to toggle this feature from everywhere.
  • Loading branch information...
pzajda authored and michaelDCurran committed Oct 4, 2019
1 parent b94777e commit 36e608dc7375ab2c02f19549310348b69f78a251
Showing with 21 additions and 1 deletion.
  1. +2 −1 cldrDict_sconscript
  2. +17 −0 source/
  3. +2 −0 user_docs/en/userGuide.t2t
@@ -30,7 +30,8 @@ def createCLDRAnnotationsDict(sources, dest):
with, "w", "utf_8_sig", errors="replace") as dictFile:
for pattern, description in cldrDict.items():
# Punctuations are set to none for CLDR characters to be pronounced even if user set punctuation level to None
@@ -2282,6 +2282,23 @@ def script_recognizeWithUwpOcr(self, gesture):
# Translators: Describes a command.
script_recognizeWithUwpOcr.__doc__ = _("Recognizes the content of the current navigator object with Windows 10 OCR")

# Translators: Input help mode message for toggle report CLDR command.
description=_("Toggles on and off the reporting of CLDR characters, such as emojis"),
def script_toggleReportCLDR(self, gesture):
if config.conf["speech"]["includeCLDR"]:
# Translators: presented when the report CLDR is toggled.
state = _("report CLDR characters off")
config.conf["speech"]["includeCLDR"] = False
# Translators: presented when the report CLDR is toggled.
state = _("report CLDR characters on")
config.conf["speech"]["includeCLDR"] = True

# Translators: Describes a command.
@@ -1122,6 +1122,8 @@ Note that manually added or edited character descriptions are saved as part of y
Therefore, if you change the description of a particular emoji, your custom description will be spoken for that emoji regardless of whether this option is enabled.
You can add, edit or remove symbol descriptions in NVDA's [punctuation/symbol pronunciation dialog #SymbolPronunciation].

To toggle Unicode Consortium data inclusion from anywhere, please assign a custom gesture using the [Input Gestures dialog #InputGestures].

==== Capital pitch change percentage ====[SpeechSettingsCapPitchChange]
This edit field allows you to type the amount that the pitch of the voice will change when speaking a capital letter.
This value is a percentage, where a negative value lowers the pitch and a positive value raises it.

0 comments on commit 36e608d

Please sign in to comment.
You can’t perform that action at this time.