View Single Post
Old 05-06-2017, 02:41 PM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,099
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Doitsu View Post
Shameless plug: You might find my Incremental IDs plugin helpful. You could use it to add sequential ids to all h2 headings and then use a regex search to add the numbers to the chapter titles.

If that sounds too complicated to you, you could also use the Function mode in Calibre Editor.
I've used this method several times.

Once you've added the ids to the <h2> then:

search: <h2 id="(\d*?)>Chapter</h2>
replace: <h2>Chapter \1</h2>
Turtle91 is offline   Reply With Quote