Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Rhonda from Western Australia Rhonda from Western Australia is offline
external usenet poster
 
Posts: 13
Default Find/replace any first letter of a sentence after a single period

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 ".
spacespace[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. ".spaceA" replace with
".spacespaceA" 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!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Brian Brian is offline
external usenet poster
 
Posts: 298
Default Find/replace any first letter of a sentence after a single period

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" wrote:

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 ".
spacespace[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. ".spaceA" replace with
".spacespaceA" 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!

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Thierry Fontenelle [MSFT][_2_] Thierry Fontenelle [MSFT][_2_] is offline
external usenet poster
 
Posts: 39
Default Find/replace any first letter of a sentence after a single per

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" wrote:

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" wrote:

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
Word MVP web site http://word.mvps.org




Rhonda from Western Australia wrote:
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 ". spacespace[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. ".spaceA" replace with
".spacespaceA" 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!




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find/Replace ALL CAPS with Sentence case Steve C[_2_] Microsoft Word Help 2 October 23rd 08 01:55 PM
Autocorrect a single space after period at end of sentence Michelle Microsoft Word Help 2 September 13th 07 05:50 AM
Can I "Find and Replace" to change sentence spacing? Robert Judge Microsoft Word Help 1 July 30th 07 02:31 AM
How to use single line w/i sentence and double line b/w sentence? Hey Microsoft Word Help 1 June 13th 07 11:46 PM
Find and Replace - Period and space at end of sentence Rich58 Microsoft Word Help 3 June 20th 06 11:43 PM


All times are GMT +1. The time now is 09:20 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"