mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
handle djvu getPageText API changes.
This commit is contained in:
13
settings.lua
13
settings.lua
@@ -1,5 +1,5 @@
|
||||
DocSettings = {
|
||||
}
|
||||
}
|
||||
|
||||
function DocToHistory(fullname)
|
||||
local i,j = 1,0
|
||||
@@ -47,13 +47,22 @@ function DocSettings:open(docfile)
|
||||
stored.jump_history = stored.jumpstack
|
||||
stored.jumpstack = nil
|
||||
if not stored.jump_history.cur then
|
||||
stored.jump_history.cur = 1
|
||||
-- set up new history head
|
||||
stored.jump_history.cur = #stored.jump_history + 1
|
||||
end
|
||||
end
|
||||
-- update variable name
|
||||
if stored.globalzoommode ~= nil then
|
||||
stored.globalzoom_mode = stored.globalzoommode
|
||||
stored.globalzoommode = nil
|
||||
end
|
||||
|
||||
if stored.highlight ~= nil then
|
||||
local file_type = string.lower(string.match(docfile, ".+%.([^.]+)"))
|
||||
if file_type == "djvu" then
|
||||
stored.highlight.to_fix = {"djvu invert y axle"}
|
||||
end
|
||||
end
|
||||
stored.version = 2012.05
|
||||
debug("upgraded", stored)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user