bump base: crengine, freetype, libjpeg-turbo (#3928)

Includes:
- [build] FreeType: bump to 2.9.1
- [build] bump libjpeg-turbo to 1.5.3
- bump crengine:
 - Fix CSS selector specificity computation
 - [fix] crengine/src/lvfntman.cpp: improve letter_spacing limit
 - [fix] crengine/src/lvxml.cpp: add all empty HTML elements
 - html head styles: fix styles not being applied
 - Hyphenation: increase MAX_PATTERN_SIZE from 16 to 35
 - html documents: proper handling of <BR> tags
 - Allows requesting old (broken) XML/DOM building code
- cre.cpp: setStyleSheet(): accept filepath and/or css text,
  and added getIntProperty() and getStringProperty()

credocument/readerrolling: request older XML/DOM building code
for books previously opened, to not lose bookmarks and highlights

(unit tests update because of new handling of consecutive BR via css
pushed links down in the book)
This commit is contained in:
poire-z
2018-05-05 00:38:50 +02:00
committed by GitHub
parent 4bf4578d17
commit 8b2253b3e9
4 changed files with 46 additions and 8 deletions

View File

@@ -16,9 +16,9 @@ describe("ReaderLink module", function()
local readerui = ReaderUI:new{
document = DocumentRegistry:openDocument(sample_epub),
}
readerui.rolling:onGotoPage(4)
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
assert.is.same(36, readerui.rolling.current_page)
readerui.rolling:onGotoPage(6)
readerui.link:onTap(nil, {pos = {x = 336, y = 166}})
assert.is.same(40, readerui.rolling.current_page)
end)
it("should jump to links in pdf page mode", function()
@@ -53,11 +53,11 @@ describe("ReaderLink module", function()
local readerui = ReaderUI:new{
document = DocumentRegistry:openDocument(sample_epub),
}
readerui.rolling:onGotoPage(4)
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
assert.is.same(36, readerui.rolling.current_page)
readerui.rolling:onGotoPage(6)
readerui.link:onTap(nil, {pos = {x = 336, y = 166}})
assert.is.same(40, readerui.rolling.current_page)
readerui.link:onGoBackLink()
assert.is.same(4, readerui.rolling.current_page)
assert.is.same(6, readerui.rolling.current_page)
end)
it("should be able to go back after link jump in pdf page mode", function()