How can I replace single spaces with double spaces in a document .

G

Guest

How can I replace single spaces with double spaces after a period in a
document that has already been written (I know about the auto- feature) and
has some single space and some double spaces?.

A find/replace will create THREE spaces after the sentences that already
have double spaces.
 
G

Guest

Do a find for period-space and replace all with period-space-space, then do a
find for period-space-space-space and replace all with period-space-space.
 
K

Klaus Linke

If you don't have tabs or non-breaking spaces, you can replace ".^w" with
". " (dot followed by two spaces).

..^w will match a dot and any following whitespace (= any number of spaces,
tabs, non-breaking spaces).

Of course, it'll also insert two spaces after abbreviations, abbreviated
first names and so on.

A bit selective would be a wildcard replacement, say
Edit > Replace, check "More > Match wildcards",
Find what: (?.)[^32]{1;2}([A-Z])
Replace with: \1^32^32\2

This will only match a dot followed by one or two spaces and a capital
letter (at the beginning of the next sentence).
It would miss sentences that start with a number for example, but won't
match abbreviations like "e.g." followed by small caps text.
You may need to do some proofreading or do the replacements one by one in
any case.

Regards,
Klaus
 
G

Graham Mayor

How about a wildcard replace of

(. )([! ^13])
with
\1 \2

ie (.space)([!space^13])
\1space\2

There's also a grammar check option that will flag such punctuation
anomalies.

There is much argument whether this typewriter practice is even necessary in
a word processed document that uses proportional fonts. Isn't it time you
joined the 21st century? ;)

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Guest

I tried (?.)[^32]{1;2}([A-Z]) and got an error msg saying "The Find What text
contains a Pattern Match experssion which is not valid."

I also tried .^w and got an error saying "^w is not a valid special
character for the Find What box or is not supported when the Use Wildcards
check box is selected."

Could someone tell me what I'm doing wrong?

Thanks!
 
J

Jezebel

Minor typo. {1,2} -- should be a comma not a semicolon between the numbers.




TJ said:
I tried (?.)[^32]{1;2}([A-Z]) and got an error msg saying "The Find What
text
contains a Pattern Match experssion which is not valid."

I also tried .^w and got an error saying "^w is not a valid special
character for the Find What box or is not supported when the Use Wildcards
check box is selected."

Could someone tell me what I'm doing wrong?

Thanks!

Klaus Linke said:
If you don't have tabs or non-breaking spaces, you can replace ".^w" with
". " (dot followed by two spaces).

..^w will match a dot and any following whitespace (= any number of
spaces,
tabs, non-breaking spaces).

Of course, it'll also insert two spaces after abbreviations, abbreviated
first names and so on.

A bit selective would be a wildcard replacement, say
Edit > Replace, check "More > Match wildcards",
Find what: (?.)[^32]{1;2}([A-Z])
Replace with: \1^32^32\2

This will only match a dot followed by one or two spaces and a capital
letter (at the beginning of the next sentence).
It would miss sentences that start with a number for example, but won't
match abbreviations like "e.g." followed by small caps text.
You may need to do some proofreading or do the replacements one by one in
any case.

Regards,
Klaus
 

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