diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 13:18:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 13:18:03 +0000 |
commit | afce081b90c1e2c50c3507758c7558a0dfa1f33e (patch) | |
tree | 3fb840f0bd9de41b463443ddf17131a0ad77f226 /runtime/spell/yi | |
parent | Initial commit. (diff) | |
download | vim-upstream.tar.xz vim-upstream.zip |
Adding upstream version 2:8.2.2434.upstream/2%8.2.2434upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | runtime/spell/yi.vim | 10 | ||||
-rw-r--r-- | runtime/spell/yi/README.txt | 9 | ||||
-rw-r--r-- | runtime/spell/yi/main.aap | 65 | ||||
-rw-r--r-- | runtime/spell/yi/yi.diff | 19 | ||||
-rw-r--r-- | runtime/spell/yi/yi_tr.diff | 18 |
5 files changed, 121 insertions, 0 deletions
diff --git a/runtime/spell/yi.vim b/runtime/spell/yi.vim new file mode 100644 index 0000000..c08cf8c --- /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/README.txt b/runtime/spell/yi/README.txt new file mode 100644 index 0000000..09af739 --- /dev/null +++ b/runtime/spell/yi/README.txt @@ -0,0 +1,9 @@ +README file for the Yiddish spell file. + +The word list was provided by Raphael Finkel. It is the same one that is used +by uspell. + +There also is a romanized (transliterated) word list. This is used for +latin1. To use this list when 'encoding' is utf-8 use ":set spelllang=yi-tr". + +Copyright Raphael Finkel. Included with permission in Vim. diff --git a/runtime/spell/yi/main.aap b/runtime/spell/yi/main.aap new file mode 100644 index 0000000..8a98ce0 --- /dev/null +++ b/runtime/spell/yi/main.aap @@ -0,0 +1,65 @@ +# Aap recipe for Yiddish Vim spell files. + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = yi.dic yi.aff +WORDFILE = wordlist.utf8.txt +FILES_TR = yi_tr.dic yi_tr.aff +WORDFILE_TR = wordlist.txt + +all: $SPELLDIR/yi.utf-8.spl $SPELLDIR/yi-tr.utf-8.spl \ + $SPELLDIR/yi.latin1.spl ../README_yi.txt + +$SPELLDIR/yi.utf-8.spl : $FILES + :sys $VIM -u NONE -e -c "set enc=utf-8" + -c "mkspell! $SPELLDIR/yi yi" -c q + +$SPELLDIR/yi-tr.utf-8.spl : $FILES_TR + :sys $VIM -u NONE -e -c "set enc=utf-8" + -c "mkspell! $SPELLDIR/yi-tr yi_tr" -c q + +$SPELLDIR/yi.latin1.spl : $FILES_TR + :sys $VIM -u NONE -e -c "set enc=latin1" + -c "mkspell! $SPELLDIR/yi yi_tr" -c q + +../README_yi.txt : README.txt + :copy $source $target + +# +# Fetch the word list when needed. +# +URLDIR = http://www.cs.uky.edu/~raphael/yiddish +:attr {fetch = $URLDIR/%file%} $WORDFILE $WORDFILE_TR + +# We use the word list as a .dic file, so that we can use an affix file to +# define a few extra things. +$FILES: {buildcheck=} + :assertpkg patch + :fetch $WORDFILE + :copy $WORDFILE yi.dic + :touch {force} yi.aff + @if os.path.exists('yi.diff'): + :sys patch < yi.diff + +$FILES_TR: {buildcheck=} + :assertpkg patch + :fetch $WORDFILE_TR + :copy $WORDFILE_TR yi_tr.dic + :touch {force} yi_tr.aff + @if os.path.exists('yi_tr.diff'): + :sys patch < yi_tr.diff + +diff {virtual}: + :assertpkg diff + # Using a context of two lines to work around a bug in FreeBSD patch. + :sys {force} diff -a -C 2 $WORDFILE yi.dic > yi.diff + :sys {force} diff -a -N -C 1 /dev/null yi.aff >> yi.diff + :sys {force} diff -a -C 2 $WORDFILE_TR yi_tr.dic > yi_tr.diff + :sys {force} diff -a -N -C 1 /dev/null yi_tr.aff >> yi_tr.diff + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/yi/yi.diff b/runtime/spell/yi/yi.diff new file mode 100644 index 0000000..1153b5c --- /dev/null +++ b/runtime/spell/yi/yi.diff @@ -0,0 +1,19 @@ +*** wordlist.utf8.txt Thu Aug 11 19:49:22 2005 +--- yi.dic Thu Aug 11 19:49:23 2005 +*************** +*** 1,2 **** +--- 1,3 ---- ++ 999999 + גרונטעלעמענט + דזשאָבענדיקס +*** /dev/null Wed Mar 8 22:11:00 2006 +--- yi.aff Mon Aug 15 23:06:00 2005 +*************** +*** 0 **** +--- 1,6 ---- ++ SET UTF-8 ++ ++ REP 3 ++ REP וו װ ++ REP יי ײ ++ REP וי ױ diff --git a/runtime/spell/yi/yi_tr.diff b/runtime/spell/yi/yi_tr.diff new file mode 100644 index 0000000..dcc1706 --- /dev/null +++ b/runtime/spell/yi/yi_tr.diff @@ -0,0 +1,18 @@ +*** wordlist.txt Tue Aug 16 10:46:26 2005 +--- yi_tr.dic Tue Aug 16 10:46:42 2005 +*************** +*** 1,2 **** +--- 1,3 ---- ++ 84608 + gruntelement + dzhobendiks +*** /dev/null Wed Mar 8 22:11:00 2006 +--- yi_tr.aff Tue Aug 16 10:48:01 2005 +*************** +*** 0 **** +--- 1,5 ---- ++ SET ISO8859-1 ++ ++ FOL ++ LOW ++ UPP |