Issue 3702 - SPELLOUT() number spell out function (multi-lingual)
Summary: SPELLOUT() number spell out function (multi-lingual)
Status: CLOSED DUPLICATE of issue 103746
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: 642
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL:
Keywords:
: 83789 (view as issue list)
Depends on:
Blocks:
 
Reported: 2002-03-28 07:34 UTC by Unknown
Modified: 2013-08-07 15:12 UTC (History)
6 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-03-28 07:34:48 UTC
Number spell out, is "words" that represent a given numeric value.
for examples, "ten" for 10, "one hundred and twenty" for 120.

This functionality is very important for financial related spreadsheet.
(cheque writing, for example)

----
may be it will works like this (just for an idea),

SPELLOUT( value [, language [, currency] ])

SPELLOUT(120) = "one hundred and twenty"
** get default language from locale (in this case English)

SPELLOUT(120, "en") = "one hundred and twenty"

SPELLOUT(120, "th") = "˹Öè§ÃéÃÂÂÕèÊÔº"

SPELLOUT(120, "en", "JP") = "one hundred and twenty yen"
SPELLOUT(120, "en", "FR") = "one hundred and twenty euro"
SPELLOUT(120, "th", "JP") = "˹Öè§ÃéÃÂÂÕèÊÔºà¹"
** pass country code to tell currency name

additional parameters may added to tell it
 - add "only" to string if input is integer (for cheque printing)

ICU has mentioned about the rule-based number spell out at
http://www-124.ibm.com/icu/docs/papers/a_rule_based_approach_to_number_spellout/
Comment 1 oc 2002-03-28 15:56:18 UTC
Hi Falko,
this one is for you.
Comment 2 falko.tesch 2002-04-09 16:11:37 UTC
Yepp, good function but that's exactly our Calc-API is for! This is
one of those jobs for third-party.
That's why I use "wontfix".
Comment 3 Unknown 2002-04-10 10:27:00 UTC
so just open the api/interface,
to allow the third-party implements it :)
Comment 4 Unknown 2002-07-15 15:10:40 UTC
my idea is, every language/locale should have a common way to do this
thing.

because this function is a very common task frequently used.


third-parties' BAHTTEXT(), YENSPELLOUT(), PRINTEUROTEXT(), DOLLAR(), etc
...i think that is not a good idea.

considers two templates for invoice.
1st uses SPELLOUT().
2nd uses third-party's (function name differs for each lang/locale)

1st template can be instantly used in any lang/locale, without
modification.
(since SPELLOUT() can use the user default/current lang/locale)

2nd template, needs to find the third-party add-on function for
current lang/locale, and then manually replace all old add-on functions
to new add-on functions.
Comment 5 michael.bemmer 2003-03-11 18:11:18 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details. First step in IssueZilla is
unfortunately to set them to verified.
Comment 6 michael.bemmer 2003-03-11 18:11:40 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for
details. First step in IssueZilla is unfortunately to set them to verified.
Comment 7 michael.bemmer 2003-03-11 18:18:48 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details. 
Comment 8 frank 2007-11-21 15:28:15 UTC
re-opened
Comment 9 frank 2007-11-21 15:29:54 UTC
Hi Eike,

sounds interesting. Maybe something for our friends.

Frank
Comment 10 frank 2007-11-21 15:33:36 UTC
*** Issue 83789 has been marked as a duplicate of this issue. ***
Comment 11 ooo 2009-08-27 13:20:26 UTC
Closing this in favor of issue 103746 that has more details and already an
implementation of an extension offering the functionality.


*** This issue has been marked as a duplicate of 103746 ***
Comment 12 Mechtilde 2009-09-17 19:46:21 UTC
duplicate -< closed