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

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 03-20-2013, 04:45 PM   #1
davidnwelton
Member
davidnwelton began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2011
Location: Padova, Italy
Device: Kindle
Kindlegen 2.8, plain Kindle & line-height

Hi,

I've been working on a book that is pretty standard stuff: a novel that didn't require a great deal of work. It looks good on Kindle Fire, a Kindle Keyboard, Kindle for PC, etc....

But on a regular, plain Kindle, the line height is much larger than most Kindle books. This happens with Kindlegen 2.8, but not with earlier versions.

Naturally, that CSS variable is not set anywhere.

Ideas? I've submitted a request for the Amazon folks to look at it, but I thought I'd ask around a bit too.

Thank you,
Dave
davidnwelton is offline   Reply With Quote
Old 03-21-2013, 01:25 AM   #2
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Line height on a MOBI7 Kindle should be determined by the font size (and the font, but that's user-selected); AFAIK, the line-height CSS property isn't passed through at all, because there's no HTML equivalent. Maybe the font size is being translated differently?
dgatwood is offline   Reply With Quote
Advert
Old 03-23-2013, 06:19 PM   #3
davidnwelton
Member
davidnwelton began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2011
Location: Padova, Italy
Device: Kindle
We don't specify a font size, so it should come out as the default, and therefore should not have any bearing on line-height. Strangely enough, the problem only appears on the inexpensive Kindle - other platforms have no problems.
davidnwelton is offline   Reply With Quote
Old 03-23-2013, 08:57 PM   #4
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by davidnwelton View Post
We don't specify a font size, so it should come out as the default, and therefore should not have any bearing on line-height. Strangely enough, the problem only appears on the inexpensive Kindle - other platforms have no problems.
David:

The Kindle reader won't support a line height of less than 1.2em or 120%, per the 2013 Guidelines; is that part of what you're seeing? Are you using the default fonts? We're getting pretty normal results with our books, whether we're using embedded fonts or not, and we're using 2.8.

Hitch
Hitch is offline   Reply With Quote
Old 03-25-2013, 01:05 AM   #5
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
The way Kindlegen works is that it creates two different versions of your content, crammed together into a single file:
  • A KF8 slice that contains CSS and stuff for newer readers
  • A MOBI7 slice that contains nothing but HTML. The HTML contains additional attributes and tags to try to approximate whatever your CSS contains, to the extent that it can be represented with pure HTML.

The basic Kindle devices use the MOBI7 slice. For them, the line height you specify is irrelevant because there's no HTML equivalent. That detail gets thrown away entirely during the translation to MOBI7.

Edit: Deleted much of my post after I realized that half of what I posted was confusing this thread for another one.

Whatever is causing the line height change, I don't think it can possibly have anything to do with the line height in the CSS, because AFAIK there's no support for line height on these devices. Therefore, when you eliminate the impossible... it must be something else more subtle.

Last edited by dgatwood; 03-25-2013 at 01:17 AM.
dgatwood is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line height insanity! Kamikuza Conversion 6 10-24-2012 11:56 PM
Minimum Line Height being ignored for MOBI yanathin Conversion 2 10-05-2012 03:24 PM
Default line-height in epubs Derek R ePub 2 02-13-2012 11:23 AM
Advice about line-height Julien Pham Sigil 2 12-22-2011 09:05 AM
Problems with Line Height Formatting JohnnyRocks Conversion 4 02-20-2011 07:10 AM


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


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