#!/bin/bash # converting Icelandic Aspell dictionary to Hunspell format # we need better compound word and affix file support for Icelandic preunzip -c is.cwl >is.wl cat <(wc -l <is.wl) <(LC_ALL=C sed '/^[^A-ZÁÆÍÓÖÚÞ]/s#$#/A#' <is.wl) >is_IS.dic echo "TRY $(grep -o '.' is.wl | awk '{a[$1]++}END{for(i in a){print i,a[i]}}' | sort -k 2 -nr | cut -c 1 | tr -d '\n') COMPOUNDFLAG A CHECKCOMPOUNDCASE CHECKCOMPOUNDDUP" >is_IS.aff rm -r is.wl