View Single Post
Old 09-11-2016, 11:55 PM   #3
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
If the book shows "KOBO EPUB" in the device's library listing it is a KePub. If it just shows "EPUB" then it is an ePub.

For sideloaded KePubs the KePub full-screen text cut-off problems can be fixed without a patch if you set up the KoboTouchExtended driver correctly, but I don't know about the KePub Output plugin.

There are two things that need to be done to the KePub to fix the problems:

1. A suitable wrapper div needs to be added to each html file. This is done automatically by the KoboTouchExtended driver, but I don't know if the KePub Output plugin does this.

2. The KePub stylesheet needs to be modified to add:

body { margin: 0 !important; padding: 0 !important; }
div#book-columns { padding: 0 0.2em !important; }

The KoboTouchExtended driver can be set up to add those to KePub stylesheets automatically, but it doesn't add them by default. I don't know if the KePub Output plugin can do this.

(The above applies to horizontal languages, use div#book-columns { padding 0.2em 0 !important; } for vertical languages such as Japanese.)

Edit: For details of how to set up the KoboTouchExtended driver to add the above CSS to KePubs automatically, see https://github.com/jgoguen/calibre-k...-arbitrary-css

Last edited by GeoffR; 09-12-2016 at 12:12 AM. Reason: link to KoboTouchExtended instructions for adding CSS
GeoffR is offline   Reply With Quote