Collate...:Pinyin(3)
π 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 utilizeweightPinyin()for collation. For them, useentryinstead. no cap, that's the move. π«Ά
π 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::CollateUnicode::Collate::Locale
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
- opensuse-leap 16.0: perl-Unicode-Collate 1.31-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Unicode-Collate 1.31-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Unicode-Collate 1.31-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Unicode-Collate 1.31-160000.2.2 Β· Artistic-1.0 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