Re: splitting CJK text into "words"
Re: splitting CJK text into "words"
- Subject: Re: splitting CJK text into "words"
- From: Ken Thomases <email@hidden>
- Date: Wed, 26 Sep 2012 16:53:03 -0500
On Sep 26, 2012, at 4:12 PM, Martin Wierschin wrote:
> I'm trying to split CJK text using the kind of word boundaries detected by -[NSAttributedString doubleClickAtIndex:]. That method does the job correctly, but only if the system preferences have the Word Break mode set to Japanese. I need to ensure this kind of word splitting independent of the user's system preferences.
Does -[NSString enumerateSubstringsInRange:options:usingBlock:] with NSStringEnumerationByWords as the option work any better?
Regards,
Ken
_______________________________________________
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