diff options
author | Tapio Lehtonen <tale@debian.org> | 2009-09-14 06:44:46 +0000 |
---|---|---|
committer | Tapio Lehtonen <tale@debian.org> | 2009-09-14 06:44:46 +0000 |
commit | 2cecfbcacc4d0171e6e66e27d4b9708413cce08a (patch) | |
tree | b5774ffd7561bc4d9d86541847174831059f9244 /po/fi/make-fi-all.sh | |
parent | b79c77cbd189f21615da841c1b90f1b6620ea117 (diff) | |
download | installation-guide-2cecfbcacc4d0171e6e66e27d4b9708413cce08a.zip |
Typo corrections; testing spellchecking
Diffstat (limited to 'po/fi/make-fi-all.sh')
-rwxr-xr-x | po/fi/make-fi-all.sh | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/po/fi/make-fi-all.sh b/po/fi/make-fi-all.sh index 9dcc0f202..d35021fa8 100755 --- a/po/fi/make-fi-all.sh +++ b/po/fi/make-fi-all.sh @@ -2,7 +2,8 @@ BASEDIR=~/Work/Debian/ EXTRACT=${BASEDIR}d-i/trunk/scripts/l10n/l10n-spellcheck/extract_msg.pl SPELLCHECKER=/usr/bin/enchant -WORDLIST=${BASEDIR}d-i/trunk/scripts/l10n/l10n-spellcheck/cfg/wls/di_common_wl.txt +WORDLISTPREFIX=${BASEDIR}d-i/trunk/scripts/l10n/l10n-spellcheck/cfg/level +WORDLISTPOSTFIX=/wls/di_common_wl.txt if [ -f fi_all.po ] ; then rm fi_all.po @@ -17,8 +18,19 @@ done rm $$.temp1 $$.temp2 -# Make list of words tmispell-voikko does not accept -${SPELLCHECKER} -l -d fi_FI < fi_all.po > $$.temp3 -sort $$.temp3 | uniq > finnish_unkn_wl.txt +#Combine the di_common_wl.txt files from subdirectories +#of WORDLIST +if [ -f ok_words.txt ] ; then + rm ok_words.txt +fi +for i in 1 2 3 ; do + cat ${WORDLISTPREFIX}${i}${WORDLISTPOSTFIX} >> $$.temp4 +done +sort $$.temp4 | uniq > ok_words.txt +rm $$.temp4 + +# Make list of words spellchecker does not accept +${SPELLCHECKER} -l -d fi < fi_all.po > $$.temp3 +sort $$.temp3 | uniq --count > finnish_unkn_wl.txt rm $$.temp3 echo "Tuntemattomia sanoja " `wc -l finnish_unkn_wl.txt` |