Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2015, 10:04 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
ToC tool: feature request

At the moment, the ToC tool can generate a ToC based on <h1> to <h3> tags. Can I request a facility to allow the user to choose (from inside the ToC tool dialog) which levels are indexed , rather than the current fixed set?

Motivation: Sometimes I want to (a) index h1 and h2 only, or (b) go down as far as h4. The only way to do this currently is:
(a) to generate the ToC, "expand all" and manually delete the h3's (relatively easy but tedious);
(b) search-and-replace <h4>...</h4> with <h3 class="h4">...</h3>, generate the ToC, search-and-replace <h3 class="h4" id="x">...</h3> with <h4 id="x">...</h4>, edit the ToC and manually move all the h4's from the h3 level to the correct h4 level... what a chore that is!
Phssthpok is offline   Reply With Quote
Old 09-18-2015, 10:46 AM   #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,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Click the Generate ToC from XPath button
kovidgoyal is offline   Reply With Quote
Old 09-23-2015, 08:07 AM   #3
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Oh, duh
Color me stupid... I somehow never noticed that button...
Sorry!
Phssthpok is offline   Reply With Quote
Reply

Tags
toc creation


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yet another feature request arslonga Marvin 0 11-15-2014 01:41 AM
Feature request: E-book Viewer TOC doesn't show where you are alessandro Calibre 5 11-21-2013 10:16 AM
New Edit ToC tool library addict Calibre 2 03-15-2013 04:49 AM
Release : New Tool to Edit ePubs TOC, Edit with Sigil and keep you TOC Nigol ePub 105 10-29-2012 11:40 AM
Feature Request - TOC Exclude "> My Books" chrisparker Library Management 2 10-13-2012 11:44 AM


All times are GMT -4. The time now is 09:45 PM.


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