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 πŸ”₯


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