Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2016, 03:14 PM   #1
Farid
Junior Member
Farid began at the beginning.
 
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;
in the .calibre rule to avoid huge blank space between lines.

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.
Farid is offline   Reply With Quote
Old 01-11-2016, 03:31 PM   #2
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
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.
dickloraine is offline   Reply With Quote
Advert
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
Old 01-12-2016, 02:30 PM   #4
Farid
Junior Member
Farid began at the beginning.
 
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 (well at least not systematically)

Thanks again !
Farid is offline   Reply With Quote
Old 01-12-2016, 03:05 PM   #5
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
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.
One thing I forgot is that there was a problem with the way the line spacing was set for ePubs that was fixed in firmware 3.16.0, so if you are using firmware older than 3.16.0 then the problems you see might be related to that.

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.
GeoffR is offline   Reply With Quote
Advert
Old 01-12-2016, 03:20 PM   #6
Farid
Junior Member
Farid began at the beginning.
 
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.
Farid is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:04 AM.


MobileRead.com is a privately owned, operated and funded community.