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

Go Back   MobileRead Forums > E-Book Formats > Mobi

Notices

Reply
 
Thread Tools Search this Thread
Old 01-12-2013, 05:04 PM   #1
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.
 
Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Drop cap bug on Paperwhite

For some unknown reason, my drop caps are rendered completely wrong on exactly one device: Kindle Paperwhite. Or at least they're wrong in the previewer. It would be great if someone who owns an actual Paperwhite could download the test sample linked at the bottom of this post and confirm whether this problem occurs on the actual device.

My drop caps work fine in other readers (Nook and multiple other ADE-based readers, iBooks, Kindle Fire, Kindle Fire HD, etc.), but Paperwhite reliably renders them way too low and renders the box too tall (so that too many lines are indented).


They should look look like this:




But on Paperwhite, even with Publisher Font enabled, they look like this:




I have drop caps defined like this:

Code:
.dropcap
{ 
        letter-spacing:0;
        text-transform:uppercase;
        font-family: "Telegraph Hill", Didot, "GFS Didot",
                "New Century Schoolbook", "Century Schoolbook",
                "Bookman Old Style", Bookman, serif;

        font-size:4.8em;
        display: inline-block;
        position: static;
        float:left;
        border: 0;
        /* Margins are set on a per-character basis. */
        /* margin: 0; */
        padding: 0;
        line-height: 1.2;
        height: .75em;
}
Or, alternatively, like this:

Code:
    .chapterdropcap
    {
        letter-spacing:0;
        text-transform:uppercase;
            font-family: "Telegraph Hill", Didot, "GFS Didot",
                    "New Century Schoolbook", "Century Schoolbook",
                    "Bookman Old Style", Bookman, Serif;
        font-size:4.8em;
        display: block;
        float: left;
        line-height: 120%;
        height: 0.75em;
    }
With HTML that looks like this:

Code:
<p class="kindlefirst"><span class="dropcap chapterdropcap" style="margin: -0.235714285714286em 0em 0 -0.00428571428571429em;">T</span><!--font size="2"--><span class="smallcap">he</span>*musty air stung their noses as they walked through the abandoned ship, its uninviting halls dark and cold, but there was air.  There was definitely air, and that alone was an improvement.<!--/font--></p>


Does anybody see anything obviously wrong here, or is Paperwhite just massively broken?

You can download a test sample here: kindle_dropcap_sample.mobi
dgatwood is offline   Reply With Quote
Old 01-13-2013, 03:18 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,141
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
"text-transform" and "display: inline-block" are not supported by the ePub spec, but maybe they are by the Kindle, and they probably are unrelated to your problem ("position" is also not in the list of supported CSS properties, but it's mentioned in several places in the spec).
Jellby is offline   Reply With Quote
 
Enthusiast
Old 01-13-2013, 03:27 AM   #3
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,081
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
Unfortunately, I cannot help you with your problem, but I wanted to let you know that your .mobi file looked different on my old K3 with KF8 support.
Whatever solution you come up with, you may want to also test it with other eInk Kindles, because it seems that the PW has a different rendering engine.
Attached Thumbnails
Click image for larger version

Name:	screenshot.GIF
Views:	34
Size:	13.5 KB
ID:	99294  
Doitsu is offline   Reply With Quote
Old 01-15-2013, 03:10 PM   #4
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.
 
Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Jellby View Post
"text-transform" and "display: inline-block" are not supported by the ePub spec, but maybe they are by the Kindle, and they probably are unrelated to your problem ("position" is also not in the list of supported CSS properties, but it's mentioned in several places in the spec).
Since it's all uppercase, text-transform is a no-op anyway.

One of the two drop cap styles uses block and the other uses inline-block, so that's also a non-issue.

The position property most certainly is in the EPUB spec. It says "Use of the CSS position property values to achieve absolute positioning (i.e. absolute and fixed) is strongly discouraged."

Note that position: static is the default, so this should always be a no-op. I inserted it just in case there was something screwy going on.
dgatwood is offline   Reply With Quote
Old 01-15-2013, 03:27 PM   #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.
 
Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Doitsu View Post
Unfortunately, I cannot help you with your problem, but I wanted to let you know that your .mobi file looked different on my old K3 with KF8 support.
Whatever solution you come up with, you may want to also test it with other eInk Kindles, because it seems that the PW has a different rendering engine.
AFAIK, everyone's drop caps are known to be broken on K3, so my inclination is to pretend K3 doesn't exist until Amazon fixes it.

That said, I would be curious how it looks with Publisher Fonts enabled.

Last edited by dgatwood; 01-15-2013 at 03:38 PM.
dgatwood is offline   Reply With Quote
Old 01-15-2013, 04:14 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 6,830
Karma: 23232374
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
Like chasin' your own tail, man. Get it in the ball-park, then shake it off and move on. Too many devices with too many different renderers to make 'em all sing the same song on key at the same time.

Why do you have so many fallback fonts in your font-family declarations if you're embedding all the fonts anyway?

Your sample mobi looks the same on the Kindle Fire as your screen-shot from the Paperwhite, BTW.
__________________
Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.

Last edited by DiapDealer; 01-15-2013 at 04:32 PM.
DiapDealer is offline   Reply With Quote
Old 01-16-2013, 06:10 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,141
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
Quote:
Originally Posted by dgatwood View Post
The position property most certainly is in the EPUB spec. It says "Use of the CSS position property values to achieve absolute positioning (i.e. absolute and fixed) is strongly discouraged."
Yes, but it's not in The List. That's what I meant, there are references to it, but it doesn't appear in the list of supported properties, which is probably a bug.
Jellby 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
Paperwhite Search Bug Robmonster Amazon Kindle 9 12-18-2012 07:06 AM
drop caps in paperwhite? morrow Mobi 7 12-11-2012 12:10 PM
Please, test if your Paperwhite has this bug Antoinekamel Amazon Kindle 6 10-20-2012 07:21 PM
To cap or not to cap WT Sharpe Calibre 2 04-07-2012 03:45 PM
Using CSS in Word to make a Drop Cap work in an Epub brewt ePub 3 01-31-2009 06:00 PM


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


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