0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/spell/de/main.aap

103 lines
3.1 KiB
Plaintext
Raw Normal View History

2005-07-27 21:13:01 +00:00
# Aap recipe for German Vim spell files.
2005-08-15 21:41:48 +00:00
#
# Since there is a big discussion about whether to use the old or the new
# spelling rules, both have been included.
2019-01-26 17:41:47 +01:00
# "de": new German spelling
2005-08-15 21:41:48 +00:00
# "de_de": old and new German spelling
# "de_19": old German spelling
# "de_20": new German spelling
# "de_AT": Austrian spelling
# "de_CH": Swiss spelling
2005-07-03 21:39:27 +00:00
# Use a freshly compiled Vim if it exists.
@if os.path.exists('../../../src/vim'):
VIM = ../../../src/vim
@else:
2005-08-01 07:19:10 +00:00
:progsearch VIM vim
2005-07-03 21:39:27 +00:00
2005-08-15 21:41:48 +00:00
REGIONS = DE 19 20 AT CH
DE_REGIONS = de_$*REGIONS
SPELLDIR = ..
FILES = de_$*(REGIONS).aff de_$*(REGIONS).dic
2019-01-26 17:41:47 +01:00
# The de_20 is the same as de_DE dictionary and only uses the
# new revised orthography
FILE_DE_AFF = de_DE_frami.aff
FILE_DE_DIC = de_DE_frami.dic
FILE_20_AFF = de_DE_frami.aff
FILE_20_DIC = de_DE_frami.dic
FILE_AT_AFF = de_AT_frami.aff
FILE_AT_DIC = de_AT_frami.dic
FILE_CH_AFF = de_CH_frami.aff
FILE_CH_DIC = de_CH_frami.dic
#ZIPFILES = $ZIPFILE_DE $ZIPFILE_20 $ZIPFILE_AT $ZIPFILE_CH
ZIPFILE_19 = de_OLDSPELL.zip # unmaintained
DICT_FILES = $FILE_20_AFF $FILE_20_DIC $FILE_AT_AFF $FILE_AT_DIC $FILE_CH_AFF $FILE_CH_DIC
2019-07-31 21:07:14 +02:00
# frami files adjusted for Vim are found here
YAMAGIDIR = https://raw.githubusercontent.com/Yamagi/vim-german-dictionaries/master
READMES = README.md
:attr {fetch = $YAMAGIDIR/%file%} $READMES
2005-07-03 21:39:27 +00:00
2005-08-15 21:41:48 +00:00
all: $SPELLDIR/de.latin1.spl $SPELLDIR/de.utf-8.spl ../README_de.txt
2005-07-03 21:39:27 +00:00
2005-08-16 23:01:50 +00:00
$SPELLDIR/de.latin1.spl : $FILES
:sys env LANG=de_DE.ISO-8859-1
2005-08-15 21:41:48 +00:00
$VIM -u NONE -e -c "mkspell! $SPELLDIR/de $DE_REGIONS" -c q
2005-07-03 21:39:27 +00:00
2005-08-16 23:01:50 +00:00
$SPELLDIR/de.utf-8.spl : $FILES
2005-07-03 21:39:27 +00:00
:sys env LANG=de_DE.UTF-8
2005-08-15 21:41:48 +00:00
$VIM -u NONE -e -c "mkspell! $SPELLDIR/de $DE_REGIONS" -c q
../README_de.txt: $READMES
2019-01-26 17:41:47 +01:00
:fetch $READMES
2019-07-31 21:07:14 +02:00
:print README.md >! $target
:cat README.md >> $target
2005-07-03 21:39:27 +00:00
#
2019-01-26 17:41:47 +01:00
# Fetching the files from the LibreOffices github repository.
2005-08-25 21:27:31 +00:00
# The OLDSPELL file comes from elsewhere
2005-07-03 21:39:27 +00:00
#
2005-08-25 21:27:31 +00:00
DEDIR = http://www.j3e.de/myspell
2019-07-31 21:07:14 +02:00
:attr {fetch = $YAMAGIDIR/src/%file%} $DICT_FILES
2005-08-25 21:27:31 +00:00
:attr {fetch = $DEDIR/%file%} $ZIPFILE_19
2005-07-03 21:39:27 +00:00
2019-01-26 17:41:47 +01:00
de_DE.aff de_DE.dic de_20.aff de_20.dic: {buildcheck=}
:fetch $FILE_DE_AFF
:fetch $FILE_DE_DIC
:move de_DE_frami.aff de_DE.aff
:move de_DE_frami.dic de_DE.dic
:copy de_DE.aff de_20.aff
:copy de_DE.dic de_20.dic
2005-07-03 21:39:27 +00:00
2005-08-15 21:41:48 +00:00
de_19.aff de_19.dic: {buildcheck=}
:assertpkg unzip patch
:fetch $ZIPFILE_19
:sys $UNZIP $ZIPFILE_19
:delete $ZIPFILE_19
2005-08-25 21:27:31 +00:00
:move de_OLDSPELL.aff de_19.aff
:move de_OLDSPELL.dic de_19.dic
2005-08-15 21:41:48 +00:00
@if not os.path.exists('de_19.orig.aff'):
:copy de_19.aff de_19.orig.aff
@if not os.path.exists('de_19.orig.dic'):
:copy de_19.dic de_19.orig.dic
@if os.path.exists('de_19.diff'):
:sys patch <de_19.diff
2005-08-25 21:27:31 +00:00
de_AT.aff de_AT.dic: {buildcheck=}
2019-01-26 17:41:47 +01:00
:fetch $FILE_AT_AFF
:fetch $FILE_AT_DIC
:move $FILE_AT_AFF de_AT.aff
:move $FILE_AT_DIC de_AT.dic
2005-08-15 21:41:48 +00:00
de_CH.aff de_CH.dic: {buildcheck=}
2019-01-26 17:41:47 +01:00
:fetch $FILE_CH_AFF
:fetch $FILE_CH_DIC
:move $FILE_CH_AFF de_CH.aff
:move $FILE_CH_DIC de_CH.dic
2019-07-31 21:07:14 +02:00
2005-07-03 21:39:27 +00:00
# vim: set sts=4 sw=4 :