mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-10 06:18:02 -05:00
...
This commit is contained in:
@@ -860,7 +860,7 @@ def get_sentences(text, lang, tts_engine):
|
||||
cleaned = re.sub(r'[^\p{L}\p{N} ]+', '', s)
|
||||
if not any(ch.isalnum() for ch in cleaned):
|
||||
continue
|
||||
sentences.append(text_part.strip())
|
||||
sentences.append(f'{text_part.strip()}-')
|
||||
return sentences
|
||||
except Exception as e:
|
||||
error = f'get_sentences() error: {e}'
|
||||
|
||||
Reference in New Issue
Block a user