Unicode::Transliterate - Perl wrapper for ICU transliteration services


Unicode-Transliterate documentation  | view source Contained in the Unicode-Transliterate distribution.

Index


NAME

Top

Unicode::Transliterate - Perl wrapper for ICU transliteration services

SYNOPSIS

Top

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");




DESCRIPTION

Top

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/

new

Creates a new Unicode::Transliterate object. Optional parameters can be passed to the constructor, such as 'from' and 'to'.

    my $translit = new Unicode::Transliterate;




list_pairs

Lists pairs that can be used from the transliteration.

from

Accessor for the 'from' attribute

    $translit->from ('Katakana');
    my $from = $translit->from;




to

Accessor for the 'to' attribute

    $translit->to ('Katakana');
    my $from = $translit->to;




process

Processes the data and returns transliterated result

    my $transliterated = $translit->process ("Foo");




EXPORT

None by default.

AUTHOR

Top

Jean-Michel Hiver (jhiver@mkdoc.com) This module is redistributed under the same licence as Perl itself.

Bug reports welcome!

SEE ALSO

Top

ICU, International Components for Unicode - http://oss.software.ibm.com/icu/

PICU, Perl Wrappers for ICU Project - http://picu.sourceforge.net/


Unicode-Transliterate documentation  | view source Contained in the Unicode-Transliterate distribution.