|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,294
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
NCX dtb:depth incorrectly set
Hey, guys!
Please take a look at the NCX file below. NCX File: Spoiler:
It seems like the value for the "dtb:depth" property on NCX heading is being incorrectly set by calibre. The value should be "2", since there are only 2 levels on the TOC. After testing with other books, it looks like calibre always increase the value by 1. Am I missing something? Or is my assuption incorrect and the value should really be "3" for some reason? Last edited by thiago.eec; 12-20-2018 at 09:39 AM. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,622
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
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.
|
|
|
|
| Advert | |
|
|
|
|
#3 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,294
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Ok. Since it's 1 based, the value should be 1 or more, right? That's also what is defined by the specs: Quote:
|
||
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,622
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No an empty toc gets 1, in other words the root node is depth 1 not depth 0
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,294
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Ok. Thank you, Kovid.
|
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| depth, ncx, ncx toc levels, toc levels |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| another Better World Books sale - DTB for scanning - thru mid-day 8/24 | sufue | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 08-22-2012 03:37 PM |
| $5 mp3 credit with purchase of new DTB Amazon textbook thru 9/30/2012 | sufue | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 08-07-2012 10:32 AM |
| Better World Books 20% off 4 or more DTB | sufue | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-24-2012 07:58 PM |
| dtb:totalPageCount & dtb:maxPageNumber...what is the function? | twedigteam | ePub | 1 | 04-11-2011 06:40 PM |
| Can Calibre manage DTB books also????? | bookmonster | Calibre | 0 | 08-23-2010 03:47 PM |