Mercurial > vim
comparison runtime/spell/de/main.aap @ 15640:7cfe57329284
Updated runtime files.
commit https://github.com/vim/vim/commit/2a953fcf107d24229fec8af820ee62c908caafbf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 26 17:41:47 2019 +0100
Updated runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Jan 2019 17:45:13 +0100 |
parents | ea3c3f13385c |
children | 2704c4e3e20a |
comparison
equal
deleted
inserted
replaced
15639:250b8b1a25ab | 15640:7cfe57329284 |
---|---|
1 # Aap recipe for German Vim spell files. | 1 # Aap recipe for German Vim spell files. |
2 # | 2 # |
3 # Since there is a big discussion about whether to use the old or the new | 3 # Since there is a big discussion about whether to use the old or the new |
4 # spelling rules, both have been included. | 4 # spelling rules, both have been included. |
5 # "de": all possible words allowed | 5 # "de": new German spelling |
6 # "de_de": old and new German spelling | 6 # "de_de": old and new German spelling |
7 # "de_19": old German spelling | 7 # "de_19": old German spelling |
8 # "de_20": new German spelling | 8 # "de_20": new German spelling |
9 # "de_AT": Austrian spelling | 9 # "de_AT": Austrian spelling |
10 # "de_CH": Swiss spelling | 10 # "de_CH": Swiss spelling |
19 DE_REGIONS = de_$*REGIONS | 19 DE_REGIONS = de_$*REGIONS |
20 | 20 |
21 SPELLDIR = .. | 21 SPELLDIR = .. |
22 FILES = de_$*(REGIONS).aff de_$*(REGIONS).dic | 22 FILES = de_$*(REGIONS).aff de_$*(REGIONS).dic |
23 | 23 |
24 ZIPFILE_DE = de_DE_comb.zip | 24 # The de_20 is the same as de_DE dictionary and only uses the |
25 ZIPFILE_19 = de_OLDSPELL.zip | 25 # new revised orthography |
26 ZIPFILE_20 = de_DE_neu.zip | 26 FILE_DE_AFF = de_DE_frami.aff |
27 ZIPFILE_AT = de_DE.zip | 27 FILE_DE_DIC = de_DE_frami.dic |
28 ZIPFILE_CH = de_CH.zip | 28 FILE_20_AFF = de_DE_frami.aff |
29 ZIPFILES = $ZIPFILE_DE $ZIPFILE_19 $ZIPFILE_20 $ZIPFILE_AT $ZIPFILE_CH | 29 FILE_20_DIC = de_DE_frami.dic |
30 FILE_AT_AFF = de_AT_frami.aff | |
31 FILE_AT_DIC = de_AT_frami.dic | |
32 FILE_CH_AFF = de_CH_frami.aff | |
33 FILE_CH_DIC = de_CH_frami.dic | |
34 #ZIPFILES = $ZIPFILE_DE $ZIPFILE_20 $ZIPFILE_AT $ZIPFILE_CH | |
35 ZIPFILE_19 = de_OLDSPELL.zip # unmaintained | |
36 DICT_FILES = $FILE_20_AFF $FILE_20_DIC $FILE_AT_AFF $FILE_AT_DIC $FILE_CH_AFF $FILE_CH_DIC | |
30 | 37 |
31 READMES = README_de_$*(REGIONS).txt | 38 READMES = README_de_DE_frami.txt README_extension_owner.txt |
32 | 39 |
33 all: $SPELLDIR/de.latin1.spl $SPELLDIR/de.utf-8.spl ../README_de.txt | 40 all: $SPELLDIR/de.latin1.spl $SPELLDIR/de.utf-8.spl ../README_de.txt |
34 | 41 |
35 $SPELLDIR/de.latin1.spl : $FILES | 42 $SPELLDIR/de.latin1.spl : $FILES |
36 :sys env LANG=de_DE.ISO-8859-1 | 43 :sys env LANG=de_DE.ISO-8859-1 |
39 $SPELLDIR/de.utf-8.spl : $FILES | 46 $SPELLDIR/de.utf-8.spl : $FILES |
40 :sys env LANG=de_DE.UTF-8 | 47 :sys env LANG=de_DE.UTF-8 |
41 $VIM -u NONE -e -c "mkspell! $SPELLDIR/de $DE_REGIONS" -c q | 48 $VIM -u NONE -e -c "mkspell! $SPELLDIR/de $DE_REGIONS" -c q |
42 | 49 |
43 ../README_de.txt: $READMES | 50 ../README_de.txt: $READMES |
44 :print de_DE (combined) >! $target | 51 :fetch $READMES |
45 :cat README_de_DE.txt >> $target | 52 :print de_DE_frami.txt >! $target |
53 :cat README_de_DE_frami.txt >> $target | |
46 :print =================================================== >>$target | 54 :print =================================================== >>$target |
47 :print de_19 (old) >> $target | 55 :print extension_owner >> $target |
48 :cat README_de_19.txt >> $target | 56 :cat README_extension_owner.txt >> $target |
49 :print =================================================== >>$target | |
50 :print de_20 (new) >> $target | |
51 :cat README_de_20.txt >> $target | |
52 :print =================================================== >>$target | |
53 :print de_AT (Austria) >> $target | |
54 :cat README_de_AT.txt >> $target | |
55 :print =================================================== >>$target | |
56 :print de_CH (Swiss) >> $target | |
57 :cat README_de_CH.txt >> $target | |
58 | 57 |
59 # | 58 # |
60 # Fetching the files from the OpenOffice.org site. | 59 # Fetching the files from the LibreOffices github repository. |
61 # The OLDSPELL file comes from elsewhere | 60 # The OLDSPELL file comes from elsewhere |
62 # | 61 # |
63 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries | 62 OODIR = https://github.com/LibreOffice/dictionaries/raw/master/de |
64 DEDIR = http://www.j3e.de/myspell | 63 DEDIR = http://www.j3e.de/myspell |
65 :attr {fetch = $OODIR/%file%} $ZIPFILES | 64 :attr {fetch = $OODIR/%file%} $DICT_FILES |
65 :attr {fetch = $OODIR/%file%} $READMES | |
66 :attr {fetch = $DEDIR/%file%} $ZIPFILE_19 | 66 :attr {fetch = $DEDIR/%file%} $ZIPFILE_19 |
67 | 67 |
68 # The files don't depend on the .zip file so that we can delete it. | 68 # The files don't depend on the .zip file so that we can delete it. |
69 # Only download the zip file if the targets don't exist. | 69 # Only download the zip file if the targets don't exist. |
70 de_DE.aff de_DE.dic: {buildcheck=} | 70 de_DE.aff de_DE.dic de_20.aff de_20.dic: {buildcheck=} |
71 :assertpkg unzip patch | 71 :assertpkg patch |
72 :fetch $ZIPFILE_DE | 72 :fetch $FILE_DE_AFF |
73 :sys $UNZIP $ZIPFILE_DE | 73 :fetch $FILE_DE_DIC |
74 :delete $ZIPFILE_DE | 74 :move de_DE_frami.aff de_DE.aff |
75 :move de_DE_comb.aff de_DE.aff | 75 :move de_DE_frami.dic de_DE.dic |
76 :move de_DE_comb.dic de_DE.dic | |
77 :move README_de_DE_comb.txt README_de_DE.txt | |
78 @if not os.path.exists('de_DE.orig.aff'): | 76 @if not os.path.exists('de_DE.orig.aff'): |
79 :copy de_DE.aff de_DE.orig.aff | 77 :copy de_DE.aff de_DE.orig.aff |
80 @if not os.path.exists('de_DE.orig.dic'): | 78 @if not os.path.exists('de_DE.orig.dic'): |
81 :copy de_DE.dic de_DE.orig.dic | 79 :copy de_DE.dic de_DE.orig.dic |
82 @if os.path.exists('de_DE.diff'): | 80 @if os.path.exists('de_DE.diff'): |
83 :sys patch <de_DE.diff | 81 :sys patch <de_DE.diff |
82 :copy de_DE.aff de_20.aff | |
83 :copy de_DE.dic de_20.dic | |
84 | 84 |
85 de_19.aff de_19.dic: {buildcheck=} | 85 de_19.aff de_19.dic: {buildcheck=} |
86 :assertpkg unzip patch | 86 :assertpkg unzip patch |
87 :fetch $ZIPFILE_19 | 87 :fetch $ZIPFILE_19 |
88 :sys $UNZIP $ZIPFILE_19 | 88 :sys $UNZIP $ZIPFILE_19 |
89 :delete $ZIPFILE_19 | 89 :delete $ZIPFILE_19 |
90 :move de_OLDSPELL.aff de_19.aff | 90 :move de_OLDSPELL.aff de_19.aff |
91 :move de_OLDSPELL.dic de_19.dic | 91 :move de_OLDSPELL.dic de_19.dic |
92 # there is no README file | |
93 :print There is no README file for the old spelling >!README_de_19.txt | |
94 @if not os.path.exists('de_19.orig.aff'): | 92 @if not os.path.exists('de_19.orig.aff'): |
95 :copy de_19.aff de_19.orig.aff | 93 :copy de_19.aff de_19.orig.aff |
96 @if not os.path.exists('de_19.orig.dic'): | 94 @if not os.path.exists('de_19.orig.dic'): |
97 :copy de_19.dic de_19.orig.dic | 95 :copy de_19.dic de_19.orig.dic |
98 @if os.path.exists('de_19.diff'): | 96 @if os.path.exists('de_19.diff'): |
99 :sys patch <de_19.diff | 97 :sys patch <de_19.diff |
100 | 98 |
101 de_20.aff de_20.dic: {buildcheck=} | |
102 :assertpkg unzip patch | |
103 :fetch $ZIPFILE_20 | |
104 :sys $UNZIP $ZIPFILE_20 | |
105 :delete $ZIPFILE_20 | |
106 :move de_DE_neu.aff de_20.aff | |
107 :move de_DE_neu.dic de_20.dic | |
108 :move README_de_DE_neu.txt README_de_20.txt | |
109 @if not os.path.exists('de_20.orig.aff'): | |
110 :copy de_20.aff de_20.orig.aff | |
111 @if not os.path.exists('de_20.orig.dic'): | |
112 :copy de_20.dic de_20.orig.dic | |
113 @if os.path.exists('de_20.diff'): | |
114 :sys patch <de_20.diff | |
115 | |
116 # The de_AT.dic is included in de_DE.zip. We rename the files and concatenate | |
117 # them. Complication is that de_AT.dic is missing a newline at the end. | |
118 # And the de_DE.dic file is used for something else. | |
119 de_AT.aff de_AT.dic: {buildcheck=} | 99 de_AT.aff de_AT.dic: {buildcheck=} |
120 :assertpkg unzip patch | 100 :assertpkg patch |
121 | 101 :fetch $FILE_AT_AFF |
122 # Move de_DE files out of the way. | 102 :fetch $FILE_AT_DIC |
123 @if os.path.exists('de_DE.aff'): | 103 :move $FILE_AT_AFF de_AT.aff |
124 :move de_DE.aff de_DE.temp.aff | 104 :move $FILE_AT_DIC de_AT.dic |
125 @if os.path.exists('de_DE.dic'): | |
126 :move de_DE.dic de_DE.temp.dic | |
127 @if os.path.exists('README_de_DE.txt'): | |
128 :move README_de_DE.txt README_de_DE.temp.txt | |
129 | |
130 :fetch $ZIPFILE_AT | |
131 :sys $UNZIP $ZIPFILE_AT | |
132 :delete $ZIPFILE_AT | |
133 | |
134 :print >>de_AT.dic | |
135 # delete the first line, the word count | |
136 :sys $VIM -u NONE de_DE.dic -e -c 1delete -c wq | |
137 :cat de_DE.dic >>de_AT.dic | |
138 :delete de_DE.dic | |
139 :move de_DE.aff de_AT.aff | |
140 :move README_de_DE.txt README_de_AT.txt | |
141 | |
142 @if os.path.exists('de_DE.temp.aff'): | |
143 :move de_DE.temp.aff de_DE.aff | |
144 @if os.path.exists('de_DE.temp.dic'): | |
145 :move de_DE.temp.dic de_DE.dic | |
146 @if os.path.exists('README_de_DE.temp.txt'): | |
147 :move README_de_DE.temp.txt README_de_DE.txt | |
148 | |
149 @if not os.path.exists('de_AT.orig.aff'): | 105 @if not os.path.exists('de_AT.orig.aff'): |
150 :copy de_AT.aff de_AT.orig.aff | 106 :copy de_AT.aff de_AT.orig.aff |
151 @if not os.path.exists('de_AT.orig.dic'): | 107 @if not os.path.exists('de_AT.orig.dic'): |
152 :copy de_AT.dic de_AT.orig.dic | 108 :copy de_AT.dic de_AT.orig.dic |
153 @if os.path.exists('de_AT.diff'): | 109 @if os.path.exists('de_AT.diff'): |
154 :sys patch <de_AT.diff | 110 :sys patch <de_AT.diff |
155 | 111 |
156 de_CH.aff de_CH.dic: {buildcheck=} | 112 de_CH.aff de_CH.dic: {buildcheck=} |
157 :assertpkg unzip patch | 113 :assertpkg patch |
158 :fetch $ZIPFILE_CH | 114 :fetch $FILE_CH_AFF |
159 :sys $UNZIP $ZIPFILE_CH | 115 :fetch $FILE_CH_DIC |
160 :delete $ZIPFILE_CH | 116 :move $FILE_CH_AFF de_CH.aff |
117 :move $FILE_CH_DIC de_CH.dic | |
161 @if not os.path.exists('de_CH.orig.aff'): | 118 @if not os.path.exists('de_CH.orig.aff'): |
162 :copy de_CH.aff de_CH.orig.aff | 119 :copy de_CH.aff de_CH.orig.aff |
163 @if not os.path.exists('de_CH.orig.dic'): | 120 @if not os.path.exists('de_CH.orig.dic'): |
164 :copy de_CH.dic de_CH.orig.dic | 121 :copy de_CH.dic de_CH.orig.dic |
165 @if os.path.exists('de_CH.diff'): | 122 @if os.path.exists('de_CH.diff'): |
172 :assertpkg diff | 129 :assertpkg diff |
173 :sys {force} diff -a -C 1 de_DE.orig.aff de_DE.aff >de_DE.diff | 130 :sys {force} diff -a -C 1 de_DE.orig.aff de_DE.aff >de_DE.diff |
174 :sys {force} diff -a -C 1 de_DE.orig.dic de_DE.dic >>de_DE.diff | 131 :sys {force} diff -a -C 1 de_DE.orig.dic de_DE.dic >>de_DE.diff |
175 :sys {force} diff -a -C 1 de_19.orig.aff de_19.aff >de_19.diff | 132 :sys {force} diff -a -C 1 de_19.orig.aff de_19.aff >de_19.diff |
176 :sys {force} diff -a -C 1 de_19.orig.dic de_19.dic >>de_19.diff | 133 :sys {force} diff -a -C 1 de_19.orig.dic de_19.dic >>de_19.diff |
177 :sys {force} diff -a -C 1 de_20.orig.aff de_20.aff >de_20.diff | |
178 :sys {force} diff -a -C 1 de_20.orig.dic de_20.dic >>de_20.diff | |
179 :sys {force} diff -a -C 1 de_AT.orig.aff de_AT.aff >de_AT.diff | 134 :sys {force} diff -a -C 1 de_AT.orig.aff de_AT.aff >de_AT.diff |
180 :sys {force} diff -a -C 1 de_AT.orig.dic de_AT.dic >>de_AT.diff | 135 :sys {force} diff -a -C 1 de_AT.orig.dic de_AT.dic >>de_AT.diff |
181 :sys {force} diff -a -C 1 de_CH.orig.aff de_CH.aff >de_CH.diff | 136 :sys {force} diff -a -C 1 de_CH.orig.aff de_CH.aff >de_CH.diff |
182 :sys {force} diff -a -C 1 de_CH.orig.dic de_CH.dic >>de_CH.diff | 137 :sys {force} diff -a -C 1 de_CH.orig.dic de_CH.dic >>de_CH.diff |
138 :copy de_DE.diff de_20.diff | |
183 | 139 |
184 | 140 |
185 # Check for updated OpenOffice spell files. When there are changes the | 141 # Check for updated OpenOffice spell files. When there are changes the |
186 # ".new.aff" and ".new.dic" files are left behind for manual inspection. | 142 # ".new.aff" and ".new.dic" files are left behind for manual inspection. |
187 | 143 |
188 check: | 144 check: |
189 :assertpkg unzip patch | 145 :assertpkg unzip patch |
190 :fetch $ZIPFILES | 146 :fetch $ZIPFILE_19 |
191 :mkdir tmp | 147 :fetch $DICT_FILES |
192 :cd tmp | |
193 @try: | 148 @try: |
194 # Do the _AT one first, it overwrites the _DE files. | 149 :mkdir tmp |
195 :sys $UNZIP ../$ZIPFILE_AT | 150 :cd tmp |
196 :print >>de_AT.dic | |
197 # delete the first line, the word count | |
198 :sys ../$VIM -u NONE de_DE.dic -e -c 1delete -c wq | |
199 :cat de_DE.dic >>de_AT.dic | |
200 :delete de_DE.dic | |
201 :move de_DE.aff de_AT.aff | |
202 :move README_de_DE.txt README_de_AT.txt | |
203 | |
204 :sys $UNZIP ../$ZIPFILE_DE | |
205 :move de_DE_comb.aff de_DE.aff | |
206 :move de_DE_comb.dic de_DE.dic | |
207 :move README_de_DE_comb.txt README_de_DE.txt | |
208 | |
209 :sys $UNZIP ../$ZIPFILE_19 | 151 :sys $UNZIP ../$ZIPFILE_19 |
152 :copy ../*.aff . | |
153 :copy ../*.dic . | |
210 :move de_OLDSPELL.aff de_19.aff | 154 :move de_OLDSPELL.aff de_19.aff |
211 :move de_OLDSPELL.dic de_19.dic | 155 :move de_OLDSPELL.dic de_19.dic |
212 # there is no README file | 156 :move de_DE_frami.aff de_DE.aff |
213 :print There is no README file for the old spelling >!README_de_19.txt | 157 :move de_DE_frami.dic de_DE.dic |
214 :sys $UNZIP ../$ZIPFILE_20 | 158 :move de_AT_frami.dic de_AT.dic |
215 :move de_DE_neu.aff de_20.aff | 159 :move de_AT_frami.aff de_AT.aff |
216 :move de_DE_neu.dic de_20.dic | 160 :move de_CH_frami.dic de_CH.dic |
217 :move README_de_DE_neu.txt README_de_20.txt | 161 :move de_CH_frami.aff de_CH.aff |
218 | 162 :copy de_DE.dic de_20.dic |
219 :sys $UNZIP ../$ZIPFILE_CH | 163 :copy de_DE.aff de_20.aff |
220 | 164 |
221 @import stat | 165 @import stat |
222 @for nm in ['de_DE', 'de_19', 'de_20', 'de_AT', 'de_CH']: | 166 @for nm in ['de_DE', 'de_19', 'de_20', 'de_AT', 'de_CH']: |
223 @for ext in ['aff', 'dic']: | 167 @for ext in ['aff', 'dic']: |
224 :sys {force} diff ../$(nm).orig.$ext $(nm).$ext >d | 168 :sys {force} diff ../$(nm).orig.$ext $(nm).$ext >d |
225 @if os.stat('d')[stat.ST_SIZE] > 0: | 169 @if os.stat('d')[stat.ST_SIZE] > 0: |
226 :copy $(nm).$ext ../$(nm).new.$ext | 170 :copy $(nm).$ext ../$(nm).new.$ext |
227 :sys {force} diff ../README_$(nm).txt README_$(nm).txt >d | 171 :sys {force} diff ../README_$(nm).txt README_$(nm).txt >d |
228 @if os.stat('d')[stat.ST_SIZE] > 0: | |
229 :copy README_$(nm).txt ../README_$(nm).new.txt | |
230 @finally: | 172 @finally: |
231 :cd .. | 173 :cd .. |
232 :delete {r}{f}{q} tmp | 174 :delete {r}{f}{q} tmp |
233 :delete $ZIPFILES | |
234 | |
235 | 175 |
236 # vim: set sts=4 sw=4 : | 176 # vim: set sts=4 sw=4 : |