mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump crengine: alternative TOC, no page break on borders (#4011)
Includes: - Avoid page break between a node and its borders - Allow building an alternative TOC from document headings On CRE documents, allows toggling between original TOC and an alternative TOC with long-press on the "Table of content" menu item. Also update the Wikipedia stylesheet to further avoid page-breaks between images and their caption, so a full bordered wikipedia thumbnail is always full on a single page.
This commit is contained in:
@@ -611,6 +611,18 @@ function CreDocument:getCacheFilePath()
|
||||
return self._document:getCacheFilePath()
|
||||
end
|
||||
|
||||
function CreDocument:canHaveAlternativeToc()
|
||||
return true
|
||||
end
|
||||
|
||||
function CreDocument:isTocAlternativeToc()
|
||||
return self._document:isTocAlternativeToc()
|
||||
end
|
||||
|
||||
function CreDocument:buildAlternativeToc()
|
||||
self._document:buildAlternativeToc()
|
||||
end
|
||||
|
||||
function CreDocument:register(registry)
|
||||
registry:addProvider("azw", "application/vnd.amazon.mobi8-ebook", self, 90)
|
||||
registry:addProvider("chm", "application/vnd.ms-htmlhelp", self, 90)
|
||||
|
||||
Reference in New Issue
Block a user