jbarbin / EPub-Reader

An open web app for reading epub e-Books
9 stars 5 forks source link

Pages not displayed #25

Open Desiderius77 opened 11 years ago

Desiderius77 commented 11 years ago

I have downloaded a new ebook :

http://www.ebooksgratuits.com/newsendbook.php?id=51&format=epub

It loads without error and shows me the chapters.

But when I click on a chapter, the page view appears without any content !

Perhaps there is a problem with XML files since this is only ebook I have uploaded that contains XML files and not HTML files

unzip -t balzac_35_le_lys_dans_la_vallee.plain.epub Archive: balzac_35_le_lys_dans_la_vallee.plain.epub testing: mimetype OK testing: META-INF/ OK testing: OEBPS/ OK testing: OEBPS/images/ OK testing: META-INF/container.xml OK testing: META-INF/manifest.xml OK testing: OEBPS/images/055.jpg OK testing: OEBPS/images/056.jpg OK testing: OEBPS/package.opf OK testing: OEBPS/page-template.xpgt OK testing: OEBPS/style.common.css OK testing: OEBPS/style.plain.css OK testing: OEBPS/text-1.xml OK testing: OEBPS/text-2.xml OK testing: OEBPS/text-3.xml OK testing: OEBPS/text-4.xml OK testing: OEBPS/text-5.xml OK testing: OEBPS/text-6.xml OK testing: OEBPS/text-7.xml OK testing: OEBPS/text-8.xml OK testing: OEBPS/text-9.xml OK testing: OEBPS/toc.ncx OK No errors detected in compressed data of balzac_35_le_lys_dans_la_vallee.plain.e pub.

aratagobal commented 11 years ago

I do not think there is a problem with the XML files. I think the error comes from the file 'toc.ncx'. In fact, the program parses the file and for each retrieves the file to display through the attribute 'src'.

<navPoint "content src="text-1.xml#couverture"/" <navPoint content src="text-8.xml#illustrations"/

For this book, the file refers to files which are showing only the title. Try opening the file 'text-1.xml' or 'text-8.xml', you'll see that there is nothing to show except titles.

This is the file which is malformed, it don't refers to right files.