diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:09:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:09:20 +0000 |
commit | 029f72b1a93430b24b88eb3a72c6114d9f149737 (patch) | |
tree | 765d5c2041967f9c6fef195fe343d9234a030e90 /runtime/spell/pl | |
parent | Initial commit. (diff) | |
download | vim-029f72b1a93430b24b88eb3a72c6114d9f149737.tar.xz vim-029f72b1a93430b24b88eb3a72c6114d9f149737.zip |
Adding upstream version 2:9.1.0016.upstream/2%9.1.0016
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'runtime/spell/pl')
-rw-r--r-- | runtime/spell/pl/main.aap | 92 | ||||
-rw-r--r-- | runtime/spell/pl/pl_PL.diff | 10 |
2 files changed, 102 insertions, 0 deletions
diff --git a/runtime/spell/pl/main.aap b/runtime/spell/pl/main.aap new file mode 100644 index 0000000..74cd1d5 --- /dev/null +++ b/runtime/spell/pl/main.aap @@ -0,0 +1,92 @@ +# Aap recipe for Polish 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 = pl_PL.aff pl_PL.dic + +all: $SPELLDIR/pl.iso-8859-2.spl $SPELLDIR/pl.utf-8.spl \ + $SPELLDIR/pl.cp1250.spl ../README_pl.txt + +$SPELLDIR/pl.iso-8859-2.spl : $FILES + :sys env LANG=pl_PL.ISO8859-2 $VIM -u NONE -e -c "mkspell! $SPELLDIR/pl pl_PL" -c q + +$SPELLDIR/pl.utf-8.spl : $FILES + :sys env LANG=pl_PL.UTF-8 $VIM -u NONE -e -c "mkspell! $SPELLDIR/pl pl_PL" -c q + +$SPELLDIR/pl.cp1250.spl : $FILES + :sys $VIM -u NONE -e -c "set enc=cp1250" -c "mkspell! $SPELLDIR/pl pl_PL" -c q + +../README_pl.txt: README_pl_PL.txt + :copy $source $target + +# +# Fetching the files from OpenOffice.org. +# +#OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries +#:attr {fetch = $OODIR/%file%} pl_PL.zip + +# +# Fetching the files from +# +HTTPDIR = http://www.kurnik.pl/dictionary + +# 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. +pl_PL.aff pl_PL.dic: {buildcheck=} + :assertpkg tar bunzip2 + fname = alt-myspell-pl.tar.bz2 + :attr {fetch = $HTTPDIR/%file%} $fname + :fetch $fname + :sys bunzip2 -c $fname | tar xf - + :move alt-myspell-pl-20[0-9]*/* . + :deldir alt-myspell-pl-20[0-9]* + :delete $fname + @if not os.path.exists('pl_PL.orig.aff'): + :copy pl_PL.aff pl_PL.orig.aff + @if not os.path.exists('pl_PL.orig.dic'): + :copy pl_PL.dic pl_PL.orig.dic + @if os.path.exists('pl_PL.diff'): + :sys patch <pl_PL.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 pl_PL.orig.aff pl_PL.aff >pl_PL.diff + :sys {force} diff -a -C 1 pl_PL.orig.dic pl_PL.dic >>pl_PL.diff + + +# Check for updated spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. + +check: + :assertpkg tar bunzip2 diff + fname = alt-myspell-pl.tar.bz2 + :attr {fetch = $HTTPDIR/%file%} $fname + :fetch $fname + :sys bunzip2 -c $fname | tar xf - + :cd alt-myspell-pl-20[0-9]* + @try: + @import stat + :sys $UNZIP ../pl_PL.zip + :sys {force} diff ../pl_PL.orig.aff pl_PL.aff >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy pl_PL.aff ../pl_PL.new.aff + :sys {force} diff ../pl_PL.orig.dic pl_PL.dic >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy pl_PL.dic ../pl_PL.new.dic + @finally: + :cd .. + :delete {r}{f}{q} $base + :delete $fname + + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/pl/pl_PL.diff b/runtime/spell/pl/pl_PL.diff new file mode 100644 index 0000000..a53ead3 --- /dev/null +++ b/runtime/spell/pl/pl_PL.diff @@ -0,0 +1,10 @@ +*** pl_PL.orig.aff Fri Jul 8 06:50:06 2005 +--- pl_PL.aff Fri Jul 8 23:03:48 2005 +*************** +*** 3,4 **** +--- 3,7 ---- + ++ FOL ±¢³µ¶¨¹º»¼¾¿±²³´µ¶·¸¹º»¼½¾¿àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ ++ LOW ±¢³µ¶¨¹º»¼¾¿±²³´µ¶·¸¹º»¼½¾¿àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿ ++ UPP ¡¢£¥¦¨©ª«¬®¯±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßÿ + |