Quote:
Originally Posted by odamizu
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.
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."
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.