NAME

Lingua::AR::Db - Perl extension for translating Arabic words into another language

SYNOPSIS

use utf8;
use Lingua::AR::Word;
use Lingua::AR::Db;

my $word=Lingua::AR::Word->new(ARABIC_WORD_IN_UTF8); my $db=Lingua::AR::Db->new("./dicts","en");

open FOUTPUT, ">>TEST" or die "Cannot create TEST: $!\n"; binmode(FOUTPUT,":utf8"); print FOUTPUT $db->translate($word); close FOUTPUT;

$db->display_html(); $db->display_latex(); $db->importation("file");

DESCRIPTION

This module will take care of the translation DB. You just need to create the DB object, specifying the folder and the language. Translations will be looked for in the files under that folder, according to the "%".$stem_of_the_word. This is necessary because the shell will treat as hidden all the files beginning with a dot, whilch may be a beginning ArabTex character.

This module may also export in HTML or ArabTeX all the files, as well as import from other DBs.

SEE ALSO

You may find more info about ArabTeX at ftp://ftp.informatik.uni-stuttgart.de/pub/arabtex/arabtex.htm

AUTHOR

Andrea Benazzo, <andy@slacky.it>

COPYRIGHT AND LICENSE

Copyright (c) 2005 Andrea Benazzo. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.