[优化] 让本地TTS对图片标识符不发音 (@Luoyacheng) #561

This commit is contained in:
HapeLee
2026-01-18 04:59:32 +08:00
parent 04d51fa3ad
commit d28d3ed226
2 changed files with 2 additions and 2 deletions
@@ -186,7 +186,7 @@ data class TextChapter(
val stringBuilder = StringBuilder()
if (pages.isNotEmpty()) {
for (index in pageIndex..min(pageEndIndex, pages.lastIndex)) {
stringBuilder.append(pages[index].text)
stringBuilder.append(pages[index].text.replace(Regex("[袮꧁]"), " "))
if (pageSplit && !stringBuilder.endsWith("\n")) {
stringBuilder.append("\n")
}