View Single Post
Old 07-04-2020, 11:28 AM   #7
AlwaysNew
Member
AlwaysNew began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2020
Device: Kindle
Quote:
Originally Posted by phossler View Post
IMHO it's well worthwhile to learn Diaps PI -- I use it all the time and it's a lot easier that debugging some complicated RegEx

It's configurable so you can add additional tags

This does what you asked, but it you want to key off of the id="chapter.." it's a little more complicated

Result is

Code:
<h1 class="p15"><span id="chapter-5"></span>Coming Home</h1>
Thanks Phossler. That screenshot is helpful. I will try get my head around it. In general, the object here is to clean up Calibre's code from an imported Pages epub so I end up with a lean mobi for Kindle :-)
AlwaysNew is offline   Reply With Quote