Download this file
t_unac.in
36 lines (30 with data), 806 Bytes
#!@SH@
@PERL@ builder -reference -database $srcdir/UnicodeData-@UNICODE_VERSION@.txt > unac.reference
if ./unactest | diff -bu - unac.reference
then
:
else
echo "unactest | diff - unac.reference must not show any difference" >&2
exit 1
fi
if ./unaccent ISO-8859-1 été ete > /dev/null
then
:
else
./unaccent --debug_high ISO-8859-1 été ete
exit 1
fi
#
# Rune Nordbře Skillingstad <runesk@linpro.no> on
# UnicodeData-3.2.0.txt: 2 LATIN characters used in Norway didn't have
# a "Character Decomposition Mapping". I've submitted a patch to
# unicode.org that fixes this problem, but it might take some time
# before somebody there have time to do something about it.
#
if ./unaccent ISO-8859-1 ćřĺĆŘĹ aeoaAEOA > /dev/null
then
:
else
./unaccent --debug_high ISO-8859-1 ćřĺĆŘĹ aeoaAEOA
exit 1
fi