View Single Post
Old 09-14-2020, 12:54 AM   #44
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: 46,973
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by najgori View Post
...or one could use browser web inspector and directly read book code.
Is this demo epub even reflowable, or is it fixed layout?
Redshelf epubs are reflowable. Just that they do not have useful documentation on the accessibility requirements. What they seem to want is a page list in the navigation document ( the first sample is from an epub3 book's nav.xhtml, the second from the toc.ncx included for epub2 renderers):

Code:
<nav role="doc-pagelist" aria-label="Page list" epub:type="page-list">
<h2>Pagebreaks of the print version</h2>
<ol>
<li><a href="xhtml/cover.xhtml">Cover Page</a></li>
<li><a href="xhtml/title.xhtml#pg_v">v</a></li>
<li><a href="xhtml/epigraph.xhtml#pg_vii">vii</a></li>
<li><a href="xhtml/chapter1.xhtml#pg_1">1</a></li>
<li><a href="xhtml/chapter1.xhtml#pg_2">2</a></li>
<li><a href="xhtml/chapter1.xhtml#pg_3">3</a></li>
...
<li><a href="xhtml/epilogue.xhtml#pg_353">353</a></li>
<li><a href="xhtml/epilogue.xhtml#pg_354">354</a></li>
<li><a href="xhtml/epilogue.xhtml#pg_355">355</a></li>
<li><a href="xhtml/adcard.xhtml#pg_ii">ii</a></li>
<li><a href="xhtml/adcard.xhtml#pg_iii">iii</a></li>
<li><a href="xhtml/copyright.xhtml#pg_vi">vi</a></li>
</ol>
</nav>
Code:
<pageList>
<pageTarget type="normal" id="id_cov" value="Cover Page"><navLabel><text>Cover Page</text></navLabel><content src="xhtml/cover.xhtml"/></pageTarget>
<pageTarget type="normal" id="id_v" value="v"><navLabel><text>v</text></navLabel><content src="xhtml/title.xhtml#pg_v"/></pageTarget>
<pageTarget type="normal" id="id_vii" value="vii"><navLabel><text>vii</text></navLabel><content src="xhtml/epigraph.xhtml#pg_vii"/></pageTarget>
<pageTarget type="normal" id="id_1" value="1"><navLabel><text>1</text></navLabel><content src="xhtml/chapter1.xhtml#pg_1"/></pageTarget>
<pageTarget type="normal" id="id_2" value="2"><navLabel><text>2</text></navLabel><content src="xhtml/chapter1.xhtml#pg_2"/></pageTarget>
<pageTarget type="normal" id="id_3" value="3"><navLabel><text>3</text></navLabel><content src="xhtml/chapter1.xhtml#pg_3"/></pageTarget>
...
<pageTarget type="normal" id="id_353" value="353"><navLabel><text>353</text></navLabel><content src="xhtml/epilogue.xhtml#pg_353"/></pageTarget>
<pageTarget type="normal" id="id_354" value="354"><navLabel><text>354</text></navLabel><content src="xhtml/epilogue.xhtml#pg_354"/></pageTarget>
<pageTarget type="normal" id="id_355" value="355"><navLabel><text>355</text></navLabel><content src="xhtml/epilogue.xhtml#pg_355"/></pageTarget>
<pageTarget type="normal" id="id_ii" value="ii"><navLabel><text>ii</text></navLabel><content src="xhtml/adcard.xhtml#pg_ii"/></pageTarget>
<pageTarget type="normal" id="id_iii" value="iii"><navLabel><text>iii</text></navLabel><content src="xhtml/adcard.xhtml#pg_iii"/></pageTarget>
<pageTarget type="normal" id="id_vi" value="vi"><navLabel><text>vi</text></navLabel><content src="xhtml/copyright.xhtml#pg_vi"/></pageTarget>
</pageList>
Then you add the following or similar for each page reference:

Code:
<span aria-label="17" id="pg_17" role="doc-pagebreak"/>
This gets to be even more fun when there is no reference print book to lift the page numbers from.

This is where I feel happy that I have the ability to say no expletive deleted way to certain would be customers.
DNSB is online now   Reply With Quote