annotate runtime/spell/tl/main.aap @ 20667:a126f643d566 v8.2.0887

patch 8.2.0887: searchcount().exact_match is 1 right after a match Commit: https://github.com/vim/vim/commit/57f75a5a364ad4d8334fdf6b6b41420b48e08390 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 2 22:06:21 2020 +0200 patch 8.2.0887: searchcount().exact_match is 1 right after a match Problem: Searchcount().exact_match is 1 right after a match. Solution: Use LT_POS() instead of LTOREQ_POS(). (closes https://github.com/vim/vim/issues/6189)
author Bram Moolenaar <Bram@vim.org>
date Tue, 02 Jun 2020 22:15:04 +0200
parents 7fe13e0f5dce
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
1 # Aap recipe for Tagalog Vim spell files.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
2
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
6 @else:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
7 :progsearch VIM vim
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
8
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
9 SPELLDIR = ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
10 FILES = tl_PH.aff tl_PH.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
11
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
12 all: $SPELLDIR/tl.latin1.spl $SPELLDIR/tl.utf-8.spl ../README_tl.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
13
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
14 $SPELLDIR/tl.latin1.spl : $FILES
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
15 :sys env LANG=tl_PH.ISO8859-1
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
16 $VIM -u NONE -e -c "mkspell! $SPELLDIR/tl tl_PH" -c q
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
17
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
18 $SPELLDIR/tl.utf-8.spl : $FILES
615
7fe13e0f5dce updated for version 7.0175
vimboss
parents: 502
diff changeset
19 :sys $VIM -u NONE -e -c "set enc=utf-8" -c "mkspell! $SPELLDIR/tl tl_PH" -c q
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
20
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
21 ../README_tl.txt : README_tl_PH.txt
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
22 :copy $source $target
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
23
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
24 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
25 # Fetching the files from OpenOffice.org.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
26 #
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
27 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
28 :attr {fetch = $OODIR/%file%} tl_PH.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
29
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
30 # The files don't depend on the .zip file so that we can delete it.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
31 # Only download the zip file if the targets don't exist.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
32 tl_PH.aff tl_PH.dic: {buildcheck=}
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
33 :assertpkg unzip patch
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
34 :fetch tl_PH.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
35 :sys $UNZIP tl_PH.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
36 :delete tl_PH.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
37 @if not os.path.exists('tl_PH.orig.aff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
38 :copy tl_PH.aff tl_PH.orig.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
39 @if not os.path.exists('tl_PH.orig.dic'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
40 :copy tl_PH.dic tl_PH.orig.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
41 @if os.path.exists('tl_PH.diff'):
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
42 :sys patch <tl_PH.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
43
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
44
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
45 # Generate diff files, so that others can get the OpenOffice files and apply
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
46 # the diffs to get the Vim versions.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
47
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
48 diff:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
49 :assertpkg diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
50 :sys {force} diff -a -C 1 tl_PH.orig.aff tl_PH.aff >tl_PH.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
51 :sys {force} diff -a -C 1 tl_PH.orig.dic tl_PH.dic >>tl_PH.diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
52
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
53
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
54 # Check for updated OpenOffice spell files. When there are changes the
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
55 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
56
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
57 check:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
58 :assertpkg unzip diff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
59 :fetch tl_PH.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
60 :mkdir tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
61 :cd tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
62 @try:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
63 @import stat
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
64 :sys $UNZIP ../tl_PH.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
65 :sys {force} diff ../tl_PH.orig.aff tl_PH.aff >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
66 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
67 :copy tl_PH.aff ../tl_PH.new.aff
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
68 :sys {force} diff ../tl_PH.orig.dic tl_PH.dic >d
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
69 @if os.stat('d')[stat.ST_SIZE] > 0:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
70 :copy tl_PH.dic ../tl_PH.new.dic
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
71 @finally:
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
72 :cd ..
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
73 :delete {r}{f}{q} tmp
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
74 :delete tl_PH.zip
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
75
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
76
52e76e2b5b65 updated for version 7.0140
vimboss
parents:
diff changeset
77 # vim: set sts=4 sw=4 :