[orca] Look up single-character labels in chnames
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Look up single-character labels in chnames
- Date: Mon, 26 Mar 2018 19:33:48 +0000 (UTC)
commit 73259738758abc7e104064dd9292ed9c86e88f14
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Mar 26 15:32:49 2018 -0400
Look up single-character labels in chnames
src/orca/speech_generator.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 92a1a4e..e9d9441 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -449,6 +449,10 @@ class SpeechGenerator(generator.Generator):
labels = self._script.utilities.unrelatedLabels(obj, visibleOnly)
for label in labels:
name = self._generateName(label, **args)
+ if name[0] and len(name[0]) == 1:
+ charname = chnames.getCharacterName(name[0])
+ if charname:
+ name[0] = charname
result.extend(name)
if result:
result.extend(acss)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]