[orca] Eliminate double-speaking of inferred labels in SayAll
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Eliminate double-speaking of inferred labels in SayAll
- Date: Tue, 3 Jan 2017 14:18:49 +0000 (UTC)
commit 034fc857b477a5e6db31ec4d8dee66250a71b3c1
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jan 3 09:17:50 2017 -0500
Eliminate double-speaking of inferred labels in SayAll
src/orca/scripts/web/script.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 581d25d..fbd644a 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -551,6 +551,9 @@ class Script(default.Script):
contents = self.utilities.getLineContentsAtOffset(obj, characterOffset)
self._sayAllContents = contents
for content in contents:
+ if self.utilities.isInferredLabelForContents(content, contents):
+ continue
+
obj, startOffset, endOffset, text = content
utterances = self.speechGenerator.generateContents([content], eliminatePauses=True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]