10-19-2011, 03:32 PM
|
#46
|
Grand Sorcerer
Posts: 5,895
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
|
Quote:
Originally Posted by Blossom
They are really more Word 2003 wildcards but Basically This is my reference notes I hope you can make heads or tales out of them.
Code:
Do a S&R for Manual line breaks and replace with paragraph marks.
MS Word it uses ^13 for a return, with wildcard box checked in the Search Box
^13([a-z]) = This checks for broken sentences
([a-zA-Z])^13 = This checks for broken sentences
([a-z])^13([A-Z]) = This checks for broken sentences
Replace Box
\1 and \2 if there is more then one bracket, add appropriate spaces as needed.
[0-9]{1,}^13 = This checks for page numbers
[0-9]{1,} = Second check for page numbers and OCR error where numbers replace letters.
[A-Z]{3,} = Match Case checked, Replace 3, if needed for more word matches.
On Chapter Headers I use S&R if they are already in bold this makes it easier, then I do a search to find bold text using the formatting button. Word has a powerful search! You can search by formatting or wildcards, special word characters or just the regular way. I can then do a replace only on the formatting.
I also use the Styles panel to make batch changes. Alot of back titles I buy have inconsistency when it comes to formatting this feature comes in handy to fix that quick. Highlighting a chapter heading and then click Clear formatting and clicking the appropriate style will really help it to take on the correct formatting you want.
I also use Macros to make it alot faster! 
|
Quote:
Originally Posted by DiapDealer
For broken sentences in HTML, I use the following search regex:
Code:
([^.”":?’'!>—…)])</p>\s+<p[^>]*>
And the replace would be:
( NOTE: there needs to be a "space" character following the \1 for it to work properly)
I don't trust it enough to blindly do a "Replace All" on a whole book, but I rarely have to intervene when stepping through a document an incident at a time.
|
Quote:
Originally Posted by Blossom
I will have try this when working with code. 
What program does this work with? I've tried Notepad++ and Notepad2 and it can't find anything.
|
cool, thanks
|
|
|