Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode-savvy text handling



There is currently no support for Roman numerals.

This would probably be handled via an ICU rule-based number formatter, which is what handles number spellout. It would require two things: the number formatting rules for Roman numerals, and an addition to the ICU C API that would allow rule set selection, which is currently only possible via the ICU C++ API. I think there is a roman numeral rule set already in the examples in the Java version of ICU.

Since ICU is an open source project, feel free to volunteer. ;-)

You could also just implement it yourself, within your application.

Deborah Goldsmith
Internationalization, Unicode liaison
Apple Inc.
email@hidden

On Jun 21, 2007, at 5:01 PM, Gary L. Wade wrote:

Is there a locale definition that I could use for CFNumberFormatterCreate so
that I can take a number and pass it into
CFNumberFormatterCreateStringWithNumber and get back Roman numerals
(U+2160-U+2182)?


Quoting Deborah Goldsmith <email@hidden>:

Yes, CFNumberFormatter and NSNumberFormatter will handle non-ASCII
digits, and are recommended.
Deborah Goldsmith
Internationalization, Unicode liaison
Apple Inc. email@hidden

On Jun 21, 2007, at 2:18 PM, Laurence Harris wrote:


On Jun 21, 2007, at 4:46 PM, Deborah Goldsmith wrote:

On Jun 14, 2007, at 6:53 PM, Laurence Harris wrote:
But aren't most of those non-ASCII digits still Arabic numbers? Don't most people -- even in other languages -- enter numbers in text fields as ASCII digits? Just wondering.

No, some locales use non-ASCII digits, particularly Arabic and Indic languages.

So what's the most modern, recommended, Unicode-savvy way to convert a text string into a numeric value? CFNumberFormatter?


Larry

_______________________________________________
Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/garywade% 40desisoftsystems.com


This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Unicode-savvy text handling (From: Rick Mann <email@hidden>)
 >Re: Unicode-savvy text handling (From: Laurence Harris <email@hidden>)
 >Re: Unicode-savvy text handling (From: Rick Mann <email@hidden>)
 >Re: Unicode-savvy text handling (From: Laurence Harris <email@hidden>)
 >Re: Unicode-savvy text handling (From: Deborah Goldsmith <email@hidden>)
 >Re: Unicode-savvy text handling (From: Laurence Harris <email@hidden>)
 >Re: Unicode-savvy text handling (From: Deborah Goldsmith <email@hidden>)
 >Re: Unicode-savvy text handling (From: Laurence Harris <email@hidden>)
 >Re: Unicode-savvy text handling (From: Deborah Goldsmith <email@hidden>)
 >Re: Unicode-savvy text handling (From: "Gary L. Wade" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.