From cd49bf335ad9e1c325eafe7d7901a9ddb330fe96 Mon Sep 17 00:00:00 2001 From: David <97603719+Commodore64user@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:20:22 +0000 Subject: [PATCH] [ReaderDictionary] clean stress marks from selection for dict search (#14856) --- frontend/apps/reader/modules/readerdictionary.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/apps/reader/modules/readerdictionary.lua b/frontend/apps/reader/modules/readerdictionary.lua index c0a63bc6c..519c7e8e4 100644 --- a/frontend/apps/reader/modules/readerdictionary.lua +++ b/frontend/apps/reader/modules/readerdictionary.lua @@ -858,6 +858,8 @@ function ReaderDictionary:cleanSelection(text, is_sane) text = text:gsub("·", "") -- interpunct text = text:gsub("|", "") -- pipe text = text:gsub("↑", "") -- and up arrow, used in some dictionaries to indicate related words + text = text:gsub("ˈ", "") -- primary stress mark, used in phonetic transcriptions to indicate a stressed syllable + text = text:gsub("ˌ", "") -- secondary stress mark, used in phonetic transcriptions to indicate a weaker stressed syllable -- Strip some common english grammatical construct text = text:gsub("'s$", '') -- english possessive -- Strip some common french grammatical constructs