Re: language based scaning,
Re: language based scaning,
- Subject: Re: language based scaning,
- From: Jens Alfke <email@hidden>
- Date: Thu, 15 Oct 2009 13:02:40 -0700
On Oct 15, 2009, at 12:33 PM, Nasser Al Zahrani wrote:
so what classes should i be looking at ?
NSString, mostly. Call -characters and loop over the UniChar[] array
it returns.
It's possible there are APIs for language/script detection at a lower
level, like CoreText, but this may be the wrong list to find experts
on that.
Another possibility that just occurred to me — assuming you're loading
the text into an NSTextView already, you can look at the layout
information which should tell you the directionality of each run. This
is probably somewhere in NSLayoutManager, but I'm not an expert on
that class.
—Jens_______________________________________________
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