Re: Init Caps Handler
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