capitalize

MisterX b.xavier at internet.lu
Thu Nov 2 12:02:48 EST 2006


Actually even in unicode the capital and lowercase Roman characters are 20
units appart.

In old programming style, you would just add 20 to the
numtochar(chartonum("A")) to get the lowercase 'a' and it works from a to
z...

Unfortunately, for other characters like diacriticals this logic is broken
and up to the OS maker. And glad we are that the french academy (who makes
the rules on french) will not sue you or imprison you for not capitalizig a
diacritical e aigu in a sentence beginning! Though at one point it was
almost made into law in France not to use english words on the radio/TV
thanks to these illuminated fools...

I assume for other languages (chinese, hebrew, arabic, etc) there's maybe
some logic, but seeing diacriticals in western languages and the way they
are in the ascII chart, I doubt it. At least at first sight there doesn't
seem to be any logic...

I don't know how HyperTalk, MetaCard or RunRev could handle that. Maybe it's
time to write a character case-parser plugin.

just my 2 cents...

Cheers
Xavier

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Richmond Mathewson
> Sent: Thursday, 02 November, 2006 15:13
> To: use-revolution at lists.runrev.com
> Subject: capitalize
> 
> BUT . . .
> 
> for those of us who stray into the Cyrillic alphabet and 
> other non-Roman writing systems . . .
> 
> The RR documentation points out that toLower and toUpper only 
> function with the first 128 ASCII codes.
> 
> Which is a shame.
> 
> Which means that RR is not entirely Unicode compliant.
> 
> sincerely, Richmond Mathewson
> 
> ____________________________________________________________
> 
> I have just read and signed the online petition:
> 
>    "Hinge & Bracket"
> 
> hosted on the web by PetitionOnline.com, the free online 
> petition service, at:
> 
>    http://www.PetitionOnline.com/HandB/
> 
> I personally agree with what this petition says, and I think 
> you might agree, too.  If you can spare a moment, please take 
> a look, and consider signing yourself.
> 
> Richmond Mathewson
> ____________________________________________________________
> 
> Send instant messages to your online friends 
> http://uk.messenger.yahoo.com 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage 
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list