NAME
Lingua::Num2Word - wrapper for number to text conversion modules of various languages in the Lingua:: hierarchy.
SYNOPSIS
use Lingua::Num2Word;
my $numbers = Lingua::Num2Word->new;
# try to use czech module (Lingua::CS::Num2Word) for conversion to text
my $text = $numbers->cardinal( 'cs', 123 );
# or procedural usage if you dislike OO
my $text = Lingua::Num2Word::cardinal( 'cs', 123 );
print $text || "sorry, can't convert this number into czech language.";
DESCRIPTION
Lingua::Num2Word is module for converting numbers into their representation in spoken language. This is wrapper for various Lingua::XX::Num2Word modules. Output encoding is utf8.
For further information about various limitations see documentation for currently used package.
Functions
known_langs
List of all currently supported languages.
langs
List of all known language codes from iso639.
cardinal(lang,number)
Conversion from number to text representation in specified language.
Language codes and names from iso639 can be found at "/www.triacom.com/archive/iso639.en.html"" in "http:
EXPORT_OK
cardinal
known_langs
langs
Required modules / supported languages
This module is only wrapper and require other cpan modules for requested conversions eg. Lingua::AF::Numbers for Afrikaans.
Currently supported languages/modules are:
af - Lingua::AF::Numbers
cs - Lingua::CS::Num2Word
de - Lingua::DE::Num2Word
en - Lingua::EN::Numbers
es - Lingua::ES::Numeros
eu - Lingua::EU::Numbers
fr - Lingua::FR::Numbers
id - Lingua::ID::Nums2Words
in - see 'id'
it - Lingua::IT::Numbers
ja - Lingua::JA::Number
nl - Lingua::NL::Numbers
pl - Lingua::PL::Numbers
pt - Lingua::PT::Nums2Words
ru - Lingua::RU::Number
sv - Lingua::SV::Num2Word
zh - Lingua::ZH::Numbers
KNOWN BUGS
None.
AUTHOR
Roman Vasicek <rv@petamem.com>
COPYRIGHT
Copyright (c) 2002-2004 PetaMem s.r.o.
This package is free software. You can redistribute and/or modify it under the same terms as Perl itself.