mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Add Ellipsis to SENTENCE_SPLITTER (#1044)
Ellipsis is used to terminal sentences in Chinese and used a lot at end of title.
This commit is contained in:
parent
f4cf88898b
commit
23bd6b857a
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class Entry:
|
||||||
SENTENCE_SPLITTER = re.compile(
|
SENTENCE_SPLITTER = re.compile(
|
||||||
r"""
|
r"""
|
||||||
( # A sentence ends at one of two sequences:
|
( # 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,
|
[\'\u2019\"\u201D]? # an optional right quote,
|
||||||
[\]\)]* # optional closing brackets and
|
[\]\)]* # optional closing brackets and
|
||||||
\s+ # a sequence of required spaces.
|
\s+ # a sequence of required spaces.
|
||||||
|
|
Loading…
Add table
Reference in a new issue