Encode...X::ZDMG(3pm)
π NAME π
Encode::Arabic::ArabTeX::ZDMG β bestie, it's the ZDMG phonetic transcription of Arabic, done through the β¨ArabTeXβ¨ notation. That's literally the whole vibe.
π SYNOPSIS π
use Encode::Arabic::ArabTeX::ZDMG; # imports just like 'use Encode' would, plus extended options
while ($line = <>) { # maps the ArabTeX notation for Arabic into the Latin symbols
print encode 'utf8', decode 'zdmg', $line; # 'ZDMG' alias 'ArabTeX-ZDMG'
}
# ArabTeX lower ASCII transliteration <--> Latin phonetic transcription, ZDMG style
$string = decode 'ArabTeX-ZDMG', $octets;
$octets = encode 'ArabTeX-ZDMG', $string;
Like, look at her go π«Ά. Same energy as use Encode, but with extra options on top. And yes, 'ZDMG' is a whole alias for 'ArabTeX-ZDMG', they're the same girl, no cap.
πΈ DESCRIPTION πΈ
Ok so imagine a right-to-left script and imagine your LaTeX wanting to type it out β that's ArabTeX, an absolutely excellent extension to TeX/LaTeX made for the Orient's right-to-left scripts. And the way it handles it? It comes with these super intuitive, super comprehensible lower ASCII transliterations, and honestly the expressive power of those is even better than that of the scripts themselves. It's giving main character energy fr fr π
Encode::Arabic::ArabTeX::ZDMG implements the rules you need for a proper interpretation of the ArabTeX notation of Arabic into the phonetic transcription in the ZDMG style. The conversion ifself is done by Encode::Mapper, and the user interface is built on top of the Encode::Encoding module. (And yeah, "ifself" is a typo, I'm leaving it in, she's iconic like that π)
The relevant guidance lives in Encode::Arabic::ArabTeX, which this module inherits from β family tree, we love to see it π. But β and this is the tea β the transformation rules are quite different ;) π
π¦ SEE ALSO π¦
Encode::Arabic::ArabTeX,Encode::Arabic,Encode::Mapper,Encode::Encoding,Encodeβ the whole friend group π«Ά- ArabTeX system <ftp://ftp.informatik.uni-stuttgart.de/pub/arabtex/arabtex.htm>
- Klaus Lagally <http://www.informatik.uni-stuttgart.de/ifi/bs/people/lagall_e.htm>
- ArabTeX extensions <http://sourceforge.net/projects/encode-arabic/>
- ArabXeTeX <http://tug.ctan.org/info/?id=arabxetex>
- Encode Arabic: Exercise in Functional Parsing <http://ufal.mff.cuni.cz/padt/online/2006/06/encode-arabic.html>
Go read them, bestie, it's required reading for the aesthetic πβ¨
π AUTHOR π
Otakar Smrz "<otakar-smrz users.sf.net>", <http://otakar-smrz.users.sf.net/>
We stan π«Ά
π COPYRIGHT AND LICENSE π
Copyright (C) 2003-2010 Otakar Smrz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay, and also legally binding β¨
kisses, this was Encode...X::ZDMG(3pm), served fresh from perl v5.36.0 on 2022-10-16 β the manual's own little signature, and now it's a sign-off πΈπ π
π¦ 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