Text::...alents(3pm)

πŸ“¦
version 0.05 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Text::Unicode::Equivalents(3pm) ✨

okay bestie, so this is a page out of the User Contributed Perl Documentation, section 3pm, and it's giving canonical equivalence in the most unhinged way possible. buckle up πŸŽ€


πŸ’– NAME πŸ’–

Text::Unicode::Equivalents β€” synthesize canonically equivalent strings πŸ¦‹


🌸 SYNOPSIS 🌸

        use Text::Unicode::Equivalents qw( all_strings);

        $aref = all_strings ($string);
        map {print "$_\n"} @{$aref};

like, that's it. that's the whole API. iconic behaviour honestly πŸ‘‘


✨ DESCRIPTION ✨

  • all_string($s) β€” so you hand this baby an arbitrary string, and all_strings() hands you back a reference to an array. no cap. and that array is unsorted (do not come for the order, there is no order, the order is vibes) and it contains all unique strings that are canonically equivalent to the argument you passed in. every. single. one. πŸ’…

πŸ’€ BUGS πŸ’€

ngl this one hurts. it Uses Unicode::Normalize. and here's the tea πŸ“: on some systems (the example given is ActiveState 5.6.1) Unicode::Normalize is only aware of Unicode 3.0. which means any de/compositions introduced since Unicode 3.0 will not be used. so if your favourites are missing, that's why 😭


🫢 AUTHOR 🫢

Bob Hallissy β€” the main character who wrote this 🧚


Copyright(C) 2003-2011, SIL International.

This package is published under the terms of the Perl Artistic License.

friendly lil reminder bestie: that's Copyright(C) 2003-2011, SIL International. exactly as written, and the license is the Perl Artistic License. don't be weird about it πŸ™ˆ

🌈 the sign-off πŸ’œ

this whole thing is from perl v5.36.0, dated 2022-10-22, and it lives in the manual as Text::...alents(3pm) πŸŽ€ (yes the title really is truncated like that in the header and footer, i don't make the rules, i just slay within them ✨)

so yeah. go forth, synthesize your equivalents, and remember: all_strings() returns unique, unsorted, canonically equivalent strings and nothing else. periodt. πŸ’–

πŸ“¦ where this page comes from