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:
poire-z
2018-06-14 00:46:52 +02:00
committed by GitHub
parent 901a1e46da
commit c3a938aad6
6 changed files with 85 additions and 5 deletions

View File

@@ -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)