diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-12-18 17:33:27 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-12-18 17:33:27 +0100 |
commit | 44bfbe0fdd70a76f5c8340424893272a4a92cc59 (patch) | |
tree | 4f379e255f3970d80ec401d1e4acf9852d4b28dd | |
parent | 1b2f38461d8f7e358ec419cc41d49d4c19fd1ecf (diff) |
[spell] files.
-rw-r--r-- | spell/check_locales.vim | 21 | ||||
-rw-r--r-- | spell/cleanadd.vim | 32 | ||||
-rw-r--r-- | spell/de.utf-8.spl | bin | 0 -> 2388148 bytes | |||
-rw-r--r-- | spell/de.utf-8.sug | bin | 0 -> 7989986 bytes | |||
-rw-r--r-- | spell/en.ascii.spl | bin | 0 -> 568018 bytes | |||
-rw-r--r-- | spell/en.ascii.sug | bin | 0 -> 555651 bytes | |||
-rw-r--r-- | spell/en.latin1.spl | bin | 0 -> 570117 bytes | |||
-rw-r--r-- | spell/en.latin1.sug | bin | 0 -> 556476 bytes | |||
-rw-r--r-- | spell/en.utf-8.spl | bin | 0 -> 570548 bytes | |||
-rw-r--r-- | spell/en.utf-8.sug | bin | 0 -> 556476 bytes | |||
-rw-r--r-- | spell/fixdup.vim | 27 | ||||
-rw-r--r-- | spell/fr.utf-8.spl | bin | 0 -> 571626 bytes | |||
-rw-r--r-- | spell/fr.utf-8.sug | bin | 0 -> 2324314 bytes | |||
-rw-r--r-- | spell/he.vim | 10 | ||||
-rw-r--r-- | spell/spell.vim | 4 | ||||
-rw-r--r-- | spell/yi.vim | 10 |
16 files changed, 104 insertions, 0 deletions
diff --git a/spell/check_locales.vim b/spell/check_locales.vim new file mode 100644 index 0000000..fe7be93 --- /dev/null +++ b/spell/check_locales.vim @@ -0,0 +1,21 @@ +" Script to check if all the locales used in spell files are available. + +grep /sys env LANG/ */main.aap +let not_supported = [] +for item in getqflist() + let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '') + try + exe 'lang ' . lang + catch /E197/ + call add(not_supported, lang) + endtry +endfor + +if len(not_supported) > 0 + echo "Unsupported languages:" + for l in not_supported + echo l + endfor +else + echo "Everything appears to be OK" +endif diff --git a/spell/cleanadd.vim b/spell/cleanadd.vim new file mode 100644 index 0000000..6dc0692 --- /dev/null +++ b/spell/cleanadd.vim @@ -0,0 +1,32 @@ +" Vim script to clean the ll.xxxxx.add files of commented out entries +" Author: Antonio Colombo, Bram Moolenaar +" Last Update: 2008 Jun 3 + +" Time in seconds after last time an ll.xxxxx.add file was updated +" Default is one second. +" If you invoke this script often set it to something bigger, e.g. 60 * 60 +" (one hour) +if !exists("g:spell_clean_limit") + let g:spell_clean_limit = 1 +endif + +" Loop over all the runtime/spell/*.add files. +" Delete all comment lines, except the ones starting with ##. +for s:fname in split(globpath(&rtp, "spell/*.add"), "\n") + if filewritable(s:fname) && localtime() - getftime(s:fname) > g:spell_clean_limit + if exists('*fnameescape') + let s:f = fnameescape(s:fname) + else + let s:f = escape(s:fname, ' \|<') + endif + silent exe "tab split " . s:f + echo "Processing" s:f + silent! g/^#[^#]/d + silent update + close + unlet s:f + endif +endfor +unlet s:fname + +echo "Done" diff --git a/spell/de.utf-8.spl b/spell/de.utf-8.spl Binary files differnew file mode 100644 index 0000000..493e487 --- /dev/null +++ b/spell/de.utf-8.spl diff --git a/spell/de.utf-8.sug b/spell/de.utf-8.sug Binary files differnew file mode 100644 index 0000000..e72c63a --- /dev/null +++ b/spell/de.utf-8.sug diff --git a/spell/en.ascii.spl b/spell/en.ascii.spl Binary files differnew file mode 100644 index 0000000..b0735c6 --- /dev/null +++ b/spell/en.ascii.spl diff --git a/spell/en.ascii.sug b/spell/en.ascii.sug Binary files differnew file mode 100644 index 0000000..cede5c7 --- /dev/null +++ b/spell/en.ascii.sug diff --git a/spell/en.latin1.spl b/spell/en.latin1.spl Binary files differnew file mode 100644 index 0000000..d24b790 --- /dev/null +++ b/spell/en.latin1.spl diff --git a/spell/en.latin1.sug b/spell/en.latin1.sug Binary files differnew file mode 100644 index 0000000..e4800bf --- /dev/null +++ b/spell/en.latin1.sug diff --git a/spell/en.utf-8.spl b/spell/en.utf-8.spl Binary files differnew file mode 100644 index 0000000..1a39de1 --- /dev/null +++ b/spell/en.utf-8.spl diff --git a/spell/en.utf-8.sug b/spell/en.utf-8.sug Binary files differnew file mode 100644 index 0000000..1add0c6 --- /dev/null +++ b/spell/en.utf-8.sug diff --git a/spell/fixdup.vim b/spell/fixdup.vim new file mode 100644 index 0000000..0dd532d --- /dev/null +++ b/spell/fixdup.vim @@ -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/spell/fr.utf-8.spl b/spell/fr.utf-8.spl Binary files differnew file mode 100644 index 0000000..b045682 --- /dev/null +++ b/spell/fr.utf-8.spl diff --git a/spell/fr.utf-8.sug b/spell/fr.utf-8.sug Binary files differnew file mode 100644 index 0000000..1a6a54d --- /dev/null +++ b/spell/fr.utf-8.sug diff --git a/spell/he.vim b/spell/he.vim new file mode 100644 index 0000000..76f52c4 --- /dev/null +++ b/spell/he.vim @@ -0,0 +1,10 @@ +" For Hebrew 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/spell/spell.vim b/spell/spell.vim new file mode 100644 index 0000000..375b088 --- /dev/null +++ b/spell/spell.vim @@ -0,0 +1,4 @@ +" Settings for when generating spellfiles. +" +" Assume we have 2 Gbyte RAM available. +set mkspellmem=1800000,6000,1600 diff --git a/spell/yi.vim b/spell/yi.vim new file mode 100644 index 0000000..c08cf8c --- /dev/null +++ b/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 |