[orca] Fix regression in soffice's presentation of indentation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix regression in soffice's presentation of indentation
- Date: Mon, 31 Jan 2022 15:38:30 +0000 (UTC)
commit 0584544f791af333b2acec1d0633552374f29f12
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jan 31 16:36:27 2022 +0100
Fix regression in soffice's presentation of indentation
Call the default speech_generator's _generateCurrentLineText()
which does the same work and already works around the issue in
speech.speak()
src/orca/scripts/apps/soffice/speech_generator.py | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/speech_generator.py
b/src/orca/scripts/apps/soffice/speech_generator.py
index 2f21f3d45..d58bd7572 100644
--- a/src/orca/scripts/apps/soffice/speech_generator.py
+++ b/src/orca/scripts/apps/soffice/speech_generator.py
@@ -251,20 +251,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
result.extend(self.voice(string=text, obj=obj, **args))
return result
- result = []
- endOffset = startOffset + len(text)
- split = self._script.utilities.splitSubstringByLanguage(obj, startOffset, endOffset)
- for start, end, string, language, dialect in split:
- if not string:
- continue
- args["language"], args["dialect"] = language, dialect
- voice = self.voice(string=string, obj=obj, **args)
- string = self._script.utilities.adjustForLinks(obj, string, start)
- rv = [self._script.utilities.adjustForRepeats(string)]
- rv.extend(voice)
- result.append(rv)
-
- return result
+ return super()._generateCurrentLineText(obj, **args)
def _generateToggleState(self, obj, **args):
"""Treat toggle buttons in the toolbar specially. This is so we can
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]