12-16-2013, 06:03 AM | #106 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Psymon;
Try the epub I attach below; the image you are using as dropcap is not suitable for KDX so I employed an alternative method. Maybe this last one can be useful for you. The stylesheet I used was: Code:
p { text-align: justify; } span.dropcap { margin-top: 0.2em; margin-right: 0.38em; } span.dropcap img { width: 100%; } span.drop { display: none; } span.drop1 { float: left; width: 6em; max-width: 23%; } @media amzn-mobi { span.dropcap { margin-top: 0em; margin-right: 0em; } span.dropcap img { display: none; } span.drop { display: inline !important; } span.drop1 { float: none; width: 1em; font-size: 1.8em; font-weight: bold; } } Code:
<p><span class="dropcap drop1"><img alt="M" src="../Images/init-m.gif" /><span class="drop">M</span></span>ORBI dictum luctus velit nec faucibus. Cras vitae tortor purus, ut tincidunt mauris. Sed at velit nisl. Donec eu mauris tortor, interdum condimentum erat. Nam egestas turpis eget nibh laoreet pharetra. Suspendisse a sem eros, ut pulvinar enim. In sed elit eu nulla accumsan tincidunt eget sit amet ipsum. Nullam ut massa rutrum dolor placerat tempor accumsan eget purus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo. Mauris vulputate, leo ac facilisis vulputate, enim orci interdum augue, in blandit quam turpis quis dui.</p> Rubén |
12-16-2013, 07:38 AM | #107 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
|
|
Advert | |
|
12-16-2013, 11:36 AM | #108 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Open the ePub in Sigil, press F8, fill the metadata fields and then save all. This time the ePub will compile under KP |
|
12-16-2013, 12:04 PM | #109 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Everything seems to display just fine in all the Kindles -- except in KDX. In KDX the dropcap doesn't show up -- no image at all. Here, I'll attach a screenshot of what I see... |
|
12-16-2013, 01:53 PM | #110 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The KindleDX is a K7 device. I haven't had the time to look at a boatload of this code, but didn't you guys code a K7 fallback that just shows the letters? Hitch |
|
Advert | |
|
12-17-2013, 04:55 AM | #111 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Yes, there is a fallback code to manage that. I don't know why is not working. I'll do some tests.
|
12-17-2013, 07:43 AM | #112 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Now it will work:
Code:
p { text-align: justify; text-indent: 0; } p + p { text-indent: 1.2em; } span.dropcap { margin-top: 0.2em; margin-right: 0.38em; } span.dropcap img { width: 100%; } span.drop { display: none; } span.drop1 { float: left; width: 6em; max-width: 23%; } @media amzn-mobi { span.dropcap { display: none; } span.dropcap img { display: none; } span.drop { display: inline !important; font-size: 1.8em; font-weight: bold; } span.drop1 { display: none; } } Code:
<p><span class="dropcap drop1"><img alt="M" src="../Images/init-m.gif" /></span><span class="drop">M</span>ORBI dictum luctus velit nec faucibus. Cras vitae tortor purus, ut tincidunt mauris. Sed at velit nisl. Donec eu mauris tortor, interdum condimentum erat. Nam egestas turpis eget nibh laoreet pharetra. Suspendisse a sem eros, ut pulvinar enim. In sed elit eu nulla accumsan tincidunt eget sit amet ipsum. Nullam ut massa rutrum dolor placerat tempor accumsan eget purus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo. Mauris vulputate, leo ac facilisis vulputate, enim orci interdum augue, in blandit quam turpis quis dui.</p> Below you can see the respective ePub. Regards Rubén |
12-17-2013, 10:22 AM | #113 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Once again, that's great! And thank you again, Rubén!
That will work fine (of course), but I'm a little confused by something -- and was similarly a bit confused by Hitch's question about this. Images do show up in KDX, but is there no practical way to do dropcaps that make use of images in that (even if the placement of them is different than how it would appear in other Kindle versions, etc.)? Just wondering -- obviously this will work just fine, still! Thanks again! |
12-17-2013, 02:22 PM | #114 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Making images work moderately consistenly across K7 devices is brutal, actually. For images to work, you have to size them, hard-size them, with the image height AND width set in pixels in the html, not the CSS, obviously. Now, that's all well and good, but the issue is, each K7 device (actually, all Kindle devices) have wildly different screen resolutions. (See this chart: http://en.wikipedia.org/wiki/List_of...density#Amazon and reference the PPI column). So...getting an imaged drop (to misname it) to work wouldn't be easy. Moreover, the early K7's don't support inline images in any event. I actually don't know about the DX, because we always code for the K7's with the assumption that inline images aren't supported, so I've never tested that device separately. See what I mean? Hitch |
|
12-17-2013, 03:30 PM | #115 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Yes, thanks!
From what you said, though, am I to understand that there are more "Kindles" than what's included in Kindle Previewer? And there are some that can't display images at all? I guess I'm just wondering about not just these dropcaps, but how this thread all began, re "background image with text on top", etc. Are there some earlier Kindles that don't/can't show images at all, that are "text-only", and that's all? And, at this stage in the game, should I care? I guess I'm just thinking now -- again -- about doing up my chapter titles as full-page images (or background images with text on top). If in some Kindles people won't see ANY chapter titles at all, well, then once again I have to wonder if I should just scrap that idea entirely. Kindle might be the "most popular" ebook marketplace out there, but I do have to say... I'm learning to really hate it. |
12-17-2013, 03:47 PM | #116 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
All Kindles can show images but not necessarily inline. The latest Previewer is v2.92 by the way. The previewer favors current hardware so to see old stuff the you might need an old previewer which of course you cannot download. They seem to care less about their customer base that we do. The Kindle DX turns out to be the last of the old school eBook readers from Amazon so it is the best test of the K7 format.
Dale |
12-17-2013, 04:36 PM | #117 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Yes: I was surprised to see Amazon just "dump" the K7 K's from the Previewer. They're not Apple, and they've never behaved as cavalierly as Apple does vis-a-vis their hardware and software. Hitch |
|
12-17-2013, 07:47 PM | #118 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Thanks for the info, Dale and Hitch! That's strange that they drop stuff from the previewer, at the same time that they don't make earlier versions of KP available -- I just searched around and couldn't find earlier versions either. Guess I'm stuck with what I've got (which is the latest). :/
|
12-18-2013, 01:09 AM | #119 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
12-18-2013, 02:16 AM | #120 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
oops, sorry, wrong app. I'll try again. (I found KindleGEN 2.9 )
Edit 2: Anyway, KindlePreviewer version 2.85 is available on many of the softonic.com websites, if you feel you can trust it to be a safe download, and if you don't mind jumping through the hoops of using their downloader and fighting off the default spamware installations that are included. (You have to select "custom" install on those, and THEN you can unselect them!) Last edited by GrannyGrump; 12-18-2013 at 03:45 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle paperwhite crop background-image on top/bottom | j.puff@ppp.eu | Kindle Formats | 2 | 08-28-2013 11:58 AM |
Kindle paperwhite crop background-image on top/bottom | j.puff@ppp.eu | Kindle Developer's Corner | 1 | 08-26-2013 06:02 PM |
iBooks: Text overflowing image if it's at top of screen. | Oxford-eBooks | ePub | 30 | 05-10-2013 12:56 AM |
Image overlayed over text (but text visible if image disabled)? | Kaylee Skylyn | ePub | 5 | 08-01-2012 05:27 PM |
Background image | djrulz | Kindle Formats | 1 | 03-29-2011 04:51 PM |