Thread: Aura HD Corrupt database?
View Single Post
Old 01-10-2014, 09:35 PM   #24
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by davidfor View Post
What's the problem? Any epub that I have had calibre generate passes any validation that I've tried. And I've followed discussion here with lots of complaints about whet calibre generates, but only about the styles and formatting used, not about epub spec violation.
The specific problem is that Calibre's "depth" value in its NCX files is one point too high. That is, a flat TOC should have a depth of 1, and Calibre assigns 2 instead - and that error propagates no matter how deep the TOC is.

When I contacted the developer about this, complete with reference to the relevant part of the spec, he said that Calibre's behavior is due to the requirement that the depth is at least 1, and a null TOC would generate a value of 0 and thus be out of spec. When I pointed out that a null TOC is also out of spec, he got huffy and put me on his ignore list.

So, now I use Calibre as little as possible and know to always decrement that value when I do so.
Rev. Bob is offline   Reply With Quote