mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump crengine, migrate books to normalized xpointers
Enable new rendering feature COMPLETE_INCOMPLETE_TABLES on all enhanced rendering mode, but have it disabled for earlier cre_dom_version. Also increase default_cre_storage_size_factor from 20 to 40.
This commit is contained in:
@@ -132,7 +132,7 @@ function DocSettings:open(docfile)
|
||||
return l[2] > r[2]
|
||||
end
|
||||
end)
|
||||
local ok, stored
|
||||
local ok, stored, filepath
|
||||
for _, k in pairs(candidates) do
|
||||
-- Ignore empty files
|
||||
if lfs.attributes(k[1], "size") > 0 then
|
||||
@@ -140,6 +140,7 @@ function DocSettings:open(docfile)
|
||||
-- Ignore the empty table.
|
||||
if ok and next(stored) ~= nil then
|
||||
logger.dbg("data is read from ", k[1])
|
||||
filepath = k[1]
|
||||
break
|
||||
end
|
||||
end
|
||||
@@ -149,6 +150,7 @@ function DocSettings:open(docfile)
|
||||
if ok and stored then
|
||||
new.data = stored
|
||||
new.candidates = candidates
|
||||
new.filepath = filepath
|
||||
else
|
||||
new.data = {}
|
||||
end
|
||||
@@ -236,6 +238,10 @@ function DocSettings:close()
|
||||
self:flush()
|
||||
end
|
||||
|
||||
function DocSettings:getFilePath()
|
||||
return self.filepath
|
||||
end
|
||||
|
||||
--- Purges (removes) sidecar directory.
|
||||
function DocSettings:purge()
|
||||
if self.history_file then
|
||||
|
||||
Reference in New Issue
Block a user