Thread: Aura HD Corrupt database?
View Single Post
Old 01-13-2014, 12:02 AM   #30
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Rev. Bob View Post
My read of the spec is that the TOC must contain at least one navPoint element; that is, it cannot be empty. This correlates with the requirement that the depth must be a positive integer; a TOC with only one navPoint element is "flat" by definition and thus has the minimum depth of 1.
I was looking at this yesterday, and I agree with you about the depth. I think that calibre is setting it one higher than it should. Except maybe if the TOC is empty. That one had me as I couldn't find a spec to say what should be in the navmap for that. Or whether it should be there at all.

I did do some experiments. Nothing seemed to care what the depth was set to or if it was there. The only error I could get was from the Sigil validation if the navmap was missing or empty. Everything else didn't seem to care.

In Sigil, if you empty the TOC and generate it from that, it creates the sample that DNSB posted. Doing the same in the calibre editor, puts in an empty navmap. In the viewers (ADE, calibre, Glo FW3.1.1), the Sigil version gives a one entry TOC with "Start". For the calibre version, they don't show a TOC.

Most importantly to me, the Kobo firmware didn't care. I was expecting it to be fussy and reject one of the tests.
davidfor is offline   Reply With Quote