Unaccent(3pm)
πΈ Unaccent(3pm) β the whole vibe πΈ
Hiii bestie π so this page lives in User Contributed Perl Documentation (that's the manual section it's chillin' in), and ngl it's a short one but it's so useful. It's all about Text::Unaccent, the module that yeets accents off your strings. Let's get into it π¦
β¨ NAME β¨
Text::Unaccent β Remove accents from a string. periodt π
β¨ SYNOPSIS β¨
okay here's the whole thing at a glance, no cap:
use Text::Unaccent;
$unaccented = unac_string($charset, $string);
$unaccented = unac_string_utf16($string);
$version = unac_version();
unac_debug($level);
β¨ DESCRIPTION β¨
So Text::Unaccent is a module that removes accents from a string. That's the whole plot, and honestly? main character energy π
Here's the tea on how unac_string works: it converts the input string from whatever charset you specified over to UTF-16, and then it calls unac_string_utf16 to hand back the unaccented equivalent. The conversion from and to UTF-16 is done with iconv(1). (Yes, both directions, she does the round trip π)
β¨ METHODS β¨
$unaccented = unac_string($charset, $string)
Return the unaccented equivalent of the string $string. The character set of $string is specified by the $charset argument, and the returned string is coded using that same character set. Valid values for the $charset argument are character sets known by iconv(1). Under GNU/Linux, try iconv -l for a complete list β that's the plug, bestie π«Ά
$unaccented = unac_string_utf16($string)
Return the unaccented equivalent of the string $string. The character set of $string must be UTF-16 β no exceptions, she's picky and honestly she's allowed to be π
$version = unac_version()
Return the version of the unac library that this perl module is using. Cute lil version check, love that for you β¨
unac_debug($level)
Set the debug level. Messages are printed on stderr. Possible debug levels are:
okay so the original page says "Possible debug levels are:" and thenβ¦ lists absolutely nothing π like the list is just empty, fr fr. So that's what I'm passing along to you: whatever levels exist, this page does not enumerate them. Keep every detail? Yes. There are zero details here to keep. π
β¨ AUTHOR β¨
Loic Dachary (loic@senga.org) http://www.senga.org/unac/ π
β¨ SEE ALSO β¨
β¨ POD ERRORS β¨
Hey! The above document had some coding errors, which are explained below:
Around line 101:
You forgot a '=back' before '=head1'
not the =back erasure π the POD police caught it, we're just reporting it faithfully, no notes π
and that's the whole page, bestie! this one came to you from perl v5.42.3, dated 2026-08-19, under the name Unaccent(3pm). slay, go unaccent something π₯π
π¦ where this page comes from
- ubuntu stonking: libtext-unaccent-perl 1.08-2build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms