Re: Unicode Character in File Name
Re: Unicode Character in File Name
- Subject: Re: Unicode Character in File Name
- From: Doug McNutt <email@hidden>
- Date: Tue, 7 Apr 2009 09:29:45 -0600
At 08:56 -0500 4/7/09, Luther Fuller wrote, and I clipped a bit::
On Apr 7, 2009, at 1:24 AM, Christopher Nebel wrote:
Can I depend on the Finder always displaying this character
correctly in any language?
If it displays correctly at all, then it should be fine no matter
what the user's locale is -- the whole point of Unicode is that
it's a single character encoding that everyone world-wide uses, so
there aren't any questions about what a particular byte means.
There are still questions about support of arbitrary unicode points
by fonts that are installed in the user's computer. That's the reason
for the "If it displays at all" caveat above.
I have a couple of questions that have not yet been answered in this thread.
Unicode has the concept of a "code point" or, to avoid confusion,
codepoint. A codepoint was initially an unsigned 16 bit value but it
has been extended to support up to 32 bits even though there are very
few graphemes that use the extension at this time. In any case the
concept of codepoint is well defined by those who claim to be the
standards committee for unicode.
1) What is the official AppleScript term that describes a code point?
The word "file" is used in AppleScript to declare the following
lexical item to be an alias. What is the similar lexical item that
declares something to be a codepoint? Is it "id", "character id", or
something else?
2) What is the same term for use while talking to application Finder?
It appears that in some cases "character id" as sent to Finder is a
command rather than a variable type. Lexical item "id" sounds an
awful lot like a window id as used in Terminal.app.
3) "set mypoint to codepoint 1234" or "set mypoint to 1234 as
codepoint" would make sense to an expert in unicode. Exactly what
command lines would do that in AppleScript? Various posters have
suggested a bunch of things but I still don't understand which one is
politically correct.
4) Does AppleScript support 32 bit codepoints? Finder?
--
-> Stocks are getting pelloreid <-
_______________________________________________
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