annotate runtime/spell/fr/main.aap @ 32743:df63fa700fc6 v9.0.1691

patch 9.0.1691: wrong viewport restored for incsearch and smoothscroll Commit: https://github.com/vim/vim/commit/7b7b4cb6f274e7bace127107b0d2752133c4020b Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Aug 11 23:48:27 2023 +0200 patch 9.0.1691: wrong viewport restored for incsearch and smoothscroll Problem: wrong viewport restored for incsearch and smoothscroll Solution: Save and restore skipcol as well closes: #12713 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Aug 2023 00:00:05 +0200
parents ea3c3f13385c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
446
7472c565592a updated for version 7.0117
vimboss
parents: 388
diff changeset
1 # Aap recipe for French Vim spell files.
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
2
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
3 # Use a freshly compiled Vim if it exists.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
4 @if os.path.exists('../../../src/vim'):
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
5 VIM = ../../../src/vim
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
6 @else:
454
3bfa9235f9c8 updated for version 7.0121
vimboss
parents: 447
diff changeset
7 :progsearch VIM vim
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
8
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
9 SPELLDIR = ..
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
10 FILES = fr_FR.aff fr_FR.dic
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
11
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 454
diff changeset
12 all: $SPELLDIR/fr.latin1.spl $SPELLDIR/fr.utf-8.spl ../README_fr.txt
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
13
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
14 # The spell file is iso-8859-15, but Vim normally uses "latin1" for this.
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
15 # This is OK for the utf-8 files, but for latin1 we need to avoid the "oe"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
16 # character. When unpacking we create four files:
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
17 # fr_FR_latin1.aff modified file
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
18 # fr_FR_latin1.dic modified file
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
19 # fr_FR_iso15.aff original file (after applying diff)
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
20 # fr_FR_iso15.dic original file (after applying diff)
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
21 # Just before using the dictionary files, the right ones are copied to
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
22 # fr_FR.aff
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
23 # fr_FR.dic
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
24
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
25 $SPELLDIR/fr.latin1.spl : $FILES
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
26 :copy {force} fr_FR_latin1.aff fr_FR.aff
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
27 :copy {force} fr_FR_latin1.dic fr_FR.dic
2292
ea3c3f13385c Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents: 1618
diff changeset
28 :sys env LANG=fr_FR.ISO-8859-15@euro
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 454
diff changeset
29 $VIM -u NONE -e -c "mkspell! $SPELLDIR/fr fr_FR" -c q
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
30
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
31 $SPELLDIR/fr.utf-8.spl : $FILES
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
32 :copy {force} fr_FR_iso15.aff fr_FR.aff
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
33 :copy {force} fr_FR_iso15.dic fr_FR.dic
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
34 :sys env LANG=fr_FR.UTF-8
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 454
diff changeset
35 $VIM -u NONE -e -c "mkspell! $SPELLDIR/fr fr_FR" -c q
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
36
539
b13dbb7b797c updated for version 7.0153
vimboss
parents: 502
diff changeset
37 ../README_fr.txt : README_fr_FR.txt
502
52e76e2b5b65 updated for version 7.0140
vimboss
parents: 482
diff changeset
38 :cat $source >!$target
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
39
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
40 #
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
41 # Used to fetch the files from OpenOffice.org. Those are old.
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
42 # Later versions are elsewhere.
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
43 #
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
44 #OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
45 ZIPFILE = http://dico.savant.free.fr/_download/fr_FR_1-1-6.zip
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
46
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
47 :attr {fetch = $ZIPFILE} fr_FR.zip
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
48
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
49 # The files don't depend on the .zip file so that we can delete it.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
50 # Only download the zip file if the targets don't exist.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
51 fr_FR.aff fr_FR.dic: {buildcheck=}
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
52 :assertpkg unzip patch
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
53 :fetch fr_FR.zip
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 454
diff changeset
54 :sys $UNZIP fr_FR.zip
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
55 :delete fr_FR.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
56 @if not os.path.exists('fr_FR.orig.aff'):
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 454
diff changeset
57 :copy fr_FR.aff fr_FR.orig.aff
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
58 @if not os.path.exists('fr_FR.orig.dic'):
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 454
diff changeset
59 :copy fr_FR.dic fr_FR.orig.dic
454
3bfa9235f9c8 updated for version 7.0121
vimboss
parents: 447
diff changeset
60 @if os.path.exists('fr_FR.diff'):
3bfa9235f9c8 updated for version 7.0121
vimboss
parents: 447
diff changeset
61 :sys patch <fr_FR.diff
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
62
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
63 # Keep the unmodified files (after diff) for ISO-8859-15.
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
64 :copy fr_FR.aff fr_FR_iso15.aff
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
65 :copy fr_FR.dic fr_FR_iso15.dic
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
66 # For the latin1 .dic file change all the "oe" characters to the two
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
67 # characters "oe".
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
68 :sys $VIM -u NONE -e -c "set enc=latin1"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
69 -c "e fr_FR.dic"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
70 -c "%s/½/oe/g"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
71 -c "w! fr_FR_latin1.dic"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
72 -c q
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
73 # For the latin1 .aff file delete all the "oe" and "OE" characters and
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
74 # delete the REP lines with those characters.
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
75 :sys $VIM -u NONE -e -c "set enc=latin1"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
76 -c "e fr_FR.aff"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
77 -c "%s/½//g"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
78 -c "%s/¼//g"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
79 -c "%g/REP.*oe/d"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
80 -c "w! fr_FR_latin1.aff"
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
81 -c q
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
82
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
83
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
84 # Generate diff files, so that others can get the OpenOffice files and apply
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
85 # the diffs to get the Vim versions.
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
86 # This uses the iso-8859-15 files.
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
87 diff:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
88 :assertpkg diff
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
89 :copy {force} fr_FR_iso15.aff fr_FR.aff
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
90 :copy {force} fr_FR_iso15.dic fr_FR.dic
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
91 :sys {force} diff -a -C 1 fr_FR.orig.aff fr_FR.aff >fr_FR.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
92 :sys {force} diff -a -C 1 fr_FR.orig.dic fr_FR.dic >>fr_FR.diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
93
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
94 # Delete all the unpacked and generated files, including the "orig" files.
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
95 clean:
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
96 :delete {force} fr_FR.zip fr_FR.aff fr_FR.dic
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
97 fr_FR.aff.orig fr_FR.dic.orig
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
98 fr_FR.orig.aff fr_FR.orig.dic
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
99 fr_FR_latin1.aff fr_FR_latin1.dic
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
100 fr_FR_iso15.aff fr_FR_iso15.dic
46bbe11644e0 updated for version 7.2a
vimboss
parents: 539
diff changeset
101 README_fr_FR.txt
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
102
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
103 # Check for updated OpenOffice spell files. When there are changes the
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
104 # ".new.aff" and ".new.dic" files are left behind for manual inspection.
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
105
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
106 check:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
107 :assertpkg unzip diff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
108 :fetch fr_FR.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
109 :mkdir tmp
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
110 :cd tmp
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
111 @try:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
112 @import stat
481
66080ac5dab7 updated for version 7.0130
vimboss
parents: 454
diff changeset
113 :sys $UNZIP ../fr_FR.zip
388
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
114 :sys {force} diff ../fr_FR.orig.aff fr_FR.aff >d
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
115 @if os.stat('d')[stat.ST_SIZE] > 0:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
116 :copy fr_FR.aff ../fr_FR.new.aff
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
117 :sys {force} diff ../fr_FR.orig.dic fr_FR.dic >d
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
118 @if os.stat('d')[stat.ST_SIZE] > 0:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
119 :copy fr_FR.dic ../fr_FR.new.dic
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
120 @finally:
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
121 :cd ..
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
122 :delete {r}{f}{q} tmp
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
123 :delete fr_FR.zip
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
124
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
125
f92bb1845823 updated for version 7.0101
vimboss
parents:
diff changeset
126 # vim: set sts=4 sw=4 :