![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2016
Location: Paris
Device: Kobo Aura
|
Calibre and CSS
Hi all,
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; I assume I missed a silly configuration setup in calibre to do that automatically, without having to edit the pub itself ? Is anyone aware of such configuration parameter ? Thanks in advance. |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544528
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Since you are converting, there is a check-box to remove the line-height css. That way you can adjust the line height with the setting on the aura.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2016
Location: Paris
Device: Kobo Aura
|
Thanks a lot !
![]() Checking the checkbox "Disable font size rescaling" in the convert popup did the trick. All the other settings there were already at their default values, and the line spacing in my kobo was already at the minimum. No more css editing for me ![]() Thanks again ! |
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
The problem was that the default line-height set by the line spacing adjustment slider was set in em units, which meant that even if you removed all line-height styles from the stylesheet, font-size rescaling could still affect the line spacing. In firmware 3.16.0 the way the line spacing is set was changed to use a unitess line height, and so the font size rescaling should no longer cause a problem unless the publisher has tried to force a fixed line-height with em/% units. There is a little more information in this post including some screenshots that show some of the effects of the problem. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2016
Location: Paris
Device: Kobo Aura
|
I've had that issue since I bought my aura about 2 years ago which had at that time the firmware 2.8.x i beleive.
I've always updated my firmware as soon as it was available via the kobo application (currently using version 3.19.5761). I guess the issue you are referring to in the pre 3.16.0 versions didn't help, but using the checkbox you've indicated in your previous message did definitively resolve the issue when converting from amazon azw3 format to epubs. Thanks again. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Calibre added CSS | bibahbuzemann | Sony Reader | 5 | 08-10-2014 04:48 PM |
iBook css and Calibre | At_Libitum | Calibre | 0 | 10-21-2013 08:05 AM |
calibre y css | titanlov | Calibre | 1 | 12-26-2011 11:00 PM |
Calibre Settings and CSS | elemenoP | Calibre | 3 | 12-20-2010 11:23 AM |