Limit narrator symbols to dashes (#2324)

This commit is contained in:
Veronica Berglyd Olsen
2025-05-04 21:53:49 +02:00
parent 68cc38e443
commit 6f38867972
4 changed files with 28 additions and 19 deletions
+7
View File
@@ -505,6 +505,13 @@ class nwQuotes:
"\u300f": QT_TRANSLATE_NOOP("Constant", "Right white corner bracket"),
}
DASHES: Final[dict[str, str]] = {
"": QT_TRANSLATE_NOOP("Constant", "None"),
"\u2013": QT_TRANSLATE_NOOP("Constant", "Short dash"),
"\u2014": QT_TRANSLATE_NOOP("Constant", "Long dash"),
"\u2015": QT_TRANSLATE_NOOP("Constant", "Horizontal bar"),
}
class nwUnicode:
"""Supported unicode character constants and their HTML equivalents."""