• 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: Init Caps Handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Init Caps Handler


  • Subject: Re: Init Caps Handler
  • From: has <email@hidden>
  • Date: Wed, 21 Nov 2007 18:05:53 +0000

On 21 Nov 2007, at 11:56, Mark J. Reed wrote:

On Nov 20, 2007 7:59 PM, has <email@hidden> wrote:
Using TextCommands <http://osaxen.com/files/textcommands1.1.3.html>:
Fast, free, easy-to-use and Unicode-aware, e.g.:

       tell application "TextCommands" to uppercase "¿Qué pasó?"
       --> "¿QUÉ PASÓ?"

Hm. Well, when you say "Unicode-aware", how far does it go? If I do this:


tell application "TextCommands" to titlecase "ljudevit gaj"

(where the lj is the digraph, character id 457, and not an l followed by a j)

will I get "LJudevit Gaj" or "Ljudevit Gaj"?  The latter is correct in
Croatian - but it involves turning one character into two.

No idea. Have you tried it?

TextCommands is just a thin Apple event wrapper around existing Python functions - in this case the unicode type's upper, lower, title and capitalize methods - so its Unicode support is as good as Python's is (pretty good). Technical questions on the finer details of Python's UCS2/UTF16 support are probably best directed to comp.lang.python or one of the python.org mailing lists.

HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
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: 
 >Re: Init Caps Handler (From: has <email@hidden>)
 >Re: Init Caps Handler (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Init Caps Handler
  • Next by Date: Bundle Objects
  • Previous by thread: Re: Init Caps Handler
  • Next by thread: init Caps Handler
  • Index(es):
    • Date
    • Thread