Yusuke Kawasaki > Lingua-JA-Romanize-Japanese-0.23 > Lingua::JA::Romanize::Juman

Download:
Lingua-JA-Romanize-Japanese-0.23.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Module Version: 0.20   Source  

NAME ^

Lingua::JA::Romanize::Juman - Romanization of Japanese language with JUMAN

SYNOPSIS ^

    use Lingua::JA::Romanize::Juman;

    my $conv = Lingua::JA::Romanize::Juman->new();
    my $roman = $conv->char( $kanji );
    printf( "<ruby><rb>%s</rb><rt>%s</rt></ruby>", $kanji, $roman );

    my @array = $conv->string( $string );
    foreach my $pair ( @array ) {
        my( $raw, $ruby ) = @$pair;
        if ( defined $ruby ) {
            printf( "<ruby><rb>%s</rb><rt>%s</rt></ruby>", $raw, $ruby );
        } else {
            print $raw;
        }
    }

DESCRIPTION ^

This is a JUMAN version of Lingua::JA::Romanize::Japanese module. This requires Juman.pm module which is distributed in juman-x.x.tar.gz package.

UTF-8 FLAG ^

This treats utf8 flag transparently.

SEE ALSO ^

http://nlp.kuee.kyoto-u.ac.jp/nl-resource/juman.html (Japanese)

COPYRIGHT AND LICENSE ^

Copyright (c) 2006-2008 Yusuke Kawasaki. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: