NAME
Lingua::JA::Romanize::MeCab - Romanization of Japanese language with MeCab
SYNOPSIS
use Lingua::JA::Romanize::MeCab;
my $conv = Lingua::JA::Romanize::MeCab->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 MeCab version of Lingua::JA::Romanize::Japanese module. MeCab's Perl binding, MeCab.pm, is required.
UTF-8 DICTIONARY
If MeCab's dictionary is generated with UTF8, --with-charset=utf8, use Lingua::JA::Romanize::MeCab::UTF8->new() instead of Lingua::JA::Romanize::MeCab->new().
SEE ALSO
Lingua::JA::Romanize::Japanese
http://mecab.sourceforge.jp/ (Japanese)
AUTHOR
Yusuke Kawasaki, http://www.kawa.net/
COPYRIGHT AND LICENSE
Copyright (c) 2006-2007 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.