Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2022, 12:48 PM   #1
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Best way to do three-line space/pause, for accessibility?

I would normally make a space between some paragraphs in text by adding the requisite top or bottom margin to a p class. However, EPUB 3 Best Practices (ten years old) tells me this is bad for accessibility since readers for the blind (ten years ago) couldn't interpret such a margin. That book recommends instead that I use a horizontal rule, a hr tag, in which I make the width zero to dispense with the rule and then add top and bottom margin. Clever I suppose, but to me this is a bad semantic practice, since my three-line space is a pause, not a rule or a fleuron.

Some people probably still use numerous br tags, but this is a leftover from bad web design.

So my question is: Have accessibility readers improved over the past ten years so they can now 'see' such a margin on a p tag for what it is, and interpret it reliably for the blind (I have no idea, also, how they 'read' a hr tag)? Is this still a problem, or not?

How do other people approach this?
bookman156 is offline   Reply With Quote
Old 07-13-2022, 01:29 PM   #2
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
I don't think there is any tag that maps to a "pause" semantically. And there wouldn't be a way for a screen reader to see a margin-top as one, because there's no way it could understand intent like that. So basically, anything you do here would be kind of inherently unsemantic and possibly lost to screen readers. Hypothetically you could group paragraphs together into <section>s or something, but it sounds more like these are "let that sink in" type pauses rather than actual changes in topic, so that would also be incorrect semantically if that's the case.
phillipgessert is offline   Reply With Quote
Advert
Old 07-13-2022, 01:36 PM   #3
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Yes, 'let it sink in' pauses is what I mean. Typically as in a book of aphorisms.

So looks like I'll have to wait for the powers-that-be to catch up with this one and carry on for sighted readers.
bookman156 is offline   Reply With Quote
Old 07-13-2022, 02:30 PM   #4
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
And there wouldn't be a way for a screen reader to see a margin-top as one, because there's no way it could understand intent like that.
I wonder about that, since anything the eyes can interpret ought to be translatable. Why else would there be an unusually large margin on some paragraphs other than because it was an increased space. I guess that may or may not be a pause between paragraphs, but I can't right now think what else it might be.
bookman156 is offline   Reply With Quote
Old 07-13-2022, 03:29 PM   #5
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: 73,855
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I used to use a 2em top padding. The reason for the padding instead of a top margin is that it works better when the space is at the bottom/top of the page.

But now I changed that and I use a 20% line for note a section break.

Code:
hr {
  margin-top: 1em;
  margin-right: 40%;
  margin-bottom: 0.9em;
  margin-left: 40%;
  border-top: 2px solid;
}
JSWolf is online now   Reply With Quote
Advert
Old 07-13-2022, 03:39 PM   #6
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
I can see a 'half rule' as we used to call them would be good in some circumstances.

Any idea how hr tags are 'voiced' by accessibility readers? Are there any good accessibility readers one can get for free online?
bookman156 is offline   Reply With Quote
Old 07-13-2022, 03:47 PM   #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: 73,855
Karma: 128597114
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 bookman156 View Post
I can see a 'half rule' as we used to call them would be good in some circumstances.

Any idea how hr tags are 'voiced' by accessibility readers? Are there any good accessibility readers one can get for free online?
Probably poorly. You could something like...

Code:
<p class="sectionbreak">Start of a new section.</p>
Code:
.sectionbreak {
  padding-top: 0.8em;
  padding-bottom: 0.8em;
  text-align: center;
  text-indent: 0;
}
JSWolf is online now   Reply With Quote
Old 07-13-2022, 03:51 PM   #8
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
I do something like that with margins but don't call it 'sectionbreak'.

But accessibility readers don't read p class names do they? So presumably what I call it has no impact. Or am I wrong on that?
bookman156 is offline   Reply With Quote
Old 07-13-2022, 03:52 PM   #9
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Oh, you mean actually have text saying 'Start of a new section'. That would drive people mad in a book with many 3-line pauses between bits.
bookman156 is offline   Reply With Quote
Old 07-13-2022, 03:59 PM   #10
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: 73,855
Karma: 128597114
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 bookman156 View Post
Oh, you mean actually have text saying 'Start of a new section'. That would drive people mad in a book with many 3-line pauses between bits.
It would work, My <hr/> most likely won't work. But you'd have to test it to be sure.

Quote:
Originally Posted by bookman156 View Post
I do something like that with margins but don't call it 'sectionbreak'.

