Encode-Arabic
view release on metacpan or search on metacpan
lib/Encode/Arabic/ArabTeX/ZDMG.pm view on Meta::CPAN
} @minor
),
# white-space collapsing
(
map {
"\\cap\x09" . $_, [ "", "\\cap " ],
"\\cap\x0A" . $_, [ "", "\\cap " ],
"\\cap\x0D" . $_, [ "", "\\cap " ],
"\\cap\x20" . $_, [ "", "\\cap " ],
} "\x09", "\x0A", "\x0D", "\x20"
),
);
no strict 'refs';
${ $cls . '::decoder' } = $decoder;
if ($option{'describe'}) {
$_->describe('') foreach @{${ $cls . '::decoder' }};
}
return ${ $cls . '::decoder' };
}
1;
__END__
=head1 NAME
Encode::Arabic::ArabTeX::ZDMG - ZDMG phonetic transcription of Arabic using the ArabTeX notation
=head1 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;
=head1 DESCRIPTION
ArabTeX is an excellent extension to TeX/LaTeX designed for typesetting the right-to-left scripts of
the Orient. It comes up with very intuitive and comprehensible lower ASCII transliterations, the
expressive power of which is even better than that of the scripts.
L<Encode::Arabic::ArabTeX::ZDMG|Encode::Arabic::ArabTeX::ZDMG> implements the rules needed for proper
interpretation of the ArabTeX notation of Arabic into the phonetic transcription in the ZDMG style.
The conversion ifself is done by L<Encode::Mapper|Encode::Mapper>, and the user interface is built
on the L<Encode::Encoding|Encode::Encoding> module.
Relevant guidance is given in L<Encode::Arabic::ArabTeX|Encode::Arabic::ArabTeX>, from which this module
inherits. The transformation rules are, however, quite different ;)
=head1 SEE ALSO
L<Encode::Arabic::ArabTeX|Encode::Arabic::ArabTeX>,
L<Encode::Arabic|Encode::Arabic>, L<Encode::Mapper|Encode::Mapper>,
L<Encode::Encoding|Encode::Encoding>, L<Encode|Encode>
ArabTeX system L<ftp://ftp.informatik.uni-stuttgart.de/pub/arabtex/arabtex.htm>
Klaus Lagally L<http://www.informatik.uni-stuttgart.de/ifi/bs/people/lagall_e.htm>
ArabTeX extensions L<http://sourceforge.net/projects/encode-arabic/>
ArabXeTeX L<http://tug.ctan.org/info/?id=arabxetex>
Encode Arabic: Exercise in Functional Parsing
L<http://ufal.mff.cuni.cz/padt/online/2006/06/encode-arabic.html>
=head1 AUTHOR
Otakar Smrz C<< <otakar-smrz users.sf.net> >>, L<http://otakar-smrz.users.sf.net/>
=head1 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.
=cut
( run in 1.421 second using v1.01-cache-2.11-cpan-71847e10f99 )