Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-26-2013, 09:15 AM   #1
John F
Wizard
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 2,368
Karma: 8581888
Join Date: Feb 2009
Device: Kobo Glo
Calibre and line spacing

I got a little lost in the Kobo Rocks thread and the line spacing discussion, so I would like to know...

Can I use calibre to get tighter line spacing, and still fine tune the line spacing thru the Kobo GUI?

What would I need to set on the following screen.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	147
Size:	161.4 KB
ID:	104986  
John F is offline   Reply With Quote
Old 04-26-2013, 12:52 PM   #2
John F
Wizard
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 2,368
Karma: 8581888
Join Date: Feb 2009
Device: Kobo Glo
And this would be in regards to a Touch, Glow and Aura.
John F is offline   Reply With Quote
Old 04-26-2013, 01:01 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,822
Karma: 18755150
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Try setting minimum line height to 100% and see what happens.
JSWolf is offline   Reply With Quote
Old 04-26-2013, 05:28 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 2,318
Karma: 6142827
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura HD, Glo, Nexus 7 HD, iPad Air
Quote:
Originally Posted by John F View Post
I got a little lost in the Kobo Rocks thread and the line spacing discussion, so I would like to know...

Can I use calibre to get tighter line spacing, and still fine tune the line spacing thru the Kobo GUI?

What would I need to set on the following screen.

Thanks.
Not absolutely certain but I think you need to attach the line spacing to a <p> or <div> or other lower level tag and not to the body tag. For an .epub file, the line-height in the body will have no effect. If you use the lower level tags, the Kobo UI will not let you modify the line spacing.

Regards,
David

Last edited by DNSB; 04-26-2013 at 08:03 PM.
DNSB is offline   Reply With Quote
Old 04-26-2013, 05:47 PM   #5
geormes
Zealot
geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.
 
geormes's Avatar
 
Posts: 148
Karma: 216188
Join Date: Jul 2010
Device: Nook Classic, Kobo Touch, Nook Simple Touch, Kobo Aura
You could try in Calibre:
Convert books
Look & Feel
Filter Style Information
then in other CSS properties add line-height.
geormes is offline   Reply With Quote
Old 04-26-2013, 11:00 PM   #6
John F
Wizard
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 2,368
Karma: 8581888
Join Date: Feb 2009
Device: Kobo Glo
Quote:
Originally Posted by geormes View Post
You could try in Calibre:
Convert books
Look & Feel
Filter Style Information
then in other CSS properties add line-height.
I do do that sometimes (it allows me to change the line spacing in the GUI), but it doesn't get me tighter line spacing.

Thanks.

Last edited by John F; 04-26-2013 at 11:04 PM.
John F is offline   Reply With Quote
Old 04-26-2013, 11:04 PM   #7
John F
Wizard
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 2,368
Karma: 8581888
Join Date: Feb 2009
Device: Kobo Glo
Quote:
Originally Posted by DNSB View Post
Not absolutely certain but I think you need to attach the line spacing to a <p> or <div> or other lower level tag and not to the body tag. For an .epub file, the line-height in the body will have no effect. If you use the lower level tags, the Kobo UI will not let you modify the line spacing.

Regards,
David
So your saying that i can have fixed tighter line spacing OR changing it through the GUI, but I can't have both?

Thanks.
John F is offline   Reply With Quote
Old 04-26-2013, 11:12 PM   #8
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 2,384
Karma: 2368269
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350: 3 Silver, 2 Blue!; Kobo Glo
You can force the Kobo to have tighter line spacing by editing the stylesheet.css file for the epub. 120% or 1.2em works well for me. Once it's within the epub though, the slider to adjust line spacing from the Kobo GUI has no effect, which isn't really a problem if you've set the css correctly to your liking.
Ripplinger is online now   Reply With Quote
Old 04-27-2013, 06:52 AM   #9
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 972
Karma: 2193020
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
I use Sigil to set the line-height in the stylesheet, usually on the p tag, e.g.,

Code:
p
{
    line-height: 1.2em;
}
If there is already a p tag in the stylesheet then you need to add it to that. You can also be more selective--perhaps you do not want to set the line-height for all paragraphs, but only for some styles?

Also, some epubs do not use p tags for paragraphs, they may use divs or spans. This is annoying, but with Sigil you can easily check for this.

Last edited by ShellShock; 04-27-2013 at 06:56 AM.
ShellShock is online now   Reply With Quote
Old 04-27-2013, 08:08 AM   #10
John F
Wizard
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 2,368
Karma: 8581888
Join Date: Feb 2009
Device: Kobo Glo
I was hoping that someone had already done this and would be able to give a known answer (that could be entered on the window I captured in my first post.)

Everyone, thank you for the suggestions, but ...
Quote:
Originally Posted by DNSB View Post
Not absolutely certain but I think you need to attach the line spacing to a <p> or <div> or other lower level tag and not to the body tag. For an .epub file, the line-height in the body will have no effect. If you use the lower level tags, the Kobo UI will not let you modify the line spacing.

