Collections: search in book content (#13139)

This commit is contained in:
hius07
2025-02-09 12:34:56 +02:00
committed by GitHub
parent 68cfd96203
commit aa1e96f7d7
2 changed files with 87 additions and 20 deletions

View File

@@ -77,7 +77,7 @@ local CreDocument = Document:extend{
last_linear_page = nil,
}
function CreDocument:cacheInit()
function CreDocument.cacheInit()
-- remove legacy cr3cache directory
if lfs.attributes("./cr3cache", "mode") == "directory" then
os.execute("rm -r ./cr3cache")
@@ -112,7 +112,7 @@ function CreDocument:engineInit()
end)
-- initialize cache
self:cacheInit()
CreDocument.cacheInit()
-- initialize hyph dictionaries
cre.initHyphDict("./data/hyph/")