mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
book reading statistics for djvu documents
This commit is contained in:
@@ -41,6 +41,14 @@ function DjvuDocument:init()
|
||||
self:_readMetadata()
|
||||
end
|
||||
|
||||
function DjvuDocument:getProps()
|
||||
local _, _, docname = self.file:find(".*/(.*)")
|
||||
docname = docname or self.file
|
||||
return {
|
||||
title = docname:match("(.*)%.")
|
||||
}
|
||||
end
|
||||
|
||||
function DjvuDocument:getPageTextBoxes(pageno)
|
||||
return self._document:getPageText(pageno)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user