CLDR-Number
view release on metacpan or search on metacpan
lib/CLDR/Number.pm view on Meta::CPAN
Default: value of B<default_locale> attribute if it exists, otherwise C<root>
Valid: Unicode locale identifiers
Examples: C<es> (Spanish), C<es-ES> (European Spanish), C<es-419> (Latin
American Spanish), C<zh-Hant> (Traditional Chinese), C<zh-Hans> (Simplified
Chinese), C<chr> (Cherokee)
The locale is case-insensitive and can use either C<-> (hyphen-minus) or C<_>
(low line) as a separator.
=item default_locale
Default: none
Valid: Unicode locale identifiers
Use this if you want a locale other than the generic C<root> if the B<locale>
attribute is not set or not valid.
=item numbering_system
Valid: currently only decimal numbering systems are supported
Examples: C<latn> (Western Digits), C<arab> (Arabic-Indic Digits), C<hanidec>
(Chinese Decimal Numerals), C<fullwide> (Full Width Digits)
In the future, algorithmic numbering systems like C<hant> (Traditional Chinese
Numerals), C<hebr> (Hebrew Numerals), and C<roman> (Roman Numerals) will be
supported.
The numbering system may alternately be provided as a Unicode locale extension
subtag. For example, locale C<ja-u-nu-fullwide> for the Japanese language
(C<ja>) with the numbering system (C<nu>) set to Full Width Digits
(C<fullwide>).
=item decimal_sign
Examples: C<.> (full stop) for B<root>, B<en>; C<,> (comma) for B<de>, B<fr>
=item group_sign
Examples: C<,> (comma) for B<root>, B<en>; C<.> (full stop) for B<de>; C<Â >
(no-break space) for B<fr>
=item plus_sign
Examples: C<+> (plus sign) for B<root>, B<en>, and most locales
=item minus_sign
Examples: C<-> (hyphen-minus) for B<root>, B<en>, and most locales
=item infinity
Examples: C<â> (infinity) for B<root>, B<en>, and almost all locales
=item nan
Examples: C<NaN> for B<root>, B<en>, and most locales; many other variations for
individual locales like C<не ÑиÑло> for B<ru> and C<鿏å¼> for B<zh-Hant>
=item cldr_version
Value: C<29>
This is a read-only attribute that will always reflect the currently supported
Unicode CLDR version.
=back
=head1 NOTES
The Unicode private-use characters U+F8F0 through U+F8F4 are used internally and
are therefore not supported in custom patterns and signs.
=head1 SEE ALSO
=over
=item * L<CLDR::Number::FAQ>
=item * L<CLDR::Number::TODO>
=item * L<Unicode beyond just characters: Localization with the
CLDR|http://patch.codes/talks/localization-with-the-unicode-cldr/> (video and
slides)
=item * L<Perl Advent Calendar:
CLDR TL;DR|http://perladvent.org/2014/2014-12-23.html>
=item * L<UTS #35: Unicode LDML, Part 3:
Numbers|http://www.unicode.org/reports/tr35/tr35-numbers.html>
=item * L<CLDR Translation Guidelines: Number
Patterns|http://cldr.unicode.org/translation/number-patterns>
=item * L<CLDR Translation Guidelines: Number
Symbols|http://cldr.unicode.org/translation/number-symbols>
=back
=head1 AUTHOR
Nova Patch <patch@cpan.org>
This project is brought to you by L<Shutterstock|http://www.shutterstock.com/>.
Additional open source projects from Shutterstock can be found at
L<code.shutterstock.com|http://code.shutterstock.com/>.
=head1 COPYRIGHT AND LICENSE
© 2013â2016 Shutterstock, Inc.
This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
Unicode is a registered trademark of Unicode, Inc., in the United States and
other countries.
( run in 1.419 second using v1.01-cache-2.11-cpan-39bf76dae61 )