Yusuke Kawasaki > Lingua-JA-Romanize-Japanese-0.23 > Lingua::JA::Romanize::Kana::Hepburn

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::Kana::Hepburn - Hepburn Romanization using Japanese passport rules

SYNOPSIS ^

    use Lingua::JA::Romanize::Kana::Hepburn;

    my $conv = Lingua::JA::Romanize::Kana::Hepburn->new();
    my $roman = $conv->char( $kana );
    printf( "<ruby><rb>%s</rb><rt>%s</rt></ruby>", $kana, $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 Hepburn romanization version of Lingua::JA::Romanize::Kana module. This requires Lingua::JA::Hepburn::Passport.

UTF-8 FLAG ^

This treats utf8 flag transparently.

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: