NAME
Lingua::AR::Db - Perl extension for translating Arabic words into another language
SYNOPSIS
use utf8;
use Lingua::AR::Db;
# this will create a new DB or load an already existent DB
my $db=Lingua::AR::Db->new("DATABASE_FILENAME");
# this will add/overwrite a new translation
$db->value("ARABIC_WORD","TRANSLATION");
print "ARABIC_WORD means $db->translate("ARABIC_WORD")\n";
# this will return every entry of the Database,
# formatted as "STEM::WORD\tTRANSLATION"
my $dump=$db->export;
print $dump;
# this will export the Database in HTML form under the "./html/" directory
$db->export_html("./html");
DESCRIPTION
This module will take care of the translating an Arabic word into another language through a persistent hash located in a Database.
You may add new values (translations) to the DB, as well as getting the translation back and exporting into text format or HTML the whole DB.
The DB is structured as a double hash: primary key is the stem of the word, the second key is the word itself. The resulting value pointed by these two keys is the translation.
If you're interested in a front-end to this module, I'm going to develop one based on Qt widgets. More info @ www.qitty.net
I'm going to publish my own Arabic->Italian dictionary on my site @ www.qitty.net
NOTE
Please note that every time you inquire the DB, your arabic word and/or the stem of it, is encoded into ArabTeX. This is because Unicode strings can't be keys of the hash at any level.
TODO
SEE ALSO
On my site, you may get additional info about this module. 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) 2006 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.