From 029f72b1a93430b24b88eb3a72c6114d9f149737 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:09:20 +0200 Subject: Adding upstream version 2:9.1.0016. Signed-off-by: Daniel Baumann --- runtime/spell/pt/main.aap | 168 ++++++++++++++++++++++++++++++++++++++++++++ runtime/spell/pt/pt_BR.diff | 88 +++++++++++++++++++++++ runtime/spell/pt/pt_PT.diff | 45 ++++++++++++ 3 files changed, 301 insertions(+) create mode 100644 runtime/spell/pt/main.aap create mode 100644 runtime/spell/pt/pt_BR.diff create mode 100644 runtime/spell/pt/pt_PT.diff (limited to 'runtime/spell/pt') diff --git a/runtime/spell/pt/main.aap b/runtime/spell/pt/main.aap new file mode 100644 index 0000000..d7be764 --- /dev/null +++ b/runtime/spell/pt/main.aap @@ -0,0 +1,168 @@ +# Aap recipe for Portuguese Vim spell files. +# See ftp://ftp.vim.org/pub/vim/runtime/spell/README.txt + +# Use a freshly compiled Vim if it exists. +@if os.path.exists('../../../src/vim'): + VIM = ../../../src/vim +@else: + :progsearch VIM vim + +SPELLDIR = .. +FILES = pt_PT.aff pt_PT.dic + pt_BR.aff pt_BR.dic + +# +# Fetching the pt_PT files from the Natura project. +# +PT_FNAME = oo3x-pt-PT.oxt +PT_DIR = http://extensions.services.openoffice.org/e-files/1196/5/$(PT_FNAME) +:attr {fetch = $PT_DIR} $PT_FNAME + +# +# Fetching the pt_BR files from BrOffice.org (Brazilian OOo). +# +BR_FNAME = Vero_pt_BR_V207AOC.oxt +BR_DIR = http://www.broffice.org/files/$(BR_FNAME) +:attr {fetch = $BR_DIR} $BR_FNAME + +all: $SPELLDIR/pt.latin1.spl $SPELLDIR/pt.utf-8.spl \ + ../README_pt.txt + +$SPELLDIR/pt.latin1.spl : $FILES + :sys env LANG=pt_PT.ISO-8859-1 LC_ALL=pt_PT.ISO-8859-1 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/pt pt_PT pt_BR" -c q + +$SPELLDIR/pt.utf-8.spl : $FILES + :sys env LANG=pt_PT.UTF-8 LC_ALL=pt_PT.UTF-8 + $VIM -u NONE -e -c "mkspell! $SPELLDIR/pt pt_PT pt_BR" -c q + +../README_pt.txt: README_pt_PT.txt README_pt_BR.txt + :print pt_PT >!$target + :cat README_pt_PT.txt | :eval re.sub('\r', '', stdin) >>$target + :print =================================================== >>$target + :print pt_BR: >>$target + :cat README_pt_BR.txt | :eval re.sub('\r', '', stdin) >>$target + +# 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. +pt_PT.aff pt_PT.dic: {buildcheck=} + :assertpkg unzip patch + :fetch $PT_FNAME + :sys $UNZIP $PT_FNAME + :delete $PT_FNAME + :move dictionaries/pt_PT.dic . + :move dictionaries/pt_PT.aff . + :move dictionaries/README_pt_PT.txt . + :move dictionaries/COPYING COPYING_pt_PT.txt + :delete {r}{f} dictionaries + :delete {r}{f} META-INF + :delete {f} description.xml + :delete {f} dictionaries.xcu + :delete {f} LICENSES.txt + # Remove grammar items and the duplicates this causes + :sys $VIM pt_PT.dic -u NONE -e -c "%s/\t.*//" -c "2,$$ sort u" -c update -c q + :sys $VIM pt_PT.aff -u NONE -e -c "%s/\S\+=\S\+$$//" -c update -c q + @if not os.path.exists('pt_PT.orig.aff'): + :copy pt_PT.aff pt_PT.orig.aff + @if not os.path.exists('pt_PT.orig.dic'): + :copy pt_PT.dic pt_PT.orig.dic + @if os.path.exists('pt_PT.diff'): + :sys patch pt_PT.diff + :sys {force} diff -a -C 1 pt_PT.orig.dic pt_PT.dic >>pt_PT.diff + :sys {force} diff -a -C 1 pt_BR.orig.aff pt_BR.aff >pt_BR.diff + :sys {force} diff -a -C 1 pt_BR.orig.dic pt_BR.dic >>pt_BR.diff + +# Delete all downloaded and generated files. +clean: clean_pt_BR clean_pt_PT + +clean_pt_BR: + :delete {f} pt_BR.aff + :delete {f} pt_BR.dic + :delete {f} pt_BR.orig.aff + :delete {f} pt_BR.orig.dic + :delete {f} README_pt_BR.txt + +clean_pt_PT: + :delete {f} pt_PT.aff + :delete {f} pt_PT.dic + :delete {f} pt_PT.orig.aff + :delete {f} pt_PT.orig.dic + :delete {f} README_pt_PT.txt + :delete {f} COPYING_pt_PT.txt + +# Check for updated OpenOffice spell files. When there are changes the +# ".new.aff" and ".new.dic" files are left behind for manual inspection. +# TO BE IMPLEMENTED + +check: check-pt check-br + +check-pt: + :assertpkg unzip diff + :fetch $PT_FNAME + :mkdir tmp + :cd tmp + @try: + @import stat + :sys $UNZIP ../$PT_FNAME + :sys {force} diff ../pt_PT.orig.aff pt_PT.aff >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy pt_PT.aff ../pt_PT.new.aff + :sys {force} diff ../pt_PT.orig.dic pt_PT.dic >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy pt_PT.dic ../pt_PT.new.dic + @finally: + :cd .. + :delete {r}{f}{q} tmp + :delete $PT_FNAME + +check-br: + :assertpkg unzip diff + :fetch $BR_FNAME + :mkdir tmp + :cd tmp + @try: + @import stat + :sys $UNZIP ../$BR_FNAME + :sys {force} diff ../pt_BR.orig.aff pt_BR.aff >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy pt_BR.aff ../pt_BR.new.aff + :sys {force} diff ../pt_BR.orig.dic pt_BR.dic >d + @if os.stat('d')[stat.ST_SIZE] > 0: + :copy pt_BR.dic ../pt_BR.new.dic + @finally: + :cd .. + :delete {r}{f}{q} tmp + :delete $BR_FNAME + +# vim: set sts=4 sw=4 : diff --git a/runtime/spell/pt/pt_BR.diff b/runtime/spell/pt/pt_BR.diff new file mode 100644 index 0000000..6ccf3f3 --- /dev/null +++ b/runtime/spell/pt/pt_BR.diff @@ -0,0 +1,88 @@ +*** pt_BR.orig.aff 2010-08-11 22:50:41.000000000 +0200 +--- pt_BR.aff 2010-08-11 23:01:57.000000000 +0200 +*************** +*** 1,3 **** + SET ISO8859-1 +! TRY esianrtolcdugmphbyfvkwjqxz + +--- 1,3 ---- + SET ISO8859-1 +! + +*************** +*** 13,14 **** +--- 13,32 ---- + ++ NAME Brazilian Portuguese ++ VERSION 2008-07-07V ++ HOME http://www.broffice.org/verortografico ++ AUTHOR Raimundo Santos Moura ++ EMAIL raimundomoura AT openoffice DOT org ++ AUTHOR Leonardo Ferreira Fontenelle ++ EMAIL leo DOT fontenelle AT gmail DOT org ++ COPYRIGHT LGPL ++ ++ ++ FOL ++ LOW ++ UPP ++ ++ ++ MIDWORD '-. ++ ++ + MAP 6 +*************** +*** 21,41 **** + +! BREAK 15 +! BREAK BREAK +! BREAK ^- +! BREAK -$ +! BREAK ^ex- +! BREAK ^Ex- +! BREAK ^EX- +! BREAK ^recm- +! BREAK ^Recm- +! BREAK ^RECM- +! BREAK ^ps- +! BREAK ^Ps- +! BREAK ^PS- +! BREAK ^pr- +! BREAK ^pr- +! BREAK ^PR- + + # Nmero mximo de sugestes +! MAXNGRAMSUGS 12 + +--- 39,59 ---- + +! #BREAK 15 +! #BREAK BREAK +! #BREAK ^- +! #BREAK -$ +! #BREAK ^ex- +! #BREAK ^Ex- +! #BREAK ^EX- +! #BREAK ^recm- +! #BREAK ^Recm- +! #BREAK ^RECM- +! #BREAK ^ps- +! #BREAK ^Ps- +! #BREAK ^PS- +! #BREAK ^pr- +! #BREAK ^pr- +! #BREAK ^PR- + + # Nmero mximo de sugestes +! #MAXNGRAMSUGS 12 + +*************** +*** 44,46 **** + +! WORDCHARS - + +--- 62,64 ---- + +! #WORDCHARS - + diff --git a/runtime/spell/pt/pt_PT.diff b/runtime/spell/pt/pt_PT.diff new file mode 100644 index 0000000..88411a1 --- /dev/null +++ b/runtime/spell/pt/pt_PT.diff @@ -0,0 +1,45 @@ +*** pt_PT.orig.aff 2010-08-11 22:50:30.000000000 +0200 +--- pt_PT.aff 2010-08-11 22:50:30.000000000 +0200 +*************** +*** 1,6 **** + SET UTF-8 +! LANG pt_PT +! TRY aerisontcdmlupvgbfzáhçqjíxãóéêâúõACMPSBTELGRIFVDkHJONôywUKXZWQÁYÍÉàÓèÂÚ +! KEY qwertyuiop|asdfghjkl|zxcvbnm +! WORDCHARS - + +--- 1,10 ---- + SET UTF-8 +! #LANG pt_PT +! #TRY aerisontcdmlupvgbfzáhçqjíxãóéêâúõACMPSBTELGRIFVDkHJONôywUKXZWQÁYÍÉàÓèÂÚ +! #KEY qwertyuiop|asdfghjkl|zxcvbnm +! #WORDCHARS - +! +! FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ +! LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ +! UPP ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ + +*************** +*** 1300,1312 **** + +! MAP 11 +! MAP aá +! MAP aã +! MAP aâ +! MAP eé +! MAP eê +! MAP ií + MAP cç +! MAP oó +! MAP oô +! MAP oõ +! MAP uú +--- 1304,1311 ---- + +! MAP 6 +! MAP aáãâAÁà+! MAP eéêEÉÊ +! MAP iíIÍ + MAP cç +! MAP oóõôOÓÕÔ +! MAP uúüUÚÜ -- cgit v1.2.3