View Single Post
Old 09-04-2023, 05:11 PM   #5
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,086
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by nabsltd View Post
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.
I just realized that I failed to respond to this point.

In order to properly convert EPUBs with media queries to KFX you need to use the CLI interface of the KFX Output plugin instead of the calibre conversion GUI or CLI. That is because calibre's conversion pipeline will remove media queries that it does not know about, such as amzn-et, when it performs CSS flattening.


Added: As an experiment you can import your EPUB into calibre and do a conversion from EPUB to EPUB. If you examine the result in calibre's editor you will see that the Kindle media queries do not survive the conversion process.

Last edited by jhowell; 09-04-2023 at 05:33 PM.
jhowell is offline   Reply With Quote