[orca: 1/2] speech: add marks at end of lines too
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca: 1/2] speech: add marks at end of lines too
- Date: Tue, 4 Jun 2019 12:27:21 +0000 (UTC)
commit f65c5644c7066b843c42f0dc46fb1189a89f788d
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Fri May 31 17:11:10 2019 +0200
speech: add marks at end of lines too
So that we can see speech progression in e.g. multiple-line terminal output.
src/orca/speechdispatcherfactory.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index f890809d4..d92afebac 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -360,9 +360,9 @@ class SpeechServer(speechserver.SpeechServer):
continue
marked_text += c
- if (c == ' ' or c == '\u00a0') \
+ if (c == ' ' or c == '\u00a0' or c == '\n') \
and i < len(text) - 1 \
- and text[i + 1] != ' ' and text[i + 1] != '\u00a0':
+ and text[i + 1] != ' ' and text[i + 1] != '\u00a0' and text[i + 1] != '\n':
# Word separation, add a mark
marks_offsets.append(i + 1)
marked_text += '\ue000'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]