But accessibility readers don't read p class names do they? So presumably what I call it has no impact. Or am I wrong on that?
The accessibility readers will not read the class names. But I prefer to use class names that say what they are for when I can.
JSWolf is online now   Reply With Quote
Old 07-13-2022, 04:02 PM   #11
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Well the solution I mentioned at the beginning of having hr tags of zero width to remove from sighted readers with margin top and bottom would actually work, I was hoping there was something a big more elegant.
bookman156 is offline   Reply With Quote
Old 07-13-2022, 04:04 PM   #12
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: 73,855
Karma: 128597114
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 bookman156 View Post
Well the solution I mentioned at the beginning of having hr tags of zero width to remove from sighted readers with margin top and bottom would actually work, I was hoping there was something a big more elegant.
The solution of a zero width <hr/> is not a good idea for sighted readers. I want to see the line and know it's a section break easily. That's why my CSS displays the line. I use 2px solid because it looks better on a 300dpi eInk screen then the default 1px solid line.

Last edited by JSWolf; 07-13-2022 at 05:18 PM.
JSWolf is online now   Reply With Quote
Old 07-13-2022, 04:07 PM   #13
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
The solution of a zero width <hr/> is not a good idea for sighted readers. I want to see the line and know it's a section break easily. That's why my CSS displays the line.
I don't like removing the rule that way either, but you would see the 3-line space of its margins, that would be displayed as hoped for.
bookman156 is offline   Reply With Quote
Old 07-13-2022, 04:08 PM   #14
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by bookman156 View Post
I would normally make a space between some paragraphs in text by adding the requisite top or bottom margin to a p class.
I've written about this many times over the years:

See my posts in:

And I even cover all the pros/cons in extreme detail here:

Long story short.

DO NOT use only a gap like a physical book.

Use centered asterisks (or fleurons, or ANYTHING VISIBLE) to indicate your scenebreaks.

Quote:
Originally Posted by bookman156 View Post
However, EPUB 3 Best Practices (ten years old) tells me this is bad for accessibility since readers for the blind (ten years ago) couldn't interpret such a margin. That book recommends instead that I use a horizontal rule, a hr tag, in which I make the width zero to dispense with the rule and then add top and bottom margin.
I would still stick with centered asterisks over HTML5's usage of <hr> + CSS3 to change the look.

Remember, KISS (Keep It Simple, Stupid!). And not all devices have CSS.

I discussed this all in extreme detail in:

Side Note: If you want the ultimate latest topic on "Italics <i> vs. Emphasis <em>" + Accessibility, see my breakdown in:

Quote:
Originally Posted by bookman156 View Post
Clever I suppose, but to me this is a bad semantic practice, since my three-line space is a pause, not a rule or a fleuron.
In HTML5, they changed the semantics of <hr>.

In the modern web, there's also this thing called the "Accessibility Tree" + ARIA Roles... and <hr> helps generate new HTML <section>s in your text. (Allowing easier navigation via Screen Readers, etc.)

Semantically, it is the correct way of doing scenebreaks... but in reality, I would tentatively avoid using <hr> like that in your ebooks.

I mean, <hr> is OKAY—and it's definitely better than your visual gap—but there are disadvantages compared to centered asterisks. (It was all discussed in those thread above.)

Quote:
Originally Posted by bookman156 View Post
Some people probably still use numerous br tags, but this is a leftover from bad web design.
No. Rarely, if ever, should you use <br>.

Last edited by Tex2002ans; 07-13-2022 at 04:14 PM.
Tex2002ans is offline   Reply With Quote
Old 07-13-2022, 04:11 PM   #15
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
My problem with it is using the hr tag when it isn't a rule at all, it's a space. I suppose you could say a margin isn't really a 3-line space either, but it seems less bad to me, and it is the standard way to achieve this in CSS. Except blind people are losing out on the semantic flow.
bookman156 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Increase Line Space in Calibre 4.2 Viewer brown.ml Calibre 2 10-19-2019 11:07 AM
Space between First and Second line on the Chapters nadabutamor Kindle Formats 19 08-26-2018 02:28 PM
italic at end of line causes next line to start with a space ebookreadr Sigil 29 03-20-2017 11:25 AM
Glo Line space bug with some fonts sage79 Kobo Developer's Corner 5 07-09-2015 03:01 PM
How to increase the line space in CSS Sylver Calibre 3 08-08-2010 01:02 AM


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


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