Quote:
Originally Posted by storax
[*] ADE will ignore ‘@media amzn-mobi' and '@media amzn-kf8' code in the CSS, and[*] ‘display: none;’ will work on all devices.
|
BTW, you can hide content that ADE doesn't support using a dummy XPGT file. For more information, see this post by
Jellby.
For a real life example, have a look at the attached excerpt from a German MR book with Arabic text. (The Arabic text is included twice, once as regular Unicode characters with vowel signs wrapped in
noade spans and once as mirrored pre-shaped Unicode characters wrapped in
ade spans for ADE.)
I also included an
amzn-mobi media query in the CSS that'll hide the Arabic text completely in the Mobi7 part of the master .mobi file. As it's designed now, it can be used with both ADE and KindleGen. ADE will display the text wrapped in the
ade spans, KF8 enabled devices/apps (and non-ADE epub readers) will display the text wrapped in
noade spans and non-KF8 Kindles will display neither text wrapped in
ade nor
noade spans.
BTW, epubcheck 3.0.1 will display an error message if you validate epubs with xpgt files in them, however, this is a known epubcheck bug.