I think apertium-dixtools should be recommended in the wiki for people
developping langage pairs.
But the first problem is to succeed to compile it !
For lttoolbox-java , I just need to change the default Java version by
JDK 1.7 , and it worked.
For apertium-dixtools (may be because it uses gcj witch is not a part
of the JDK) it seems more complicated. Even java inport don't work :
Debian-UTF$ make
Making all in src
make[1]: entrant dans le répertoire «
/apertium/devel/outils/apertium-dixtools/src »
gcj -g -O2 -MT dics/elements/dtd/Sdefs.o -MD -MP -MF
dics/elements/dtd/.deps/Sdefs.Tpo -c -o dics/elements/dtd/Sdefs.o `test -f
'dics/elements/dtd/Sdefs.java' || echo './'`dics/elements/dtd/Sdefs.java
dics/elements/dtd/Sdefs.java:22: warning: The import
java.io.BufferedOutputStream is never used
import java.io.BufferedOutputStream;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dics/elements/dtd/Sdefs.java:23: warning: The import java.io.FileOutputStream
is never used
import java.io.FileOutputStream;
^^^^^^^^^^^^^^^^^^^^^^^^
dics/elements/dtd/Sdefs.java:25: warning: The import java.io.OutputStreamWriter
is never used
import java.io.OutputStreamWriter;
^^^^^^^^^^^^^^^^^^^^^^^^^^
/apertium/devel/outils/apertium-dixtools/src/dics/elements/dtd/DixElement.java:25:
warning: The import java.util.logging.Level is never used
import java.util.logging.Level;
^^^^^^^^^^^^^^^^^^^^^^^
/apertium/devel/outils/apertium-dixtools/src/dics/elements/dtd/DixElement.java:26:
warning: The import java.util.logging.Logger is never used
import java.util.logging.Logger;
^^^^^^^^^^^^^^^^^^^^^^^^
/apertium/devel/outils/apertium-dixtools/src/dictools/utils/DicTools.java:190:
warning: Type safety: The expression of type ArrayList[] needs unchecked
conversion to conform to ArrayList<E>[]
ArrayList<E>[] consistentMons = new ArrayList[2];
^^^^^^^^^^^^^^^^
(...........)
^^^^^^^^^^^
43 problems (25 errors, 18 warnings)
make[1]: *** [dics/elements/dtd/Sdefs.o] Erreur 1
make[1]: quittant le répertoire « /apertium/devel/outils/apertium-dixtools/src »
make: *** [all-recursive] Erreur 1
How to compile it ?
And finally, as these tools are for developpers to do several simple
things like grouping lines in XML text (it works with a simple two
states C program reading and writing characters) or sorting words
in a dictionary (possible with sed, cut, paste and sort in a shell),
why using high level java libraries instead a simple C/C++ programs
easy to compile ?
--------------------------------
Bernard Chardonneau (France)
Phone : [33] 1 64 90 87 04 (from Sept to June except holidays)
GSM phone : [33] 6 49 95 13 95 (french scholl holidays, C zone)
Multilingual websites for my free softwares :
http://libremail.free.fr and http://libremail.tuxfamily.org
http://cyloop.tuxfamily.org (mainly translated with Apertium)
My general website (in french only)
http://bech.free.fr
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff