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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2012, 05:09 PM   #1
RobertJSawyer
Addict
RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.
 
RobertJSawyer's Avatar
 
Posts: 325
Karma: 1413724
Join Date: Jun 2006
Location: Toronto
Device: Kobo Aura HD, Aura, Glo, Touch, Mini; Kindle 3, Nook 1st ed.
Nook ePubs on Kobo lose ability to change line spacing

I'm trying to convert Nook ePubs to ePubs for use on a Kobo Glo. I'm doing an ePub-to-ePub conversion before transferring the ebooks to the Kobo; I have Calibre 0.9.9.

The Kobo Glo allows me to use on-screen sliders to increase or decrease:

* Font Size
* Line Spacing
* Margins

Font Size and Margins work for my converted books, but Line Spacing stays fixed at some multiple of the font size (which seems to vary from book to book: I've got ones that give a fairly normal 2-point leading when using 10-point type, but also ones that give no leading -- 0-point -- at the same type size).

Obviously, something that should be stripped out of the source Nook ePubs isn't getting removed. I've already selected removing Fonts, Margins, and Padding. Is there something else I should strip out, or something I should add to the custom CSS?

Many thanks!

Rob
RobertJSawyer is offline   Reply With Quote
Old 12-11-2012, 11:16 PM   #2
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,630
Karma: 25186576
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
To fix this on older files converted from lit I convert the file to mobi and back again to epub.

Keeps most of the formatting/graphics but embedded fonts are not kept.

The problem with some files is AFAIK non standard font sizes, things like
font-size:0.77714. This gets changed to small in the mobi file and then changed to 0.75 in the epub converted to mobi.

You can change these manually by using tweak epub and editing stylesheet.css but I had a lot of old lit files so I went with the mobi thing.

You can set font-size:1em in the CSS box but doesn't change them all and all the font sizes it changes to 1 em. For me the mobi result is far better.

Helen
speakingtohe is offline   Reply With Quote
 
Advertisement
Old 12-12-2012, 12:57 AM   #3
RobertJSawyer
Addict
RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.
 
RobertJSawyer's Avatar
 
Posts: 325
Karma: 1413724
Join Date: Jun 2006
Location: Toronto
Device: Kobo Aura HD, Aura, Glo, Touch, Mini; Kindle 3, Nook 1st ed.
Thanks, Helen, but I don't have a problem with font sizes. I have a problem with line spacing.
RobertJSawyer is offline   Reply With Quote
Old 12-12-2012, 12:59 AM   #4
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by RobertJSawyer View Post
Thanks, Helen, but I don't have a problem with font sizes. I have a problem with line spacing.
The basic concept of converting to Mobi then back to ePub may work for line size too. Experiment with a book and let us know the results.
DoctorOhh is offline   Reply With Quote
Old 12-12-2012, 01:20 AM   #5
gbm
Guru
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 1394286
Join Date: Jun 2010
Device: Hisence Sero 7 Pro, Nook STR, jetbook lite
Use tweak book in calibre open the stylesheet.css file with a text editor. Look for line-height.
It should look like this:
line-height: 1.2;
not like this:
line-height: 1.2em;
if you have the "em" then remove it. I only use line-height in the body style, if the paragraph styles have a line-height then it may override the reader settings.

bernie
gbm is offline   Reply With Quote
Old 12-12-2012, 02:17 AM   #6
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,630
Karma: 25186576
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
Originally Posted by RobertJSawyer View Post
Thanks, Helen, but I don't have a problem with font sizes. I have a problem with line spacing.
That is the problem I was having. When the font size was changed, the line size changed with it.

It may seem odd that changing the font size to a standard size fixes the line spacing problem but it does. Try it and see. All of the books worked fine in the calibre viewer and on my Sony, but not on the Kobo.

Helen

PS Most of the problem books had the 1.2 line height already

Last edited by speakingtohe; 12-12-2012 at 02:20 AM.
speakingtohe is offline   Reply With Quote
Old 12-12-2012, 06:54 AM   #7
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: 6,073
Karma: 6108201
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
Remove the line-height from the styles. Remember that the Kobo devices respect the settings in the books and do not over-ride them. The line-height works the same as the margins and font sizes.
davidfor is online now   Reply With Quote
Old 12-12-2012, 10:05 AM   #8
RobertJSawyer
Addict
RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.
 
RobertJSawyer's Avatar
 
Posts: 325
Karma: 1413724
Join Date: Jun 2006
Location: Toronto
Device: Kobo Aura HD, Aura, Glo, Touch, Mini; Kindle 3, Nook 1st ed.
Helen, my apologies. You were absolutely right. Converting from the original Nook ePub to Mobi to generic ePub did the trick.

gbm, I would have thought filtering out line-height would do the trick, too -- but it didn't. Thanks for the suggestion, though!

You guys rock.
RobertJSawyer is offline   Reply With Quote
Old 12-12-2012, 02:27 PM   #9
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,630
Karma: 25186576
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
Originally Posted by RobertJSawyer View Post
Helen, my apologies. You were absolutely right. Converting from the original Nook ePub to Mobi to generic ePub did the trick.

gbm, I would have thought filtering out line-height would do the trick, too -- but it didn't. Thanks for the suggestion, though!

You guys rock.
No apologies necessary. It seemed kind of odd to me too when I finally figured it out, but I had many, many files like this so I was just happy when it worked and didn't destroy the formatting

Helen
speakingtohe 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
Touch Problem with all epubs, my epubs, or my kobo? (line clipping) plague006 Kobo Reader 14 12-03-2011 12:32 AM
Cannot change line height spacing for ereader pro boothy Conversion 2 05-21-2011 02:35 PM
ability to change subject line for emails from calibre logastellus Calibre 1 03-22-2010 12:48 AM
How to change the line spacing of a font IceHand Bookeen 29 03-07-2009 04:09 AM
Change line spacing zartemis Amazon Kindle 1 02-26-2009 04:08 PM


All times are GMT -4. The time now is 12:08 AM.


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