6 SPELLER="$SCOWL/speller"
7 : ${UNIX2DOS:=unix2dos}
18 mk-list() { $SCOWL/mk-list -d $SCOWL/final "$@"; }
23 cat $SCOWL/misc/{offensive.1,offensive.2,profane.1} | sort -u > nosug
29 eval $2 | sort -u > $1.0
31 comm -12 $1.0 nosug > $1-nosug.1
33 comm -23 $1.0 nosug > $1.1
35 $SPELLER/munch-list munch $SPELLER/en.aff < $1-nosug.1 | $SPELLER/add-no-suggest > $1.2
37 $SPELLER/munch-list munch $SPELLER/en.aff < $1.1 >> $1.2
39 cat $SPELLER/en.dic.supp >> $1.2
41 wc -l < $1.2 | tr -d '[:blank:]' > $1.dic
42 cat $1.2 | sort | iconv -f iso-8859-1 -t utf-8 >> $1.dic
44 cp $SPELLER/en.aff $1.aff
46 if [ "$SCOWL_VERSION" ]; then
47 fn="$1-$SCOWL_VERSION"
52 WHAT="$1 Hunspell Dictionary" sh $SPELLER/README_en.txt.sh > README_$1.txt
54 echo "Wordlist Command: $2" >> README_$1.txt
56 cat $3 >> README_$1.txt
59 rm -f hunspell-$fn.zip
60 zip -9 hunspell-$fn.zip README_$1.txt $1.dic $1.aff
64 cp hunspell-$fn.zip hunspell/
68 cat $1-nosug.1 $1.1 | sort -u > $1.tocheck
70 #hunspell -l -d ./$1 < $1.dic.tocheck > misspelled
72 cat $1.tocheck | iconv -f iso-8859-1 -t utf-8 | $UNIX2DOS > $1.txt
73 cat <<EOF > README.txt
74 This zip file contains the words found in the corresponding Hunspell
75 dictionary. See the file README_$1.txt.
77 zip -9 hunspell/wordlist-$fn.zip README.txt README_$1.txt $1.txt
86 doit en_US "mk-list --accents=strip en_US $SIZE"
87 doit en_CA "mk-list --accents=strip en_CA $SIZE"
88 doit en_GB-ize "mk-list --accents=strip en_GB-ize $SIZE"
89 doit en_GB-ise "mk-list --accents=strip en_GB-ise $SIZE"
90 doit en_AU "mk-list --accents=strip en_AU $SIZE"
92 doit en_US-large "mk-list -v1 --accents=both en_US 70"
93 doit en_CA-large "mk-list -v1 --accents=both en_CA 70"
94 doit en_GB-large "mk-list -v1 --accents=both en_GB-ize en_GB-ise 70"
95 doit en_AU-large "mk-list -v1 --accents=both en_AU 70"
97 sh $SPELLER/README_en.txt.sh > hunspell/README
99 elif [ "$1" = "-one" -a -n "$2" -a -n "$3" ]
106 echo "usage: $0 -all | -one <dict-name> <parms file>"
110 #rm eng*.dat nosug en_US*.? en_CA*.?