From c80acf0aed87abfb956a111342e1e34a0b1bca72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Dec 2020 07:23:55 +0530 Subject: [PATCH] Limit max word size for TTS --- 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 edd35adb56..e868a4aff5 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}]+/gu + return /[\p{Letter}\p{Mark}\p{Number}]{1,50}/gu def tts_data(text_node, offset):