Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-27-2023, 02:37 AM   #1
rsuchwani
Enthusiast
rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
Media Queries - Screen Size for Samsung Devices

Hello Experts,

I have a question, I'm working on an ePub that needs to be absolutely responsive on specific Samsung devices (Mobiles and Tablets) and I'm thinking of using Media Queries for screen size adjustments.

What do you guys think about that? Is it a good idea to use Media Queries and if not what other options/methods can I use to make it absolutely responsive for specific devices?

The reason behind making the ePub responsive only for a few devices is that the ePub will only be read on the mentioned devices and won't be available to any other device, it's a very specific informative ePub for company employees only.

Any suggestions or alternate methods will be highly appreciated.
rsuchwani is offline   Reply With Quote
Old 09-27-2023, 05:55 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,021
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What do you mean by responsive? How responsive the ePub is depends on the program used with the ePub.

How are you making the ePub? What format ePub? What are you trying to achieve?
JSWolf is online now   Reply With Quote
Advert
Old 09-29-2023, 01:52 PM   #3
rsuchwani
Enthusiast
rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
Hi @jswolf,

Thanks for responding.

The ePub will be in a fluid format/layout, the generalized format. I want to achieve the best reading experience and display possible on the devices. The ePub reader that will be used to view/read that particular ePub will be generic, free, or open-source which are easily available, that's why I have some reservations and want to have the ePub as good-looking as possible.

I want suggestions about using media queries, whether it's a good idea to use them or to avoid them altogether and style the ePub as generic as it can be and leave the display to the ePub reader.
rsuchwani is offline   Reply With Quote
Old 09-29-2023, 02:18 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,473
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Media queries will help if the renderer supports them. Unfortunately, the number of ePub renderers that I have seen on Android devices that support any media queries are pretty small.

My personal preference is to have all images/boxes sized in % as this seems to be the best supported option.

You might want to take a look at a Vellum created epub since the media.css file is nothing but a collection of media queries which can give you some ideas that you can use.
DNSB is online now   Reply With Quote
Old 09-29-2023, 02:23 PM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I guess we're just not understanding what "special thing" you'd like to achieve with the MQs. An ePub is designed to be generic text which can reflow based on the user's selections: font, font-size, justification, margin size, line spacing, images, etc. etc. etc. A good 'generic reader' should be able to natively reflow your book in a pleasing manner.

Usually MQs are used if you want to change the way something is presented based on a specific query. For example:

Code:
Query: Is this a kindle?
Answer: yes
Result: display a generic '***' chapter divider because kindle can't handle
transparencies in their images and make them look like garbage.

Answer: no
Result: display an awesome .png image as the chapter divider which blends
with the background color selected by the user.
I think your bigger concern is 'are you using a "good" generic reader'. Android book readers are kinda hit and miss when it comes to following the ePub standards and honoring the publisher's styling (css). You should first determine which reader software you are using and then code your css to work to the reader's strengths.
Turtle91 is offline   Reply With Quote
Advert
Old 09-30-2023, 04:28 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,021
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Media queries will help if the renderer supports them. Unfortunately, the number of ePub renderers that I have seen on Android devices that support any media queries are pretty small.

My personal preference is to have all images/boxes sized in % as this seems to be the best supported option.

You might want to take a look at a Vellum created epub since the media.css file is nothing but a collection of media queries which can give you some ideas that you can use.
if @rsuchwani looks at a Vellum created ePub, his head might explode.
JSWolf is online now   Reply With Quote
Old 09-30-2023, 04:29 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,021
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
I guess we're just not understanding what "special thing" you'd like to achieve with the MQs. An ePub is designed to be generic text which can reflow based on the user's selections: font, font-size, justification, margin size, line spacing, images, etc. etc. etc. A good 'generic reader' should be able to natively reflow your book in a pleasing manner.

Usually MQs are used if you want to change the way something is presented based on a specific query. For example:

Code:
Query: Is this a kindle?
Answer: yes
Result: display a generic '***' chapter divider because kindle can't handle
transparencies in their images and make them look like garbage.

