Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=mxw.git;a=commitdiff;h=a6ed6ed852ec279714872628a2314c1954f25ad7

commit a6ed6ed852ec279714872628a2314c1954f25ad7
Author: Krisztian VASAS <[email protected]>
Date:   Sat Jan 7 08:28:52 2012 +0100

fixed lammercounter

diff --git a/events.py b/events.py
index d1715da..f3e3424 100644
--- a/events.py
+++ b/events.py
@@ -555,6 +555,36 @@ def lc(c, source, target, data):
if thousands.find( 'ezer' ) > 0:
num += 1000
thousands = thousands.replace('ezer', '')
+               if thousands.find( 'sz\xe1z' ) >= 0:
+                       ht = thousands.split( 'sz\xe1z' )[0]
+                       thousands = thousands.split( 'sz\xe1z' )[1]
+                       if ht.find( 'egy' ) >= 0:
+                               num += 99000
+                               ht = ht.replace( 'egy', '' )
+                       elif ht.find( 'kett\xf5' ) >= 0:
+                               num += 199000
+                               ht = ht.replace( 'kett\xf5', '' )
+                       elif ht.find( 'h\xe1rom' ) >= 0:
+                               num += 299000
+                               ht = ht.replace( 'h\xe1rom', '' )
+                       elif ht.find( 'n\xe9gy' ) >= 0:
+                               num += 399000
+                               ht = ht.replace( 'n\xe9gy', '' )
+                       elif ht.find( '\xf6t' ) >= 0:
+                               num += 499000
+                               ht = ht.replace( '\xf6t', '' )
+                       elif ht.find( 'hat' ) >= 0:
+                               num += 599000
+                               ht = ht.replace( 'hat', '' )
+                       elif ht.find( 'h\xe9t' ) >= 0:
+                               num += 699000
+                               ht = ht.replace( 'h\xe9t', '' )
+                       elif ht.find( 'nyolc' ) >= 0:
+                               num += 799000
+                               ht = ht.replace( 'nyolc', '' )
+                       elif ht.find( 'kilenc' ) >= 0:
+                               num += 899000
+                               ht = ht.replace( 'kilenc', '' )
if thousands.find( 't\xedz' ) >= 0:
num += 9000
thousands = thousands.replace('t\xedz', '')
@@ -649,22 +679,22 @@ def lc(c, source, target, data):
num += 30
tens = tens.replace('harminc', '')
elif tens.find('negyven') >= 0:
-               num += 30
+               num += 40
tens = tens.replace('negyven', '')
elif tens.find('\xf6tven') >= 0:
-               num += 30
+               num += 50
tens = tens.replace('\xf6tven', '')
elif tens.find('hatvan') >= 0:
-               num += 30
+               num += 60
tens = tens.replace('hatvan', '')
elif tens.find('hetven') >= 0:
-               num += 30
+               num += 70
tens = tens.replace('hetven', '')
elif tens.find('nyolvan') >= 0:
-               num += 30
+               num += 80
tens = tens.replace('nyolcvan', '')
elif tens.find('kilencven') >= 0:
-               num += 30
+               num += 90
tens = tens.replace('kilencven', '')
if tens.find('egy') >= 0:
num += 1
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to