Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: number and words Date: Thu, 03 May 2012 14:14:42 -0700 Organization: Canadian Mind Products Lines: 39 Message-ID: <2js5q719ppd6r4d8im19pchoo1d35rpthm@4ax.com> References: <7d4884d6-aebf-436e-8a76-1e2a3bf10c8b@n1g2000vby.googlegroups.com> <26508931.2139.1336000428636.JavaMail.geo-discussion-forums@pbcvn7> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:14220 On Wed, 2 May 2012 16:13:48 -0700 (PDT), Lew wrote, quoted or indirectly quoted someone who said : >Another approach would be to expand into one language, e.g., English, then = >use resource bundles to translate those words into other languages. I don't= > know how effective this would be. That's what I hoped would be true when I started writing that code. I thought I would need a common skeleton just with different constants for thousand etc. But it turns out they are crazy irregular. Have a look at Icelandic. https://wush.net/websvn/mindprod/filedetails.php?repname=mindprod&path=%2Fcom%2Fmindprod%2Finwords%2FIcelandic.java or Polish. https://wush.net/websvn/mindprod/filedetails.php?repname=mindprod&path=%2Fcom%2Fmindprod%2Finwords%2FIcelandic.java compared with AmericanEnglish https://wush.net/websvn/mindprod/filedetails.php?repname=mindprod&path=%2Fcom%2Fmindprod%2Finwords%2FAmericanEnglish.java compared with the regularity of Esperanto https://wush.net/websvn/mindprod/filedetails.php?repname=mindprod&path=%2Fcom%2Fmindprod%2Finwords%2FEsperanto.java I have not done it yet, but I suspect Mandarin may be simpler still. you can play with these only at http://mindprod.com/inwords/InWords.html typing in number to see the words in any language. -- Roedy Green Canadian Mind Products http://mindprod.com Programmers love to create simplified replacements for HTML. They forget that the simplest language is the one you already know. They also forget that their simple little markup language will bit by bit become even more convoluted and complicated than HTML because of the unplanned way it grows. .