Re: Init Caps Handler
Re: Init Caps Handler
- Subject: Re: Init Caps Handler
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 21 Nov 2007 15:59:26 +0100
Le 21 nov. 07 à 12:09:11, Philip Aker a écrit :
On 2007-11-21, at 02:30, KOENIG Yvan wrote:
Thanks Philip to take care of our old-european-languages ;-)
Best to use this second version. It covers the edge cases pointed
out by M Skeeve.
set elan to quoted form of "élan, it's virtues are elegant ;-)"
set upper to (do shell script "tclsh <<< 'puts [string toupper {'"
& elan & "'}]'")
set lower to (do shell script "tclsh <<< 'puts [string tolower {'"
& elan & "'}]'")
set title to (do shell script "tclsh <<< 'puts [string totitle {'"
& elan & "'}]'")
upper & return & lower & return & title
--> "ÉLAN, IT'S VIRTUES ARE ELEGANT ;-)
élan, it's virtues are elegant ;-)
Élan, it's virtues are elegant ;-)"
Philip Aker
Thanks I tested it with
set elan to quoted form of "élan, it's virtues are elegant kœnig
lætitia ;-)"
and got a perfect:
"ÉLAN, IT'S VIRTUES ARE ELEGANT KŒNIG LÆTITIA ;-)
élan, it's virtues are elegant kœnig lætitia ;-)
Élan, it's virtues are elegant kœnig lætitia ;-)"
Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden