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 🌈


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