Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
- Subject: Re: linebreak in a shell script; was Re: What's wrong with this call to zip?
- From: Shane Stanley <email@hidden>
- Date: Sat, 01 Mar 2008 09:00:35 +1100
- Thread-topic: linebreak in a shell script; was Re: What's wrong with this call to zip?
On 1/3/08 12:05 AM, "Mark J. Reed" <email@hidden> wrote:
> So AppleScript now uses "character" in a way that doesn't match the
> Unicode Standard.
The use of it for CRLF might be different, but I'm not sure the concept is.
Indeed, according to <http://www.unicode.org/reports/tr29/>:
"One or more Unicode characters may make up what the user thinks of as a
character or basic unit of the language. To avoid ambiguity with the
computer use of the term character, this is called a grapheme cluster. For
example, ³G² + acute-accent is a grapheme cluster: it is thought of as a
single character by users, yet is actually represented by two Unicode code
points."
> But beyond the terminology I'm concerned with the practical
> implications of the fact that expressions like "id of character 5 of
> myString" usually return a number but sometimes return a list...
Indeed. But from the above:
"In those relatively rare circumstances where programmers need to supply end
users with character counts, the counts should correspond to the number of
segments delimited by grapheme cluster boundaries."
In the light of that, I'm not sure what else AS could do.
--
Shane Stanley <email@hidden>
_______________________________________________
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