Unicode::Collate::CJK::Pinyin - weighting CJK Unified Ideographs for Unicode::Collate
use Unicode::Collate;
use Unicode::Collate::CJK::Pinyin;
my $collator = Unicode::Collate->new(
overrideCJK => \&Unicode::Collate::CJK::Pinyin::weightPinyin
); Unicode::Collate::CJK::Pinyin provides weightPinyin(), that is adequate for overrideCJK of Unicode::Collate and makes tailoring of CJK Unified Ideographs in the order of CLDR's pinyin ordering.
The pinyin ordering includes some characters that are not CJK Unified Ideographs and can't utilize weightPinyin() for collation. For them, use entry instead.
© 1993–2025 Larry Wall and others
Licensed under the GNU General Public License version 1 or later, or the Artistic License.
The Perl logo is a trademark of the Perl Foundation.
https://perldoc.perl.org/5.42.0/Unicode::Collate::CJK::Pinyin