Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2009, 04:56 AM   #1
Lemming
Member
Lemming began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2008
Device: Iliad
Nested navPoint problem

Hi all,

I'm trying to convert an opf file to a .mobi using ebook-convert, and I'm having a problem with nested navpoints in the ncx. Whenever I nest them like this:

Code:
<navPoint class='chapter' id='book-Z-H-9_chap_1' playOrder='5'>
  <navLabel>
    <text>1 Building Abstractions with Procedures</text>
  </navLabel>
  <content src='book-Z-H-9.xhtml#_chap_1'/>

  <navPoint class='chapter' id='book-Z-H-10_sec_1.1' playOrder='6'>
    <navLabel>
      <text>1.1 The Elements of Programming</text>
    </navLabel>
    <content src='book-Z-H-10.xhtml#_sec_1.1'/>

    <navPoint class='chapter' id='book-Z-H-10_sec_1.1.1' playOrder='7'>
      <navLabel>
        <text>1.1.1 Expressions</text>
      </navLabel>
      <content src='book-Z-H-10.xhtml#_sec_1.1.1'/>
    </navPoint>
etc etc
when I run Calibre I see the following message:

skipping class: chapter depth 3 at position 4
skipping class: chapter depth 2 at position 5


And these items don't appear in the navpoint list. It always skips ths items which contain other navPoints. Any ideas why? This is with 0.6.18 on OSX.

Thanks,
Colin
Lemming is offline   Reply With Quote
Old 11-11-2009, 10:18 AM   #2
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
Colin:
The simple answer is to not nest the navpoints, but to keep them all at the same level, even though they represent hierarchical content. Your profile says 'Iliad'; does the Iliad have the ability to show the hierarchy of a book somewhere in its UI?

On the Kindle, the only purpose of the navPoints is to specify where the destination points of a left click or right click of the 5-way controller will take you. I think this code is optimized for the Kindle.

Hope this helps.

G
GRiker is offline   Reply With Quote
Old 11-11-2009, 04:27 PM   #3
Lemming
Member
Lemming began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2008
Device: Iliad
Hi G,

Thanks, that's pretty much what I was thinking of doing, I just wanted to check if it was possible. I now have a Kindle DX, I just haven't updated my profile yet. The navpoints are great on the Kindle, being able to go from chapter to chapter is fantastic.

Thanks,
Colin
Lemming is offline   Reply With Quote
Old 12-20-2009, 11:24 AM   #4
erik5000
Member
erik5000 began at the beginning.
 
Posts: 15
Karma: 12
Join Date: Nov 2009
Device: sony prs600
set level

did you set the level to 3 in th ncx ?

<meta name="dtb:depth" content="3"/>
erik5000 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NCX creation -- nested or not, css classes illustrata ePub 3 08-25-2010 08:56 AM
Content nested collections alexxx Amazon Kindle 6 06-22-2010 06:05 PM
PRS-500 battery problem, but the battery's not the problem ZachC Sony Reader 7 01-11-2010 11:46 PM
toc.ncx navpoint content=src empty? KevinH Sigil 6 11-23-2009 01:39 PM
Are Nested TOCs Possible? VikingDave Sony Reader 11 12-28-2007 07:58 PM


All times are GMT -4. The time now is 07:50 AM.


MobileRead.com is a privately owned, operated and funded community.