Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagebreak in Children's Literature #19

Open
michael-roe opened this issue Jan 7, 2022 · 4 comments
Open

Pagebreak in Children's Literature #19

michael-roe opened this issue Jan 7, 2022 · 4 comments

Comments

@michael-roe
Copy link

michael-roe commented Jan 7, 2022

In the Children's Literature example, the page break for pages 197, 212, 229 and 255 (and not the other pages) do not have the page number inside the span tags. The other page breaks do.

I assume this is just a mistake, rather than a test of how e-readers handle page breaks with optional elements present and absent.

@michael-roe michael-roe changed the title Pagebreak in Children's Literatre Pagebreak in Children's Literature Jan 7, 2022
@mattgarrish
Copy link
Member

mattgarrish commented Jan 7, 2022

I wouldn't follow any of the samples for page breaks to be honest. They're pretty dated now.

There are two ways you can better mark the breaks using the ARIA role attribute. One is with the name from contents:

<span role="doc-pagebreak" id="p123">123</span>

And the other is from the accessible name calculation using the aria-label or title attributes:

<span role="doc-pagebreak" id="p123" aria-label="123"/>

You can always add the epub:type attribute, as well, but it's not likely to add any functionality in reading systems. With ARIA role, assistive technologies can process either approach.

@danielweck
Copy link
Member

For further information, DAISY Knowledge Base :)
http://kb.daisy.org/publishing/docs/navigation/pagelist.html

@michael-roe
Copy link
Author

michael-roe commented Jan 7, 2022

Thanks for the reply!

I was using the example to test whether e-readers supported the feature. When I create an ebook, I was intending to use something like
<span role="doc-pagebreak" id="p123" aria-label="123"></span>

@mattgarrish
Copy link
Member

Reading systems are more likely to use the page list than the page breaks in the content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants