View Single Post
Old 12-20-2018, 12:28 PM   #3
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,220
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
depends on whether you consdier the counting 0 based or 1 based. calibre has always done this 1- based, it's not going to change at this point.
Kovid,

Ok. Since it's 1 based, the value should be 1 or more, right?
That's also what is defined by the specs:
Quote:
dtb:depth
Content: Positive integer indicating depth of structure of the DTB as exposed by the NCX.
Occurrence: Required
But the way calibre sets this value, a flat TOC gets a depth of 2. Shouldn't it be 1?
thiago.eec is online now   Reply With Quote