From 23bd6b857a257b3dd7821637ed6dfd6c0f04b220 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Sat, 12 Sep 2020 03:56:46 +0800 Subject: [PATCH] Add Ellipsis to SENTENCE_SPLITTER (#1044) Ellipsis is used to terminal sentences in Chinese and used a lot at end of title. --- jrnl/Entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/Entry.py b/jrnl/Entry.py index 101c4a63a..0ca6c3b56 100755 --- a/jrnl/Entry.py +++ b/jrnl/Entry.py @@ -202,7 +202,7 @@ def __ne__(self, other): SENTENCE_SPLITTER = re.compile( r""" ( # A sentence ends at one of two sequences: - [.!?\u203C\u203D\u2047\u2048\u2049\u3002\uFE52\uFE57\uFF01\uFF0E\uFF1F\uFF61] # Either, a sequence starting with a sentence terminal, + [.!?\u2026\u203C\u203D\u2047\u2048\u2049\u22EF\u3002\uFE52\uFE57\uFF01\uFF0E\uFF1F\uFF61] # Either, a sequence starting with a sentence terminal, [\'\u2019\"\u201D]? # an optional right quote, [\]\)]* # optional closing brackets and \s+ # a sequence of required spaces.