View Single Post
Old 02-05-2014, 06:55 PM   #15
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 phossler View Post
@Tex2002ans -- thanks, I tried something similar, but the document had a lot of all caps acronyms that were being found. I tried the 'Replace/Find Next' but that was taking a lot of time
Ahhh... what I do is run this regex as one of my "final" cleanup passes.

I have a toc.ncx already generated, and/or I have preview open up on the left-half of my screen. I quickly jump to where I need to be using TOC/Preview, and then Find/Replace what I need in Code View.

Click image for larger version

Name:	ALLCAPStoTitleCase.png
Views:	352
Size:	156.1 KB
ID:	118756

I don't use this Find/Replace throughout the entire book (unless this particular book has some odd ALL CAPS floating around it that need to be checked/fixed).

It isn't the quickest/most automated way to do it, but while I am fixing this I am also quickly just scanning around/taking a look to see if I can catch any other typos/errors.

Quote:
Originally Posted by DiapDealer View Post
@Tex2002ans:
The \b word boundary is handy, but it can also result in some confusing behavior if you run into any typographic quotes, apostrophes, or other unicode characters contained in the text.
Thanks for the info. Which is why I mentioned where my Regex breaks in my first post. Some of these Regex can get downright hairy, and I prefer something that is still understandable by a normal human!

Last edited by Tex2002ans; 02-05-2014 at 07:19 PM.
Tex2002ans is offline   Reply With Quote