Project

General

Profile

The reason behind this plugin is to expose some of the functionality available in the ICU4J library to Servoy developers. Namely, the rule-base number formatting which, depending on the provided rules, can be used for various reasons.

The plugin is built against Servoy 6.x and can be used in all types of Servoy clients (Smart, Web, Headless).

A very simple example of the plugin usage:

application.output(plugins.argosNumberToWords.numberToWords(1234.56, i18n.getCurrentCountry(), i18n.getCurrentLanguage());

A sample Servoy 6.x solution is available which demonstrates the available functionality of the plugin.

Note: The jar files included in published deployment ZIP (argos_number2words.zip) are signed with a self-issued certificate and is not recommended to be used in production environment. You should sing the jars with a trustworthy certificate. Here is a link with good info on jar file signing: http://wiki.plexinfo.net/index.php?title=How_to_sign_JAR_files

Additional Resources

The link to the ICU Project: http://icu-project.org

Here is a link to one of the articles available in the ICU project site which explains the rule-based approach to number spell-out: http://icu-project.org/docs/papers/a_rule_based_approach_to_number_spellout/

Here you can see some sample rule sets which can be used with the numberToWordsByRuleSet method: http://www.java2s.com/Open-Source/Java-Document/Internationalization-Localization/icu4j/com/ibm/icu/dev/demo/rbnf/RbnfSampleRuleSets.java.htm