NAME
Lingua::Any::Numbers - Converts numbers into (any available language) string.
SYNOPSIS
use Lingua::Any::Numbers qw(:std);
printf "Available languages are: %s\n", join( ", ", available );
printf "%s\n", to_string( 45 );
printf "%s\n", to_ordinal( 45 );
or test all available languages
use Lingua::Any::Numbers qw(:std);
foreach my $lang ( available ) {
printf "%s\n", to_string( 45, $lang );
printf "%s\n", to_ordinal( 45, $lang );
}
DESCRIPTION
IMPORT PARAMETERS
All functions and aliases can be imported individually, but there are some pre-defined import tags:
:all Import everything (including aliases)
:standard available(), to_string(), to_ordinal().
:std Alias to :standard
:standard2 available_languages(), to_string(), to_ordinal()
:std2 Alias to :standard2
:long available_languages(), number_to_string(), number_to_ordinal()
FUNCTIONS
All language parameters (LANG
) has a default value: EN
.
to_string [, LANG ]
Aliases:
- num2str
- number_to_string
to_ordinal [, LANG ]
Aliases:
- num2ord
- number_to_ordinal
available
Returns a list of available language ids.
Aliases:
- available_langs
- available_languages
CAVEATS
Some modules return
UTF8
, while others return arbitrary encodings.ascii
is ok, but others will be problematic. A future release can convert all toUTF8
.All available modules will immediately be searched and loaded into memory (before using any function).
No language module (except
Lingua::EN::Numbers
) is required by Lingua::Any::Numbers, so you'll need to install the other modules manually.
SEE ALSO
Lingua::AF::Numbers, Lingua::EN::Numbers, Lingua::EU::Numbers, Lingua::FR::Numbers, Lingua::HU::Numbers, Lingua::IT::Numbers, Lingua::JA::Numbers, Lingua::NL::Numbers, Lingua::PL::Numbers, Lingua::TR::Numbers, Lingua::ZH::Numbers.
AUTHOR
Burak Gürsoy, <burak@cpan.org>
COPYRIGHT
Copyright 2007 Burak Gürsoy. All rights reserved.
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 266:
Non-ASCII character seen before =encoding in 'Gürsoy,'. Assuming CP1252