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: "Mark J. Reed" <email@hidden>
- Date: Thu, 28 Feb 2008 23:38:40 -0500
Dead keys do not show up in strings. There is no character generated
at all until you press the second key. The application is oblivious
to the mechanism used to send it a particular char - the input method
hides the details.
Unicode does have combining characters. Unlike the dead-key sequences
one might use to enter those characters, the combining char comes
after the base char, not before. Thus you might press the umlaut dead
key and then the U, but what shoiws up in the string will be either
the single character "u with umlaut", or a u followed by a combining
umlaut.
And as I said earlier, U+0D0A is a symbol in the Malayam writing system.
Original message -
It's possible that the CR is being treated as...
On 2/28/08, Doug McNutt <email@hidden> wrote:
> At 22:12 -0500 2/28/08, Mark J. Reed wrote:
> >I'm not disputing the value of your analogy; I'm just saying that a
> >sequence of two Unicode scalar values always represents, by
> >definition, a sequence of two Unicode characters. So the fact that
> >the sequence CR LF is somehow treated as a single "character" in
> >AppleScript 2.0 is not due to that language's adoption of Unicode.
> >It's a separate issue, despite being in the character manipulation
> >segment of the language.
>
> It's possible that the CR is being treated as a dead key - as in OPTION-u, u
> to get a u with an umlaut. AS could be using that sequence to produce a 16
> bit character that it will treat as a line end.
>
> The U+0D0A code point is not used for anything else as far as I can tell.
>
> I seem to remember characters in unicode that represent decorations applied
> to the succeeding character rather than graphemes of their own. Don't ask me
> to find one though.
> --
>
> --> From the U S of A, the only socialist country that refuses to admit it.
> <--
> _______________________________________________
> 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
>
--
Mark J. Reed <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