Re: Best guess at expressing a string as a variable
Re: Best guess at expressing a string as a variable
- Subject: Re: Best guess at expressing a string as a variable
- From: Fritz Anderson <email@hidden>
- Date: Wed, 23 Jan 2013 10:20:41 -0600
On 23 Jan 2013, at 5:40 AM, Jean Suisse <email@hidden> wrote:
>>
>> Hmm. Maybe not. I want to keep the generated variable name legible.
>
>> I think I will have to introduce an intermediate NSTextView that filters and displays the natural language input.
>> The user can then modify the variable name if necessary before it gets utilised further.
>
> Maybe you could drop the extra textfields and the processing by requesting the variable name to use an english alphanumeric character set ?
> Otherwise, how would you deal with this input for a variable name: 名前 ? [ If I am a japanese user, I would expect your software to call the variable "namae" ].
> IMHO the whole unicode character set is too large. Most language won't accept the largest part of the set.
Would CFStringTransform() be of comfort in this situation? There is the problem that ideographs get mapped from Mandarin. Good choice in terms of (potential) user base; for now a poor choice for a technical user base.
Oops, the function also takes ICU transliteration transforms (though I'd be impressed if it took all of them). The "fully reversible" transforms yield Latin with diacritics, but there seems to be an option to smash them.
— F
--
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279
_______________________________________________
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