View Single Post
Old 07-26-2021, 02:37 AM   #12
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
Think is, if it doesn't work with the version of RMSDK Kobo is using, either don't do it or find something else to do. The problem is that there are a lot of Readers/programs out there using older versions of RMSDK and they won't work with what you are trying to do. RMSDK is the most used software for displaying ePub and not all of those versions out there are up-to-date.
The RMSDK supports some media queries. And it seems to need the device to be specifed. The code that @Rand Britten has posted fails with the RMSDK on my Kobo devices. But, changing the query to:

Code:
@media screen and (color) ...
and it works. It also works with "all". Either worked with the kepub renderer.

I did try some other media queries. I tried to test using "@media screen and (min-width: 600px)", but the RMSDK rejected that. This worked with kepubs (though the screen width wasn't exactly what I expected).

A little problem with the above test for "color" is that Kobo devices render in colour. It is a later step that changes it to grey scale. So, the above test is "true".

I tried the @support as well. This didn't break either the RMSDK or the kepub renderer. But, I am not sure if it works. I'm not sure enough of what it can test to be sure I have a valid test for these devices.
davidfor is offline   Reply With Quote