Re: display unicode string one character at a time, not at simple as it seems
Re: display unicode string one character at a time, not at simple as it seems
- Subject: Re: display unicode string one character at a time, not at simple as it seems
- From: Michael Ash <email@hidden>
- Date: Tue, 17 Feb 2009 23:06:54 -0500
On Tue, Feb 17, 2009 at 5:13 PM, mathew davis <email@hidden> wrote:
> Hello,
>
> I need to break a string down into individual characters.
>
> In English that's pretty easy.
>
> But in some languages what a user perceives as a single block is actually a
> base character plus accents plus vowel markers plus tone markers plus...
First, define what you mean by "character", because it's not at all obvious.
In Unicode terms, dividing a string into characters is easy. The
characterAtIndex: call will give you that. However as you're
discovering, individual unicode characters are not particularly
useful.
You may be after composed character sequences, as you mentioned. You
may be after glyphs, which are individual displayable units, but note
that glyphs can often be larger than you might expect and can depend
on the font being used. You may be after something else altogether.
Figure out exactly what you desire, and why you desire it, and then
tell us and we might be able to figure out how you can get it.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden