|
|
Thread Tools | Search this Thread |
01-18-2013, 05:32 PM | #16 |
Resident Curmudgeon
Posts: 73,868
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This is the ePub forum. ADE is the reader that most use to display ePub. Since it doesn't work in ADE, it doesn't work.
|
01-18-2013, 05:33 PM | #17 |
The Grand Mouse 高貴的老鼠
Posts: 71,491
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
01-18-2013, 05:42 PM | #18 |
Resident Curmudgeon
Posts: 73,868
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
ADE & the ePub 2 spec do not support media queries. I just found the answer on Adobe's support forum and Jim Lester confirmed this.
http://forums.adobe.com/message/4325696?tstart=0 |
01-18-2013, 08:01 PM | #19 | |||||
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
The EPUB 2 specification does require readers to ignore anything that they do not understand, which ADE does not, and thus ADE does not comply with the specification as published. Quote:
Quote:
Quote:
Quote:
Last edited by dgatwood; 01-18-2013 at 08:06 PM. |
|||||
01-18-2013, 08:14 PM | #20 |
Resident Curmudgeon
Posts: 73,868
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It doesn't matter that the spec says to ignore stuff. If epubcheck 1.1, 1.2, aND MAYBE 3.0 flags it as an error, then it won't be put up for sale.
So go put in the media queries to do the image selection based on screen size and see if it actually validates in all those versions of epubcheck. |
01-18-2013, 08:15 PM | #21 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
1. From what I've seen, the ADE-compatible readers on iOS appear to be built on top of WebKit rather than Adobe's rendering code, so there is a fair chance that they will handle media queries even though ADE on other platforms does not. 2. It is not a foregone conclusion that most iPhone and iPad users use an ADE-based reader rather than iBooks. |
|
01-18-2013, 08:23 PM | #22 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
|
|
01-18-2013, 08:53 PM | #23 | |
Resident Curmudgeon
Posts: 73,868
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-18-2013, 09:24 PM | #24 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
That said, I just did an experiment, and can confirm that Sony, Bluefire, and Nook on iOS barf on media queries in the same way that ADE does on the desktop, sadly. Ah. I just figured out which reader it was. Kobo. It's ADE-compatible (as in, it can read EPUB files with ADE DRM), but it uses WebKit for the rendering, supports CSS3 media queries, and even supports fun WebKit-specific variants of CSS3 properties, such as -webkit-border-radius. Last edited by dgatwood; 01-18-2013 at 09:35 PM. |
|
01-18-2013, 11:27 PM | #25 |
Booklegger
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
I don't have a new Kobo reader, so I can't check this, but it may be that the kepub renderer uses webkit, but I'm pretty sure any renderer that understands Adobe DRM has to be using the Adobe renderer. That's what I was told a couple of years ago.
I'm not sure how to create test cases for this either, without going through Kobo's Writing Life and getting both the kepub and DRM'd epub to check and compare. |
01-19-2013, 12:56 AM | #26 |
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
IIRC that's correct. They use WebKit for kePub and the RMSDK for ePub (or at least DRM'd ePub's if not all).
|
01-19-2013, 03:50 AM | #27 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Just out of curiosity: How would you write a code to select images based on screen size or orientation based on media queries that would degrade gracefully in a theoretical perfectly-ePub-and-only-ePub-compliant reader?
|
01-19-2013, 05:02 PM | #28 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
Code:
<div id="myimage"></div> myimage { background-image: .... default image here } @media ... { .myimage { background-image: ... width: ... min-width: ... height: ... min-height: ... } } or Code:
<div class="smallDevice"><img src=... /></div> <div class="mediumDevice"><img src=... /></div> <div class="largeDevice"><img src=... /></div> .smallDevice { display: none; } .mediumDevice { display: block; } .largeDevice { display: none; } @media screen and (max-device-width: 720px) { .smallDevice { display: block; } .mediumDevice { display: none; } } @media screen and (min-device-width: 2000px) { .mediumDevice { display: none; } .largeDevice { display: block; } } |
|
01-20-2013, 04:12 AM | #29 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
01-20-2013, 03:11 PM | #30 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
*sigh* |
|
Tags |
epub, formatting images, image size, images, kindle |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB -> Mobi = 4x larger file size. (4mb -> 16mb) | Muckraker | Conversion | 20 | 03-17-2012 10:02 AM |
Give me one good reason why I shouldn't sell my DX and buy an iPad ... | Sheikspeare | Amazon Kindle | 106 | 10-01-2010 02:28 AM |
Images too wide for Nook Screen | js4c | Calibre | 7 | 07-29-2010 04:46 PM |
【Best PDF Size】I find The reason of slowing When Read PDF file | linlance | Sony Reader | 0 | 03-11-2010 08:13 AM |
Auto Rotation of Wide Images | DoctorOhh | Calibre | 0 | 10-15-2009 08:14 PM |