mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump crengine: text typography by language (#6069)
Includes: - Fix a few clang-tidy warnings - Add support for <img src="data:image/png;base64,...> - XML parsing: add more HTML5 named entities, optimize search - Text: fix standalone BR not making an empty line - Fix BR with "display: block" not making an empty line - Fix hyphens from soft-hyphens not part of highlighted segments - Use libunibreak for line breaking - Adds TextLangMan for text typography by language Tweak ReaderHyphenation to work with the new TextLangMan (even if it will be replaced soon by ReaderTypography).
This commit is contained in:
@@ -17,9 +17,9 @@ describe("ReaderLink module", function()
|
||||
local readerui = ReaderUI:new{
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 320, y = 120}})
|
||||
assert.is.same(36, readerui.rolling.current_page)
|
||||
readerui.rolling:onGotoPage(5)
|
||||
readerui.link:onTap(nil, {pos = {x = 320, y = 190}})
|
||||
assert.is.same(37, readerui.rolling.current_page)
|
||||
end)
|
||||
|
||||
it("should jump to links in pdf page mode", function()
|
||||
@@ -56,11 +56,11 @@ describe("ReaderLink module", function()
|
||||
local readerui = ReaderUI:new{
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.rolling:onGotoPage(4)
|
||||
readerui.link:onTap(nil, {pos = {x = 320, y = 120}})
|
||||
assert.is.same(36, readerui.rolling.current_page)
|
||||
readerui.rolling:onGotoPage(5)
|
||||
readerui.link:onTap(nil, {pos = {x = 320, y = 190}})
|
||||
assert.is.same(37, readerui.rolling.current_page)
|
||||
readerui.link:onGoBackLink()
|
||||
assert.is.same(4, readerui.rolling.current_page)
|
||||
assert.is.same(5, readerui.rolling.current_page)
|
||||
end)
|
||||
|
||||
it("should be able to go back after link jump in pdf page mode", function()
|
||||
|
||||
Reference in New Issue
Block a user