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

Unified Diff: third_party/hunspell_new/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 side-by-side diff with in-line comments
Download patch
Index: third_party/hunspell_new/tests/suggestiontest/prepare
diff --git a/third_party/hunspell_new/tests/suggestiontest/prepare b/third_party/hunspell_new/tests/suggestiontest/prepare
deleted file mode 100755
index a72d931b8b4529892f3887cd5b6268d4d72a3d1f..0000000000000000000000000000000000000000
--- a/third_party/hunspell_new/tests/suggestiontest/prepare
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-# Check common misspellings
-# input file format:
-# word->word1, ...
-# Source: http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
-
-hunspell=../../src/tools/hunspell
-hlang=${HUNSPELL:-en_US}
-alang=${ASPELL:-en_US}
-input=${INPUT:-List_of_common_misspellings.txt}
-
-# remove bad words recognised by Hunspell as good
-cat $input | sed 's/[-]>/ /' | $hunspell -d $hlang -1 -L |
-
-# remove items with dash for Aspell
-grep '^[^-]* ' |
-
-# remove spaces from end of lines
-sed 's/ *$//' >$input.1
-
-# remove bad words recognised by Aspell as good
-cut -f 1 -d ' ' $input.1 | aspell -l $alang --list |
-awk 'FILENAME=="-"{a[$1]=1;next}a[$1]{print$0}' - $input.1 |
-
-# change commas with tabs
-sed 's/, */ /g' >$input.2
-
-# remove lines with unrecognised suggestions (except suggestion with spaces)
-cut -d ' ' -f 2- $input.2 | tr "\t" "\n" | grep -v ' ' >x.1
-cat x.1 | $hunspell -l -d $hlang >x.2
-cat x.1 | aspell -l $alang --list >>x.2
-cat x.2 | awk 'BEGIN{FS="\t"}
-FILENAME=="-"{a[$1]=1;next}a[$2]!=1 && a[$3]!=1{print $0}' - $input.2 >$input.3
-
-cut -f 1 -d ' ' $input.3 | aspell -l $alang -a | grep -v ^$ | sed -n '2,$p' |
-sed 's/^.*: //;s/, / /g' >$input.4
-
-cat $input.3 | $hunspell -d $hlang -a -1 | grep -v ^$ | sed -n '2,$p' |
-sed 's/^.*: //;s/, / /g' >$input.5
-
« no previous file with comments | « third_party/hunspell_new/tests/suggestiontest/README ('k') | third_party/hunspell_new/tests/suggestiontest/test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698