This is for those of you who distribute a lot of jokes. I got tired of cleaning up all of the Unix reply marks ('>') and the lines that got chopped up by multiple word-wrapping. So, I decided to write up a really quick application that does all of this for you.
To use it:
1) Copy the joke or list from your mail program to the clipboard as
you always do.
2) Run the Cleaner application and hit either F1 or Alt-C or click
on the Smiley Face icon. The program pastes the joke from the clipboard,
cleans up the text, and then copies the modified text back to the clipboard.
3) From there, go back to your mail program, open a new message and
paste in the cleaned up message.
The specific changes that are made to the text are:
- Eliminates leading whitespaces and '>' characters.
- Ensures one and only one space between words and two spaces after
each period.
- Combines lines that are in the same paragraph (so that sentences
will be split up by word wrapping, instead of having a fixed width.)
- Doesn't concatenate sentences that start with numbers or bullet points.
(For numbered lists that don't end with periods...)
- If the first line is followed by a blank line, that line will be
treated as a title and will not be combined with the next text line.
Notes:
* This program is freeware.
* This is a Windows95/98/NT (Win32) only application.
* Some cleanup will probably still be required, but it should simplify
things by quite a bit.
* The text cannot be larger than 32,000 characters, but that shouldn't
really be a problem...
* This application was written using Borland C++'s ObjectWindows Library.
Well, enjoy! If you have any suggestions, just let me know... Feel free
to distribute this if you know anyone that might actually appreciate this
program.
Steve Chin
schin@cs.stanford.edu
Version 1.02 Changes:
- Fixs bug that put two spaces after quotation marks.
- Removes 'Save File' confirmation message when quitting, since most
work is done in the clipboard anyway.
- Adds options dialog to allow you to configure The Cleaner more to
your liking.