Re: Manipulating text
Re: Manipulating text
- Subject: Re: Manipulating text
- From: Luther Fuller <email@hidden>
- Date: Fri, 25 Sep 2009 09:29:31 -0500
On Sep 25, 2009, at 8:57 AM, Mark J. Reed wrote: On Fri, Sep 25, 2009 at 9:35 AM, Luther Fuller < email@hidden> wrote: For example ...
(*
id of "a" -- 97
id of "z" -- 122
id of "A" -- 65
id of "Z" -- 90
*)
Not a good way to go in the age of Unicode; completely fails for accented characters, other alphabets, etc. Need either an osax or an external app that understands case mappings. Quickie Perl example:
Find a good unicode table, such as ...
and notice that the "subtract 32" rule holds for lots of other characters. The only problem I encountered is that ALL unicode tables display hexadecimal codes only, while AppleScript's 'character id' commands use only decimal. (Does anyone know of a good hex <--> decimal calculator? You'll need it!)
The way to go in the age of unicode is for AppleScript to add a 'hex' data type. Then I could write something like ...
character id 00E7
and get something useful. 00E7 - 20 would convert to upper case. |
_______________________________________________
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