TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Word's Find also allows you to avoid deleting multiple spaces from code samples if those samples are formatted in a different typeface (e.g. a monospace font) than your body text. Just use the Format button to specify the font used for the body text, and code samples will be untouched.
-Fred Ridder
> From: docudoc -at- hotmail -dot- com
> To: philstokes03 -at- googlemail -dot- com; techwr-l -at- lists -dot- techwr-l -dot- com
> Subject: RE: remove spaces from Word
> Date: Thu, 21 Mar 2013 11:59:28 -0400
>
> Phil Stokes wrote:
>
> > Richard Combs wrote:
> > > Just remember to run it multiple times in case there are instances of three, four, or more spaces. Run it until Words tells you the Find string wasn't found.
> >
> >
> > In fact, this is what occasioned the question. In sed I can do all that in one command, with something like
> >
> > sed s/' \{2,9\}/ '/g
> >
> > which will take out anything from 2 up to 9 spaces (9 is arbitrary - I just figure I'm not going to find more than that, but I could make that final number anything up t o 255).
> >
> > What I was wondering was which was the least work : convert all the word files into plain text, run them through sed, put them back into Word OR could I do it all in Word with an already existing macro?
>
> In fact, Word supports a subset of regular expressions in it's Find function, so you *can* do this in one step. In the Find and Replace (Advanced Find) dialog, first select the "Use wildcards" option. Then, in the "Find what" box, type a single space followed by {2,9}, and in the "Replace with" box type a single space. Click Replace All, and you're all done.
>
> -Fred Ridder
>
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> EPUB Webinar: Join STC Vice President Nicky Bleiel as she discusses tips for creating EPUB, the file format used for e-readers, tablets, smartphones, and more.
>
> Learn more: http://bit.ly/12LyN2z
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> You are currently subscribed to TECHWR-L as docudoc -at- hotmail -dot- com -dot-
>
> To unsubscribe send a blank email to
> techwr-l-leave -at- lists -dot- techwr-l -dot- com
>
>
> Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
>http://www.techwhirl.com/email-discussion-groups/ for more resources and info.
>
> Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com
>
> Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EPUB Webinar: Join STC Vice President Nicky Bleiel as she discusses tips for creating EPUB, the file format used for e-readers, tablets, smartphones, and more.