Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > d41336a6d91d0252056b821641237433 > files > 13

myspell-is_IS-1.0.2-29.1mdv2009.1.noarch.rpm

#!/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