Re: <i18n dev> Bug 100111

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: <i18n dev> Bug 100111

by samuel jawahar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 Hello, I have a requirement “number to text conversion”
 Example:-123 is the number the equivalent text is:” one hundred and three”
 All the standings are as per international scientific standard
 Is there any API in java addressing this request?
 If not shall I send my implementation as part  my contribution to next JDK
 Regards
 Jawahar


Re: <i18n dev> Bug 100111

by samuel jawahar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 Hello, I have a requirement “number to text conversion”
 Example:-123 is the number the equivalent text is:” one hundred and three”
 All the standings are as per international scientific standard
 Is there any API in java addressing this request?
 If not shall I send my implementation as part  my contribution to next JDK
 Regards
 Jawahar



Re: <i18n dev> Bug 100111

by Yoshito Umaoka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FYI:

Such API is not currently available in JDK.

The Unicode CLDR project (http://www.unicode.org/cldr) maintains
"Rule-Based Number Formatting" for various types in various locales -
http://www.unicode.org/reports/tr35/#Rule-Based_Number_Formatting
An implementation is provided by the ICU project
(http://icu-project.org/) in C++ and Java.  This is the API
specification of the Java implementation, including the rule syntax
definitions -
http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/RuleBasedNumberFormat.html

-Yoshito Umaoka

samuel jawahar wrote:

>  Hello, I have a requirement “number to text conversion”
>  Example:-123 is the number the equivalent text is:” one hundred and
> three”
>  All the standings are as per international scientific standard
>  Is there any API in java addressing this request?
>  If not shall I send my implementation as part  my contribution to
> next JDK
>  Regards
>  Jawahar
>
>


Re: <i18n dev> Bug 100111

by yuka.kamiya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

   samuel jawahar wrote:
   >  Hello, I have a requirement “number to text conversion”
   >  Example:-123 is the number the equivalent text is:” one hundred and three”
   >  All the standings are as per international scientific standard
   >  Is there any API in java addressing this request?
   >  If not shall I send my implementation as part  my contribution to next JDK
   >  Regards
   >  Jawahar

Could you please file an RFE(Request for enhancement) from
http://bugreport.sun.com/bugreport/ ?
I think that we haven't received this kind of RFE and need to
evaluate its demand first.

Basically, we add a new API to Java SE's core library (only)
when the API is wanted by many developers and/or it looks essential
as a part of the _core_ library of Java. Yes, we are very careful
about it, because there are developers who want us to keep Java
SE small. And also, once a new API is added, it's very difficult
to obsolete it or to change its specification even if there's a
problem. We need to consider before adding.

An independent library outside Java SE may be a good place to
keep APIs which are needed by only a small group of people.

In any case, we really appreciate it if you file a new RFE for
this.

Thanks,
--
Yuka Kamiya