Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Android Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 06-03-2020, 10:02 AM   #16
d351r3d
Enthusiast
d351r3d began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2017
Device: none
Quote:
Originally Posted by pdurrant View Post
Clearly I've misunderstood what you're trying to achieve.
I wanted to know why the apps are doing what they do and it has nothing to do with how I'm formatting the CSS or HTML. It has to do with the apps being limited. Which is a bummer. My question should've been, if I would've known that the apps were this limiting because no one actually formats anything in the corporate digital book world.
d351r3d is offline   Reply With Quote
Old 06-03-2020, 10:06 AM   #17
d351r3d
Enthusiast
d351r3d began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2017
Device: none
Quote:
Originally Posted by DiapDealer View Post
You don't have to. That's pretty-much the point.

Make sure it's neat; make sure it validates; make sure it looks clean on mainstream retail devices/apps, and move on. Trying to micromanage the typographical experience every single reader has on every single device or app when looking at your work is pointless: it can't be successfully done (and quite often isn't at all appreciated if it's forced upon them with no option to override). Let the user/renderer decide what font, font-size, line-height, margins, etc... to apply and move on.
That's what I was going to do. I just wanted to grasp what's going on. I thought I was just not doing it right. I was doing it right the apps just don't care.
d351r3d is offline   Reply With Quote
Old 06-03-2020, 10:20 AM   #18
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,573
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
There's usually hoops you can jump through to fix some quirk of some particular rendering system, but those workarounds can also expose new quirks on different systems. You end up chasing your own tail for mostly no gain.

The heading tag causing a page-break on Moon Reader is probably one of those quirks. But there may also be a Moon Reader user setting that stops that from happening (I've no idea for sure: Moon Reader's user preferences are dauntingly all-encompassing). The point is that Moon Reader users who the page-breaks bother will know about such a setting and "fix it", and those who it doesn't bother won't be bothered by it.

Last edited by DiapDealer; 06-03-2020 at 10:55 AM.
DiapDealer is online now   Reply With Quote
Old 06-03-2020, 10:30 AM   #19
d351r3d
Enthusiast
d351r3d began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2017
Device: none
Quote:
Originally Posted by DiapDealer View Post
There's usually hoops you can jump through to fix some quirk of some particular rendering system, but those workarounds can also expose new quirks on different systems. You end up chasing your own tail for mostly no gain.

The heading tag causing a page-break on Moon Reader is probably one of those quirks. But there may also be a Moon Reader user setting that stops that from happening (I've no idea for sure: Moon Reader's user preferences are dauntingly all-encompassing). The point is that Moon Reader users who the page-breaks bother will know about such a setting and "fix it", and those who it doesn't bother won't be bothered by it.
I'm going to do the bare minimum which is what I was trying to do. I did learn a lot of stuff along the way trying to figure it out. I'm just a bit salty and that's about it. Lol

Last edited by DiapDealer; 06-03-2020 at 10:54 AM.
d351r3d is offline   Reply With Quote
Old 06-03-2020, 11:00 AM   #20
d351r3d
Enthusiast
d351r3d began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2017
Device: none
Quote:
Originally Posted by pdurrant View Post
It may be that Moon Reader just assumes that any headings should come at the top of the page. Make them <p> paragraphs and apply a CSS style to them instead?
Is there a way to say do it the paragraph way and then use another way, say anchors to get the same effect in the TOS and not have it act all weird and glitchy in Moon+ Reader?

