|
NAMELingua::Han::PinYin - Retrieve the Mandarin(PinYin) of Chinese character(HanZi).SYNOPSISuse Lingua::Han::PinYin; my $h2p = Lingua::Han::PinYin->new(); # han2pinyin my $pinyin = $h2p->han2pinyin("我爱你"); # woaini my @result = $h2p->han2pinyin("爱你"); # @result = ('ai', 'ni'); DESCRIPTIONConvert Mandarin to its spellRETURN VALUEUsually, it returns its pinyin/spell.if not (I mean it's not a Chinese character), returns the original word. OPTION
METHODS
SEE ALSOUnicode::UnihanAUTHORSFayland Lam, "<fayland at gmail.com>"Tong Sun, "<suntong at cpan.org>" COPYRIGHTCopyright (c) 2005-2012 *AUTHORS* All rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html>
Visit the GSP FreeBSD Man Page Interface. |