Closed llemeurfr closed 5 years ago
Related to #20
Two markups coexist in the real world:
Markup 1:
<span id="page001" title="1" epub:type="pagebreak"/>
and Markup 2:
<span epub:type="pagebreak" id="page001" class="whatever">1</span>
See article: http://sketchytech.blogspot.com/2017/01/when-is-page-break-not-page-break-epub.html
We need samples: are there IDPF samples containing epub:type="pagebreak"?
So, instead of trying to display page breaks in the context of the content itself, like Jiminy Panoz tried in #20, could we display page numbers (when present) in the timeline?
We need samples: are there IDPF samples containing epub:type="pagebreak"?
Sure, wherever there is a pagelist
, there are page-breaks
:)
(in the EPUB epub:type
sense, and/or ARIA role
mapping equivalents)
All the details are in the original issue: https://github.com/readium/readium-desktop/issues/82#issuecomment-521457136 (I suggest we don't duplicate info, if we can avoid it)
Two markups coexist in the real world: ...
Actually, there is also role
equivalents to epub:type
, and aria-label
vs. title
attributes too. See: https://github.com/readium/readium-desktop/issues/82#issuecomment-526295012
So, instead of trying to display page breaks in the context of the content itself
I don't think reading systems should do anything special with HTML elements marked with epub:type="pagebreak"
or role="doc-pagebreak"
... content authors can decide (and usually do) to hide skippable items such as "page numbers / breaks" (CSS display: none
is the usual technique), or to inline versus block-display them, etc.
This is naturally an area where ReadiumCSS could be opinionated, by enforcing design choices (see discussions in https://github.com/readium/readium-desktop/issues/20 ).
So I think we should just focus on what affordances Thorium can offer to expose the "pagelist" nav (not any arbitrary pagebreaks in HTML content documents, but just those that are authored in the EPUB NavDoc).
1) flat, non-hierarchical list (fully visible + scrollable, or on-demand pulldown list) => trivial 2) search input text ("goto page number x") => trivial too (string matching, number radix) 3) maybe some mapping with bottom timeline, but this would require locator computations with percentage progress, just like mapping individual (sub)headings => not trivial
Re. ReadiumCSS could be opinionated, it’s worth noting experiments in Readium CSS definitely ended up altering the DOM with pseudo elements – generated content and screen readers already being an issue in and of itself.
The reason why I opened this issue separate from #82 is that I thought that page lists (as a nav structure) and page breaks (as inline elements in the HTML content) were two alternative ways to indicate page numbers. I see now that they are complementary (the nav reference points to the inline id). Before we close this issue and centralize the discussion in #82, a quick question: does EPUBCheck checks in referential integrity of such ref/id system?
a quick question: does EPUBCheck checks in referential integrity of such ref/id system?
Yes. EPUBCheck verifies the linear order requirement too (within HTML documents, as well as across the spine).
References:
Laurent, can we close this now?
("goto page" feature for EPUB nav@epub:type="pagelist"
is what we have right now)
The "Go to page" feature now added is sufficient. Let's close this issue.
From Pierre:
I think that the page number should be displayed in the bottom slider :
For now we can access to a specific page without known the page number. Perhaps we can open an issue with this feature ?
Originally posted by @panaC in https://github.com/readium/readium-desktop/issues/368#issuecomment-507305711