UNICODE::COLLATE::CJK::GB2312(3pm)

okay bestie, welcome to the manual page for Unicode::Collate::CJK::GB2312(3pm) 💖 — yes, that whole mouthful. It’s the Perl Programmers Reference Guide situation, and we’re gonna keep it cute and useful. no cap.

✨ NAME ✨

Unicode::Collate::CJK::GB2312 — weighting CJK Unified Ideographs for Unicode::Collate.

🛠️ SYNOPSIS 🛠️

Here’s the exact setup, bestie — copy-paste energy, no edits:

use Unicode::Collate;
use Unicode::Collate::CJK::GB2312;

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

🌸 DESCRIPTION 🌸

Unicode::Collate::CJK::GB2312 provides weightGB2312(), that is adequate for overrideCJK of Unicode::Collate and makes tailoring of CJK Unified Ideographs in the order of CLDR’s gb2312han ordering. Translation: it’s the lil helper that tailors those CJK Unified Ideographs into that exact gb2312han order, and it fits right into overrideCJK like it was meant to be there. slay ✨

⚠️ CAVEAT ⚠️

okay but listen, important: the gb2312han ordering includes 5 code points in private use area (E2D8..E2DC), that can’t utilize weightGB2312() for collation. For them, use entry instead. So don’t try to make weightGB2312() do the thing for those five, bestie — entry is the move. 🫶

👀 SEE ALSO 👀

go look at these too, iykyk:


that’s the whole manual, bestie 🎀 — source/version: perl v5.42.3, date: 2026-11-03. bye ily 💅

📦 where this page comes from