![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
|
Is there really a media query for KFX?
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:
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%. |
![]() |
![]() |
![]() |
#2 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
So if you want to target only KF8 you need something like "@media amzn-kf8 and not amzn-et". Quote:
Quote:
In this case conversion to KFX changes the spacing from 20% to instead be about five lines high based on the current font size. |
|||
![]() |
![]() |
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,038
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
And you can't publish KFX, KF8 or mobi reflowable books on Amazon you make yourself. They have to be converted from epub, or much less good, docx.
The "Send to Kindle" and KDP both convert, but might not convert the same. Best to make ebooks that don't rely on media queries and don't try to slavishly copy paper unless they are effectively PDFs (which are never ever true ebooks). |
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Once Amazon finally dumps Mobi (too long overdue to be dumped), media queries can mostly go. Last edited by JSWolf; 09-04-2023 at 06:43 PM. |
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#6 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,038
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
Mostly mobi is either only delivered to the the 4 ancient models that can't use at least AZW3/KFX, or a tiny number of ebooks uploaded years ago. They don't accept reflowable mobi (KF7) in Send to Kindle or KDP upload. There is no more dumping of mobi to do. |
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,038
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
It's only downloaded for actually new ebooks (uploaded in last few years) for Kindles that only support mobi.
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Although its usage has decreased there are quite a number of places where MOBI is still used by Amazon besides on the oldest Kindles. Some examples are personal documents read on Apple devices, periodicals and comics sent to e-ink Kindles, reflowable books with audio/video, and as a fallback format for books produced using Kindle Create on devices that do not support KFX format.
|
![]() |
![]() |
![]() |
#11 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,038
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Apple is/was a special case due to browser engine/technology rules. That may change shortly.
Audio/video aren't real ebooks and not KF7 mobi. Many periodicals and comics are either legacy layout, fixed layout or not kf7. I understood that Kindle create makes a sort of dual mobi with KF7 & KF8 if not making KFX, but I don't have it now. I was only referring to ordinary mobi/prc (or encrypted as azw), the basic KF7, used by K1, K2, DXG and DX. A few other models originally have only mobi, but FW upgrades gives KF8/azw3. The default format created by the last Mobipocket Creator. I did also write "mostly". What Jon wants isn't entirely logical or possible. Last edited by Quoth; 09-05-2023 at 09:43 AM. |
![]() |
![]() |
![]() |
#12 | ||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 521
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
|
Quote:
It's weird that their attempt to "normalize formatting" only affects the smaller device (Scribe margins are within a few millimeters of accurate), and does so in such a way as to reduce the amount of text on the screen...a screen that has less room for text in the first place. Quote:
It seems like Amazon takes the file in from the author/publisher, converts to all the current formats, and then sells the book. Later on when a new format comes around, only a limited set of books get the new format added to the download pool. |
||
![]() |
![]() |
![]() |
#13 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Quote:
Books that were published using a MOBI file created some other way without the original source were left as is. |
||
![]() |
![]() |
![]() |
#14 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,038
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
The onus is really on the the people that originally uploaded only mobi/Kf7 reflowable ebooks to upload fresh epub, or at worst docx. Large publishers have a different workflow and don't use the public KDP that anyone can use. And of course if you use Download rather than Whispernet, you have to pick which registered kindle the file is for. Dual purpose, the suitable DRM keyed to serial number and "correct" format. Whispernet gives KFX, AZW3 or azw/mobi depending on what is. Other people (not Amazon) offering Kindle files either offer dual-mobi (embedded KF7 & KF8), or old mobi KF7, or azw3/KF8, or epub for "Send to Kindle". They don't know what your Kindle is. These can be PD or copyright bought files, but in either case no DRM. Edit: I last bought a computer with Win7 1st Nov 2016 (finally wiped Win7 on it Jan 2017, now Linux Mint 21.2). MS retail sales ended earlier. Oct/Nov 2016 was the last date OEMs sold gear with it. Official support ended in 2020 and people didn't always accept every update. None mandatory. I think it still gets Defender updates and some others occasionally. MS also still activates XP re-installs by automated phone with digits entered on keypad. Some people have stuff that needs XP and a Mobo (needs re-authorised) or HDD can die. Last edited by Quoth; 09-05-2023 at 01:27 PM. |
|
![]() |
![]() |
![]() |
#15 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
If that does change I wonder whether Amazon would then add KF8 to the Kindle for iOS/Mac apps or whether they would just let it go since they have already moved on to KFX for published books. It is really only personal documents that suffer from the lack of KF8 support in those apps. Whether or not they are "real" ebooks, Amazon sells books that are labeled "Kindle Edition with Audio/Video". For example, Brought to Life by the Voice: Playback Singing and Cultural Politics in South India. These are currently always delivered by Amazon in MOBI format. Quote:
I am unaware of it producing anything like MOBI or KF8. As far as I can tell Amazon's servers produce a MOBI version of books published using Kindle Create by converting from KFX. That is delivered as a fallback in cases when the Kindle reader does not support KFX. I agree. It is not in Amazon's or their customer's best interest to do away with MOBI. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
prefers-color-scheme media query | tozz | Editor | 2 | 02-07-2023 04:47 PM |
Mobigen Why are css media query examples in Amzn Kindle Publishing Guidelines so terrible? | rjnagle | Kindle Formats | 14 | 06-17-2020 02:22 PM |
KFX to KFX to remove DRM | Tomifonication | Conversion | 12 | 08-09-2018 01:32 PM |
Kindle Media Query | Macsurfcat | Kindle Formats | 32 | 02-06-2015 10:14 AM |
Color Nook color - media query for Orientation lock | aslam44 | Nook Developer's Corner | 0 | 03-14-2013 03:57 AM |