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

EPUB's NCX document should not have playOrder attributes #1760

Closed
elmimmo opened this issue Nov 13, 2014 · 2 comments
Closed

EPUB's NCX document should not have playOrder attributes #1760

elmimmo opened this issue Nov 13, 2014 · 2 comments

Comments

@elmimmo
Copy link

elmimmo commented Nov 13, 2014

navPoint elements in the NCX document of EPUB output by Pandoc should not have the playOrder attribute.

The EPUB 2.0.1 specification specifically mentions that the playOrder attribute is not required if the NCX document does not have a DOCTYPE (which current Pandoc happens not to add).

No ereader requires or uses them, and on the other hand their presence make manually tweaking the TOC difficult since adding or removing navPoint requires renumbering them all. epubcheck requires that playOrder values are consecutive only if they are present at all.

@jgm
Copy link
Owner

jgm commented Nov 17, 2014

Does this apply to epub2 only, or also epub3?

@elmimmo
Copy link
Author

elmimmo commented Nov 17, 2014

To both: the NCX is an EPUB 2 document, but can be included in EPUB 3 for backwards compatibility. When it is included, therefore, it still follows the EPUB 2 spec, which is where it is stated that playOrder is not required provided the NCX document does not have a DOCTYPE.

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

No branches or pull requests

3 participants