View Single Post
Old 02-05-2015, 03:57 AM   #24
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,082
Karma: 315558332
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Macsurfcat View Post
Okay, thanks for being patient . . .

The pseudo-epub, and its CSS, reflects what has happened in kindlegen. I'm assuming the "@media all" tag is the consequence of this "recreation" of the epub within the mobi8 section.

So, remembering the patience part, following the above posts, this pseudo-epub, that is, its CSS, WILL NOT include any element selector, nor media tag, based upon a media query of the form "amzn-mobi".

However, the expectation is that the dual-purpose mobi will incorporate what is enclosed by the "amzn-mobi" tag within its code describing the referenced elements.

Why is this not happening?
I think that the thing you are missing is that the amzn-mobi tag only affects the HTML 3.2 generated for the old mobi-7 portion of the combined file produced by Kindlegen.

That all the amzn-mobi tags are stripped from the CSS in the Mobi-8/azw3/KF8 portion of the joint file is the expected result.

As I've said previously, you will only see the mobi-7 rendering when viewing on a limited number of very old Kindles and Kindle software.

Unless you've viewed the separated mobi-7 produced by KindleUnpack, you've probably never seen the mobi-7 portion at all.
pdurrant is offline   Reply With Quote