Re: Unicode to plain text
Re: Unicode to plain text
- Subject: Re: Unicode to plain text
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 20 Sep 2002 14:34:15 -0700
On 9/20/02 9:22 AM, I wrote:
>
which raises the interesting question
>
>
Since the <class ktxt>> thing _does_ work for everything returned by the
>
Finder for file and folder names, for the file systems alias filepaths,
>
and for lots else - does this mean that the file system has _not_ been
>
implemented in real Unicode, or that it's AppleScript which is giving us
>
the pseudo-version?
>
I think it must be AppleScript, not the Finder or file system. Here's the
introductory paragraph about ATSUI at
<
http://developer.apple.com/intl/atsui.html> :
"Apple Type Services for Unicode Imaging (ATSUI) is a set of services for
rendering Unicode-encoded text. ATSUI is used by many parts of the X OS,
including the Finder, making Mac OS X a truly internation system the
respects the display of complex languages and 2 byte scrips. MLTE is amoung
the pieces the system that utilize ATSUI text display."
and further in:
Overview of ATSUI
Mac OS X is an international operating system. It fully supports Unicode and
comes with high-quality fonts capable of displaying many languages,
including Japanese and Chinese. Mac OS X supports input of non-phonetic
characters used by Chinese, Japanese, and Korean through the use of input
methods. Because Mac OS X uses Unicode for all onscreen text display, ASTUI
is at the heart of all text drawing in Mac OS X, as shown in Figure 1-1.
From the Mac OS X Toolbox to the Menu Manager, all Mac OS X text drawing at
some point uses ATSUI to render Unicode text. For example, the Finder uses
ATSUI to:
* display menu items. Menu items are static text displayed by calling the
Menu Manager function DrawThemeTextBox which in turn uses ATSUI to render
the Unicode text.
* create text editing fields. Editable text fields are created using MLTE
(Multilingual Text Engine) text objects, but MLTE relies on ATSUI to render
the Unicode text in the editable text fields.
TextEdit is another application among the many Mac OS X applications that
use ATSUI to layout and render Unicode text. ATSUI9s Unicode text rendering
includes support for accents and ligatures, bidirectional text, contextual
forms and vowel reordering, vertical text, and surrogates."
So the Finder is meant to be doing exactly what TextEdit does. But
AppleScript gives us the "styled text" stuff for Finder file and folder
names, but JD got "real Unicode" out of TextEdit, at least when entered in
his specified manner.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.