Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2013, 07:35 AM   #1
Doitsu
Grand Sorcerer
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: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
CSS 3 selector support in KF8

After reading PoP's post about his 2D Transforms tests support in KF8, I did some tests too and found out that KF8 actually supports the :first-letter selector even though the Kindle Publishing Guidelines say it doesn't
I used the following style to format the first letter of the first paragraph after the heading:

Code:
p:nth-child(2):first-letter {
    font-family: sans-serif;
    float: left;
    font-size: 4em;
    font-weight: bold;
    margin-top: -0.2em;
    margin-bottom: -0.2em;
    margin-right: 5px;
    color: red;
}
The :first-letter selector makes it easy to add dropcaps to ebooks with lots of chapters in them without having to mark the first letter of the paragraph. (KF8 also supports text-transform and text-shadow as my cheesy heading example demonstrates.)

tl:dr some CSS3 styles that have so far only been available in iBooks ePubs can also be used in KF8 books.

EDIT: The following pseudo elements are known to work in KF8*:

Code:
:after 
:before 
:first-letter
:first-line 
:first-of-type
:last-of-type
:lang(xx)
:nth-child(n) 
:nth-child(even)  
:nth-child(odd)
:nth-of-type(n)
:only-of-type
:not
*Warning: Even though these features were successfully tested with an old K3, the Kindle for PC app and both KindleGen 2.8 and Calibre generated KF8 files, there's no guarantee that they'll work with all KF8 enabled devices and apps.

Use at your own risk!
Attached Thumbnails
Click image for larger version

Name:	K3.JPG
Views:	607
Size:	106.0 KB
ID:	105357   Click image for larger version

Name:	K4PC.JPG
Views:	580
Size:	79.7 KB
ID:	105358  
Attached Files
File Type: epub pseudo_firstletter.epub (10.3 KB, 492 views)

Last edited by Doitsu; 03-30-2015 at 01:16 PM. Reason: updated title
Doitsu is offline   Reply With Quote
Old 05-04-2013, 07:47 AM   #2
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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Are you testing on real devices or Kindle Previewer?
DiapDealer is offline   Reply With Quote
Advert
Old 05-04-2013, 07:57 AM   #3
Doitsu
Grand Sorcerer
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: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
Are you testing on real devices or Kindle Previewer?
I always test everything on my K3 and with the Kindle for PC app.
I don't trust Kindle Previewer.
Doitsu is offline   Reply With Quote
Old 05-04-2013, 08:12 AM   #4
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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Hmmm. I wonder what the reasoning is for explicitly stating it isn't supported, then? Does it do something unspeakable on the plain mobi side of the conversion? It's one thing to have undocumented support for something, but I would think there'd be a reason of some sort for expressly saying it's not supported.

Last edited by DiapDealer; 05-04-2013 at 08:24 AM.
DiapDealer is offline   Reply With Quote
Old 05-04-2013, 12:12 PM   #5
Doitsu
Grand Sorcerer
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: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
Hmmm. I wonder what the reasoning is for explicitly stating it isn't supported, then?
Amazon, in their infinite wisdom, might have decided to include support for this particular selector, because it's often used in dropcaps styles, and since none of the other pseudo classes seem to be supported in KF8, the tech writers most likely assumed that none of them are supported.

OTOH, the publication guidelines also contains recommendations such as "Publishers can include their own font for their content. Amazon has a quality assurance process to ensure that these fonts display well on e Ink-based devices and do not impair the reading experience. Do not include the Charis font; it is replaced with a higher quality font in the Kindle Readers."
I. e., whoever maintains the style guide might not be the most knowledgeable person.

Quote:
Originally Posted by DiapDealer View Post
Does it do something unspeakable on the plain mobi side of the conversion?
It's simply being ignored.

Quote:
Originally Posted by DiapDealer View Post
It's one thing to have undocumented support for something, but I would think there'd be a reason of some sort for expressly saying it's not supported.
Well, there's the off chance that this particular selector might trigger a secret self-destruction count-down timer...
Doitsu is offline   Reply With Quote
Advert
Old 05-04-2013, 12:19 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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Doitsu View Post
Well, there's the off chance that this particular selector might trigger a secret self-destruction count-down timer...
See... now we're getting somewhere.
DiapDealer is offline   Reply With Quote
Old 05-04-2013, 04:49 PM   #7
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Doitsu View Post
Amazon, in their infinite wisdom, might have decided to include support for this particular selector, because it's often used in dropcaps styles, and since none of the other pseudo classes seem to be supported in KF8, the tech writers most likely assumed that none of them are supported.
Hmmm, your words made me think. It seems that Amazon added support not only for the pseudo-element :first-letter but also for the pseudo-element :first-line:

Code:
  p:nth-child(2):first-line {
    font-variant: small-caps;
    font-size:1.2em
  }

  p:nth-child(2):first-letter {
    float: left;
    font-size: 4em;
    font-weight: bold;
    margin-top: -0.2em;
    margin-bottom: -0.2em;
    margin-right: 5px;
  }
With that, you can get an output like the following picture. But the curious thing is that:

Code:
p:first-line {text-transform: uppercase}
doesn't work You can use others properties like color, font-variant, font-size, etc., etc. and all of them work but I don't know why text-transform doesn't work. I must be doing something wrong
Attached Thumbnails
Click image for larger version

Name:	screen_shot-4893.gif
Views:	555
Size:	36.8 KB
ID:	105386  
RbnJrg is offline   Reply With Quote
Old 05-05-2013, 04:37 PM   #8
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by Doitsu View Post
... makes it easy to add dropcaps to ebooks with lots of chapters in them without having to mark the first letter of the paragraph...
Just a variant for multiple chapters (when contained in a single html document):
Code:
h3:nth-child(2n) {
    font-family: sans-serif;
    font-size: 2em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 3px grey;
    transform: rotate(-3deg);
    -webkit-transform: rotate(-3deg);
}

h3:nth-child(2n+1) {
    font-family: sans-serif;
    font-size: 2em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 3px grey;
    transform: rotate(3deg);
    -webkit-transform: rotate(3deg);
}

/* paragraph immediately following heading3 */
h3 + p {
    text-indent: 0;
}

p {
    margin: 0;
    text-indent: 1em;
}

/* Small Caps RbnJrg: p:nth-child(2):first-line*/
h3 + p:first-line { 
    font-variant: small-caps;
    font-size:1.2em;
    font-weight: bold;
  }

/* Dropcaps Doitsu p:nth-child(2):first-letter */
h3 + p:first-letter { 
    float: left;
    font-size: 4em;
    font-weight: bold;
    margin-top: -0.2em;
    margin-bottom: -0.2em;
    margin-right: 5px;
  }
Click image for larger version

Name:	screen_shot-53468.gif
Views:	821
Size:	41.5 KB
ID:	105440Click image for larger version

Name:	screen_shot-53469.gif
Views:	827
Size:	42.3 KB
ID:	105441

Thanks for digging more into this Doitsu and RbnJrg. Interesting, if not always reliable. My mileage did vary depending on devices. eReaders manufacturers must like that « The beauty with standards is that there are so many to choose from »
Attached Files
File Type: epub Pseudo Styling First Letter, First Line.epub (3.7 KB, 322 views)

Last edited by PoP; 05-06-2013 at 06:04 AM. Reason: define "chapter"
PoP is offline   Reply With Quote
Old 05-06-2013, 08:38 AM   #9
Doitsu
Grand Sorcerer
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: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Apparently, KF8 supports quite a number of pseudo classes. I tested a couple more of them that I thought might be useful for automatically applying styles to unformatted paragraphs and found out that at least the following pseudo classes work:

:after
:before
:first-letter
:first-line
:first-of-type
:last-of-type
:lang(xx)
:nth-child(n)
:nth-child(even)
:nth-child(odd)
:nth-of-type(n)
:only-of-type

IMHO, some of them are redundant, while others provide useful automated formatting options. For example, you can use p:first-of-type:first-letter instead of explicitly selecting the paragraph by number with p:nth-child(2):first-letter to apply a dropcap style. You can also zebra-stripe table rows with :nth-child or insert text or images with :before and :after.

(I've attached the updated epub, which passes epubcheck, compiles without warnings but doesn't work with ADE, to the first post.)
Note that the text and symbols displayed in red in the KFPC screenshot have been created without modifying the .html file and without embedded fonts/images.
Attached Thumbnails
Click image for larger version

Name:	K3.JPG
Views:	477
Size:	79.5 KB
ID:	105474   Click image for larger version

Name:	KindleForPC.JPG
Views:	494
Size:	155.8 KB
ID:	105475  

Last edited by Doitsu; 05-06-2013 at 01:14 PM.
Doitsu is offline   Reply With Quote
Old 05-06-2013, 12:57 PM   #10
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Doitsu View Post
Apparently, KF8 supports quite a number of pseudo classes. I tested a couple more of them that I thought might be useful for automatically applying styles to unformatted paragraphs and found out that at least the following pseudo classes work:


:after
:before
:first-letter
:first-line
:first-of-type
:last-of-type
:lang(xx)
:nth-child(n)
:nth-child(even)
:nth-child(odd)
:nth-of-type(n)
:only-of-type

