mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-25 00:02:32 -04:00
E-book viewer: Read aloud: Fix soft hyphens causing read aloud words to be broken up. Fixes #1925988 [Read aloud with soft hyphens read wrong](https://bugs.launchpad.net/calibre/+bug/1925988)
This commit is contained in:
@@ -45,7 +45,8 @@ def index_for_node(node, node_list):
|
||||
|
||||
|
||||
def tts_word_regex():
|
||||
return /[\p{Letter}\p{Mark}\p{Number}\p{Punctuation}]{1,50}/gu
|
||||
# Cf is Other, formatting, including soft hyphens zero-width joiners, etc
|
||||
return /[\p{Letter}\p{Mark}\p{Number}\p{Punctuation}\p{Cf}]{1,50}/gu
|
||||
|
||||
|
||||
def tts_data(text_node, offset):
|
||||
|
||||
Reference in New Issue
Block a user