Thread: Aura Calibre and CSS
View Single Post
Old 01-11-2016, 05:05 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
Quote:
Originally Posted by Farid View Post
I've had my Aura for a while now (about 2 years) and usually buy my ebooks from amazon, which I then pass through calibre to get them transformed as epub and thus readable by my Aura.

Yet, most of the time (to not say pretty much always) I need to edit the stylesheet.css file in the produced epub, and add the style
Code:
line-height: 1.2;
in the .calibre rule to avoid huge blank space between lines.
If adding line-height:1.2; to .calibre reduces the line spacing, then either the book had a much larger line-height set in .calibre already, or you have the line-spacing adjustment slider on your Aura set to a large spacing.

In either case I think you would be better to remove any existing line-height setting from .calibre and use your line spacing adjutment slider to set the line spacing from the device, rather than setting a fixed line spacing in the book.

(Having line-height set in .calibre will prevent the line spacing adjustment slider from working in the ePub reader, but should have no effect at all in the KePub reader.)

Edit: As for Calibre convesion settings, make sure the minimum line height is not set larger than 120%, and I would disable the font size rescaling which can cause unexpected effects in combination with line-height set in body if the line-height has em units. But I haven't found any setting in Calibre that gives perfect results, it is always necessary to fix up the various problems caused by conversion manually, even when converting ePub to ePub.

Last edited by GeoffR; 01-11-2016 at 05:28 PM. Reason: Calibre convesion settings
GeoffR is offline   Reply With Quote