Regards,
David
Quote:
Originally Posted by Ripplinger View Post
You can force the Kobo to have tighter line spacing by editing the stylesheet.css file for the epub. 120% or 1.2em works well for me. Once it's within the epub though, the slider to adjust line spacing from the Kobo GUI has no effect, which isn't really a problem if you've set the css correctly to your liking.
Quote:
Originally Posted by ShellShock View Post
I use Sigil to set the line-height in the stylesheet, usually on the p tag, e.g.,

Code:
p
{
    line-height: 1.2em;
}
If there is already a p tag in the stylesheet then you need to add it to that. You can also be more selective--perhaps you do not want to set the line-height for all paragraphs, but only for some styles?

Also, some epubs do not use p tags for paragraphs, they may use divs or spans. This is annoying, but with Sigil you can easily check for this.
Some of these suggestions are as helpful as telling me I can modify the spacing by editing the EPub.

I'm currently using a modified font, so I can get closer line spacing, but I would like to use the internal fonts (once Kobo fixes the italics bug(s).)

Thanks.
John F is offline   Reply With Quote
Old 04-27-2013, 08:33 AM   #11
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 972
Karma: 2193020
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
You can try the code I posted above in the Calibre Extra CSS field, see if it works. It may not, especially if there is already a p tag in the stylesheet.

I emailed Kobo support about the problem with italics displaying as bold in epubs for some of their fonts, e.g. Kobo Nickel. Their response was essentially I should use kepub instead, as this is their main platform, and the fonts work OK in kepubs. They do not seem interested in fixing the fonts for epubs.

Last edited by ShellShock; 04-27-2013 at 08:36 AM.
ShellShock is online now   Reply With Quote
Old 04-27-2013, 10:40 AM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 2,318
Karma: 6142827
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura HD, Glo, Nexus 7 HD, iPad Air
Quote:
Originally Posted by John F View Post
So your saying that i can have fixed tighter line spacing OR changing it through the GUI, but I can't have both?

Thanks.
Correct. I use 1.1 in my stylesheet for body text and 1.2 for headings and other non-body text. I also tend to use one font for all my reading so I don't run into the different appearing line spacing with different fonts. Margins are also set in the stylesheet. the Kobo slider will let you increase the left/right margins if you wish to do so.

Regards,
David
DNSB is offline   Reply With Quote
Old 04-27-2013, 04:54 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,822
Karma: 18755150
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Ripplinger View Post
You can force the Kobo to have tighter line spacing by editing the stylesheet.css file for the epub. 120% or 1.2em works well for me. Once it's within the epub though, the slider to adjust line spacing from the Kobo GUI has no effect, which isn't really a problem if you've set the css correctly to your liking.
The line spacing slider doesn't work even if it can make changes as the minimum of 1.3 is too big to start with and can only get bigger from there.
JSWolf is offline   Reply With Quote
Old 04-27-2013, 04:56 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,822
Karma: 18755150
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by ShellShock View Post
I use Sigil to set the line-height in the stylesheet, usually on the p tag, e.g.,

Code:
p
{
    line-height: 1.2em;
}
If there is already a p tag in the stylesheet then you need to add it to that. You can also be more selective--perhaps you do not want to set the line-height for all paragraphs, but only for some styles?
Actually, do the following and it will work better overall...

Code:
 p, div, h1, h2 {
line-height 1.2em
}
Put that at the top of the CSS and if there are any other styles used that change the line-height, that will override your 1.2em and if not, your 1.2em will work as is for all those.

Quote:
Also, some epubs do not use p tags for paragraphs, they may use divs or spans. This is annoying, but with Sigil you can easily check for this.
A span is not a paragraph level tag. So it doesn't need a line-height to change the Kobo default.
JSWolf is offline   Reply With Quote
Old 04-27-2013, 09:39 PM   #15
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 5,886
Karma: 5704349
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by JSWolf View Post
The line spacing slider doesn't work even if it can make changes as the minimum of 1.3 is too big to start with and can only get bigger from there.
But if you want to make a temporary change to a bigger line spacing, you can't. Or if you are sharing the library with your family and they like different settings. When I fiddle with an epub, I like to remove as many of the hard-coded settings as possible. That gives the most flexibility when reading the book. For line spacing, Kobo's minimum of 1.3 is almost right for me. I'd probably use 1.2 if it was there, but it isn't enough of advantage to make me hard-code it.

And for anyone who wants to know, the line spacing settings are: 1.3, 1.35, 1.4, 1.6, 1.775, 1.9, 2, 2.2, 3. I have no idea why those numbers, but they have been like this for a while.
davidfor is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo changing line spacing doesnt work, how to fix (with calibre) irow Kobo Reader 20 12-06-2012 10:00 PM
Please help with line spacing henrypartridge Sigil 11 01-02-2012 06:18 AM
losing line spacing when converting with Calibre Stensie4JC Conversion 9 01-23-2011 04:47 PM
7.34 line spacing??? JSWolf Calibre 18 12-20-2010 12:09 AM
Line spacing in Calibre? leebok21 Calibre 7 08-10-2008 06:31 PM


All times are GMT -4. The time now is 06:31 PM.


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