Re: Producing Unicode-only characters
Re: Producing Unicode-only characters
- Subject: Re: Producing Unicode-only characters
- From: has <email@hidden>
- Date: Tue, 25 Oct 2005 21:57:43 +0100
Emmanuel wrote:
>>BTW, the ideal solution would be to make the AS parser unicode-aware, obviating the need for code point escapes altogether. But there's even less chance of that happening in AS 1.x, which is why I didn't suggest it either.
>
>I would not be so pessimistic. It's a transition which has to be prepared thoroughly, but I think that it's basically very little change in the code.
I'm not so sure it's that trivial. Both parser and pretty-printer would need work; how much time and effort that'd require would depend a lot on the shape of the current code. I'm not sure Apple have a working format for typeStyledUnicodeText (needed to supply script editors with pretty-printed source code). The OSA API would need some tweaking as it currently assumes source code of typeText. The interpreter would need modified to support unicode literals, and the corresponding change to the serialised bytecode format would render .scpt files backwards-incompatible. And once all that's done, users would need to wait for OSA editors to be upgraded in order to take advantage of it.
IMHO, based on the above requirements, implementing unicode-based source code support is probably something best left for the eternally vaporous AppleScript 2.0 to take care of. Meantime, a 'unicode' osax as I've proposed would be 10-minute job to implement, adequate for ASers' needs, and has a realistic chance of actually being implemented if enough folks bug Apple for it.
Cheers,
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden