View Single Post
Old 07-17-2015, 12:18 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,087
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Barrym

I use the REGEX to find the chapter number/title string

your case
<p class="MsoNormal">Chapter One</p>

Code:
<p class="MsoNormal">(Chapter .+?)</p>
Code:
<h3 class="chapno">\1</h3>
(where chapno is my house stylesheet entry for chapter numbering)

Create TOC from major Headings will use those H3's

My general rules
h1 for the odd times the Books title does not land on a h2 or h3 (I don't usually want a fully nested TOC at the books title level)
h2 for Parts/Books/Stories(anthologies)
h3 for Chapters (or on same level)

Last edited by theducks; 07-17-2015 at 09:12 PM. Reason: Missing (
theducks is offline   Reply With Quote