04-26-2024, 08:37 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jun 2023
Device: Apple Books
|
Crazy eReader question
Hello all,
I've written myself a book and it has survived it first round of readers. Now it's off to it's second round of readers. To facilitate this for those who asked I have made an epub2.0 file (several actually) and have gotten it the point where it behaves on everything it has so far been thrown at. I'm getting the hang of it, slowly! The final ebook itself is ready, so this post is more for my own curiosity than anything else. The question I have is more technical than practical. I am proficient at computer code, in fact it is my day job, but I am not an HTML guy. That proficiency is probably a bad thing, since it has me wondering. ePub is just HTML, or variant of HTML. This would make e-readers browsers of some sort, and as such they should, in theory, be able to do browser things. And one thing a browser can do is report environmental conditions. With that information you could (in theory) branch which HTML files are in play, or even (possibly) branch the markup itself, to adapt to user settings or device settings. Is this possible? My gut says no, but it seemed within possibility, so I thought I'd ask. TIA! Ken |
04-26-2024, 11:15 PM | #2 |
Bibliophagist
Posts: 40,626
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
There are media queries that can be used in ePub books and also some media queries used by Amazon when generating Amazon format ebooks from an ePub master.
For the most part, if you are only generating ePub and using relative measurements (em, %, etc.) instead of absolute measurements so everything autoscales to the screen size, I haven't found most media queries to be all that needed |
Advert | |
|
04-27-2024, 01:19 AM | #3 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
On epub2, no (or very poorly). On epub3 you have javascript and with it, you can know a lot of things about the device (or app) where the epub was opened (and the position and size of the elements contained in that ebook) and to adapt the layout accordingly. For example, one old epub3 ereader is Gitden; is deprecated, but even so is quite good. But it has a drawback; you can't set -with the app- the margins of the body text; with javascript you can know that the epub is being opening on Gitden and then set margin by means of css styles (those styles are only applied if the epub was opened under Gitden).
Last edited by RbnJrg; 04-27-2024 at 01:28 AM. |
04-27-2024, 06:30 AM | #4 | |
Resident Curmudgeon
Posts: 76,513
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-27-2024, 08:57 AM | #5 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Regarding your second statement, I wrote here many times that an epub must be an epub3 with fallback code for epub2. Your simply formatted novel to me is a challenge to convert it in somethimg more elaborated, with nice chapter headings, dropcaps, fleurons, etc., etc., etc. Here you have two screenshots of a simple novel of mines: The dropcap is controlled by javascript so always it has a perfect size (on epu3). Last edited by RbnJrg; 04-27-2024 at 09:06 AM. |
|
Advert | |
|
04-27-2024, 04:59 PM | #6 |
the rook, bossing Never.
Posts: 12,386
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
That is decorative and not simple. Irrelevant for people wanting to read a novel.
Even for paper it's over the top except as a facsimile of something over 200 years old. Waste of time, breaks easily and pointless on a phone. |
04-27-2024, 05:42 PM | #7 | |
A Hairy Wizard
Posts: 3,228
Karma: 19001261
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
However, I read A LOT of books. In that time I have found that I get pretty bored with just plain vanilla text on the page. Taking a little extra time to create a book that is visually appealing, as well as works on different devices is NOT necessarily a waste of time. Books that have a little extra...something... to set them apart from just plain text...especially if it helps set the mood of the book, or helps tell the story... is great. If you know how to do that for those with ePub3 and still provide fallback coding so you can have your plain text on an ePub2 phone...then why the heck not??? It doesn't make sense to rob the people who have newer devices/apps of advanced, 'pretty', features just because older devices don't support them. Take the extra 2 minutes to put the coding in so everyone can enjoy it to the level their device can support. |
|
04-27-2024, 06:33 PM | #8 | |||
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
For now, for example, Amazon doesn't think like you. If so, then why did it change the k7 format to the kf8? And why did it advance from the kf8 format to the KFX? If it thought like you, then it would still be with K7. I also want to assume that you are consistent with what you express, and that all your Kindle books has code only supported for the K7 format. Quote:
Quote:
No, my code doesn't break, it's rock solid and super tested on everything that supports epub3. However, I understand that someone who is not familiar with epub3 has that kind of prejudice. But my books also include epub2 code, for older devices, so no one is hurt. Pointless on a phone? Why? Last edited by RbnJrg; 04-27-2024 at 06:44 PM. |
|||
04-27-2024, 06:36 PM | #9 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
04-27-2024, 07:31 PM | #10 | |
Resident Curmudgeon
Posts: 76,513
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-27-2024, 07:33 PM | #11 | |
Resident Curmudgeon
Posts: 76,513
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-27-2024, 07:36 PM | #12 |
Bibliophagist
Posts: 40,626
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
04-27-2024, 07:37 PM | #13 |
Resident Curmudgeon
Posts: 76,513
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
04-27-2024, 09:34 PM | #14 |
A Hairy Wizard
Posts: 3,228
Karma: 19001261
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
What you are saying is that you don't like the way it is...That's fine, you are welcome to your opinion.
However, you keep forgetting the part where you have fallback coding .... if the device doesn't support the newer methods it ... wait for it ... falls back to the older styling that it can support. That is a win-win for everyone. You don't have to keep people who have the newer devices - which support the ePub3 standard, and all the bells and whistles - from using them. |
04-27-2024, 09:38 PM | #15 | |
A Hairy Wizard
Posts: 3,228
Karma: 19001261
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is the best color ereader tat is not crazy expensive? | HLS | Which one should I buy? | 106 | 10-17-2023 02:44 PM |
New ereader question | Cactusgod | Sony Reader | 12 | 12-07-2012 06:53 AM |
Using two ereader question | Mojoman | Library Management | 3 | 06-17-2011 05:17 PM |
Free (Kindle) Crazy Sexy Cancer Tips (Crazy Sexy) | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 01-21-2011 02:15 PM |
eReader question | 6charlong | Astak EZReader | 10 | 08-26-2009 06:23 PM |