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

πŸ’… Unicode::Collate::CJK::Stroke(3pm) πŸ’…

okay bestie, welcome to Unicode::Collate::CJK::Stroke(3pm) β€” header shorthand: Unicode...::Stroke(3pm) β€” from the Perl Programmers Reference Guide. This is your guide to CJK stroke weighting, and yes, it’s giving niche-but-iconic. πŸ’–


πŸŽ€ NAME πŸŽ€

Unicode::Collate::CJK::Stroke β€” weighting CJK Unified Ideographs for Unicode::Collate πŸ¦‹


✨ SYNOPSIS ✨

Bestie, the setup is literally this:

use Unicode::Collate;
use Unicode::Collate::CJK::Stroke;

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

🌸 DESCRIPTION 🌸

okay so Unicode::Collate::CJK::Stroke provides weightStroke(), and that function is adequate for overrideCJK of Unicode::Collate. It makes tailoring of CJK Unified Ideographs happen in the order of CLDR’s stroke ordering. Slay. πŸ‘‘


πŸ’€ CAVEAT πŸ’€

⚠️ real talk, this is a caveat, not a drill:

The stroke ordering includes some characters that are not CJK Unified Ideographs, and for those characters, weightStroke() can’t be utilized for collation. For them, use entry instead. 🫢


πŸ”₯ SEE ALSO πŸ”₯


this Unicode::Collate::CJK::Stroke(3pm) page ships with perl v5.42.3, dated 2026-11-03 πŸ«ΆπŸ’…

πŸ“¦ where this page comes from