decode - Filter script mimicking the decode function
Examples of command-line invocation:
$ decode ArabTeX < decode.d | encode Buckwalter > encode.d $ decode MacArabic < data.MacArabic > data.UTF8 $ encode WinArabic < data.UTF8 > data.WinArabic
The core of the implementation:
getopts('p:s:v', $options); $e = shift @ARGV; while (<>) { print encode "utf8", decode $e, $options->{'p'} . $_ . $options->{'s'}; }
The Encode library provides a unified interface for converting strings from different encodings into a common representation, and vice versa.
The encode and decode programs mimick the fuction calls to the encode and decode methods, respectively.
encode
decode
For the list of supported encoding schemes, please refer to Encode and the source files of the programs. The naming of encodings is case-insensitive.
decode [OPTIONS] encoding -v --version show program's version --help show usage information -p text --prefix=text prefix input with text -s text --suffix=text suffix input with text
Encode Arabic Online Interface http://encode-arabic.sourceforge.net/
Encode Arabic Project http://sourceforge.net/projects/encode-arabic/
ElixirFM Project http://sourceforge.net/projects/elixir-fm/
Encode, Encode::Encoding, Encode::Arabic
Otakar Smrz <otakar-smrz users.sf.net>, http://otakar-smrz.users.sf.net/
<otakar-smrz users.sf.net>
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.
To install Encode::Arabic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Encode::Arabic
CPAN shell
perl -MCPAN -e shell install Encode::Arabic
For more information on module installation, please visit the detailed CPAN module installation guide.