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

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

πŸ’– Encode::Arabic::ArabTeX::RE β€” the manual, but make it make sense πŸ’–

okay bestie, so this is Encode::Arabic::ArabTeX::RE, and the whole vibe is: it's the deprecated version of Encode::Arabic::ArabTeX, and it does its thing with regular expressions. gone but iconic 🫢

This page lives in the User Contributed Perl Documentation corner of the 3pm manuals. πŸ’…


✨ SYNOPSIS ✨

like, the literal whole API, bestie, it's two lines:

use Encode::Arabic::ArabTeX::RE;

$string = decode 'arabtex-re', $octets;
$octets = encode 'arabtex-re', $string;

that's it. that's the girl. πŸŽ€


🌸 DESCRIPTION 🌸

so this is the deprecated method, and the way it works is by doing sequential regular-expression substitutions. it's giving "old reliable but make it regex" 😭

real talk though, let's be honest about the tradeoffs:

  • it's limited in scope compared to the ArabTeX notation as a whole β€” it doesn't cover everything
  • it's non-efficient in data processing β€” not fast, not cute for big jobs
  • BUT the one thing it does have going for it: it does not require the Encode::Mapper module ✨

so if you can't or won't pull in Encode::Mapper, this is your girl. πŸ¦‹

🧚 EXPORTS & MODES 🧚

it exports everything as if use Encode also appeared in the package β€” same energy, same exports, no extra steps. πŸ’œ

as for conversion modes? there's support, but it's experimental and incomplete. like, it's trying its best, okay?? πŸ™ˆ

go read Encode::Arabic::ArabTeX for the real deal on modes, iykyk.


πŸ‘€ SEE ALSO πŸ‘€

  • Encode::Arabic::ArabTeX β€” the non-deprecated main character πŸ‘‘

πŸ’« AUTHOR πŸ’«

Otakar Smrz <otakar-smrz users.sf.net>, and their page is at <http://otakar-smrz.users.sf.net/> β€” periodt. 🌈


Copyright (C) 2003-2016 Otakar Smrz

the tea: this library is free software 🫢 you can redistribute it and/or modify it under the same terms as Perl itself. no cap.


okay that's the whole page, bestie, you ate it πŸ’…βœ¨ this was documented as perl v5.36.0 on 2022-10-16, and the page is filed as Encode...TeX::RE(3pm) β€” mwah, go forth and decode πŸŽ€πŸ’–

πŸ“¦ where this page comes from