12-20-2018, 08:37 AM | #1 |
Guru
Posts: 921
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
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 08:39 AM. |
12-20-2018, 10:04 AM | #2 |
creator of calibre
Posts: 43,842
Karma: 22666666
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.
|
12-20-2018, 12:28 PM | #3 | ||
Guru
Posts: 921
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
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:
|
||
12-20-2018, 09:52 PM | #4 |
creator of calibre
Posts: 43,842
Karma: 22666666
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
|
12-21-2018, 05:06 AM | #5 |
Guru
Posts: 921
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Ok. Thank you, Kovid.
|
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 02: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 09: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 06:58 PM |
dtb:totalPageCount & dtb:maxPageNumber...what is the function? | twedigteam | ePub | 1 | 04-11-2011 05:40 PM |
Can Calibre manage DTB books also????? | bookmonster | Calibre | 0 | 08-23-2010 02:47 PM |