[orca] Say "blank" when speaking the current line text for "\n"



commit b4f433f80ae92facb4767808e3327d2280a06745
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Nov 14 12:12:51 2013 -0500

    Say "blank" when speaking the current line text for "\n"

 src/orca/scripts/apps/Thunderbird/formatting.py |    1 +
 src/orca/speech_generator.py                    |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/formatting.py b/src/orca/scripts/apps/Thunderbird/formatting.py
index 2d3ebb1..9f93561 100644
--- a/src/orca/scripts/apps/Thunderbird/formatting.py
+++ b/src/orca/scripts/apps/Thunderbird/formatting.py
@@ -36,6 +36,7 @@ import orca.scripts.toolkits.Gecko.formatting as GeckoFormatting
 formatting = {
     'speech': {
         pyatspi.ROLE_DOCUMENT_FRAME: {
+            'unfocused': 'name + roleName + currentLineText',
             'basicWhereAmI': 'label + readOnly + textRole + textContent + anyTextSelection + ' + 
orca.formatting.MNEMONIC,
             'detailedWhereAmI': 'label + readOnly + textRole + textContentWithAttributes + anyTextSelection 
+ ' + orca.formatting.MNEMONIC + ' + ' + orca.formatting.TUTORIAL
             },
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 2a2e90c..17c1a92 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -917,6 +917,8 @@ class SpeechGenerator(generator.Generator):
         acss = self.voice(DEFAULT)
         result = generator.Generator._generateCurrentLineText(self, obj, **args)
         if result and result[0]:
+            if result[0] == "\n":
+                result[0] = messages.BLANK
             result.extend(acss)
         return result
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]