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

CSS: adds support for 'orphans:' and 'widows:' properties #253

Merged
merged 2 commits into from Jan 17, 2019

Conversation

poire-z
Copy link
Contributor

@poire-z poire-z commented Jan 17, 2019

Because it was easy to do and fits well into the page splitting model.
Discussed in koreader/koreader#4484.
If we later decide the previous behaviour (of allowing widow and orphan lines) is to be enforced, we can just get it back by adding to epub.css:
* { orphans: 1 !important; widows: 1 !important; or
* { orphans: inherit !important; widows: inherit !important; }
Or we'll just have style tweaks to play with, and one with these to "Ignore publisher orphans and widows specifications".

Also includes Harfbuzz light fixe by @virxkane provided in #251 (comment)

(I also forgot to bump FORMATTING_VERSION_ID in the previous commits, so this one will do that with a bumpier bump of CACHE_FILE_FORMAT_VERSION.)

virxkane and others added 2 commits January 17, 2019 15:49
Glyph offset was applied twice.

(cherry picked from commit b844a7af62d116d51757b55bf21b53dbfcc7a874)
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.

lgtm (simple indeed :-) )

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

3 participants