NAME

decode - Filter script mimicking the decode function

REVISION

$Revision: 343 $        $Date: 2007-06-13 11:25:02 +0200 (Wed, 13 Jun 2007) $

SYNOPSIS

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'};
}

DESCRIPTION

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.

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.

OPTIONS

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

SEE ALSO

Encode::Arabic Online Interface http://ufal.mff.cuni.cz/~smrz/Encode/Arabic/

Encode Arabic Project http://sourceforge.net/projects/encode-arabic/

ElixirFM Project http://sourceforge.net/projects/elixir-fm/

Encode, Encode::Encoding, Encode::Arabic

AUTHOR

Otakar Smrz, http://ufal.mff.cuni.cz/~smrz/

eval { 'E<lt>' . ( join '.', qw 'otakar smrz' ) . "\x40" . ( join '.', qw 'mff cuni cz' ) . 'E<gt>' }

Perl is also designed to make the easy jobs not that easy ;)

COPYRIGHT AND LICENSE

Copyright 2003-2007 by Otakar Smrz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.