On Tue, Feb 17, 2009 at 5:13 PM, mathew davis <[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to