View Single Post
Old 01-14-2010, 11:15 PM   #7
elvenic
Enthusiast
elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.elvenic 's shirt has a full set of merit badges.
 
Posts: 31
Karma: 16610
Join Date: Dec 2009
Location: San Jose, CA, USA
Device: Kindle PW, Kobo Glo
Quote:
Originally Posted by kovidgoyal View Post
Check the <spine> and <manifest> elements in the opf file that will tell you what files are being read.
<spine> and <manifest> point to all the right files: when I removed original 'index.html' files, I substituted them with dummy 'index.html' files that contain syntactically correct html. So everything that <manifest> refers to is still there.

But I have just made another discovery : the original index.html file in the third article directory ('article_2') subdirectory contains strange <img> element (with empty 'src' attribute):

<img src="" width="" height="" alt="" class="calibre15"/>

When this element is present in the epub, Sony freezes when it tries to show third article.

When I commented this out :

<!-- <img src="" width="" height="" alt="" class="calibre15"/> -->

and build epub and download it to the Sony, it did not freeze! Maybe this is a source of this trouble?

Is there a way to make the recipe to ignore <img> elements with empty src?

Or may be this should be hardcoded somewhere in the Calibre source as a basic sanity check: what is a point of an image with no src URL?
elvenic is offline   Reply With Quote