UNICODE::COLLATE::CJK::PINYIN(3pm)
π NAME π
okay so this page is Unicode...::Pinyin(3pm) from the Perl Programmers Reference Guide, and it's all about the module below β hi bestie, stay awhile π«Άβ¨
Unicode::Collate::CJK::Pinyin is literally here for weighting CJK Unified Ideographs for Unicode::Collate β that's the whole vibe π
β¨ SYNOPSIS β¨
use Unicode::Collate;
use Unicode::Collate::CJK::Pinyin;
my $collator = Unicode::Collate->new(
overrideCJK => \&Unicode::Collate::CJK::Pinyin::weightPinyin
);
no cap, that's the setup: you load Unicode::Collate, you load Unicode::Collate::CJK::Pinyin, then you point overrideCJK at \&Unicode::Collate::CJK::Pinyin::weightPinyin πΈ
πΈ DESCRIPTION πΈ
Unicode::Collate::CJK::Pinyin provides weightPinyin(), and that function is adequate for overrideCJK of Unicode::Collate π
it also makes tailoring of CJK Unified Ideographs in the order of CLDR's pinyin ordering β icon behavior, honestly π
β οΈ CAVEAT β οΈ
heads up bestie, the pinyin ordering includes some characters that are not CJK Unified Ideographs, and those can't utilize weightPinyin() for collation π
for them, use entry instead β periodt π«Ά
π¦ SEE ALSO π¦
- CLDR - Unicode Common Locale Data Repository β
<http://cldr.unicode.org/>π - Unicode Locale Data Markup Language (LDML) - UTS #35 β
<http://www.unicode.org/reports/tr35/>π Unicode::CollateβUnicode::Collate::Localeπ
okay bye bestie, this was perl v5.42.3, dated 2026-11-03, signing off from Unicode...::Pinyin(3pm) π«Άπ
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms