diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-08-21 22:12:59 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-08-21 22:12:59 +0000 |
commit | cee5560a4b3e40792f29b483e5d980403c99ffa6 (patch) | |
tree | e73e22890c2e1a032705f3f1c2ca47c2c19095aa /runtime/spell | |
parent | d12a1326031d82c0292718731c1ecbdf086cf00c (diff) |
updated for version 7.0133
Diffstat (limited to 'runtime/spell')
-rw-r--r-- | runtime/spell/README.txt | 2 | ||||
-rw-r--r-- | runtime/spell/de/de_AT.diff | 14 | ||||
-rw-r--r-- | runtime/spell/en.utf-8.spl | bin | 569151 -> 569151 bytes | |||
-rw-r--r-- | runtime/spell/fixdup | 27 | ||||
-rw-r--r-- | runtime/spell/main.aap | 2 | ||||
-rw-r--r-- | runtime/spell/nl/nl_NL.diff | 11 | ||||
-rw-r--r-- | runtime/spell/yi.vim | 10 | ||||
-rw-r--r-- | runtime/spell/yi/yi_tr.diff | 2 |
8 files changed, 60 insertions, 8 deletions
diff --git a/runtime/spell/README.txt b/runtime/spell/README.txt index 44dedb7afa..01d30608a2 100644 --- a/runtime/spell/README.txt +++ b/runtime/spell/README.txt @@ -69,7 +69,7 @@ This procedure should work well: change too much, the OpenOffice people are not stupid. However, you may want to remove obvious mistakes. And remove single-letter words that aren't really words, they mess up the suggestions (English has this - problem). + problem). You can use the "fixdup" Vim script to find duplicate words. 3. Make the diff file. "aap diff" will do this for you. If a diff would be too big you might consider writing a Vim script to do systematic changes. diff --git a/runtime/spell/de/de_AT.diff b/runtime/spell/de/de_AT.diff index e13e4d5d35..8256aaf5ff 100644 --- a/runtime/spell/de/de_AT.diff +++ b/runtime/spell/de/de_AT.diff @@ -26,7 +26,7 @@ + *** de_AT.orig.dic Mon Aug 15 22:59:43 2005 ---- de_AT.dic Mon Aug 15 23:03:19 2005 +--- de_AT.dic Mon Aug 15 23:11:02 2005 *************** *** 18,20 **** Fleischbänke/N @@ -42,3 +42,15 @@ zulieb ! Äbte/N +*************** +*** 18792,18794 **** + Geschwulstherde +- Geselchte/N + Geselle/N +--- 18791,18792 ---- +*************** +*** 20472,20474 **** + HTML +- Häfen + Häftling/EPS +--- 20470,20471 ---- diff --git a/runtime/spell/en.utf-8.spl b/runtime/spell/en.utf-8.spl Binary files differindex 9ba853cebf..1013907ee4 100644 --- a/runtime/spell/en.utf-8.spl +++ b/runtime/spell/en.utf-8.spl diff --git a/runtime/spell/fixdup b/runtime/spell/fixdup new file mode 100644 index 0000000000..0dd532d5e6 --- /dev/null +++ b/runtime/spell/fixdup @@ -0,0 +1,27 @@ +" Vim script to fix duplicate words in a .dic file vim: set ft=vim: +" +" Usage: Edit the .dic file and source this script. + +let deleted = 0 + +" Start below the word count. +let lnum = 2 +while lnum <= line('$') + let word = getline(lnum) + if word !~ '/' + if search('^' . word . '/', 'w') != 0 + let deleted += 1 + exe lnum . "d" + continue " don't increment lnum, it's already at the next word + endif + endif + let lnum += 1 +endwhile + +if deleted == 0 + echomsg "No duplicate words found" +elseif deleted == 1 + echomsg "Deleted 1 duplicate word" +else + echomsg printf("Deleted %d duplicate words", deleted) +endif diff --git a/runtime/spell/main.aap b/runtime/spell/main.aap index 5aaaaa1022..352bc5565c 100644 --- a/runtime/spell/main.aap +++ b/runtime/spell/main.aap @@ -6,7 +6,7 @@ LANG = af bg ca cs da de el en eo fr fo gl he hr it nl ny pl sk yi hu -# "hu" is at the end, because it takes so much time. +# "hu" is at the end, because it takes very long. # # TODO: # Finnish doesn't work, the dictionary fi_FI.zip file contains hyphenation... diff --git a/runtime/spell/nl/nl_NL.diff b/runtime/spell/nl/nl_NL.diff index 6859a47335..dc6c599811 100644 --- a/runtime/spell/nl/nl_NL.diff +++ b/runtime/spell/nl/nl_NL.diff @@ -1,5 +1,5 @@ *** nl_NL.orig.aff Sun Jul 3 18:24:07 2005 ---- nl_NL.aff Sun Jul 31 22:18:15 2005 +--- nl_NL.aff Tue Aug 16 22:39:54 2005 *************** *** 3,6 **** --- 3,30 ---- @@ -135,12 +135,13 @@ REP kritikus criticus *************** *** 333 **** ---- 357,359 ---- +--- 357,360 ---- REP aflassen afgelasten + REP svp s.v.p. + REP zoz z.o.z. ++ *** nl_NL.orig.dic Sun Jul 3 18:24:07 2005 ---- nl_NL.dic Thu Jul 21 11:06:07 2005 +--- nl_NL.dic Sat Aug 13 14:10:15 2005 *************** *** 1,3 **** 119937 @@ -258,7 +259,7 @@ voorjaarsmoeheid *************** *** 119938 **** ---- 119963,120137 ---- +--- 119963,120139 ---- überhaupt + Christiaan/X + Fred/X @@ -434,3 +435,5 @@ + enz. + bijv. + Gerard ++ Google ++ Luuk diff --git a/runtime/spell/yi.vim b/runtime/spell/yi.vim new file mode 100644 index 0000000000..c08cf8cb09 --- /dev/null +++ b/runtime/spell/yi.vim @@ -0,0 +1,10 @@ +" For Yiddish capitals should not be checked. But only change the +" 'spellcapcheck' option when it is not at its default value. +let s:spc = &l:spc +setlocal spc& +if s:spc == &l:spc + setlocal spc= +else + let &l:spc = s:spc +endif +unlet s:spc diff --git a/runtime/spell/yi/yi_tr.diff b/runtime/spell/yi/yi_tr.diff index 5f26a7b8ac..4b5148f0c3 100644 --- a/runtime/spell/yi/yi_tr.diff +++ b/runtime/spell/yi/yi_tr.diff @@ -6,7 +6,7 @@ + 84608 gruntelement dzhobendiks -*** /dev/null Tue Aug 16 10:44:00 2005 +*** /dev/null Fri Aug 19 23:01:14 2005 --- yi_tr.aff Tue Aug 16 10:48:01 2005 *************** *** 0 **** |