View Single Post
Old 10-29-2019, 11:25 PM   #38
slowsmile
Witchman
slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.
 
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
I'm actually just going to go with what you just said in your last post. I'm just going to dual format with media queries as normal and just leave it at that. Thinking about it gives me a headache...

I also spotted another possible problem with my AddKindleMediaQueries plugin which might be a problem if you are uploading your epub to KF7, KF8 and KFX. Currently, the media query only addresses KF7 and KF8 devices -- it does not explicitly address KFX devices.

Anyway, to get around the above problem and as a precaution I may soon be releasing a new version of my AddKindleMediaQueries that explicitly targets images on KFX devices in the same way as for KF8. It's only a small change, but necessary I think. The new media queries code will probably look something like this(with emphasis on the change):

Code:
@media amzn-mobi {
     .kf8only {
       display: none;
     }
     .mobionly {
       display: inline;
     }
}

@media amzn-kf8 or amzn-ET {
     .kf8only {
       display: inline;
     }
     .mobionly {
       display: none;
    }
}
...With no change to the dual formatting in the xhtml files. Still testing the above queries.

Last edited by slowsmile; 10-29-2019 at 11:39 PM.
slowsmile is offline   Reply With Quote