Sync with files in zip

This commit is contained in:
tso
2005-06-18 16:20:11 +00:00
parent f1e887bcd2
commit 9acd82c4d5
10 changed files with 312 additions and 91 deletions

View File

@@ -1,10 +1,10 @@
'''
Module: num2word_EU.py
Requires: num2word_base.py
Version: 1.0
Version: 1.1
Author:
Taro Ogawa (BLAHhydroxideBLAH@inorbit.removeBLAHtwice.com)
Taro Ogawa (tso@users.sourceforge.org)
Copyright:
Copyright (c) 2003, Taro Ogawa. All Rights Reserved.
@@ -15,6 +15,9 @@ Licence:
Data from:
http://www.uni-bonn.de/~manfear/large.php
History:
1.1: add to_currency()
'''
from num2word_base import Num2Word_Base
@@ -34,3 +37,8 @@ class Num2Word_EU(Num2Word_Base):
tens = ["dec", "vigint", "trigint", "quadragint", "quinquagint",
"sexagint", "septuagint", "octogint", "nonagint"]
self.high_numwords = ["cent"]+self.gen_high_numwords(units, tens, lows)
def to_currency(self, val, longval=True, jointxt=""):
return self.to_splitnum(val, hightxt="Euro/s", lowtxt="Euro cent/s",
jointxt=jointxt, longval=longval)