Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Side by Side Diff: third_party/hunspell/tests/suggestiontest/prepare

Issue 1135173004: Rename third_party/hunspell_new back to third_party/hunspell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Check common misspellings 2 # Check common misspellings
3 # input file format: 3 # input file format:
4 # word->word1, ... 4 # word->word1, ...
5 # Source: http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/Fo r_machines 5 # Source: http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/Fo r_machines
6 6
7 hunspell=../../src/tools/hunspell 7 hunspell=../../src/tools/hunspell
8 hlang=${HUNSPELL:-en_US} 8 hlang=${HUNSPELL:-en_US}
9 alang=${ASPELL:-en_US} 9 alang=${ASPELL:-en_US}
10 input=${INPUT:-List_of_common_misspellings.txt} 10 input=${INPUT:-List_of_common_misspellings.txt}
(...skipping 20 matching lines...) Expand all
31 cat x.1 | aspell -l $alang --list >>x.2 31 cat x.1 | aspell -l $alang --list >>x.2
32 cat x.2 | awk 'BEGIN{FS="\t"} 32 cat x.2 | awk 'BEGIN{FS="\t"}
33 FILENAME=="-"{a[$1]=1;next}a[$2]!=1 && a[$3]!=1{print $0}' - $input.2 >$input.3 33 FILENAME=="-"{a[$1]=1;next}a[$2]!=1 && a[$3]!=1{print $0}' - $input.2 >$input.3
34 34
35 cut -f 1 -d ' ' $input.3 | aspell -l $alang -a | grep -v ^$ | sed -n '2,$p' | 35 cut -f 1 -d ' ' $input.3 | aspell -l $alang -a | grep -v ^$ | sed -n '2,$p' |
36 sed 's/^.*: //;s/, / /g' >$input.4 36 sed 's/^.*: //;s/, / /g' >$input.4
37 37
38 cat $input.3 | $hunspell -d $hlang -a -1 | grep -v ^$ | sed -n '2,$p' | 38 cat $input.3 | $hunspell -d $hlang -a -1 | grep -v ^$ | sed -n '2,$p' |
39 sed 's/^.*: //;s/, / /g' >$input.5 39 sed 's/^.*: //;s/, / /g' >$input.5
40 40
OLDNEW
« no previous file with comments | « third_party/hunspell/tests/suggestiontest/README ('k') | third_party/hunspell/tests/suggestiontest/test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698