-
Notifications
You must be signed in to change notification settings - Fork 405
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
"Non-linear content must be reachable," error for OEBPS/cover.xhtml in epubcheck 5.0.0: why? #1488
Comments
With regard to the issue I posted a few minutes ago, I just wanted to note that the epub in the URL and the epub being validated have different file names, but they are identical files. When I test on the epub in the URL, I get the identical error message: |
The EPUB spec requires that non-linear content (the documents referenced in an This requirement dates back to at least EPUB 3.1, but the check has only been recently added to EPUBCheck (in #1451).
A toc entry is not specifically required, but some kind of link yes. The easiest workaround for now is to add a All that said, your case (a non-linear cover image) is one that @mattgarrish foresaw could lead to confusion. But this is not directly an issue with EPUBCheck, which correctly implements the specification here, but more of the specification itself. It could be discussed in a new issue on the EPUB specification. I'll leave this issue open for a while, in case others have thoughts or the WG decides that the spec should be amended or EPUBCheck made less strict. |
rdeltour, Thanks for the insight. FYI, this epub was generated through docbook XSLT, and I need to look into how the xslt can output landmarks. In the meantime, I found that hardcoding a conventional hyperlink to "OEBPS/cover.xhtml in one of the HTML output pages -- in my case the CREDITS AND ACKNOWLEDGEMENTS HTML page -- easily fixed the issue. (Because I'm just a stranger here, I won't close the issue; I'll leave it to you guys to handle. ) |
Hello @idiotprogrammer , in your reflowable EPUB I don't see a strong justification for the "cover" HTML document to exist in the reading order, so alternatively (instead of adding a link just to pass EPUBCheck validation) you could remove |
I'm no expert either, but I think Apple "iBooks" is not EPUB 3 reader. It limited functions support doesn't even |
This message drives me crazy! How do I fix it? |
See @rdeltour's comment above, specifically:
|
I don't know how, I'm not a tech user, I'm using Ulysses app and their export has this error. |
You likely need to contact them, then, and see if they can fix their export. There isn't a solution to the problem that doesn't involve manually editing your EPUB once it's been exported. A program like sigil would shield you from having to understand the nuances of an epub's zipping, but you'll still have to figure out how to add the landmarks nav with the correct entry. |
I see, thanks for responding |
I created an epub file which validated in epubcheck 4.2.6 with no errors. Now I'm trying to validate it with the command line tool of the latest epubcheck 5.0.0 for epub3.3 and I got this message:
ERROR(OPF-096): hostage25.epub/OEBPS/package.opf(31,79): Non-linear content must be reachable, but found no hyperlink to "OEBPS/cover.xhtml".
I'm not familiar enough with 3.3 epub standard to know what's going on, but in package.opf, I have the lines:
I assume that the 5.0.0 validation error message does NOT mean that I should have a TOC entry in the navigation html document for the cover image. Surely that is not being required, right?
(by the way, if you want to examine the epub file in question that I'm using , it's on a public facing website -- it's a public domain ebook https://www.personvillepress.com/11378h/random/hillyer/robert-hillyer-my-heart-for-hostage10.epub )
Thanks. rjn
The text was updated successfully, but these errors were encountered: