DESCRIPTION:
============

Elefas is a long-term translation memory: once segments are registered, they should not be removed.

It is not designed to be used via a CAT tool, data should be retrieved in batch mode 
into a TMX file which you can then import in your favorite CAT tool.

This package contains the SQL code of the database, and command-line tools to insert or retreive data.
Tools for basic users (web interfaces, mail senders...) are out of the scope of this package.

INSTALLATION:
=============

You must install Postgresql database server, version 8.4 or more.
Create a catalog and run
1. sql/tables.sql, as the user which will have write access to the tables;
2. sql/indexes.sql, as a user with admin rights 
No need to be in the server itself, however since the SQL code creates extensions,
you need to have full creation rights (including admin rights) to run this script.

USAGE:
======

To import data in the memory, use bin/ef-import.pl; data must be in TMX format.
Details about syntax are in the file itself and can be extracted using pod2html, pod2pdf, etc.

To query the database, use bin/ef-find.pl; you can query either a single string
or a text file which must contain one segment (not full paragraph!) per line.
Details about syntax are in the file itself and can be extracted using pod2html, pod2pdf, etc.

The script ef-stats.pl gives statistics about number of collections, documents and segments.

The script ef-deamon.pl creates an infinite loop looking in two directories:
- import directory: when you put a TMX file here, it is imported using ef-import.pl, then deleted
- search input directory: when you put a text file here, a search is done,
  result TMX file is put in search result directory and input text file is deleted

LICENSE:
========

Please read the file LICENSE for the very last version of conditions applied to this code.

