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 πŸ¦‹


okay bye bestie, this was perl v5.42.3, dated 2026-11-03, signing off from Unicode...::Pinyin(3pm) πŸ«ΆπŸ’–

πŸ“¦ where this page comes from