From f444e0d56fe836db978af830b0aaef04a75fe190 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Dec 2020 07:37:43 +0530 Subject: [PATCH] TTS: Also include punctuation in words. This is needed for contractions such as don't --- src/pyj/read_book/find.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/find.pyj b/src/pyj/read_book/find.pyj index e868a4aff5..0acf5dfdd1 100644 --- a/src/pyj/read_book/find.pyj +++ b/src/pyj/read_book/find.pyj @@ -45,7 +45,7 @@ def index_for_node(node, node_list): def tts_word_regex(): - return /[\p{Letter}\p{Mark}\p{Number}]{1,50}/gu + return /[\p{Letter}\p{Mark}\p{Number}\p{Punctuation}]{1,50}/gu def tts_data(text_node, offset):