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

Book does not render: "No entry found text/page-template.xpgt" #99

Closed
jonathon-love opened this issue Feb 2, 2014 · 5 comments
Closed
Assignees
Labels

Comments

@jonathon-love
Copy link
Contributor

Hi, I've created an epub book using Calibre, but a javascript error is thrown when I try and view it in
/examples/basic-dev.html
The cover page renders correctly, but when I try and move to the next page, both pages go blank, and firebug reports two errors:

No entry found text/page-template.xpgt
unarchiver.js (line 83)

TypeError: entry is undefined
entry.getText(function(text){
unarchiver.js (line 85)

the book is not public domain, so i cannot include it with this report, but i can send it to you if you would like.

with thanks, and keep up the good work!

@jonathon-love
Copy link
Contributor Author

Hi, after digging around, it seems the issue is to do with a stylesheet declaration:
<link rel="stylesheet" type="application/vnd.adobe-page-template+xml" href="page-template.xpgt"/>
this file is not included in the ePub, which made me think it was a problem with calibre. however, reading this:
http://www.hxa.name/articles/content/epub-guide_hxa7241_2007.html#adestylesheet
makes me think that epub.js should ignore it.
I have modified my epub.js to ignore stylesheets of type: "application/vnd.adobe-page-template+xml", does this seem like the right approach?

@AJRenold
Copy link
Contributor

AJRenold commented Feb 3, 2014

That error from unarchiver.js is because it was not able to find a file it expected to find. This type of error should be handled better and not prevent Epub.js from loading the book, you shouldn't need to tell Epub.js to ignore book assets by type. I'll try to reproduce it and make a fix in Epub.js

@AJRenold AJRenold self-assigned this Feb 3, 2014
@AJRenold
Copy link
Contributor

AJRenold commented Feb 4, 2014

@fchasen I had to create a new version of moby-dick with a modified chapter to reproduce this error in moby-dick.epub. How do you think we should include this as a test case?

@AJRenold
Copy link
Contributor

AJRenold commented Feb 4, 2014

Hi @jonathon-love I just pushed a fix and updated our build. 5d52ff4

@jonathon-love
Copy link
Contributor Author

Fixed! Thanks for your quick response!

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

No branches or pull requests

2 participants