mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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:
parent
5ce4532f2a
commit
2ba9e9e8d1
@ -45,7 +45,8 @@ def index_for_node(node, node_list):
|
|||||||
|
|
||||||
|
|
||||||
def tts_word_regex():
|
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):
|
def tts_data(text_node, offset):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user