Quote:
Originally Posted by davidfor
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.