Answer: no
Result: display an awesome .png image as the chapter divider which blends
with the background color selected by the user.
I think your bigger concern is 'are you using a "good" generic reader'. Android book readers are kinda hit and miss when it comes to following the ePub standards and honoring the publisher's styling (css). You should first determine which reader software you are using and then code your css to work to the reader's strengths.
I suggest @rsuchwani use Pocketbook Reader or BookFusion to read ePub and get all of his colleges to do the same.
JSWolf is online now   Reply With Quote
Old 09-30-2023, 04:56 AM   #8
rsuchwani
Enthusiast
rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
Quote:
Originally Posted by DNSB View Post
Media queries will help if the renderer supports them. Unfortunately, the number of ePub renderers that I have seen on Android devices that support any media queries are pretty small.

My personal preference is to have all images/boxes sized in % as this seems to be the best supported option.

You might want to take a look at a Vellum created epub since the media.css file is nothing but a collection of media queries which can give you some ideas that you can use.
Hi @DNSB,

That's actually a really helpful suggestion, I'll definitely check out the ePub created by Vellum.

@Turtle91,

The Context, once again, is rephrased for better understanding:

My experiences with ePubs, especially when they're read on any Android-based epub reader are not something we might call satisfactory, there's always some kind of mishap, images cut off, text doesn't flow right, and pages don't always break or break too soon, even though epub styled very generic, there's always something that doesn't work. That's why I want to have absolutely restricted display options using media queries. The devices that will be used to read this ePub are very specific (because this ePub is a kind of learning manual that will be distributed only to the workers/employees of the company, and on very specific devices that are given by the company to the employees).

@JSWolf,

Thanks for suggesting the ePub readers, I guess if I don't follow on media queries, I can style the ePub as best as I can and suggest the same ePub readers.
rsuchwani is offline   Reply With Quote
Old 09-30-2023, 08:59 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,473
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by rsuchwani View Post
My experiences with ePubs, especially when they're read on any Android-based epub reader are not something we might call satisfactory, there's always some kind of mishap, images cut off, text doesn't flow right, and pages don't always break or break too soon, even though epub styled very generic, there's always something that doesn't work. That's why I want to have absolutely restricted display options using media queries. The devices that will be used to read this ePub are very specific (because this ePub is a kind of learning manual that will be distributed only to the workers/employees of the company, and on very specific devices that are given by the company to the employees).
As I mentioned earlier, the Android ePub renderers tend to be the most idiosyncratic implementations and very few of the ones I tested support media queries. For the most part, the authors seem to have little to no familiarity with the various ePub specifications and no desire to listen to suggestions that their application is other than perfect.
DNSB is online now   Reply With Quote
Old 09-30-2023, 11:22 PM   #10
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
If you want to lock it down and make it ‘perfect’, then I recommend PDF. lol
Turtle91 is offline   Reply With Quote
Old 10-14-2023, 01:48 AM   #11
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Turtle91 View Post
If you want to lock it down and make it ‘perfect’, then I recommend PDF. lol
Yeah, exactly. The deeper into this thread I got, the further my eyebrows climbed up into my head.

If I've learned ONE THING in all these years here, lads and at the shop, it's that this line right here:

Quote:
"I want to have absolutely restricted display options using..."
...is a recipe for disaster. That's a DANGER, DANGER WILL ROBINSON, DANGER! moment.

MQs are fine--but they're not going to do what the OP wants, not without causing greater grief somewhere else. This is the nature of ePUB--it reflows. It's never going to be "print perfect," as if print were ever perfect, either.

PDF then. That's what I'd do, if the goal of "locking it down" is more important than portability and ease of use. (And the other thing is that unless you "lock down" what eReader or software they're using--that's the tail wagging the dog, too.)

Hitch
Hitch is offline   Reply With Quote
Reply

Tags
epub, mediaqueries, responsive


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
@media queries for older kindles? emdashery Kindle Formats 27 10-22-2021 02:46 PM
EPUB, iBooks and Kindle media queries kso Workshop 22 11-29-2018 10:56 AM
Media Queries eggheadbooks1 Kindle Formats 4 12-16-2013 02:32 AM
Calibre and Media Queries chrlsdrwn12 Calibre 0 12-05-2012 11:16 AM
Media Queries on Kindle Previewer AIR-WIZZ Kindle Developer's Corner 26 10-15-2012 10:10 AM


All times are GMT -4. The time now is 06:58 PM.


MobileRead.com is a privately owned, operated and funded community.