summaryrefslogtreecommitdiffstats
path: root/runtime/spell/ru
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 08:50:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 08:50:31 +0000
commitaed8ce9da277f5ecffe968b324f242c41c3b752a (patch)
treed2e538394cb7a8a7c42a4aac6ccf1a8e3256999b /runtime/spell/ru
parentInitial commit. (diff)
downloadvim-aed8ce9da277f5ecffe968b324f242c41c3b752a.tar.xz
vim-aed8ce9da277f5ecffe968b324f242c41c3b752a.zip
Adding upstream version 2:9.0.1378.upstream/2%9.0.1378upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'runtime/spell/ru')
-rw-r--r--runtime/spell/ru/main.aap84
-rw-r--r--runtime/spell/ru/ru_RU.diff50
-rw-r--r--runtime/spell/ru/ru_YO.diff32
3 files changed, 166 insertions, 0 deletions
diff --git a/runtime/spell/ru/main.aap b/runtime/spell/ru/main.aap
new file mode 100644
index 0000000..e3d37a1
--- /dev/null
+++ b/runtime/spell/ru/main.aap
@@ -0,0 +1,84 @@
+# Aap recipe for Russian Vim spell files.
+
+# Use a freshly compiled Vim if it exists.
+@if os.path.exists('../../../src/vim'):
+ VIM = ../../../src/vim
+@else:
+ :progsearch VIM vim
+
+REGIONS = RU YO
+SPELLDIR = ..
+FILES = ru_$*(REGIONS).aff ru_$*(REGIONS).dic
+
+all: $SPELLDIR/ru.koi8-r.spl $SPELLDIR/ru.utf-8.spl \
+ $SPELLDIR/ru.cp1251.spl ../README_ru.txt
+
+$SPELLDIR/ru.koi8-r.spl : $FILES
+ :sys env LANG=ru_RU.KOI8-R $VIM -u NONE -e -c "mkspell! $SPELLDIR/ru ru_RU ru_YO" -c q
+
+$SPELLDIR/ru.utf-8.spl : $FILES
+ :sys env LANG=ru_RU.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ru ru_RU ru_YO" -c q
+
+$SPELLDIR/ru.cp1251.spl : $FILES
+ :sys env LANG=ru_RU.CP1251 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ru ru_RU ru_YO" -c q
+
+../README_ru.txt: README_ru_$*(REGIONS).txt
+ :print ru_RU >! $target
+ :cat README_ru_RU.txt >> $target
+ :print =================================================== >>$target
+ :print ru_YO >> $target
+ :cat README_ru_YO.txt >> $target
+
+#
+# Fetching the files from OpenOffice.org.
+#
+OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
+:attr {fetch = $OODIR/%file%} ru_RU.zip ru_RU_yo.zip
+
+# The files don't depend on the .zip file so that we can delete it.
+# Only download the zip file if the targets don't exist.
+# This is a bit tricky, since the file name includes the date.
+ru_RU.aff ru_RU.dic: {buildcheck=}
+ :assertpkg unzip
+ :fetch ru_RU.zip
+ :sys unzip ru_RU.zip
+ :delete ru_RU.zip
+ @if not os.path.exists('ru_RU.orig.aff'):
+ :copy ru_RU.aff ru_RU.orig.aff
+ @if not os.path.exists('ru_RU.orig.dic'):
+ :copy ru_RU.dic ru_RU.orig.dic
+ @if os.path.exists('ru_RU.diff'):
+ :sys patch <ru_RU.diff
+
+ru_YO.aff ru_YO.dic: {buildcheck=}
+ :assertpkg unzip
+ :fetch ru_RU_yo.zip
+ :sys unzip ru_RU_yo.zip
+ :delete ru_RU_yo.zip
+ :move ru_RU_yo.aff ru_YO.aff
+ :move ru_RU_yo.dic ru_YO.dic
+ :move README_ru_RU_yo.txt README_ru_YO.txt
+ @if not os.path.exists('ru_YO.orig.aff'):
+ :copy ru_YO.aff ru_YO.orig.aff
+ @if not os.path.exists('ru_YO.orig.dic'):
+ :copy ru_YO.dic ru_YO.orig.dic
+ @if os.path.exists('ru_YO.diff'):
+ :sys patch <ru_YO.diff
+
+
+# Generate diff files, so that others can get the OpenOffice files and apply
+# the diffs to get the Vim versions.
+
+diff:
+ :assertpkg diff
+ :sys {force} diff -a -C 1 ru_RU.orig.aff ru_RU.aff >ru_RU.diff
+ :sys {force} diff -a -C 1 ru_RU.orig.dic ru_RU.dic >>ru_RU.diff
+ :sys {force} diff -a -C 1 ru_YO.orig.aff ru_YO.aff >ru_YO.diff
+ :sys {force} diff -a -C 1 ru_YO.orig.dic ru_YO.dic >>ru_YO.diff
+
+
+# Check for updated spell files. When there are changes the
+# ".new.aff" and ".new.dic" files are left behind for manual inspection.
+
+check:
+ :print Doesn't work yet.
diff --git a/runtime/spell/ru/ru_RU.diff b/runtime/spell/ru/ru_RU.diff
new file mode 100644
index 0000000..465da3e
--- /dev/null
+++ b/runtime/spell/ru/ru_RU.diff
@@ -0,0 +1,50 @@
+*** ru_RU.orig.aff Sun Aug 28 21:12:27 2005
+--- ru_RU.aff Mon Sep 12 22:10:22 2005
+***************
+*** 3,4 ****
+--- 3,11 ----
+
++ FOL абвгдеёжзийклмнопрстуфхцчшщьыъэюя
++ LOW абвгдеёжзийклмнопрстуфхцчшщьыъэюя
++ UPP АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ
++
++ SOFOFROM абвгдеёжзийклмнопрстуфхцчшщьыъэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ
++ SOFOTO ебвгдеежзейклннепрстефхцчшшье'еееЕБВГДЕЕЖЗЕЙКЛННЕПРСТЕФХЦЧШШЬЕ'ЕЕЕ
++
+ SFX L Y 52
+*** ru_RU.orig.dic Sun Aug 28 21:12:27 2005
+--- ru_RU.dic Sun Sep 4 17:23:27 2005
+***************
+*** 8767,8769 ****
+ блеклость/F
+- блеклый/A
+ блеклый/AZ
+--- 8767,8768 ----
+***************
+*** 98086,98088 ****
+ разряженный/AES
+- разряженный/AS
+ разубедивший/A
+--- 98085,98086 ----
+***************
+*** 115006,115009 ****
+ толкающийся/A
+! толки/B
+! толки/O
+ толкла/L
+--- 115004,115006 ----
+ толкающийся/A
+! толки/BO
+ толкла/L
+***************
+*** 119209,119211 ****
+ униженный/ASX
+- униженный/AX
+ унизавший/A
+--- 119206,119207 ----
+***************
+*** 120603,120605 ****
+ утонченный/ASX
+- утонченный/AX
+ утоп/L
+--- 120599,120600 ----
diff --git a/runtime/spell/ru/ru_YO.diff b/runtime/spell/ru/ru_YO.diff
new file mode 100644
index 0000000..741372d
--- /dev/null
+++ b/runtime/spell/ru/ru_YO.diff
@@ -0,0 +1,32 @@
+*** ru_YO.orig.aff Sun Aug 28 21:12:35 2005
+--- ru_YO.aff Mon Sep 12 22:10:32 2005
+***************
+*** 3,4 ****
+--- 3,11 ----
+
++ FOL абвгдеёжзийклмнопрстуфхцчшщьыъэюя
++ LOW абвгдеёжзийклмнопрстуфхцчшщьыъэюя
++ UPP АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ
++
++ SOFOFROM абвгдеёжзийклмнопрстуфхцчшщьыъэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ
++ SOFOTO ебвгдеежзейклннепрстефхцчшшье'еееЕБВГДЕЕЖЗЕЙКЛННЕПРСТЕФХЦЧШШЬЕ'ЕЕЕ
++
+ SFX L Y 56
+*** ru_YO.orig.dic Sun Aug 28 21:12:35 2005
+--- ru_YO.dic Sun Sep 4 17:24:26 2005
+***************
+*** 86471,86473 ****
+ почтённый/AS
+- почти
+ почти/B
+--- 86471,86472 ----
+***************
+*** 115245,115248 ****
+ толкающийся/A
+! толки/B
+! толки/O
+ толкла/L
+--- 115244,115246 ----
+ толкающийся/A
+! толки/BO
+ толкла/L