View Single Post
Old 11-30-2017, 01:58 PM   #6
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,705
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by odamizu View Post
Finding the chapter headings hasn't been a problem. I search: <p class="chapterHead"> replace: <h1 class="chapterHead">

But then I would go in and manually change each closing </p> tag to an </h1> Urgh.
If the chapter headings are that easy to find, then Tag Mechanic should have been able to do want you want fairly painlessly. Just change all p tags with a class attribute value of "chapterHead" to h1. That would have taken care of the opening and closing tags for you -- not that I would dream of discouraging anyone from picking up more regex experience.

Click image for larger version

Name:	tagmech.jpg
Views:	572
Size:	28.4 KB
ID:	160305

By default, the only thing the plugin will let you change a p tag to is a div tag. But you can change that in the plugin's customization config. Just right-click anywhere on the plugin's GUI dialog (the above image) and select "Customize Plugin" from the menu. Then add h1, h2, h3, etc.. (comma separated) to the list of tags available for p tag manipulation and click "Apply & Close."

Click image for larger version

Name:	tagmech2.jpg
Views:	203
Size:	67.3 KB
ID:	160307

NOTE: make sure you have all the relevant xhtml files highlighted in Sigil's Book Browser before launching the plugin. The plugin only processes/searches/affects those files which are selected.

Last edited by DiapDealer; 11-30-2017 at 02:33 PM.
DiapDealer is offline   Reply With Quote