UNICODE::COLLATE::CJK::STROKE(3perl)
π NAME π
Unicode::Collate::CJK::Stroke β she's the one who does the weighting of CJK Unified Ideographs for Unicode::Collate, bestie. That's the whole job description. π
β¨ SYNOPSIS β¨
okay so here's literally all you have to type:
use Unicode::Collate;
use Unicode::Collate::CJK::Stroke;
my $collator = Unicode::Collate->new(
overrideCJK => \&Unicode::Collate::CJK::Stroke::weightStroke
);
look at that. three little lines and your collator is serving. π«Ά
πΈ DESCRIPTION πΈ
So Unicode::Collate::CJK::Stroke hands you weightStroke(), right? And that function is exactly what you want for overrideCJK over in Unicode::Collate. It makes your tailoring of CJK Unified Ideographs go in the order of CLDR's stroke ordering. It's giving organized. It's giving the strokes know their place. π
β οΈ CAVEAT β οΈ
Not me being the bearer of bad news but bestie listen π
The stroke ordering includes some characters that are not CJK Unified Ideographs. And for those ones, weightStroke() justβ¦ can't do the collation thing. She can't help you there. π
For those characters, use "entry" instead. That's the move. no cap.
π₯ 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
aaand that's the page babes π this was perl v5.44.0, dated 2026-10-17, and it lives under the name Unicod...:Stroke(3perl) (yes the header truncates it like that, it's iconic, don't question her). go sort some ideographs, you've got this πβ¨π¦
π¦ 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