Collate...:Pinyin(3)

πŸ“¦ version 1.31, in opensuse-leap 16.0

πŸ’– Collate...:Pinyin(3) πŸ’–

okay bestie, this page is from the User Contributed Perl Documentation crew, and it's all about a Perl module that brings CJK weighting to Unicode::Collate. it's giving niche-but-iconic, fr fr. πŸŽ€


✨ NAME ✨

Unicode::Collate::CJK::Pinyin β€” weighting CJK Unified Ideographs for Unicode::Collate πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

use Unicode::Collate;
use Unicode::Collate::CJK::Pinyin;

my $collator = Unicode::Collate->new(
    overrideCJK => \&Unicode::Collate::CJK::Pinyin::weightPinyin
);

🌸 DESCRIPTION 🌸

Unicode::Collate::CJK::Pinyin provides weightPinyin(), and that function is adequate for overrideCJK of Unicode::Collate. It makes tailoring of CJK Unified Ideographs in the order of CLDR's pinyin ordering. lowkey obsessed with how clean that is. ✨

πŸ’€ 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. no cap, that's the move. 🫢

🌈 SEE ALSO 🌈


mwah πŸ’‹ this cutie is perl v5.42.0, dated 2021-08-23, and it goes by Collate...:Pinyin(3). go slay your collation, bestie! πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from