mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
FileManager: allow case sensitive file search (#7956)
Bump base for cre.cpp cleanup and utf8proc FFI. Add a checkbutton for case sensitive search in FileBrowser, and use Utf8Proc.lowercase() for case insensitive search. Also use it in ReaderUserHyph as a replacement for crengine getLowercasedWord().
This commit is contained in:
@@ -980,25 +980,6 @@ function CreDocument:setTextHyphenationSoftHyphensOnly(toggle)
|
||||
self._document:setStringProperty("crengine.textlang.hyphenation.soft.hyphens.only", toggle and 1 or 0)
|
||||
end
|
||||
|
||||
function CreDocument:setUserHyphenationDict(dict, reload)
|
||||
logger.dbg("CreDocument: set textlang hyphenation dict", dict or "none")
|
||||
return self._document:setUserHyphenationDict(dict or "", reload or false)
|
||||
end
|
||||
|
||||
function CreDocument:getHyphenationForWord(word)
|
||||
if word then
|
||||
return self._document:getHyphenationForWord(word)
|
||||
end
|
||||
return word
|
||||
end
|
||||
|
||||
function CreDocument:getLowercasedWord(word)
|
||||
if word then
|
||||
return self._document:getLowercasedWord(word)
|
||||
end
|
||||
return word
|
||||
end
|
||||
|
||||
function CreDocument:setTextHyphenationForceAlgorithmic(toggle)
|
||||
logger.dbg("CreDocument: set textlang hyphenation force algorithmic", toggle)
|
||||
self._document:setStringProperty("crengine.textlang.hyphenation.force.algorithmic", toggle and 1 or 0)
|
||||
|
||||
Reference in New Issue
Block a user