| 1 |
#!/bin/bash |
| 2 |
case $# in |
| 3 |
3) |
| 4 |
LANG=$1 |
| 5 |
SIDE=$2 |
| 6 |
;; |
| 7 |
*) |
| 8 |
echo "USAGE: apertium-filter-dix LANG SIDE FILE"; |
| 9 |
echo "With SIDE one of 'left' or 'right'"; |
| 10 |
exit 1; |
| 11 |
esac |
| 12 |
|
| 13 |
xsltproc --stringparam lang "$LANG" --stringparam side "$SIDE" @datarootdir@/apertium/filter-dix.xslt "$3" |