View Single Post
Old 08-25-2014, 01:57 AM   #1
Ozman
Member
Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.Ozman ought to be getting tired of karma fortunes by now.
 
Ozman's Avatar
 
Posts: 18
Karma: 463230
Join Date: Apr 2010
Device: Kobo, Nexus 7
Question Add h2 tag to chapter heading to make TOC

I have some old epubs without a TOC that have chapter headings marked as <p>. Each book has approximately 30 chapters, Chapter 1...Chapter 30. It is a drag to manually find each heading, add the h2 tag, and then generate a TOC. I would like to find a way of automating this process.
I tried using calibre to convert epub to epub with heuristic processing to add the tag but nothing happened.
Can I do a find and replace, maybe with regex, to achieve the desired result?
Ozman is offline   Reply With Quote