updated for version 7.0140
diff --git a/runtime/spell/pt/main.aap b/runtime/spell/pt/main.aap
new file mode 100644
index 0000000..91c689b
--- /dev/null
+++ b/runtime/spell/pt/main.aap
@@ -0,0 +1,123 @@
+# Aap recipe for Portuguese 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    = pt_PT.aff pt_PT.dic
+	   pt_BR.aff pt_BR.dic
+
+all: $SPELLDIR/pt.latin1.spl $SPELLDIR/pt.utf-8.spl \
+        ../README_pt.txt
+
+$SPELLDIR/pt.latin1.spl : $FILES
+        :sys env LANG=pt_PT.ISO8859-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
+		$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
+
+#
+# Fetching the files from OpenOffice.org.
+#
+OODIR = http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
+:attr {fetch = $OODIR/%file%} pt_PT.zip pt_BR.zip
+
+# 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_PT.zip
+        :sys $UNZIP pt_PT.zip
+        :delete pt_PT.zip
+        :sys $VIM pt_PT.dic -e -c "set ff=unix" -c update -c q
+        :sys $VIM README_pt_PT.txt -e -c "set ff=unix" -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
+
+pt_BR.aff pt_BR.dic: {buildcheck=}
+        :assertpkg unzip patch
+        :fetch pt_BR.zip
+        :sys $UNZIP pt_BR.zip
+        :delete pt_BR.zip
+        :sys $VIM pt_BR.aff -e -c "set ff=unix" -c update -c q
+        :sys $VIM pt_BR.dic -e -c "set ff=unix" -c update -c q
+        :sys $VIM README_pt_BR.txt -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'):
+            :copy pt_BR.dic pt_BR.orig.dic
+        @if os.path.exists('pt_BR.diff'):
+            :sys patch <pt_BR.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 pt_PT.orig.aff pt_PT.aff >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
+
+
+# Check for updated OpenOffice spell files.  When there are changes the
+# ".new.aff" and ".new.dic" files are left behind for manual inspection.
+
+check: check-us check-au
+
+check-us:
+        :assertpkg unzip diff
+        :fetch pt_PT.zip
+        :mkdir tmp
+        :cd tmp
+        @try:
+            @import stat
+            :sys $UNZIP ../pt_PT.zip
+            :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_PT.zip
+
+check-au:
+        :assertpkg unzip diff
+        :fetch pt_BR.zip
+        :mkdir tmp
+        :cd tmp
+        @try:
+            @import stat
+            :sys $UNZIP ../pt_BR.zip
+            :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 pt_BR.zip
+
+# 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..10b1d7a
--- /dev/null
+++ b/runtime/spell/pt/pt_BR.diff
@@ -0,0 +1,46 @@
+*** pt_BR.orig.aff	Wed Aug 31 20:05:18 2005
+--- pt_BR.aff	Wed Aug 31 20:05:18 2005
+***************
+*** 3,4 ****
+--- 3,22 ----
+  
++ FOL  ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
++ LOW  ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
++ UPP  ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ
++ 
++ SOFOFROM abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ¿
++ SOFOTO   ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep?
++ 
++ MAP 9
++ MAP aàáâãäå
++ MAP eèéêë
++ MAP iìíîï
++ MAP oòóôõö
++ MAP uùúûü
++ MAP nñ
++ MAP cç
++ MAP yÿý
++ MAP sß
++ 
+  # Plural apenas
+***************
+*** 526,534 ****
+  SFX I   ar      ês       dar
+! SFX I   iar     eia       [^]iar
+! SFX I   iar     eiam       [^]iar
+! SFX I   iar     eias       [^]iar
+! SFX I   iar     eie       [^]iar
+! SFX I   iar     eiem       [^]iar
+! SFX I   iar     eies       [^]iar
+! SFX I   iar     eio       [^]iar
+  SFX I   oiar    óia       oiar
+--- 544,552 ----
+  SFX I   ar      ês       dar
+! SFX I   iar     eia       [^o]iar
+! SFX I   iar     eiam       [^o]iar
+! SFX I   iar     eias       [^o]iar
+! SFX I   iar     eie       [^o]iar
+! SFX I   iar     eiem       [^o]iar
+! SFX I   iar     eies       [^o]iar
+! SFX I   iar     eio       [^o]iar
+  SFX I   oiar    óia       oiar
diff --git a/runtime/spell/pt/pt_PT.diff b/runtime/spell/pt/pt_PT.diff
new file mode 100644
index 0000000..653a2d2
--- /dev/null
+++ b/runtime/spell/pt/pt_PT.diff
@@ -0,0 +1,27 @@
+*** pt_PT.orig.aff	Wed Aug 31 20:05:16 2005
+--- pt_PT.aff	Wed Aug 31 20:05:16 2005
+***************
+*** 3,4 ****
+--- 3,24 ----
+  
++ FOL  ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
++ LOW  ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
++ UPP  ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ
++ 
++ SOFOFROM abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþßÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ¿
++ SOFOTO   ebctefghejklnnepkrstevvkesebctefghejklnnepkrstevvkeseeeeeeeceeeeeeeedneeeeeeeeeeepseeeeeeeeceeeeeeeedneeeeeeeeeeep?
++ 
++ MIDWORD	'
++ 
++ MAP 9
++ MAP aàáâãäå
++ MAP eèéêë
++ MAP iìíîï
++ MAP oòóôõö
++ MAP uùúûü
++ MAP nñ
++ MAP cç
++ MAP yÿý
++ MAP sß
++ 
+  PFX A Y 1