You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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?
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
@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?
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!
The text was updated successfully, but these errors were encountered: