bump crengine: new HTML parser, libRu and FB2 tweaks (#6560)

Includes:
- Revert "FB2: don't draw cover in scroll mode"
- (Upstream) FB2: fix coverpage drawing in scroll mode
- FB2 footnotes: only merge run-in when next is erm_final
- fb2.css: use OTF tabular-nums for footnote numbers
- Text: ignore ascii and unicode control chars
- Fix HR positionning when floats involved
- writeNodeEx(): minor tweaks
- OnTagClose(): add self_closing_tag parameter
- HTML format detection: accept HTML5 doctype
- HTML parser: rework Lib.ru specific handling
- HTML parser: new more conforming implementation
- HTML parser: ensure foster parenting inside tables

Also includes:
- SDL: don't bypass X11 WM compositor
This commit is contained in:
poire-z
2020-08-25 15:45:05 +02:00
committed by GitHub
parent 66e8087c66
commit 8d99523388
4 changed files with 19 additions and 1 deletions

View File

@@ -1203,6 +1203,12 @@ function ReaderRolling:checkXPointersAndProposeDOMVersionUpgrade()
-- Set latest DOM version, to be used at next load
local latest_dom_version = self.ui.document:getLatestDomVersion()
-- For some formats, DOM version 20200824 uses a new HTML parser that may build
-- a different DOM tree. So, migrate these to a lower version
local doc_format = self.ui.document:getDocumentFormat()
if doc_format == "HTML" or doc_format == "CHM" or doc_format == "PDB" then
latest_dom_version = self.ui.document:getDomVersionWithNormalizedXPointers()
end
self.ui.doc_settings:saveSetting("cre_dom_version", latest_dom_version)
logger.info(" cre_dom_version updated to", latest_dom_version)