asido/EpubSharp

some book cannot be read

songshizhao opened this issue · 1 comments

I cannot test with your code for envir problems
I think this may be easy to fix, here is the samples
book1
book2

Good news! I've debugged both of these problems and have (mediocre) solutions!

Book 1: the "play order" values are in hex, not decimal. In NcxREader.cs, about line 75, where the playorder is converted to integer with a (int?) cast, this just throws for hex numbers. I've got a workaround in my version of the file.

Book 2: the OPF file is malformed! in particular, in the header there's the sequence

unique-identifier="PrimaryID" mlns="http://www.idpf.org/2007/opf"

Note that the word "xmlns" has been misspelled as "mlns" without the X. I've put in a clumsy workaround in my version of the code.

As a fun aside: this book is also unique in my limited experience: the id value is blank, which my ebook reader didn't handle.

Many thanks for your library; it's been simple for me to use for my own epub reader. I've got a long gripe list for things that people mess up in epubs.