View Single Post
Old 09-16-2017, 04:31 AM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Sigil's Generate TOC can make use of the title attribute.

Example:

Code:
<h2 title"1: Example Chapter">One<br/>Example Chapter</h2>
Whatever you shove in the title will show up in the toc.ncx.

I personally use a Regex along these lines:

Search: <h2>([^<]+)<br/>([^<]+)</h2>
Replace: <h2 title="\1. \2">\1<br/>\2</h2>

Then depending on the book, I use a period or em dash or colon between the chapter # + chapter name.

Last edited by Tex2002ans; 09-16-2017 at 04:37 AM.
Tex2002ans is offline   Reply With Quote