summaryrefslogtreecommitdiffstats
path: root/runtime/spell
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-09-19 22:38:48 +0200
committerBram Moolenaar <Bram@vim.org>2014-09-19 22:38:48 +0200
commit91e15e13da0ec7825111133f0342288a47368d6e (patch)
tree351b68b49bf8447710e302db53c009639902794c /runtime/spell
parent3fa57e0d50d90248de9ad1867203b8ce6eedc92a (diff)
Updated runtime files.
Diffstat (limited to 'runtime/spell')
-rw-r--r--runtime/spell/ro/main.aap52
-rw-r--r--runtime/spell/ro/ro_RO.diff68
2 files changed, 66 insertions, 54 deletions
diff --git a/runtime/spell/ro/main.aap b/runtime/spell/ro/main.aap
index c07e2712cf..8f2379dc32 100644
--- a/runtime/spell/ro/main.aap
+++ b/runtime/spell/ro/main.aap
@@ -9,35 +9,43 @@
SPELLDIR = ..
FILES = ro_RO.aff ro_RO.dic
-all: $SPELLDIR/ro.iso-8859-2.spl $SPELLDIR/ro.utf-8.spl \
- $SPELLDIR/ro.cp1250.spl ../README_ro.txt
-
-$SPELLDIR/ro.iso-8859-2.spl : $FILES
- :sys env LANG=ro_RO.ISO8859-2 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ro ro_RO" -c q
+all: $SPELLDIR/ro.utf-8.spl \
+ $SPELLDIR/ro.iso-8859-2.spl \
+ $SPELLDIR/ro.cp1250.spl \
+ ../README_ro.txt
$SPELLDIR/ro.utf-8.spl : $FILES
- :sys env LANG=ro_RO.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ro ro_RO" -c q
+ :sys env LANG=ro_RO.utf8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ro ro_RO" -c q
+# Note: this generates conversion errors, because not all characters can be
+# represented in iso-8859-2.
+$SPELLDIR/ro.iso-8859-2.spl : $FILES
+ :sys env LANG=ro_RO.iso88592 $VIM -u NONE -e -c "mkspell! $SPELLDIR/ro ro_RO" -c q
+
+# Note: this generates conversion errors, because not all characters can be
+# represented in cp1250.
$SPELLDIR/ro.cp1250.spl : $FILES
:sys $VIM -u NONE -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/ro ro_RO" -c q
-../README_ro.txt: README_ro_RO.txt
+../README_ro.txt: README
:copy $source $target
#
# Fetching the files from OpenOffice.org.
#
-OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
-:attr {fetch = $OODIR/%file%} ro_RO.zip
+#OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
+OODIR = http://sourceforge.net/projects/rospell/files/Romanian%20dictionaries/dict-3.3.10
+ZIPFILE = ro_RO.3.3.10.zip
+:attr {fetch = $OODIR/%file%} $ZIPFILE
# 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.
# This is a bit tricky, since the file name includes the date.
ro_RO.aff ro_RO.dic: {buildcheck=}
:assertpkg unzip patch
- :fetch ro_RO.zip
- :sys $UNZIP ro_RO.zip
- :delete ro_RO.zip
+ :fetch $ZIPFILE
+ :sys $UNZIP $ZIPFILE
+ :delete $ZIPFILE
@if not os.path.exists('ro_RO.orig.aff'):
:copy ro_RO.aff ro_RO.orig.aff
@if not os.path.exists('ro_RO.orig.dic'):
@@ -60,12 +68,12 @@ diff:
check:
:assertpkg unzip diff
- :fetch ro_RO.zip
+ :fetch $ZIPFILE
:mkdir tmp
:cd tmp
@try:
@import stat
- :sys $UNZIP ../ro_RO.zip
+ :sys $UNZIP ../$ZIPFILE
:sys {force} diff ../ro_RO.orig.aff ro_RO.aff >d
@if os.stat('d')[stat.ST_SIZE] > 0:
:copy ro_RO.aff ../ro_RO.new.aff
@@ -75,7 +83,19 @@ check:
@finally:
:cd ..
:delete {r}{f}{q} tmp
- :delete ro_RO.zip
-
+ :delete $ZIPFILE
+
+# Remove all the downloaded and generated files.
+clean:
+ :delete ro_RO.aff
+ :delete ro_RO.dic
+ :delete ro_RO.orig.aff
+ :delete ro_RO.orig.dic
+ :delete ro_RO-ante1993.aff
+ :delete ro_RO-ante1993.dic
+ :delete COPYING.GPL
+ :delete COPYING.LGPL
+ :delete COPYING.MPL
+ :delete README
# vim: set sts=4 sw=4 :
diff --git a/runtime/spell/ro/ro_RO.diff b/runtime/spell/ro/ro_RO.diff
index 5477030ab4..2c18228720 100644
--- a/runtime/spell/ro/ro_RO.diff
+++ b/runtime/spell/ro/ro_RO.diff
@@ -1,42 +1,34 @@
-*** ro_RO.orig.aff Wed Aug 31 20:34:38 2005
---- ro_RO.aff Wed Aug 31 20:39:57 2005
+*** ro_RO.orig.aff 2014-08-29 16:29:21.162457824 +0200
+--- ro_RO.aff 2014-09-19 15:29:52.354413307 +0200
***************
-*** 3,4 ****
---- 3,8 ----
+*** 3,5 ****
+ TRY iaăâșțîertolncusmpdbgfzvhjxkwyqACDM
+! KEY qwertyuiop|asdfghjkl|zxcvbnm
-+ FOL ±¢³µ¶¨¹º»¼¾¿±²³´µ¶·¸¹º»¼½¾¿àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
-+ LOW ±¢³µ¶¨¹º»¼¾¿±²³´µ¶·¸¹º»¼½¾¿àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ
-+ UPP ¡¢£¥¦¨©ª«¬®¯±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ
-+
- PFX E Y 1
-***************
-*** 12,15 ****
- SFX L 0 l u
-! SFX L 0 le [^cg] i
-! SFX L 0 i [cg] i
- SFX L 0 le e
---- 16,19 ----
- SFX L 0 l u
-! SFX L 0 le [^cg]i
-! SFX L 0 i [cg]i
- SFX L 0 le e
-***************
-*** 18,20 ****
- SFX U 0 a re
-! SFX U 0 i [^i] ii
-
---- 22,24 ----
- SFX U 0 a re
-! SFX U 0 i [^i]ii
+--- 3,9 ----
+ TRY iaăâșțîertolncusmpdbgfzvhjxkwyqACDM
+! # KEY qwertyuiop|asdfghjkl|zxcvbnm
+!
+! # ignore extra field (specifies type of word?)
+! IGNOREEXTRA
+!
***************
-*** 38,41 ****
- SFX I 0 ului [^ua]
-! SFX I a ii [gc] a
-! SFX I a ei [^cg] a
-
---- 42,45 ----
- SFX I 0 ului [^ua]
-! SFX I a ii [gc]a
-! SFX I a ei [^cg]a
-
+*** 1546,1553 ****
+ SFX q 0 ilor . adj. m. pl. dat.
+! SFX q 0 ă
+! SFX q 0 a
+! SFX q 0 ei
+! SFX q 0 e
+! SFX q 0 ele
+! SFX q 0 elor
+ PFX q Y 1
+--- 1550,1557 ----
+ SFX q 0 ilor . adj. m. pl. dat.
+! SFX q 0 ă .
+! SFX q 0 a .
+! SFX q 0 ei .
+! SFX q 0 e .
+! SFX q 0 ele .
+! SFX q 0 elor .
+ PFX q Y 1