Skip to content

Commit d66cc3b

Browse files
authored
Merge 34ded1f into 1af8775
2 parents 1af8775 + 34ded1f commit d66cc3b

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

cldrDict_sconscript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def createCLDRAnnotationsDict(sources, dest):
3030
with codecs.open(dest, "w", "utf_8_sig", errors="replace") as dictFile:
3131
dictFile.write(u"symbols:\r\n")
3232
for pattern, description in cldrDict.items():
33-
dictFile.write(u"{pattern}\t{description}\tsome\r\n".format(
33+
# Punctuations are set to none for CLDR characters to be pronounced even if user set punctuation level to None
34+
dictFile.write(u"{pattern}\t{description}\tnone\r\n".format(
3435
pattern=pattern,
3536
description=description
3637
))

source/globalCommands.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,6 +2278,24 @@ def script_recognizeWithUwpOcr(self, gesture):
22782278
# Translators: Describes a command.
22792279
script_recognizeWithUwpOcr.__doc__ = _("Recognizes the content of the current navigator object with Windows 10 OCR")
22802280

2281+
@script(
2282+
# Translators: Input help mode message for toggle report CLDR command.
2283+
description=_("Toggles on and off the reporting of CLDR characters, such as emojis"),
2284+
# gesture="kb:NVDA+shift+p",
2285+
category=SCRCAT_SPEECH,
2286+
)
2287+
def script_toggleReportCLDR(self, gesture):
2288+
if config.conf["speech"]["includeCLDR"]:
2289+
# Translators: presented when the report CLDR is toggled.
2290+
state = _("report CLDR characters off")
2291+
config.conf["speech"]["includeCLDR"] = False
2292+
else:
2293+
# Translators: presented when the report CLDR is toggled.
2294+
state = _("report CLDR characters on")
2295+
config.conf["speech"]["includeCLDR"] = True
2296+
characterProcessing.clearSpeechSymbols()
2297+
ui.message(state)
2298+
22812299
__gestures = {
22822300
# Basic
22832301
"kb:NVDA+n": "showGui",

user_docs/en/userGuide.t2t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,10 @@ This option applies to all synthesizers, not just the currently active synthesiz
11131113
On by default, this option tells NVDA if the current voice's language can be trusted when processing symbols and characters.
11141114
If you find that NVDA is reading punctuation in the wrong language for a particular synthesizer or voice, you may wish to turn this off to force NVDA to use its global language setting instead.
11151115

1116+
%kc:setting
11161117
==== Include Unicode Consortium data (including emoji) when processing characters and symbols ====[SpeechSettingsCLDR]
1118+
Key: shift+NVDA+p
1119+
11171120
When this checkbox is enabled, NVDA will include additional symbol pronunciation dictionaries when pronouncing characters and symbols.
11181121
These dictionaries contain descriptions for symbols (particularly emoji) that are provided by the [Unicode Consortium http://www.unicode.org/consortium/] as part of their [Common Locale Data Repository http://cldr.unicode.org/].
11191122
If you want NVDA to speak descriptions of emoji characters based on this data, you should enable this option.

0 commit comments

Comments
 (0)