mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Adds ReaderPageMap, to optionally show source pages numbers
bump crengine: support for EPUB3 nav toc and page maps Includes: - Fix lvRect:isRectInside(rc) with 0-width or 0-height rect - TOC: parse EPUB3 nav toc, fallback to spine when no toc - Parse and cache various hardcopy page list maps - epub.css: hide EPUB3 <span epub:type="pagebreak"> content cre.cpp: add a few PageMap helper functions. Adds ReaderPageMap which will add a new menu (under TOC and Bookmarks) that will allow: - to list source page numbers (like a TOC) - to show visible page labels in the right margin - to use these source page numbers in the footer, the TOC, the GoTo and SkimTo widgets, and to use the source page number in the standard bookmark and highlight initial text.
This commit is contained in:
@@ -38,6 +38,7 @@ local ReaderHyphenation = require("apps/reader/modules/readerhyphenation")
|
||||
local ReaderKoptListener = require("apps/reader/modules/readerkoptlistener")
|
||||
local ReaderLink = require("apps/reader/modules/readerlink")
|
||||
local ReaderMenu = require("apps/reader/modules/readermenu")
|
||||
local ReaderPageMap = require("apps/reader/modules/readerpagemap")
|
||||
local ReaderPanning = require("apps/reader/modules/readerpanning")
|
||||
local ReaderRotation = require("apps/reader/modules/readerrotation")
|
||||
local ReaderPaging = require("apps/reader/modules/readerpaging")
|
||||
@@ -319,6 +320,12 @@ function ReaderUI:init()
|
||||
view = self.view,
|
||||
ui = self
|
||||
})
|
||||
-- pagemap controller
|
||||
self:registerModule("pagemap", ReaderPageMap:new{
|
||||
dialog = self.dialog,
|
||||
view = self.view,
|
||||
ui = self
|
||||
})
|
||||
self.disable_double_tap = G_reader_settings:readSetting("disable_double_tap") ~= false
|
||||
end
|
||||
-- back location stack
|
||||
|
||||
Reference in New Issue
Block a user