The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lingua::Han::CanonicalPinYin - Canonical PinYin of Hanzi

SYNOPSIS

    use Lingua::Han::CanonicalPinYin 'canonicalize_pinyin';
    # $hao is "ha\x{30c}o"
    my $hao = canonicalize_pinyin( 'hao3' );

DESCRIPTION

This module helps you convert hanzi's pinyin like "hao3" to "ha\x{30c}o".

NOTE: converted value is a utf8 string; 'v' will be replaced by "u\x{308}".

BUGS AND LIMITATIONS

No bugs have been reported.

AUTHOR

sunnavy sunnavy@bestpractical.com

LICENCE AND COPYRIGHT

Copyright 2010 Best Practical Solutions.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.