• 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: Best guess at expressing a string as a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Best guess at expressing a string as a variable (From: "email@hidden" <email@hidden>)
 >Re: Best guess at expressing a string as a variable (From: Jean Suisse <email@hidden>)
 >Re: Best guess at expressing a string as a variable (From: "email@hidden" <email@hidden>)
 >Re: Best guess at expressing a string as a variable (From: Jean Suisse <email@hidden>)

  • Prev by Date: Re: How to avoid warning?
  • Next by Date: NSComboBox, binding, multiple selection, multiple values == trouble
  • Previous by thread: Re: Best guess at expressing a string as a variable
  • Next by thread: Re: Best guess at expressing a string as a variable
  • Index(es):
    • Date
    • Thread