Encode...DMG::RE(3pm)
π Encode::Arabic::ArabTeX::ZDMG::RE β the perl(3pm) page, but make it cute β¨
okay so bestie, we're in the User Contributed Perl Documentation section of the manual, and today's main character is Encode::Arabic::ArabTeX::ZDMG::RE π
Heads up: this one is deprecated. Let that sink in. It's the version of Encode::Arabic::ArabTeX::ZDMG that got built out of regular expressions, and it's serving "I was iconic in my era, but we've moved on" energy π₯²
πΈ NAME πΈ
Encode::Arabic::ArabTeX::ZDMG::RE β deprecated, no cap.
This is Encode::Arabic::ArabTeX::ZDMG, but implemented with regular expressions. It's giving legacy code that we still respect π«Ά
β¨ SYNOPSIS β¨
use Encode::Arabic::ArabTeX::ZDMG::RE;
$string = decode 'arabtex-zdmg-re', $octets;
$octets = encode 'arabtex-zdmg-re', $string; # not really implemented
Quick translation for the girls: you pull in the module, then you decode your octets into a string β and if you're trying to encode backβ¦ it's not really implemented, bestie π the comment in the code literally says so, so don't come for me, I'm just the messenger π
π¦ DESCRIPTION π¦
So here's the tea β β this is the deprecated method that does its thing using sequential regular-expression substitutions. Very "step by step, one substitution at a time, no shortcuts" of it.
It's limited in scope when it comes to the ArabTeX notation, and it's non-efficient in data processing β like, actually inefficient, I'm not being dramatic for once π
But! Here's the slay: it doesn't require the Encode::Mapper module. So if that's a thing you can't have, this little relic has your back π
Fun origin story: originally, this method helped with data typesetting in TeX β yes, it's a TeX girlie. Then it got modified so it produces correct Perl's representation, engaging the Combining Diacritical Marks from the Unicode Standard, Version 4.0. That's the glow-up, periodt π
π EXPORT π
It exports exactly as if use Encode also showed up in the package. So likeβ¦ surprise, you got Encode too π that's the vibe.
π SEE ALSO π
Encode::Arabic::ArabTeX::ZDMGβ the non-RE sibling, go say hi π
iykyk.
π AUTHOR π
Otakar Smrz "<otakar-smrz users.sf.net>", <http://otakar-smrz.users.sf.net/>
the icon, the legend, the author π
π COPYRIGHT AND LICENSE π
Copyright (C) 2003-2012 Otakar Smrz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so generous, so real π«Ά
and that's the whole page, bestie β every flag, every caveat, every copyright line, all intact, nothing skipped, we ate and left no crumbs π
This page is from perl v5.36.0, dated 2022-10-16 β shoutout to the Encode...DMG::RE(3pm) footer that carried us here πΈ mwah, go decode something β¨π¦
π¦ where this page comes from
- ubuntu noble: libencode-arabic-perl 14.2-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libencode-arabic-perl 14.2-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libencode-arabic-perl 14.2-3 Β· Artistic-1.0-Perl OR 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