• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: display unicode string one character at a time, not at simple as it seems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: display unicode string one character at a time, not at simple as it seems
      • From: mathew davis <email@hidden>
References: 
 >display unicode string one character at a time, not at simple as it seems (From: mathew davis <email@hidden>)

  • Prev by Date: Multiline srings
  • Next by Date: Re: Multiline srings
  • Previous by thread: sorry everyone for the bcc'ing - was a slip of the mouse
  • Next by thread: Re: display unicode string one character at a time, not at simple as it seems
  • Index(es):
    • Date
    • Thread