From: Venkat Akkineni Date: 2009-07-31T20:30:42+09:00 Subject: Re: java.text api parallel in Ruby > Well, that's what you get with incomplete specifications. You did not > mention that you need the locale awareness of those. :-) Lesson Learned: Better the specification better the answer. In my defense, I think my mind was wandering around the strippers I have seen last night. cheers. > AFAIK there is no locale aware version of the *printf family of methods. > Maybe there's a gem though or a pointer in RAA. > > Kind regards > > robert Thanks For the answer > Okay. So sample input and output? Normally I'd parse through the Java, > but I'm feeling a little lazy. Subtle but poignant. Well I don't have a testcase for the class which is hindering me from posting an output. The above code actually replaces the conventional numeric symbols used in English speaking nations with any available local (i.e local to a nation where it is being used) symbols. Thats about it. As a solution we are just translating the java.text api into ruby as it saves time in drafting our own api and it would mean adoption of a stable draft developed by fully dedicated team. Comments, criticisms and thoughts are welcome. If things go well we intend to offer the api as a gem. Thanks Venkat -- Posted via http://www.ruby-forum.com/.