mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Other minor frontend.util cleanups (#5629)
* Resync fixUtf8 w/ upstream * Fix lastIndexOf desc * Drop unichar usage, it's a crappier unicodeCodepointToUtf8 ;).
This commit is contained in:
@@ -567,7 +567,7 @@ function ReaderDictionary:cleanSelection(text)
|
||||
-- with plain ascii quote (for french words like "aujourd’hui")
|
||||
text = text:gsub("\xE2\x80\x99", "'") -- U+2019 (right single quotation mark)
|
||||
-- Strip punctuation characters around selection
|
||||
text = util.stripePunctuations(text)
|
||||
text = util.stripPunctuation(text)
|
||||
-- Strip some common english grammatical construct
|
||||
text = text:gsub("'s$", '') -- english possessive
|
||||
-- Strip some common french grammatical constructs
|
||||
|
||||
Reference in New Issue
Block a user