Package: apertium
Version: 3.0.7+1-1+b1
Filename: pool/main/a/apertium/apertium_3.0.7+1-1+b1_i386.deb
Found error in /usr/bin/apertium-gen-deformat:
$ grep -A5 -B5 /tmp/ /usr/bin/apertium-gen-deformat
FILE1=$2;
FILE2=$3;
fi
/usr/bin/xmllint --dtdvalid /usr/share/apertium/format.dtd --noout $FILE1 && \
/usr/bin/xsltproc --stringparam mode $MODE /usr/share/apertium/deformat.xsl $FILE1 >/tmp/$$.deformat.l && \
/usr/bin/flex $FLEXOPTS -o/tmp/$$.lex.cc /tmp/$$.deformat.l && \
i486-linux-gnu-g++ -Wall -g -O0 -Wall -ansi -march=i686 -O3 -fomit-frame-pointer -funroll-loops -w -I/usr/include/lttoolbox-3.0 -I/usr/lib/lttoolbox-3.0/include -I/usr/include/libxml2 -I /usr/include/apertium-3 -o $FILE2 /tmp/$$.lex.cc && \
rm /tmp/$$.deformat.l /tmp/$$.lex.cc
Found error in /usr/bin/apertium-gen-reformat:
$ grep -A5 -B5 /tmp/ /usr/bin/apertium-gen-reformat
FLEXOPTS="-Cfer";
FILE1=$2;
FILE2=$3;
fi
/usr/bin/xmllint --dtdvalid /usr/share/apertium/format.dtd --noout $FILE1 && \
/usr/bin/xsltproc /usr/share/apertium/reformat.xsl $FILE1 >/tmp/$$.reformat.l && \
/usr/bin/flex $FLEXOPTS -o/tmp/$$.lex.cc /tmp/$$.reformat.l && \
i486-linux-gnu-g++ -Wall -g -O0 -Wall -ansi -march=i686 -O3 -fomit-frame-pointer -funroll-loops -w -I/usr/include/lttoolbox-3.0 -I/usr/lib/lttoolbox-3.0/include -I/usr/include/libxml2 -I /usr/include/apertium-3 -o $FILE2 /tmp/$$.lex.cc &&\
rm /tmp/$$.reformat.l /tmp/$$.lex.cc
Found error in /usr/bin/apertium:
$ grep -A5 -B5 /tmp/ /usr/bin/apertium
fi
}
function translate_odt
{
INPUT_TMPDIR=/tmp/$$odtdir
locale_utf8
test_zip
if [[ $FICHERO == "" ]]
then FICHERO=/tmp/$$odtorig
cat > $FICHERO
BORRAFICHERO="true"
fi
OTRASALIDA=/tmp/$$odtsalida.zip
unzip -q -o -d $INPUT_TMPDIR $FICHERO
find $INPUT_TMPDIR | grep content\\\.xml |\
awk '{printf ""; PART = $0; while(getline < PART) printf(" %s", $0); printf("\n");}' |\
$APERTIUM_PATH/apertium-desodt |\
--
fi
}
function translate_docx
{
INPUT_TMPDIR=/tmp/$$docxdir
locale_utf8
test_zip
if [[ $FICHERO == "" ]]
then FICHERO=/tmp/$$docxorig
cat > $FICHERO
BORRAFICHERO="true"
fi
OTRASALIDA=/tmp/$$docxsalida.zip
if [[ $UWORDS == "no" ]]
then OPCIONU="-u";
else OPCIONU="";
fi
unzip -q -o -d $INPUT_TMPDIR $FICHERO
for i in $(find $INPUT_TMPDIR|grep "xlsx$");
do $APERTIUM_PATH/apertium -f xlsx -d $DIRECTORY $OPCIONU $PREFIJO <$i >/tmp/$$xlsxembed;
mv /tmp/$$xlsxembed $i;
done;
find $INPUT_TMPDIR | grep "xml" |\
grep -v -i \\\(settings\\\|theme\\\|styles\\\|font\\\|rels\\\) |\
awk '{printf ""; PART = $0; while(getline < PART) printf(" %s", $0); printf("\n");}' |\
--
fi
}
function translate_xlsx
{
INPUT_TMPDIR=/tmp/$$xlsxdir
locale_utf8
test_zip
if [[ $FICHERO == "" ]]
then FICHERO=/tmp/$$xlsxorig
cat > $FICHERO
BORRAFICHERO="true"
fi
OTRASALIDA=/tmp/$$xslxsalida.zip
unzip -q -o -d $INPUT_TMPDIR $FICHERO
find $INPUT_TMPDIR | grep "sharedStrings.xml" |\
awk '{printf ""; PART = $0; while(getline < PART) printf(" %s", $0); printf("\n");}' |\
$APERTIUM_PATH/apertium-desxlsx |\