• 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: language based scaning,
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: language based scaning,
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: language based scaning, (From: Nasser Al Zahrani <email@hidden>)

  • Prev by Date: Re: NSURLConnection timeout -- what happens?
  • Next by Date: Re: Malloc leak from ImageIO library
  • Previous by thread: Re: language based scaning,
  • Next by thread: Re: language based scaning,
  • Index(es):
    • Date
    • Thread