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:
poire-z
2020-02-24 15:25:08 +01:00
parent 7d7781b768
commit 5a4f5b4d59
5 changed files with 276 additions and 8 deletions

View File

@@ -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