Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2012, 05:39 PM   #1
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
Need more toc levels

In Structure Detection, I've got an xpath line that looks like this:
//*[((name()='title' or name()='h1' or name()='h2' or name()='h3') and re:test(., '.*', 'i')) or @class = 'chapter']
Yet, on the Table of Contents page, there are only 3 levels of TOC building, which I have set to //h:title, //h:h1, and //h:h2.
I'm kindasortalike, you know, needing another level or two of TOC - is there a way to add levels on the Table of Content page?
And no, I don't want to use Sigil, or EpubFixer, or the TOC fixer apps. Really want it to come out of Calibre (because I'm converting to both Mobi and Epub)

-Brewt
brewt is offline   Reply With Quote
Old 01-15-2012, 10:22 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: 45,249
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, 3 levels is the max. Hand code your TOC and use the TOC from links option in calibre.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-10-2014, 11:26 PM   #3
Kumara
Junior Member
Kumara began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2014
Device: Kindle Touch
Quote:
Originally Posted by kovidgoyal View Post
No, 3 levels is the max. Hand code your TOC and use the TOC from links option in calibre.
Can you point me to a source on this? A concise one is preferred.
Kumara is offline   Reply With Quote
Old 10-11-2014, 09:09 AM   #4
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
@Kumara -- the TOC XPath option allows 5 levels. That might be an option

http://manual.calibre-ebook.com/edit...le-of-contents

Maybe that will help

I've only ever brushed the surface of using XPath and only for simple things like Hx's
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	174
Size:	102.1 KB
ID:	129526   Click image for larger version

Name:	Capture2.JPG
Views:	182
Size:	89.6 KB
ID:	129527  
phossler is offline   Reply With Quote
Old 10-12-2014, 11:51 PM   #5
Kumara
Junior Member
Kumara began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2014
Device: Kindle Touch
Oh.... I see. Thanks, phossler!
Kumara is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Contrast Levels vs Other eReaders fkm Kobo Reader 38 01-25-2012 09:21 AM
Footnotes added to TOC, and levels not detected eggheadbooks1 Conversion 2 05-10-2011 01:11 AM
Syntax for toc.ncx Levels 1 and 2? NewDay ePub 7 04-04-2011 04:09 PM
Kindle black levels teraflame Amazon Kindle 8 02-06-2011 05:49 PM
Zoom levels on Libre Cj007N Ectaco jetBook 1 12-23-2009 01:59 PM


All times are GMT -4. The time now is 12:27 AM.


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