UNICODE::COLLATE::CJK::GB2312(3perl)
π NAME π
Unicode::Collate::CJK::GB2312 β bestie, this is the module that does the weighting for CJK Unified Ideographs so that Unicode::Collate can sort them all pretty β¨
π SYNOPSIS π
okay so here's the whole vibe, copy-paste coded and everything:
use Unicode::Collate;
use Unicode::Collate::CJK::GB2312;
my $collator = Unicode::Collate->new(
overrideCJK => \&Unicode::Collate::CJK::GB2312::weightGB2312
);
like, that's it. that's the whole ritual π
π¦ DESCRIPTION π¦
So Unicode::Collate::CJK::GB2312 hands you weightGB2312(), and no cap, that function is exactly what you want for overrideCJK over in Unicode::Collate. What it does is make tailoring of CJK Unified Ideographs happen in the order of CLDR's gb2312han ordering. it's giving sorted-and-slayed. periodt π
πΈ CAVEAT πΈ
β οΈ okay bestie, listen, this part matters, don't skip it
the gb2312han ordering includes 5 code points that live in the private use area (E2D8..E2DC), and those little guys can't use weightGB2312() for collation, like at all, it just doesn't work for them π
so for those five specifically? use entry instead. that's the move. iykyk π«Ά
π SEE ALSO π
- CLDR - Unicode Common Locale Data Repository
- Unicode Locale Data Markup Language (LDML) - UTS #35
Unicode::CollateUnicode::Collate::Locale
and that's the whole page, bestie, you ate it up ππ§
perl v5.44.0 Β· 2026-10-17 β that's the version and the date, straight from the source, no edits, no cap πβ¨ no thoughts just Unicod...:GB2312(3perl) signing off π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms