Quote:
Originally Posted by jhowell
@media amzn-et
|
Forking a new thread from this reply about KFX media queries.
I have a Scribe and Paperwhite (11th gen), and am sideloading KFX files by converting from EPUB to KFX using the KFX output plugin to Calibre. On these KFX files, both devices answer "true" to
@media amzn-kf8, and both answer "false" to
@media amzn-et.
The Kindle Previewer app answers "true" to both
@media amzn-kf8 and
@media amzn-et, which tells me that @jhowell was correct, and that "amzn-et" is the right test.
My problems I want to solve:
- I need the EPUB to support EPUB devices, so I need to distinguish between EPUB and Amazon formats. This seems to be handled with current media queries.
- KFX handles things like drop caps differently from KF8. So, if I want to target older Kindles that don't support KFX, I need to be able to distinguish between the two.
- The Paperwhite 11th gen does not respond "true" to any media queries that are documented on the web to work with previous Paperwhites. I'd like to distinguish between the Scribe and the Paperwhite because the Paperwhite has bugs with vertical margins, where the value in the CSS is multiplied by 1.6.
Attached is an EPUB that demonstrates the behaviors.
The first page has 4 paragraphs. The span in the middle of the paragraph will result in italic for KF8, bold for KFX, and underline for other (like EPUB). The first paragraph can have all of the 3, if the renderer answers "true" to all (unlikely). The second paragraph targets only KFX, while the third is KF8, and the 4th is for neither.
The next pages have 4x horizontal rules with (margin|padding)-top of 20%. It's easy to see on a Paperwhite 11 that the spacing is actually about 33%.