Re: Coercing ligatures to expanded characters
Re: Coercing ligatures to expanded characters
- Subject: Re: Coercing ligatures to expanded characters
- From: Shane Stanley <email@hidden>
- Date: Fri, 13 Jan 2017 12:35:17 +1100
On 13 Jan 2017, at 11:44 am, has <email@hidden> wrote:
rummage around the documentation for -stringByFoldingWithOptions:locale: and the ICU project's normalization library (which IIRC is what the ObjC method wraps) and you'll probably find something appropriate.
Such as? NSDiacriticInsensitiveSearch doesn't work:
set theString to current application's NSString's stringWithString:"æ" theString's stringByFoldingWithOptions:(current application's NSDiacriticInsensitiveSearch) locale:(current application's NSLocale's currentLocale()) --> "æ"
And yet:
ignoring diacriticals "æ" = "ae" --> true end ignoring
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden