matteob: there's a external res to convert html to
plain text, esp. replacing escapez with original chars
(ie "&" for "&")? i'm writing an handler to do it,
but it's slow :-( an xfcn like rinaldi's xmlextract
may be faster.

Alain: MacPerl is ideal for this kind of work. The
example below, for instance, makes a mixed-case string
into all-lowercase -- and blazzingly fast too.

( $lowerCase = $someString ) =~ tr/A-Z/a-z/;

Alain: Yup. That's it. One line of code that
substitutes every char of your string from one charset
to another. Removing html-tags is a brease too. In
your particular case, the substitution would be
between the URL-encoded and the non-URL-encoded
charsets. And its fassssst!

Alain: Relevance? Well, just in case you have
forgotten, you can execute MacPerl from within
HyperTalk, because they are both OSA-compliant.

do "($lowerCase=$someString) =~ tr/A-Z/a-z/;" as perl

Alain: I am going to re-launch the UFP again. We are a
group of veteran scripters who want to make HyperCard
into an even-better Rapid Application Development
(RAD) tool than it already is, by providing newbie
scripters with a coherent set of pre-scripted handlers
and value-added stack-based solutions. Simplicity is
next to Godliness! ;-)

Alain: In this incarnation of the UFP, I am
considering expanding our focus to all of the relevant
OSA-compliant scripting languages, including :
HyperTalk (of course), Frontier (perhaps),
AppleScript, MacPerl, and JavaScript too (as soon as
they fix their minor-bugs). Bottom-line though is that
the entire set of handlers (API) will be coded in
HyperTalk. And eventually in FreeScript, eh!

Alain Farmer
mailto:[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Reply via email to