3 #Change to use the desired data and translation direction
4 DATA
=$HOME/apertium
/apertium-es-ca-1.0
8 AUTOMORF
=$DATA/$DIRECTION.automorf.bin
9 AUTOBIL
=$DATA/$DIRECTION.autobil.bin
10 AUTOGEN
=$DATA/$DIRECTION.autogen.bin
11 AUTOPGEN
=$DATA/$DIRECTION.autopgen.bin
13 #gawk '{printf $0 "^.<sent>$[]" }' |\
14 apertium-pretransfer |\
15 apertium-transfer
$DATA/trules-
$DIRECTION.xml
$DATA/trules-
$DIRECTION.bin
$AUTOBIL |\
16 lt-proc
-d $AUTOGEN |\
17 lt-proc
-p $AUTOPGEN |\
19 sed -e "s/*\(\\w\+\)/\1/g" |\
20 sed -re "s/( )*[.]$//g"