[orca] Don't treat a series of periods as an ellipsis
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't treat a series of periods as an ellipsis
- Date: Fri, 27 Nov 2015 20:55:36 +0000 (UTC)
commit b46995aa63f65d9412b4594809cf0f88d58d1524
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Nov 27 15:52:48 2015 -0500
Don't treat a series of periods as an ellipsis
src/orca/speechdispatcherfactory.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index a282564..a0025a6 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -63,7 +63,7 @@ else:
_speechd_version_ok = True
PUNCTUATION = re.compile('[^\w\s]', re.UNICODE)
-ELLIPSIS = re.compile('(\342\200\246|\.\.\.\s*)')
+ELLIPSIS = re.compile('(\342\200\246|[^\.]\.{3,4}(\s|\Z))')
class SpeechServer(speechserver.SpeechServer):
# See the parent class for documentation.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]