Encode...DMG::RE(3pm)

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

πŸ’– 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 (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