View Single Post
Old 06-28-2018, 02:52 PM   #2
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,083
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I have a series of 'cleanups' I use
Note: This is copied from Sigils saved search, ignore leading numbers an the line with Name= (describes what it does) and the escape before the \ (\\) should be a Single\
Code:
80\Name=Cleanup/Joins/Join to lower
80\Find="([[:alpha:],]\x201d*)</p>\\s*<p\\b[^>]*>([a-z\x201c])"
80\Replace=\\1 \\2
81\Name=Cleanup/Joins/Join to upper
81\Find="([[:alpha:],]\x201d*)</p>\\s*<p\\b[^>]*>([A-Z\x201c])"
81\Replace=\\1 \\2
87\Name=Cleanup/Joins/Honorifics
87\Find="(Mr|Mrs|Ms|Dr|Prof)\\.</p>\\s+<p class=\"calibre\\d+\">([A-Z])"
87\Replace=\\1. \\2
88\Name=Cleanup/Joins/de BR w/punct
88\Find="([[:punct:]])<br class=\"calibre4\" />\\s+(\"*[A-Za-z\x201c])"
88\Replace="\\1</p><p class=\"calibre4\">\\2"
* adjust the RED
Note: I kept it simple and replace the capture

(Wishlist PI: Import Sigil saved searches)
theducks is offline   Reply With Quote