Last edited by d351r3d; 06-03-2020 at 11:04 AM.
d351r3d is offline   Reply With Quote
Old 06-03-2020, 11:05 AM   #21
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: 73,948
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by d351r3d View Post
Is there a way to say do it the paragraph way and then use another way, say anchors to get the same effect and not have it act all weird and glitchy in Moon+ Reader?
No idea. <h#> tags don't actually mean anything, although some sofwtare will treat them in special ways (e.g. to automatically generate a table of contents). there's nothing that can be done with a <h#> tage that can't be done with a styled <p> or even <div> tag.
pdurrant is offline   Reply With Quote
Old 06-03-2020, 12:50 PM   #22
d351r3d
Enthusiast
d351r3d began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2017
Device: none
Quote:
Originally Posted by pdurrant View Post
No idea. <h#> tags don't actually mean anything, although some sofwtare will treat them in special ways (e.g. to automatically generate a table of contents). there's nothing that can be done with a <h#> tage that can't be done with a styled <p> or even <div> tag.
It works with anchors. A bit to do with that in the TOC Editor but well worth it. No more h# and it looks better in Everything. Good times.
Attached Files
File Type: epub nothing 011.epub (174.4 KB, 253 views)
d351r3d is offline   Reply With Quote
Old 06-08-2020, 11:57 AM   #23
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by pdurrant View Post
No idea. <h#> tags don't actually mean anything, although some sofwtare will treat them in special ways (e.g. to automatically generate a table of contents). there's nothing that can be done with a <h#> tage that can't be done with a styled <p> or even <div> tag.
I'm not sure that's a good way to put it. It's completely true that you can style a p or a div tag to look like a heading and to the reader there will be no difference. However the h tags have a semantic meaning (h = "heading" and the numbers 1-6 allow you to create a hierarchy with titles, subtitles etc.) which is useful for creating the toc in Sigil but also can be very important for other reasons, for example for accessibility (e.g. screen readers for blind people). If a reader turns off the css styles, h tags will still be displayed with default html styling that makes it clear they are headings and not just a paragraph of body text.

Semantically correct tags should always be used for their semantic value rather than for their appearance, and should never be mimicked on default tags (p, div) with css when the default tags are insufficiently specific.
Mister L is offline   Reply With Quote
Old 06-08-2020, 12:15 PM   #24
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: 79,758
Karma: 145864619
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 Mister L View Post
I'm not sure that's a good way to put it. It's completely true that you can style a p or a div tag to look like a heading and to the reader there will be no difference. However the h tags have a semantic meaning (h = "heading" and the numbers 1-6 allow you to create a hierarchy with titles, subtitles etc.) which is useful for creating the toc in Sigil but also can be very important for other reasons, for example for accessibility (e.g. screen readers for blind people). If a reader turns off the css styles, h tags will still be displayed with default html styling that makes it clear they are headings and not just a paragraph of body text.

Semantically correct tags should always be used for their semantic value rather than for their appearance, and should never be mimicked on default tags (p, div) with css when the default tags are insufficiently specific.
I agree that the correct tags should be used. But if you don't go int the code to have a look, would you know the difference between <p class="chapter"> or <h2 class="chapter">? I wouldn't know the difference. When I clean up eBooks, I do leave the chapter header with the <p that the publisher put in. All I do is fix the class. If I was needing to generate a new ToC, <p would be replaced with <h2. But I don't know of any case (once the ePub is made) where there is any noticeable difference between <p and <h2 with the chapter class.
JSWolf is offline   Reply With Quote
Old 06-08-2020, 12:26 PM   #25
Nightflyer
Connoisseur
Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.Nightflyer ought to be getting tired of karma fortunes by now.
 
Posts: 81
Karma: 2122502
Join Date: May 2020
Location: Asia (from USA)
Device: Meebook M6, Kobo Clara HD
“Epub Reader Fury” was so benign and lacking any description, and yet so intriguing, I had to read the thread.

Title doesn’t fit the subject, as innumerable threads are furious. This one, not as much.

“ Moon+ Reader just seems to do whatever it wants” would be descriptive and useful.
Nightflyer is offline   Reply With Quote
Old 06-08-2020, 12:30 PM   #26
d351r3d
Enthusiast
d351r3d began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Aug 2017
Device: none
Quote:
Originally Posted by Nightflyer View Post
“Epub Reader Fury” was so benign and lacking any description, and yet so intriguing, I had to read the thread.

