Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ruby alignment, fix one possible crash, ignore empty non-linear flows #565

Merged
merged 4 commits into from
May 20, 2024

Conversation

poire-z
Copy link
Contributor

@poire-z poire-z commented May 19, 2024

html5.css: really ensure ruby centering

Should allow closing koreader/koreader#11771.

getRenderedWidths(): fix possible crash with 0-width images

Coding error: images with width=0 in tables/floats would cause an infinite loop and a stack overflow.
Should allow closing koreader/koreader#11680

Page splitting: ignore empty non-linear flows

If a non-linear flow was created, but we never got any "line" associated to it, just ignore it and reset the counter.
(Otherwise, frontend would get holes/nil in the array of flows, and would get confused.)
Fix issue noticed at koreader/koreader#8623 (comment).

LvDocView header: allow overriding "page/total %"

So frontend can build this bit of text and propagate it to crengine for it to display in place of its own computed text.
Will allow KOReader (via ReaderCoptListener) to display something similar to what it displays in the footer (which is different from crengine's own text when using hidden flow or reference page numbers).


This change is Reviewable

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks simple enough. :-)

Coding error: images with width=0 in tables/floats would
cause an infinite loop and a stack overflow.
If a non-linear flow was created, but we never got
any "line" associated to it, just ignore it and reset
the counter.
(Otherwise, frontend would get holes/nil in the array
of flows, and would get confused.)
So frontend can build this bit of text and propagate
it to crengine for it to display in place of its own
computed text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants