View Single Post
Old 01-05-2019, 06:37 AM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by famfam View Post
After saving the book with finereader as epub, words that were originally printed in block letters were represented as words with blanks (for example: W o r d or w o r d). In sigil, I would like to find with regex any W o r d or w o r d that are shown with spaces, and then replace the found words with spaces by the same words, but without spaces.
Maybe someone has an idea how to simplify this with regex?
I doubt there are many legitimate 4+ single characters by themselves:

Search: \b(\w) (\w) (\w) (\w)\b
Replace: \1\2\3\4

That should point you towards all of these spaced out words, so:

Find: a b c d
Replace: abcd

Or maybe you can start out with more \w... like 7 or 8 of them, then work your way down.
Tex2002ans is offline   Reply With Quote