Skip Menu |

This queue is for tickets about the Lingua-DE-Num2Word CPAN distribution.

Report information
The Basics
Id: 20846
Status: rejected
Priority: 0/
Queue: Lingua-DE-Num2Word

People
Owner: Nobody in particular
Requestors: bzm [...] 2bz.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.03
Fixed in: (no value)



Subject: 1 is 'eins' not 'ein'
Hi, a single 1 in german is 'eins' not 'ein'. Thats fixed with the attached patch. -- Boris
Subject: Num2Word.diff
diff -ur a/Lingua-DE-Num2Word-0.03/Num2Word.pm b/Lingua-DE-Num2Word-0.03/Num2Word.pm --- a/Lingua-DE-Num2Word-0.03/Num2Word.pm 2004-06-21 11:11:45.000000000 +0200 +++ b/Lingua-DE-Num2Word-0.03/Num2Word.pm 2006-08-04 15:37:48.000000000 +0200 @@ -25,7 +25,7 @@ sub num2de_cardinal { my $positive = shift; - my @tokens1 = qw(null ein zwei drei vier fünf sechs sieben acht neun zehn elf zwölf); + my @tokens1 = qw(null eins zwei drei vier fünf sechs sieben acht neun zehn elf zwölf); my @tokens2 = qw(zwanzig dreissig vierzig fünfzig sechzig siebzig achtzig neunzig hundert); return $tokens1[$positive] if($positive >= 0 && $positive < 13); # 0 .. 12
On Fr. 04. Aug. 2006, 09:46:16, BORISZ wrote: Show quoted text
> a single 1 in german is 'eins' not 'ein'. > > Thats fixed with the attached patch.
This is wrong. We do not count, but build cardinal numbers here. And there you have "Ein Euro" "Ein Element" "Ein Kind" and not "Eins Euro" "Eins Element" "Eins Kind" - this would be simply wrong. The femininum form is simply derived from the masculine form by appending an "e". "Eine Frau" "Eine Bahn"... The neuter form is the same as the masculine form. Also in plural forms, you have "Einhundertein Fussballfans" "Einhundertein Gesetze" and not "Einhunderteins Fussballfans" "Einhunderteins Gesetze"