
replacing "to" to "2" internet txt msging
Quote:
> I use icq to send text messages to people. You can only send 160
characters
> per message.
> In order to fit as many words as posible I wanted to make a vbs file that
> would replace such words as "see" to "c" and "and" to "&"
> How could I make a vbs file replace parts of a string?
Perl already has a module that does this:
http://search.cpan.org/doc/JARIAALTO/Lingua-EN-Squeeze-1998.1204/Sque...
Squeeze.pm - Shorten text to minimum syllables by using hash table and vowel
deletion
You can use this module e.g. to preprocess text before it is sent to
electronic media that has some maximum text size limit. For example pagers
have an arbitrary text size limit, typically 200 characters, which you want
to fill as much as possible. Alternatively you may have GSM cellular phone
which is capable of receiving Short Messages (SMS), whose message size limit
is 160 characters. For demonstration of this module's SqueezeText() function
, the description text of this paragraph has been converted below. See
yourself if it's readable (Yes, it takes some time to get used to). The
compress ratio is typically 30-40%