Find/replace any first letter of a sentence after a single period

  • Thread starter Rhonda from Western Australia
  • Start date
R

Rhonda from Western Australia

I have a long doc that several authors have worked on. Some use two spaces
after the period, some one. The corporate style is two (not my decision!), so
I'm trying to figure out an easy way of finding ALL instances of only one
space after a period and replacing it with two spaces. Sounds easy? Nope.

Problem is that each sentence following the space starts with a different
letter. I want to be able to find ".<space>[A-Z]" and replace with ".
<space><space>[A-Z]" where [A-Z] is any capital letter. The original letter
must be replaced with itself.

I can do this one letter at a time (e.g. ".<space>A" replace with
".<space><space>A" but as I know there will be many docs like this, I'd like
to know if there's a simple way to automate the process, either using
wildcards, special characters, or a macro.

Oh, and adding a minor complication to this - I don't want to do a 'Replace
All' as some legitimate periods are followed correctly by a single space (for
example, in the list of References, or after "i.e." or "e.g.").

Does anyone have any idea as to how I can achieve this? I'm happy to click
Replace for each instance found, but I really don't wan tto set up 26
different find/replace sequences to hit all letters of the alphabet.

Thanks!
 
B

Brian

Try Find period space space and replace with period space to get them all the
same, then find period space and replace with period space space.

You can then serach on i.spacespace e.space space and replace with i.e.space

Do the same for e.g.

Hope this makes sense.
 
R

Rhonda from Western Australia

It makes a lot of sense! I can recall doing something similar some years back
- I think my brain was foggy after dealing with this doc all day.

Thanks!

Brian said:
Try Find period space space and replace with period space to get them all the
same, then find period space and replace with period space space.

You can then serach on i.spacespace e.space space and replace with i.e.space

Do the same for e.g.

Hope this makes sense.
--
Brian McCaffery


Rhonda from Western Australia said:
I have a long doc that several authors have worked on. Some use two spaces
after the period, some one. The corporate style is two (not my decision!), so
I'm trying to figure out an easy way of finding ALL instances of only one
space after a period and replacing it with two spaces. Sounds easy? Nope.

Problem is that each sentence following the space starts with a different
letter. I want to be able to find ".<space>[A-Z]" and replace with ".
<space><space>[A-Z]" where [A-Z] is any capital letter. The original letter
must be replaced with itself.

I can do this one letter at a time (e.g. ".<space>A" replace with
".<space><space>A" but as I know there will be many docs like this, I'd like
to know if there's a simple way to automate the process, either using
wildcards, special characters, or a macro.

Oh, and adding a minor complication to this - I don't want to do a 'Replace
All' as some legitimate periods are followed correctly by a single space (for
example, in the list of References, or after "i.e." or "e.g.").

Does anyone have any idea as to how I can achieve this? I'm happy to click
Replace for each instance found, but I really don't wan tto set up 26
different find/replace sequences to hit all letters of the alphabet.

Thanks!
 
R

Rhonda from Western Australia

That works a treat. It didn't at first, then I realised that there were two
spaces between \1 and \2.

Thank you!

Graham Mayor said:
With the wildcard option set replace
(.) ([A-Z])
with
\1 \2

http://www.gmayor.com/replace_using_wildcards.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


I have a long doc that several authors have worked on. Some use two
spaces after the period, some one. The corporate style is two (not my
decision!), so I'm trying to figure out an easy way of finding ALL
instances of only one space after a period and replacing it with two
spaces. Sounds easy? Nope.

Problem is that each sentence following the space starts with a
different letter. I want to be able to find ".<space>[A-Z]" and
replace with ". <space><space>[A-Z]" where [A-Z] is any capital
letter. The original letter must be replaced with itself.

I can do this one letter at a time (e.g. ".<space>A" replace with
".<space><space>A" but as I know there will be many docs like this,
I'd like to know if there's a simple way to automate the process,
either using wildcards, special characters, or a macro.

Oh, and adding a minor complication to this - I don't want to do a
'Replace All' as some legitimate periods are followed correctly by a
single space (for example, in the list of References, or after "i.e."
or "e.g.").

Does anyone have any idea as to how I can achieve this? I'm happy to
click Replace for each instance found, but I really don't wan tto set
up 26 different find/replace sequences to hit all letters of the
alphabet.

Thanks!
 
T

Thierry Fontenelle [MSFT]

Hello,

You can also customize your grammar checker to require 2 spaces between your
sentences:

Office Button | Word Options | Proofing | Writing Styles: Settings: Require
“Spaces between two sentences†= 2 (drop-down menu)

You will see green squiggly lines under punctuation marks followed by one
period only. The grammar checker will deal with e.g., i.e., which it knows
are not end-of-sentence markers.

I hope it helps,

Thierry

Thierry Fontenelle [MSFT]
Microsoft Natural Language Group


Rhonda from Western Australia said:
That works a treat. It didn't at first, then I realised that there were two
spaces between \1 and \2.

Thank you!

Graham Mayor said:
With the wildcard option set replace
(.) ([A-Z])
with
\1 \2

http://www.gmayor.com/replace_using_wildcards.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


I have a long doc that several authors have worked on. Some use two
spaces after the period, some one. The corporate style is two (not my
decision!), so I'm trying to figure out an easy way of finding ALL
instances of only one space after a period and replacing it with two
spaces. Sounds easy? Nope.

Problem is that each sentence following the space starts with a
different letter. I want to be able to find ".<space>[A-Z]" and
replace with ". <space><space>[A-Z]" where [A-Z] is any capital
letter. The original letter must be replaced with itself.

I can do this one letter at a time (e.g. ".<space>A" replace with
".<space><space>A" but as I know there will be many docs like this,
I'd like to know if there's a simple way to automate the process,
either using wildcards, special characters, or a macro.

Oh, and adding a minor complication to this - I don't want to do a
'Replace All' as some legitimate periods are followed correctly by a
single space (for example, in the list of References, or after "i.e."
or "e.g.").

Does anyone have any idea as to how I can achieve this? I'm happy to
click Replace for each instance found, but I really don't wan tto set
up 26 different find/replace sequences to hit all letters of the
alphabet.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top