View Single Post
Old 11-30-2017, 05:42 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,621
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by doubleshuffle View Post
If your heading has only the <p> tags, you're out of luck, I guess. But usually there are some style tags that are unique for headings in a particular book, so you can use those to build a regex that finds your headings.
That's what I'd do, too. If actually changing the tags with regex proves tricky, non-header chapter titles are usually near the top of a page and often have a consistent pattern that can be used to match them (immediately follows the body tag, nested in a div following the body, etc). Find the pattern and give all of those chapter-title p tags (or most of them) a specific class and then safely change them to header tags with Tag Mechanic.
DiapDealer is offline   Reply With Quote