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

Pagelist parsing breaks on non-numeric page numbers and does not use hrefs. #1264

Open
martinq opened this issue Mar 29, 2022 · 0 comments
Open

Comments

@martinq
Copy link

martinq commented Mar 29, 2022

When parsed using either ncxItem or item, the page number text is always run through the parseInt function. This fails on non-numeric page numbers like Roman numerals in prologues, e.g.:

<nav xmlns:epub="http://www.idpf.org/2007/ops" epub:type="page-list" hidden="hidden">
    <ol>
        <li><a href="Titlepage.xhtml#page_i">i</a></li>
        <li><a href="Dedication.xhtml#page_iii">iii</a></li>
        <li><a href="Foreword.xhtml#page_v">v</a></li>
        <li><a href="Foreword.xhtml#page_vi">vi</a></li>

In addition, the only page information that is retained from either type of item is the page number itself and any associated CFI. The href property is not used. As a result, page list navigation will only function if pages are expressed in CFI.

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

1 participant