Jean-Michel Hiver > Unicode-Transliterate.0.3 > Unicode::Transliterate

Download:
Unicode-Transliterate.0.3.tgz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Unicode::Transliterate - Perl wrapper for ICU transliteration services

SYNOPSIS ^

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 ^

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 ^

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

Bug reports welcome!

SEE ALSO ^

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

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

syntax highlighting: