mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-20 22:12:37 -04:00
Limit max word size for TTS
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user