new-words
diff new-words-py.sh @ 51:74e05d4436ee
minifix: spanish + italian
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sun May 01 20:25:55 2011 +0200 (2011-05-01) |
parents | 7194bdb56475 |
children | e25de9ea9184 |
line diff
1.1 --- a/new-words-py.sh Tue Feb 08 20:35:38 2011 +0200 1.2 +++ b/new-words-py.sh Sun May 01 20:25:55 2011 +0200 1.3 @@ -12,6 +12,7 @@ 1.4 1.5 -h print this screen 1.6 -c show compressed wordlist: one word per group 1.7 + -f file show only words related to the words in the file 1.8 -G turn off word grouping 1.9 -k put higher words that are similar to the known words (only for English) 1.10 -l lang override language settings 1.11 @@ -86,10 +87,12 @@ 1.12 SHOW_VOC_STAT=NO 1.13 COMPRESSED_WORDLIST=NO 1.14 WORDS_GROUPING=YES 1.15 -while getopts Gcl:sSkanNp:t:Tm:Md:r:R:23 opt 1.16 +ALLOWED_WORDS_FILENAME='' 1.17 +while getopts Gcf:l:sSkanNp:t:Tm:Md:r:R:23 opt 1.18 do 1.19 case "$opt" in 1.20 c) COMPRESSED_WORDLIST=YES;; 1.21 + f) ALLOWED_WORDS_FILENAME="$OPTARG";; 1.22 G) WORDS_GROUPING=NO;; 1.23 s) STAT_ONLY=YES;; 1.24 S) SHOW_VOC_STAT=YES;; 1.25 @@ -153,6 +156,7 @@ 1.26 STAT_ONLY="$STAT_ONLY" \ 1.27 WORDS_GROUPING="$WORDS_GROUPING" \ 1.28 FILTER_WORDS="$FILTER_WORDS" \ 1.29 + ALLOWED_WORDS_FILENAME="$ALLOWED_WORDS_FILENAME" \ 1.30 $NEW_WORDS_PY -l "$LANGUAGE" -f get_words_group_words_add_stat "$1" 1.31 } 1.32