UNICODE::COLLATE::CJK::KOREAN(3perl)
π NAME π
okay so bestie, gather round π«Ά this one is called Unicode::Collate::CJK::Korean β and it does the weighting of CJK Unified Ideographs for Unicode::Collate. That's the whole job. That's the moment. β¨
πΈ SYNOPSIS πΈ
not me about to show you the exact vibes. copy this, don't freestyle it:
use Unicode::Collate;
use Unicode::Collate::CJK::Korean;
my $collator = Unicode::Collate->new(
overrideCJK => \&Unicode::Collate::CJK::Korean::weightKorean
);
look at that. use it twice, pass weightKorean as a code ref to overrideCJK, and you are so sorted. π
π¦ DESCRIPTION π¦
so Unicode::Collate::CJK::Korean hands you weightKorean() β one function, main character energy, no notes π
and what does weightKorean() do? it's adequate for the overrideCJK thingy of Unicode::Collate (yes, the module literally says "adequate", we're being humble today π), and it makes the tailoring of CJK Unified Ideographs happen β in the order of CLDR's Korean ordering. that's it. that's the tea π
lowkey iconic: you don't sort CJK ideographs by whatever vibe you woke up with, you sort them the Korean way, courtesy of CLDR. periodt.
π SEE ALSO π
go read these, they're giving very much required-reading π§
- CLDR - Unicode Common Locale Data Repository
- Unicode Locale Data Markup Language (LDML) - UTS #35
Unicode::CollateUnicode::Collate::Locale
and that's the page fr fr π this lil Unicod...:Korean(3perl) lives in the Perl Programmers Reference Guide, it's from perl v5.44.0, dated 2026-10-17. slay, go collate something π¦β¨
π¦ 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