mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
Conflicts: blitbuffer.c unireader.lua
This commit is contained in:
@@ -1,21 +1,16 @@
|
||||
require "unireader"
|
||||
|
||||
DJVUReader = UniReader:new{
|
||||
newDC = function()
|
||||
print("djvu.newDC")
|
||||
return djvu.newDC()
|
||||
end,
|
||||
}
|
||||
|
||||
function DJVUReader:init()
|
||||
self.nulldc = self.newDC()
|
||||
end
|
||||
DJVUReader = UniReader:new{}
|
||||
|
||||
-- open a DJVU file and its settings store
|
||||
-- DJVU does not support password yet
|
||||
function DJVUReader:open(filename)
|
||||
self.doc = djvu.openDocument(filename)
|
||||
return self:loadSettings(filename)
|
||||
local ok
|
||||
ok, self.doc = pcall(djvu.openDocument, filename)
|
||||
if not ok then
|
||||
return ok, self.doc -- this will be the error message instead
|
||||
end
|
||||
return ok
|
||||
end
|
||||
|
||||
function DJVUReader:_isWordInScreenRange(w)
|
||||
|
||||
Reference in New Issue
Block a user