Title doesn’t fit the subject, as innumerable threads are furious. This one, not as much.
In the past I would've laid down more fire and brimstone. I just wanted to know why what I was doing wasn't working and showing up how html and css say it should render. I learned to ignore what the epub reader apps do because they are all mostly wrong. Not the epub creator as long as they're sticking to the laws that deal with epubs. Like Moon+ Reader. I just deleted it and was like here's your bad review for your terrible app and I finished the Bible and the Qur'an with this forums help. The help here is worth more than any app.
d351r3d is offline   Reply With Quote
Old 06-08-2020, 01:14 PM   #27
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by JSWolf View Post
I agree that the correct tags should be used. But if you don't go int the code to have a look, would you know the difference between <p class="chapter"> or <h2 class="chapter">? I wouldn't know the difference. When I clean up eBooks, I do leave the chapter header with the <p that the publisher put in. All I do is fix the class. If I was needing to generate a new ToC, <p would be replaced with <h2. But I don't know of any case (once the ePub is made) where there is any noticeable difference between <p and <h2 with the chapter class.
You might not know the difference as a human reader looking only at the rendered code. However the rendering engine knows the difference, and off the top of my head I can think of 2 situations when this is a problem (and there are probably more), as I mentioned in my previous post:

1. A blind person is reading the book using a text-to-speech app. The app will treat the title as a regular paragraph because as far as it knows, it is a regular paragraph (it only understands semantic html, not css). This will have an effect on the way the text is presented and also navigation through the text.

2. You decide you don't like the way the book looks and turn off the original CSS styles (many reading apps let you do this): in this case, the semantically correct <h2 class="chapter"> will still be presented as titles (html with no css has default styles for h tags), whereas a <p class="chapter"> will just look like a plain paragraph (the same as plain text is displayed in a .txt file).
Mister L is offline   Reply With Quote
Old 06-08-2020, 04:26 PM   #28
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: 79,758
Karma: 145864619
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 Mister L View Post
You might not know the difference as a human reader looking only at the rendered code. However the rendering engine knows the difference, and off the top of my head I can think of 2 situations when this is a problem (and there are probably more), as I mentioned in my previous post:

1. A blind person is reading the book using a text-to-speech app. The app will treat the title as a regular paragraph because as far as it knows, it is a regular paragraph (it only understands semantic html, not css). This will have an effect on the way the text is presented and also navigation through the text.

2. You decide you don't like the way the book looks and turn off the original CSS styles (many reading apps let you do this): in this case, the semantically correct <h2 class="chapter"> will still be presented as titles (html with no css has default styles for h tags), whereas a <p class="chapter"> will just look like a plain paragraph (the same as plain text is displayed in a .txt file).
1. What text-to-speech program reads chapter headers with an <h? differently then the same chapter header with a <p?

2. Why would you want to turn off the CSS? That's not a solution for anything. If I turned off or deleted the CSS, I get a basically unreadable eBook.
JSWolf is offline   Reply With Quote
Old 06-08-2020, 05:41 PM   #29
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,573
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
1. What text-to-speech program reads chapter headers with an <h? differently then the same chapter header with a <p?.
My guess would be just about all of them.
DiapDealer is online now   Reply With Quote
Old 06-08-2020, 10:42 PM   #30
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by JSWolf View Post
1. What text-to-speech program reads chapter headers with an <h? differently then the same chapter header with a <p?
Quote:
Originally Posted by DiapDealer View Post
My guess would be just about all of them.
Same, my guess would also be all of them worth mentioning.

Quote:
Originally Posted by JSWolf View Post
2. Why would you want to turn off the CSS? That's not a solution for anything. If I turned off or deleted the CSS, I get a basically unreadable eBook.
If an ebook is "basically unreadable" without the help of css, it means the person who made the ebook is doing html (very, very) wrong. CSS is purely for aesthetic styling, making it pretty. The underlying structure and semantic meaning (heading vs paragraph vs citation, emphasis...) should always be handled by the html.

Just as an experiment, take an epub with proper semantic html and delete / disactivate the css, and compare that to an epub without correctly structured text after deleting the css. Bear in mind that to all machines (for text-to-speech etc.), html with no semantic structure is more or less the same as trying to read a novel in .txt format, to a human.
Mister L is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fire and Fury sales bfisher General Discussions 85 01-10-2018 10:12 PM
Dragon's Fury tnronin ePub 10 02-28-2010 12:27 PM


All times are GMT -4. The time now is 07:44 PM.


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