4 for i in data/outputs/*.quickdic ; do
5 o=data/outputsv6/$(basename "$i")
6 ./convert_to_v6.sh "$i" "$o"
7 7z a -mx=9 "$o".v006.zip "$o"
9 # skipHtml makes no sense for single-language dictionaries
10 if echo "$o" | grep -q '-' ; then
11 if ./convert_to_v6.sh "$i" "$o" skipHtmlOpt ; then
12 7z a -mx=9 "$o".small.v006.zip "$o"
14 elif [ $? -ne 3 ] ; then
15 # Check for magic 3 indicating "no HTML entries in dictionary"
16 echo "Converting dictionary failed!"