Wow!! Now with the pseudo-classes :before and :after the chapter numbering (among other things) can be automated or be simpler.
Amazon must have added support for them recently because I remember that not long ago I tried to use them and kindlegen gave me warning messages and not allow me to use them. Great work Doitsu!!
RbnJrg is offline   Reply With Quote
Old 05-06-2013, 05:02 PM   #11
William Ockham
Enthusiast
William Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipse
 
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
Be very careful about making statements about what "KF8" supports. What you have discovered is what the version of webkit that is embedded in the device or app supports. That's important because there are subtle differences between the webkit versions on various KF8 capable devices and apps. I know there are differences in the types of media queries that work and I have no idea what other differences might exist.
William Ockham is offline   Reply With Quote
Old 05-07-2013, 03:03 AM   #12
Doitsu
Grand Sorcerer
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: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by William Ockham View Post
Be very careful about making statements about what "KF8" supports. What you have discovered is what the version of webkit that is embedded in the device or app supports. That's important because there are subtle differences between the webkit versions on various KF8 capable devices and apps. I know there are differences in the types of media queries that work and I have no idea what other differences might exist.
Of course, there's no guarantee that this will work with all KF8 enabled devices and apps, and it goes without saying that undocumented features shouldn't be used for production Kindle books. However, since the device and app that I tested it with (K3 and Kindle for PC respectively) are pretty much the lowest common denominator, it's highly unlikely that the specific pseudo classes that I included in my test book won't work with more recent devices and apps since updated firmware/KindleGen versions rarely remove support for existing features.
I also made sure to only include pseudo classes that KindleGen 2.8 compiles without displaying warnings. For example, both the K3 and the Kindle for PC app also support :​before with auto-incrementing counters just fine, however, since KindleGen 2.8 displayed a W28002: CSS style specified in content is not supported by Kindle readers. warning for them, I didn't include them.

Just to be on the safe side, I also added a short disclaimer to my initial post.
Doitsu is offline   Reply With Quote
Old 05-08-2013, 07:08 PM   #13
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,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Doitsu View Post
Of course, there's no guarantee that this will work with all KF8 enabled devices and apps, and it goes without saying that undocumented features shouldn't be used for production Kindle books. However, since the device and app that I tested it with (K3 and Kindle for PC respectively) are pretty much the lowest common denominator, it's highly unlikely that the specific pseudo classes that I included in my test book won't work with more recent devices and apps since updated firmware/KindleGen versions rarely remove support for existing features.
I also made sure to only include pseudo classes that KindleGen 2.8 compiles without displaying warnings. For example, both the K3 and the Kindle for PC app also support :​before with auto-incrementing counters just fine, however, since KindleGen 2.8 displayed a W28002: CSS style specified in content is not supported by Kindle readers. warning for them, I didn't include them.

Just to be on the safe side, I also added a short disclaimer to my initial post.
Hey, Doitsu:

Actually, I'd note that in my opinion, K4PC is not one of the lowest common denominators. It displays some things (like the NCX) that aren't displayable on other Amazon "devices." I'd wonder if any of those would work in the Paperwhite, and, of course, with pseudo-classes like "first-letter" and child classes do you have any possibility of creating any fallback media queries for the earlier, K7 devices? Or, because K7 doesn't really "use" CSS, does any fallback coding get ignored? Just a question. (I mean, hell, last I looked, even Nook didn't support the pseudo-classes.) I'm very appreciative of the testing and the results!

I'd love to use pseudo-classes and I'd really love to use the nth for table coloration, but...I think that would leave the K7 looking pretty damn barebones. We usually go to some lengths to ensure that we provide fallback styling for any K8 elements that won't "fly" on the K7, even to creating fallback styling for images that float in K8 but not in K7. I'd have to see if the fallback could indeed "fall back" and make something for the K7. Interesting.

Hitch
Hitch is offline   Reply With Quote
Old 05-09-2013, 11:43 AM   #14
William Ockham
Enthusiast
William Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipse
 
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
Hitch,

All these work on the Paperwhite. The Amazon e-Ink devices (excepting the old KF7 ones) have all been upgraded to a webkit build of 528 (possibly higher for the Paperwhite, I haven't checked since the last update).

There's no way that I have found to precisely duplicate the ":first-line" pseudo class. I've taken to wrapping x words in a span (where x is a number between 4 and 8) and styling them inside a amzn-mobi media query).
William Ockham is offline   Reply With Quote
Old 05-09-2013, 03:41 PM   #15
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,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by William Ockham View Post
Hitch,

All these work on the Paperwhite. The Amazon e-Ink devices (excepting the old KF7 ones) have all been upgraded to a webkit build of 528 (possibly higher for the Paperwhite, I haven't checked since the last update).

There's no way that I have found to precisely duplicate the ":first-line" pseudo class. I've taken to wrapping x words in a span (where x is a number between 4 and 8) and styling them inside a amzn-mobi media query).
Yes. That's precisely what we do, which is why I was asking. ;-) Obviously, I'd love to be able to use :first-line or :first-letter pseudo classes if we could (although they don't work for Nook, AFAI can recall), but...bummer!

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is the Kindle Keyboard (K3) ever going to get KF8 support? apastuszak Amazon Kindle 25 12-05-2012 02:18 PM
iPad Does Kindle App for iPad support KF8? wiped Apple Devices 1 06-09-2012 01:44 PM
KF8 and hyphenation support pirl8 Kindle Developer's Corner 7 06-08-2012 10:59 AM
KF8 conversion and support in Calibre? Rhialto Conversion 19 01-16-2012 05:45 PM
kf8 support apastuszak Calibre 6 11-25-2011 09:22 PM


All times are GMT -4. The time now is 03:29 PM.


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