View Single Post
Old 08-14-2013, 06:21 PM   #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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by storax View Post
[*] 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.
Attached Files
File Type: epub ADE_RTL_TEST.epub (365.8 KB, 223 views)
Doitsu is offline   Reply With Quote