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

EPUB3 "popup" footnotes #505

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open

EPUB3 "popup" footnotes #505

wants to merge 12 commits into from

Conversation

danielweck
Copy link
Member

@danielweck danielweck commented Mar 11, 2016

Work In Progress

See the shared-js PR: Waffle connects to readium/readium-shared-js#33

Demos:

http://readium-footnotes.surge.sh/?epub=https%3A%2F%2Freadium.firebaseapp.com%2Fepub_content%2Fmoby_dick&goto=%7B%22idref%22%3A%22xpreface_001%22%2C%22elementCfi%22%3A%22%2F4%2F2%2F2%2F2%2C%2F1%3A0%2C%2F1%3A1%22%7D

http://readium-footnotes.surge.sh/?epub=https%3A%2F%2Fcdn.rawgit.com%2FIDPF%2Fepub3-samples%2Fmaster%2F30%2Fgeorgia-cfi&goto=%7B%22idref%22%3A%22doc1%22%2C%22elementCfi%22%3A%22%2F4%2F2%5Bd10e42%5D%2F18%5Bd10e150%5D%2F4%5Bd10e155%5D%2C%2F1%3A762%2C%2F1%3A763%22%7D

http://readium-footnotes.surge.sh/?epub=https%3A%2F%2Fcdn.rawgit.com%2Fmichal-h21%2Fepub3sample%2Fmaster%2Fhsmmt10t.epub&goto=%7B%22idref%22%3A%22file21%22%2C%22elementCfi%22%3Anull%7D

The basic principle is that handling of popup footnotes can be disabled via a runtime configuration flag (reverting to regular hyperlinking), and that the actual display of the note contents (popup overlay) can be customized in a particular app implementation. Right now in this feature branch, we use an application-level popup dialog (which is fully accessible to screen readers), but it could potentially be a div overlay inside the EPUB HTML. The main challenge is to render some HTML+CSS fragment outside of the main rendering context, to sanitize the HTML markup, the hyperlinks, etc.

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

Successfully merging this pull request may close these issues.

2 participants