Unicode::Transliterate - Perl wrapper for ICU transliteration services
A perl wrapper to perform transliteration between different languages using UTF-8
use Unicode::Transliterate; my $translit = new Unicode::Transliterate ( from => 'Latin', to => 'Katakana' ); print $translit->process ("Watakushi wa Sheffield ni sunde imasu");
Unicode::Transliterate is a Perl wrapper around IBM's ICU 2.x libraries. You need to install ICU 2.0 before you can use it. see http://oss.software.ibm.com/icu/
Creates a new Unicode::Transliterate object. Optional parameters can be passed to the constructor, such as 'from' and 'to'.
my $translit = new Unicode::Transliterate;
Lists pairs that can be used from the transliteration.
Accessor for the 'from' attribute
$translit->from ('Katakana'); my $from = $translit->from;
Accessor for the 'to' attribute
$translit->to ('Katakana'); my $from = $translit->to;
Processes the data and returns transliterated result
my $transliterated = $translit->process ("Foo");
None by default.
Jean-Michel Hiver (jhiver@mkdoc.com) This module is redistributed under the same licence as Perl itself.
Bug reports welcome!
ICU, International Components for Unicode - http://oss.software.ibm.com/icu/
PICU, Perl Wrappers for ICU Project - http://picu.sourceforge.net/
To install Unicode::Transliterate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Unicode::Transliterate
CPAN shell
perl -MCPAN -e shell install Unicode::Transliterate
For more information on module installation, please visit the detailed CPAN module installation guide.