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:
@@ -390,6 +390,9 @@ function ReaderToc:onShowToc()
|
||||
if v.orig_page then -- bogus page fixed: show original page number
|
||||
v.mandatory = T("(%1) %2", v.orig_page, v.page)
|
||||
end
|
||||
if self.ui.pagemap and self.ui.pagemap:wantsPageLabels() then
|
||||
v.mandatory = self.ui.pagemap:getXPointerPageLabel(v.xpointer)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user