Collate...ISX0208(3)

πŸ“¦ version 1.31, in opensuse-leap 16.0

✨ NAME ✨

So this is Unicode::Collate::CJK::JISX0208 β€” it's the module that does the weighting of JIS KANJI for Unicode::Collate, and honestly? It's giving unsung hero πŸ’…

(Also hi, this is page 3 of the User Contributed Perl Documentation section, if you were wondering where you wandered into πŸŽ€)


🌸 SYNOPSIS 🌸

Like, here's the whole vibe, bestie β€” copy-paste and go:

use Unicode::Collate;
use Unicode::Collate::CJK::JISX0208;

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

That's it. That's the post. ✨


πŸ’– DESCRIPTION πŸ’–

Okay so Unicode::Collate::CJK::JISX0208 hands you weightJISX0208(), and that function is literally made for the overrideCJK slot of Unicode::Collate. It's custom-built, no cap 🫢

And what does it actually do? It makes the tailoring of 6355 kanji (CJK Unified Ideographs, yeah those ones) happen in the JIS X 0208 order. 6355 of them. Not a rounding error, not a vibe β€” an actual number, and it's iconic πŸ‘‘

Fr fr, 6355 is the number. Don't @ me with a different one.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Unicode::Collate β€” the main character, the one you're overriding for
  • Unicode::Collate::Locale β€” the locale-flavoured sibling, go say hi

πŸŽ€ sign-off πŸŽ€

Mwah, that's the page πŸ’œ This lil beauty ships with perl v5.42.0 and was last touched on 2021-08-23, so it's got that vintage-but-still-slaying energy. Go collate something pretty 🌈⭐

πŸ“¦ where this page comes from