Lingua::ZH::CCDICT::Romanization::Pinyin - A pinyin romanization of a Chinese character
print $pinyin->syllable(); print $pinyin->as_ascii(); print $pinyin->as_unicode();
The Lingua::ZH::CCDICT::Romanization::Pinyin class is used for the return values of the Lingua::ZH::CCDICT::ResultItem class's tongyong method, and provides the following additional methods:
Lingua::ZH::CCDICT::Romanization::Pinyin
Lingua::ZH::CCDICT::ResultItem
tongyong
This returns the syllable with the tone markings appended as a number at the end, but it may contain a u with an umlaut.
Returns the syllable as ascii. The tone is appended as a number, and a u with an umlaut is represented as two u's in row.
The syllable with the tone marking represented as diacritics using Unicode characters.
David Rolsky <autarch@urth.org>
Copyright (c) 2002-2007 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Lingua::ZH::CCDICT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::ZH::CCDICT
CPAN shell
perl -MCPAN -e shell install Lingua::ZH::CCDICT
For more information on module installation, please visit the detailed CPAN module installation guide.