Re: [OFF] unicode characters
Re: [OFF] unicode characters
- Subject: Re: [OFF] unicode characters
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 10 Apr 2008 12:20:16 +0200
On 9 Apr 2008, at 21:02, email@hidden wrote:
Take a look at CFStringTransform(). The details will depend on
exactly what you want to do.
I just have taken a look at CFStringTransform.
kCFStringTransformLatinThai = "reversible transform to transliterate
text to Thai from Latin."
But: the reverse (Thai -> Latin) always returns NO, i.e. does not work.
In the forward direction there a few strange things:
"h" → "ก" = THAI CHARACTER KO KAI
There are two 'h' letters in Thai: HO HIP and HO NOKHUK - KO KAI is
not one of these.
Other consonants getting translated in a surprising way are 'q', 'v'
and 'x'.
kCFStringTransformMandarinLatin = "reversible transform to
transliterate text to Latin from ideographs interpreted as Mandarin
Chinese."
The reverse returns YES (i.e. no problem) but does nothing, just
returns the input string unmodified.
(I have no idea how the reverse could ever work, given the huge
number of homophones in Mandarin.)
Maybe I am doing something wrong? Or misunderstanding the documentation?
Kind regards,
Gerriet.
_______________________________________________
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