InWords 4.1 build: 9211 released: 2008-04-02 spells out numbers in words in many languages. Copyright (c) 2008 Canadian Mind Products. Java Applet (that can also be run as an application). Download from http://mindprod.com/products1.html#INWORDS ===> Free <=== Full source included. You may even include the source code, modified or unmodified in commercial programs that you write and distribute. May be used freely for any purpose but military. For more details on this restriction, see http://mindprod.com/roedy.html#NONMILITARY If you include any Canadian Mind Products code in your own applications, your app too must be labeled non-military use only. All Java jars and source code are included. ---- Prerequisites: This program runs under any OS, (e.g. Win2K/XP/Vista/OSX/Linux/Solaris/Vista64/AIX...) so long as you have <><> Java version 1.5 <><> or later installed. See http://mindprod.com/jgloss/installingjava.html for details. ---- Installing on a PC: Download source and compiled class files to run on your own machine as an application or Applet. First install a recent Java JDK or JVM. See http://mindprod.com/jgloss/installingjava.html. To install, extract the zip download with WinZip (or similar unzip utility) into any directory you please, often J:\ -- ticking off the "user folder names" option. To run as an application,type: java -jar J:\com\mindprod\inwords\inwords.jar parms adjusting as necessary to account for where the jar file is. ---- Installing on a MacIntosh: Use Safari to download source and compiled class files to run on your own machine as an application or Applet. Safari will automatically unpack the zip into ~/Downloads (version 10.5) [or on the Desktop (version 10.4 and earlier)]. First install a recent Java JDK or JVM. See http://mindprod.com/jgloss/installingjava.html. You may optionally move the download tree to a permanent home. To run as an application, without parameters, just double click the jar file. To run as an application with parameters, in bash shell type: open Terminal.app cd ~/Desktop java -jar com/mindprod/inwords/inwords.jar parms adjusting as necessary to account for where the jar file is. I don't have a MacIntosh, just a PC, so I can't test the programs for Mac compatibility. In theory they should work without problems, but in practice that does not always happen. If you have problems please, let me know, preferably with screenshots and complete verbatim error messages. ---- Rebuilding: The zip already contains the necessary class and jar files, so unless you modify the program, there is no need to recompile the source or rebuild the jar. Configure basedir="E:/" in rebuild.xml to the drive where your files are. Use ANT and rebuild.xml, not build.xml, to recompile and recreate the jar. ---- Use: Shows you how to count in any of the following languages: Bahasa Indonesia Binary Decimal Dutch (modern, old and banker's) English (British, North American, Ordinals) Esperanto French German Hexadecimal Icelandic Japanese Martian Metric Metric Prefixes (grams) Norwegian Octal Polish RAM (bytes) Roman Numerals Swedish Swiss French Tagalog You can enter a number and it spells it out in words: e.g. -12345 to "minus twelve thousand three hundred forty-five" The classes it uses for conversion can be easily cannibalised for your own applications, e.g. writing cheques out in words. for example: String numStr = BritishEnglish.inWords(-1234); will generate the string: "minus one thousand two hundred four" handles longs up to Long.MAX_VALUE, namely: 9,223,372,036,854,775,807 Useful to learn to count in a foreign language. The InWords package classes are also useful for cheque writing or legal documents. You can run a batch test of any language with java com.mindprod.inwords.Polish where Polish is the name of the class handling the language you want to test. You can also run it as an Applet or a standalone GUI application. To install, Extract the zip download with WinZip, available from http://www.winzip.com (or similar unzip utility) into any directory you please, often C:\ -- ticking off the "user folder names" option. To run as an application, type: java -jar C:\com\mindprod\inwords\inwords.jar adjusting as necessary to account for where the jar file is. Why the number 42 as the icon? It is a reference to Douglas Adam's Hitchhiker's Guide to the Galaxy. It is the number that represents the deep inner meaning of the universe. What better number to convert into words? Version History 3.1 corrects a bug in French handling 301 trois cent un instead of trois cents et un. 3.2 now has a proper package name. 3.4 corrects the way large numbers are handled in Polish and adds an About box. 3.5 corrects the way negative nine digit numbers are handled in decimal with commas. 3.6 adds Javadoc to the source code. 3.7 adds Swiss Vaudois French 4.0 2007-05-24 flips from Java 1.1 to 1.5, adds a pad and icon. Passes Intellij inspector. 4.1 2008-04-02 add build to title, lint, fix spelling errors.