View Single Post
Old 12-02-2023, 03:47 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,139
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Is that the only place with 2 dashes in a P tag
Code:
<p class="calibre3">(.+?\s--\s.+?)
Replace:
Code:
 <hr class="sigil_split_marker" /> <h3 class="chapno">\1</h3>
I happen to use Sigil for this task, but Calibre will work fine with a small adjustment.

The Marker is what you split on.
I made it a H3 tag (chapno is the stylesheet entry)
theducks is offline   Reply With Quote