remove now-unnecessary snowball mojibake hack (#13231)

This commit is contained in:
Robert Muir 2024-03-28 16:40:55 -04:00 committed by GitHub
parent 11712a3364
commit 3553769463
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,14 +66,6 @@ for file in ${WWWSRCDIR}/algorithms/*/stop.txt; do
|
| NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
EOF
case "$language" in
danish)
# clear up some slight mojibake on the website. TODO: fix this file!
cat $file | sed 's/Ã¥/å/g' | sed 's/æ/æ/g' >> ${WWWDSTDIR}/${language}_stop.txt
;;
*)
# try to confirm its really UTF-8
iconv -f UTF-8 -t UTF-8 $file >> ${WWWDSTDIR}/${language}_stop.txt
;;
esac
# try to confirm its really UTF-8
iconv -f UTF-8 -t UTF-8 $file >> ${WWWDSTDIR}/${language}_stop.txt
done