annotate runtime/spell/tet/main.aap @ 17358:d1ea88736ebd v8.1.1678

patch 8.1.1678: using popup_menu() does not scroll to show the selected line commit https://github.com/vim/vim/commit/a901a37bae9f4e2848d6d7ac7b0875d72f43e1eb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 13 16:38:50 2019 +0200 patch 8.1.1678: using popup_menu() does not scroll to show the selected line Problem: When using popup_menu() does not scroll to show the selected line. Solution: Scroll the text. (Naruhiko Nishino, closes https://github.com/vim/vim/issues/4651)
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Jul 2019 16:45:04 +0200
parents 6c480c4aa7b0
children bdda48f01a68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2044
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
1 # Aap recipe for Tetum Vim spell files.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
2
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
5 VIM = ../../../src/vim
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
6 @else:
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
7 :progsearch VIM vim
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
8
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
9 SPELLDIR = ..
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
10 FILES = tet_ID.aff tet_ID.dic
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
11
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
12 # I don't hava a Tetum locale, use the Dutch one instead.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
13 all: $SPELLDIR/tet.latin1.spl $SPELLDIR/tet.utf-8.spl ../README_tet.txt
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
14
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
15 $SPELLDIR/tet.latin1.spl : $FILES
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
16 :sys env LANG=nl_NL.ISO8859-1
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
17 $VIM -u NONE -e -c "mkspell! $SPELLDIR/tet tet_ID" -c q
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
18
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
19 $SPELLDIR/tet.utf-8.spl : $FILES
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
20 :sys env LANG=nl_NL.UTF-8
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
21 $VIM -u NONE -e -c "mkspell! $SPELLDIR/tet tet_ID" -c q
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
22
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
23 ../README_tet.txt : README_tet_ID.txt
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
24 :copy $source $target
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
25
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
26 #
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
27 # Fetching the files from OpenOffice.org.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
28 #
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
29 OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
30 :attr {fetch = $OODIR/%file%} tet_ID.zip
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
31
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
32 # The files don't depend on the .zip file so that we can delete it.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
33 # Only download the zip file if the targets don't exist.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
34 tet_ID.aff tet_ID.dic: {buildcheck=}
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
35 :assertpkg unzip patch
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
36 :fetch tet_ID.zip
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
37 :sys $UNZIP tet_ID.zip
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
38 :delete tet_ID.zip
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
39 @if not os.path.exists('tet_ID.orig.aff'):
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
40 :copy tet_ID.aff tet_ID.orig.aff
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
41 @if not os.path.exists('tet_ID.orig.dic'):
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
42 :copy tet_ID.dic tet_ID.orig.dic
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
43 @if os.path.exists('tet_ID.diff'):
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
44 :sys patch <tet_ID.diff
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
45
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
46
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
47 # Generate diff files, so that others can get the OpenOffice files and apply
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
48 # the diffs to get the Vim versions.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
49
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
50 diff:
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
51 :assertpkg diff
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
52 :sys {force} diff -a -C 1 tet_ID.orig.aff tet_ID.aff >tet_ID.diff
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
53 :sys {force} diff -a -C 1 tet_ID.orig.dic tet_ID.dic >>tet_ID.diff
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
54
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
55
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
56 # Check for updated OpenOffice spell files. When there are changes the
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
57 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
58
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
59 check:
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
60 :assertpkg unzip diff
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
61 :fetch tet_ID.zip
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
62 :mkdir tmp
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
63 :cd tmp
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
64 @try:
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
65 @import stat
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
66 :sys $UNZIP ../tet_ID.zip
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
67 :sys {force} diff ../tet_ID.orig.aff tet_ID.aff >d
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
68 @if os.stat('d')[stat.ST_SIZE] > 0:
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
69 :copy tet_ID.aff ../tet_ID.new.aff
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
70 :sys {force} diff ../tet_ID.orig.dic tet_ID.dic >d
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
71 @if os.stat('d')[stat.ST_SIZE] > 0:
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
72 :copy tet_ID.dic ../tet_ID.new.dic
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
73 @finally:
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
74 :cd ..
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
75 :delete {r}{f}{q} tmp
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
76 :delete tet_ID.zip
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
77
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
78
6c480c4aa7b0 Add a few missing runtime files.
Bram Moolenaar <bram@zimbu.org>
parents:
diff changeset
79 # vim: set sts=4 sw=4 :