Re: Eliminating .txt file hard returns

Subject: Re: Eliminating .txt file hard returns
From: "Huber, Mike" <mrhuber -at- SOFTWARE -dot- ROCKWELL -dot- COM>
Date: Thu, 22 Oct 1998 09:02:15 -0400

> From: Richard Mateosian [mailto:xrm -at- email -dot- msn -dot- com]

> >Sub MAIN
> >StartOfDocument
> > EditReplace .Find = "^p^p", .Replace = "%%%", .ReplaceAll
> > EditReplace .Find = "^p", .Replace = " ", .ReplaceAll
> > EditReplace .Find = "%%%", .Replace = "^p^p", .ReplaceAll
> >End Sub
>
> This almost works, but the last line should be:
>
> EditReplace .Find = "%%%", .Replace = "^p", .ReplaceAll
>
> You don't want to wind up with ^p^p at the end of each paragraph.
>
> Also, if the original has space at the ends of some lines - as such
> files often do - your program produces extra spaces between some
> pairs of words. ...RM

Which I would eliminate during a routine cleanup: I run a replace operation
towards the end of each project, replacing all instances of two spaces
together with one space. Run it repeatedly until there are no pairs of
spaces left. If I'm in a situation that calls for two spaces after
sentence-ending punctuation I follow that with another replace operation
that replaces each sentence-ending punctuation (.!?) followed by a space
with the sentence ending followed by two spaces.

I also search for doubled periods, and periods adjacent to commas. In the
microscopic fonts that are fashionable in help files these days, I sometimes
miss those.

---
Office:
mike -dot- huber -at- software -dot- rockwell -dot- com
Home:
nax -at- execpc -dot- com

From ??? -at- ??? Sun Jan 00 00:00:00 0000=




Previous by Author: Re: Learning from others' manuals
Next by Author: Re: Some Help With Re-phrasing
Previous by Thread: Eliminating .txt file hard returns
Next by Thread: Re: Eliminating .txt file hard returns


What this post helpful? Share it with friends and colleagues:


Sponsored Ads