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-18-2008, 08:13 AM   #1
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
Question EPUB Table of Contents

I created a book of feeds using the following syntax:

Code:
html2epub index.html --level1-toc=//*[@class="feed"] --level2-toc=//*[@class="article"]
The main table of contents works well but when I select one of the chapters it brings up a page which I can navigate through using the directional & enter buttons rather than the "true" table of contents which can be accessed via the number keys. How do I get a proper multi-level table of contents?
Acey is offline   Reply With Quote
Old 11-18-2008, 02:03 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That should work
kovidgoyal is offline   Reply With Quote
Advert
Old 11-18-2008, 08:52 PM   #3
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
I can repeat this issue:

Code:
feeds2disk "USA Today" --test
Delete the OPF and NCX files.

Code:
html2epub index.html --level1-toc=//*[@class="feed"] --level2-toc=//*[@class="article"]
The 2nd level of the table of contents will not be created.

Opening a ticket now...
Acey is offline   Reply With Quote
Old 11-18-2008, 09:02 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you're using feeds2disk anyway, why not use the existing OPF+NCX files?
kovidgoyal is offline   Reply With Quote
Old 11-19-2008, 07:37 AM   #5
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
I'm working with a set of html files created with feeds2disk that were merged together manually so there is no OPF or NCX file for that set of files. It seems it would not create a 2nd level TOC for any set of html files (unless of course you had an OPF & NCX file).
Acey is offline   Reply With Quote
Advert
Old 11-19-2008, 10:49 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well you can use the toc options provided you make sure there is a level1 toc in each file that has a level2 toc as well. Currently that's not possible with the output of feeds2disk, but in the next release I'll add a class name to the feed title so you can use that option.
kovidgoyal is offline   Reply With Quote
Old 11-19-2008, 11:33 AM   #7
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
Kovid: Can you clarify this? Is there a way currently to create a level1 TOC on a per-file basis?

Quote:
Originally Posted by kovidgoyal View Post
Well you can use the toc options provided you make sure there is a level1 toc in each file that has a level2 toc as well.
What would the syntax be to create an EPUB with level 1 & 2 TOC in the next release?

Thanks for all your help.
Acey is offline   Reply With Quote
Old 11-19-2008, 11:35 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Code:
html2epub index.html --level1-toc=//*[@class="feed_title"] --level2-toc=//*[@class="article"]
kovidgoyal 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
Adding Table of Contents to ePub problems... cates Calibre 2 10-10-2010 04:18 PM
How to make a PDF table of contents work in epub ajbrutico Calibre 3 09-26-2010 09:31 AM
Table of contents issue - xhtml to epub Ryan_scriptorium Calibre 1 07-11-2010 10:40 AM
Table of Contents on ePub Matt2012 Ectaco jetBook 3 03-13-2010 01:35 PM
ePub-Sony 505 slow table of contents? dordale ePub 7 01-31-2009 06:18 AM


All times are GMT -4. The time now is 10:14 PM.


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