View Single Post
Old 03-08-2018, 04:07 PM   #6
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,131
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
because you did not include something that limits which beginning term traps
I check for an alpha, optionally followed by: comma, either quote.

This still fails in a few cases like Mr., where the alpha
is upper case like A.M.
I fix those few by hand

<sample clipped from Sigils saved search FILE which includes additional escapes>
Code:
70\Name=Cleanup/Joins/Join to lower
70\Find="([[:alpha:],][\"\x201d]*)</p>\\s*<p\\b[^>]*>([a-z\x201c\"])"
70\Replace=\\1 \\2
71\Name=Cleanup/Joins/Join to upper
71\Find="([[:alpha:],]\x201d*)</p>\\s*<p\\b[^>]*>([\"\x201c]*[A-Z])"
71\Replace=\\1 \\2
theducks is offline   Reply With Quote