• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Manipulating text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ...

http://www.tamasoft.co.jp/en/general-info/unicode.html

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

References: 
 >Manipulating text (From: Jim Brandt <email@hidden>)
 >Re: Manipulating text (From: Luther Fuller <email@hidden>)
 >Re: Manipulating text (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Manipulating text
  • Next by Date: Re: Manipulating text
  • Previous by thread: Re: Manipulating text
  • Next by thread: Re: Manipulating text
  • Index(es):
    • Date
    • Thread