View Single Post
Old 09-12-2013, 08:53 AM   #49
Mrs_Often
Wizard
Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.Mrs_Often ought to be getting tired of karma fortunes by now.
 
Mrs_Often's Avatar
 
Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
Quote:
Originally Posted by met67 View Post
Hi,

I've spent some (interesting...) time strace-ing nickel and found that, on every kepub opening, it searches for this file:
Code:
/mnt/onboard/.kobo/kepub/kepub-book.css
So I tried to create such a file with a single line like this:
Code:
* { -webkit-hyphens: auto; }
and voilą, every book I open gets hyphenated!

This could also used to force other properties like widows/orphans, margin, ecc. ecc.
Quote:
Originally Posted by Anak View Post
kepub-book.css seems to be epub3 complient. It accepts many css3 properties (if implemented). Including @rules like
Code:
@-epubx-viewport {width:610px !important;height:810px !important;}

Kepubs with an empty line after each paragraph can be fixed by adding this to the stylesheet.
Code:
p {padding-bottom:0 !important;}
Made me soooo happy!!
Mrs_Often is offline   Reply With Quote