summaryrefslogtreecommitdiff
path: root/runtime/spell
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/spell')
-rw-r--r--runtime/spell/bg/main.aap6
-rw-r--r--runtime/spell/br/br_FR.diff13
-rw-r--r--runtime/spell/br/main.aap86
-rw-r--r--runtime/spell/ca/main.aap4
-rw-r--r--runtime/spell/cy/main.aap6
-rw-r--r--runtime/spell/de/main.aap4
-rw-r--r--runtime/spell/eo/main.aap2
-rw-r--r--runtime/spell/es/main.aap2
-rw-r--r--runtime/spell/ku/main.aap6
-rw-r--r--runtime/spell/lv/main.aap6
-rw-r--r--runtime/spell/main.aap4
-rw-r--r--runtime/spell/ms/main.aap4
-rw-r--r--runtime/spell/pt/main.aap6
13 files changed, 124 insertions, 25 deletions
diff --git a/runtime/spell/bg/main.aap b/runtime/spell/bg/main.aap
index 2ccea86c6..bb34b9a7f 100644
--- a/runtime/spell/bg/main.aap
+++ b/runtime/spell/bg/main.aap
@@ -34,9 +34,9 @@ bg_BG.aff bg_BG.dic: {buildcheck=}
:fetch bg_BG.zip
:sys $UNZIP bg_BG.zip
:delete bg_BG.zip
- :sys $VIM bg_BG.aff -e -c "set ff=unix" -c update -c q
- :sys $VIM bg_BG.dic -e -c "set ff=unix" -c update -c q
- :sys $VIM README_bg_BG.txt -e -c "set ff=unix" -c update -c q
+ :sys $VIM bg_BG.aff -u NONE -e -c "set ff=unix" -c update -c q
+ :sys $VIM bg_BG.dic -u NONE -e -c "set ff=unix" -c update -c q
+ :sys $VIM README_bg_BG.txt -u NONE -e -c "set ff=unix" -c update -c q
@if not os.path.exists('bg_BG.orig.aff'):
:copy bg_BG.aff bg_BG.orig.aff
@if not os.path.exists('bg_BG.orig.dic'):
diff --git a/runtime/spell/br/br_FR.diff b/runtime/spell/br/br_FR.diff
new file mode 100644
index 000000000..e2ec71049
--- /dev/null
+++ b/runtime/spell/br/br_FR.diff
@@ -0,0 +1,13 @@
+*** br_FR.orig.aff 2010-04-14 18:44:36.365731271 +0200
+--- br_FR.aff 2010-04-14 18:43:31.069137439 +0200
+***************
+*** 9,14 ****
+--- 9,16 ----
+ SET UTF-8
+ TRY esiaùnñrtolcdugmphbyfvkwzESIAÙNÑRTOLCDUGMPHBYFVKWZ'
+
++ MIDWORD '
++
+ PFX m Y 1
+ PFX m 0 m' [aehiouy]
+
diff --git a/runtime/spell/br/main.aap b/runtime/spell/br/main.aap
new file mode 100644
index 000000000..1ca5935a6
--- /dev/null
+++ b/runtime/spell/br/main.aap
@@ -0,0 +1,86 @@
+# Aap recipe for Breton Vim spell files.
+
+# Use a freshly compiled Vim if it exists.
+@if os.path.exists('../../../src/vim'):
+ VIM = ../../../src/vim
+@else:
+ :progsearch VIM vim
+
+SPELLDIR = ..
+FILES = br_FR.aff br_FR.dic
+
+all: $SPELLDIR/br.latin1.spl $SPELLDIR/br.utf-8.spl ../README_br.txt
+
+$SPELLDIR/br.latin1.spl : $FILES
+ :sys $VIM -u NONE -e -c "set enc=latin1"
+ -c "mkspell! $SPELLDIR/br br_FR" -c q
+
+$SPELLDIR/br.utf-8.spl : $FILES
+ :sys $VIM -u NONE -e -c "set enc=UTF-8"
+ -c "mkspell! $SPELLDIR/br br_FR" -c q
+
+../README_br.txt : package-description.txt
+ :copy $source $target
+
+#
+# Fetching the files from OpenOffice.org.
+#
+OODIR = http://extensions.services.openoffice.org/e-files/2207/3
+:attr {fetch = $OODIR/%file%} dict-br_0.3.oxt
+
+# The files don't depend on the .zip file so that we can delete it.
+# Only download the zip file if the targets don't exist.
+br_FR.aff br_FR.dic: {buildcheck=}
+ :assertpkg unzip patch
+ :fetch dict-br_0.3.oxt
+ :sys $UNZIP dict-br_0.3.oxt
+ :delete dict-br_0.3.oxt
+ :copy dictionaries/br_FR.aff br_FR.aff
+ :copy dictionaries/br_FR.dic br_FR.dic
+ # The br_FR.aff file contains a BOM, remove it.
+ :sys $VIM -u NONE -e -c "set enc=utf-8"
+ -c "e br_FR.aff"
+ -c "set nobomb ff=unix"
+ -c "update" -c q
+ :sys $VIM -u NONE -e -c "set enc=utf-8"
+ -c "e br_FR.dic"
+ -c "set nobomb ff=unix"
+ -c "update" -c q
+ @if not os.path.exists('br_FR.orig.aff'):
+ :copy br_FR.aff br_FR.orig.aff
+ @if os.path.exists('br_FR.diff'):
+ :sys patch <br_FR.diff
+
+# Generate diff files, so that others can get the OpenOffice files and apply
+# the diffs to get the Vim versions.
+
+diff:
+ :assertpkg diff
+ :sys {force} diff -a -C 1 dictionaries/br_FR.aff br_FR.aff >br_FR.diff
+ :sys {force} diff -a -C 1 dictionaries/br_FR.dic br_FR.dic >>br_FR.diff
+
+
+# Check for updated OpenOffice spell files. When there are changes the
+# ".new.aff" and ".new.dic" files are left behind for manual inspection.
+
+check:
+ :assertpkg unzip diff
+ :fetch dict-br_0.3.oxt
+ :mkdir tmp
+ :cd tmp
+ @try:
+ @import stat
+ :sys $UNZIP ../dict-br_0.3.oxt
+ :sys {force} diff ../dictionaries/br_FR.aff br_FR.aff >d
+ @if os.stat('d')[stat.ST_SIZE] > 0:
+ :copy br_FR.aff ../br_FR.new.aff
+ :sys {force} diff ../dictionaries/br_FR.dic br_FR.dic >d
+ @if os.stat('d')[stat.ST_SIZE] > 0:
+ :copy br_FR.dic ../br_FR.new.dic
+ @finally:
+ :cd ..
+ :delete {r}{f}{q} tmp
+ :delete dict-br_0.3.oxt
+
+
+# vim: set sts=4 sw=4 :
diff --git a/runtime/spell/ca/main.aap b/runtime/spell/ca/main.aap
index 2182f2916..8ba8c1a04 100644
--- a/runtime/spell/ca/main.aap
+++ b/runtime/spell/ca/main.aap
@@ -36,8 +36,8 @@ ca_ES.aff ca_ES.dic: {buildcheck=}
:fetch ca_ES.zip
:sys $UNZIP ca_ES.zip
:delete ca_ES.zip
- :sys $VIM ca_ES.aff -c "set ff=unix" -c "update" -c q
- :sys $VIM ca_ES.dic -c "set ff=unix" -c "update" -c q
+ :sys $VIM ca_ES.aff -u NONE -c "set ff=unix" -c "update" -c q
+ :sys $VIM ca_ES.dic -u NONE -c "set ff=unix" -c "update" -c q
@if not os.path.exists('ca_ES.orig.aff'):
:copy ca_ES.aff ca_ES.orig.aff
@if not os.path.exists('ca_ES.orig.dic'):
diff --git a/runtime/spell/cy/main.aap b/runtime/spell/cy/main.aap
index ce6cb840f..1c1d20d9f 100644
--- a/runtime/spell/cy/main.aap
+++ b/runtime/spell/cy/main.aap
@@ -36,9 +36,9 @@ cy_GB.aff cy_GB.dic: {buildcheck=}
:fetch cy_GB.zip
:sys $UNZIP cy_GB.zip
:delete cy_GB.zip
- :sys $VIM cy_GB.aff -e -c "set ff=unix" -c update -c q
- :sys $VIM cy_GB.dic -e -c "set ff=unix" -c update -c q
- :sys $VIM README_cy_GB.txt -e -c "set ff=unix" -c update -c q
+ :sys $VIM cy_GB.aff -u NONE -e -c "set ff=unix" -c update -c q
+ :sys $VIM cy_GB.dic -u NONE -e -c "set ff=unix" -c update -c q
+ :sys $VIM README_cy_GB.txt -u NONE -e -c "set ff=unix" -c update -c q
@if not os.path.exists('cy_GB.orig.aff'):
:copy cy_GB.aff cy_GB.orig.aff
@if not os.path.exists('cy_GB.orig.dic'):
diff --git a/runtime/spell/de/main.aap b/runtime/spell/de/main.aap
index b4cf32115..015b95767 100644
--- a/runtime/spell/de/main.aap
+++ b/runtime/spell/de/main.aap
@@ -133,7 +133,7 @@ de_AT.aff de_AT.dic: {buildcheck=}
:print >>de_AT.dic
# delete the first line, the word count
- :sys $VIM de_DE.dic -e -c 1delete -c wq
+ :sys $VIM -u NONE de_DE.dic -e -c 1delete -c wq
:cat de_DE.dic >>de_AT.dic
:delete de_DE.dic
:move de_DE.aff de_AT.aff
@@ -195,7 +195,7 @@ check:
:sys $UNZIP ../$ZIPFILE_AT
:print >>de_AT.dic
# delete the first line, the word count
- :sys ../$VIM de_DE.dic -e -c 1delete -c wq
+ :sys ../$VIM -u NONE de_DE.dic -e -c 1delete -c wq
:cat de_DE.dic >>de_AT.dic
:delete de_DE.dic
:move de_DE.aff de_AT.aff
diff --git a/runtime/spell/eo/main.aap b/runtime/spell/eo/main.aap
index 19b7555ab..282b5b73f 100644
--- a/runtime/spell/eo/main.aap
+++ b/runtime/spell/eo/main.aap
@@ -22,7 +22,7 @@ $SPELLDIR/eo.utf-8.spl : $FILES
../README_eo.txt : README_eo_l3.txt
:copy $source $target
# fix missing newline
- :sys $VIM $target -e -c "set ff=unix" -c wq
+ :sys $VIM -u NONE -e -c "set ff=unix" -c wq $target
#
# Fetching the files from OpenOffice.org.
diff --git a/runtime/spell/es/main.aap b/runtime/spell/es/main.aap
index 3a03bffe0..2421837c7 100644
--- a/runtime/spell/es/main.aap
+++ b/runtime/spell/es/main.aap
@@ -63,7 +63,7 @@ es_MX.aff es_MX.dic: {buildcheck=}
:print No copyright information for es_MX wordlist >! README_es_MX.txt
:sys $UNZIP $ZIPFILE_MX
:delete $ZIPFILE_MX
- :sys $VIM -e -c "set ff=unix | wq" es_MX.dic
+ :sys $VIM -u NONE -e -c "set ff=unix | wq" es_MX.dic
@if not os.path.exists('es_MX.orig.aff'):
:copy es_MX.aff es_MX.orig.aff
@if not os.path.exists('es_MX.orig.dic'):
diff --git a/runtime/spell/ku/main.aap b/runtime/spell/ku/main.aap
index 200fb2f1e..987e6dbea 100644
--- a/runtime/spell/ku/main.aap
+++ b/runtime/spell/ku/main.aap
@@ -36,9 +36,9 @@ ku_TR.aff ku_TR.dic: {buildcheck=}
:fetch ku_TR.zip
:sys $UNZIP ku_TR.zip
:delete ku_TR.zip
- :sys $VIM ku_TR.aff -e -c "set ff=unix" -c update -c q
- :sys $VIM ku_TR.dic -e -c "set ff=unix" -c update -c q
- :sys $VIM README_ku_TR.txt -e -c "set ff=unix" -c update -c q
+ :sys $VIM ku_TR.aff -u NONE -e -c "set ff=unix" -c update -c q
+ :sys $VIM ku_TR.dic -u NONE -e -c "set ff=unix" -c update -c q
+ :sys $VIM README_ku_TR.txt -u NONE -e -c "set ff=unix" -c update -c q
@if not os.path.exists('ku_TR.orig.aff'):
:copy ku_TR.aff ku_TR.orig.aff
@if not os.path.exists('ku_TR.orig.dic'):
diff --git a/runtime/spell/lv/main.aap b/runtime/spell/lv/main.aap
index 10cacd82a..460bd2b1f 100644
--- a/runtime/spell/lv/main.aap
+++ b/runtime/spell/lv/main.aap
@@ -37,9 +37,9 @@ lv_LV.aff lv_LV.dic: {buildcheck=}
:sys $UNZIP lv_LV.zip
:delete lv_LV.zip
:delete changelog.txt gpl.txt lin-lv_LV_add.sh win-lv_LV_add.bat
- :sys $VIM lv_LV.aff -e -N -c "%s/\r//" -c update -c q
- :sys $VIM lv_LV.dic -e -N -c "%s/\r//" -c update -c q
- :sys $VIM README_lv_LV.txt -e -c "set ff=unix" -c update -c q
+ :sys $VIM lv_LV.aff -u NONE -e -N -c "%s/\r//" -c update -c q
+ :sys $VIM lv_LV.dic -u NONE -e -N -c "%s/\r//" -c update -c q
+ :sys $VIM README_lv_LV.txt -u NONE -e -c "set ff=unix" -c update -c q
@if not os.path.exists('lv_LV.orig.aff'):
:copy lv_LV.aff lv_LV.orig.aff
@if not os.path.exists('lv_LV.orig.dic'):
diff --git a/runtime/spell/main.aap b/runtime/spell/main.aap
index a0e1fe3a2..269c710bc 100644
--- a/runtime/spell/main.aap
+++ b/runtime/spell/main.aap
@@ -5,8 +5,8 @@
# aap diff create all the diff files
# "hu" is at the end, because it takes a very long time.
-LANG = af am bg ca cs cy da de el en eo es fr fo ga gd gl he hr id it ku
- la lt lv mg mi ms nb nl nn ny pl pt ro ru rw sk sl sv sw
+LANG = af am bg br ca cs cy da de el en eo es fr fo ga gd gl he hr id it
+ ku la lt lv mg mi ms nb nl nn ny pl pt ro ru rw sk sl sv sw
tet th tl tn uk yi zu hu
# TODO:
diff --git a/runtime/spell/ms/main.aap b/runtime/spell/ms/main.aap
index 5716b3b69..09bb3d15c 100644
--- a/runtime/spell/ms/main.aap
+++ b/runtime/spell/ms/main.aap
@@ -36,8 +36,8 @@ ms_MY.aff ms_MY.dic: {buildcheck=}
:fetch ms_MY.zip
:sys $UNZIP ms_MY.zip
:delete ms_MY.zip
- :sys $VIM ms_MY.aff -e -c "set ff=unix" -c update -c q
- :sys $VIM ms_MY.dic -e -c "set ff=unix" -c update -c q
+ :sys $VIM ms_MY.aff -u NONE -e -c "set ff=unix" -c update -c q
+ :sys $VIM ms_MY.dic -u NONE -e -c "set ff=unix" -c update -c q
@if not os.path.exists('ms_MY.orig.aff'):
:copy ms_MY.aff ms_MY.orig.aff
@if not os.path.exists('ms_MY.orig.dic'):
diff --git a/runtime/spell/pt/main.aap b/runtime/spell/pt/main.aap
index b2ad65bf6..3d08faf6d 100644
--- a/runtime/spell/pt/main.aap
+++ b/runtime/spell/pt/main.aap
@@ -67,13 +67,13 @@ pt_BR.aff pt_BR.dic: {buildcheck=}
:fetch $BR_FNAME
:sys $UNZIP $BR_FNAME
:delete $BR_FNAME
- :sys $VIM README_pt_BR.TXT -e -c "set ff=unix" -c update -c q
+ :sys $VIM README_pt_BR.TXT -u NONE -e -c "set ff=unix" -c update -c q
:move README_pt_BR.TXT README_pt_BR.txt
# Vim seems to ignore the dots from the word list.
# Removing words with dot to avoid misbehaviour.
- :sys $VIM pt_BR.dic -e -c "set ff=unix" -c "/\./d" -c update -c q
- :sys $VIM pt_BR.aff -e -c "set ff=unix" -c update -c q
+ :sys $VIM pt_BR.dic -u NONE -e -c "set ff=unix" -c "/\./d" -c update -c q
+ :sys $VIM pt_BR.aff -u NONE -e -c "set ff=unix" -c update -c q
@if not os.path.exists('pt_BR.orig.aff'):
:copy pt_BR.aff pt_BR.orig.aff
@if not os.path.exists('pt_BR.orig.dic'):