mirror of
https://github.com/vim/vim.git
synced 2025-08-25 19:53:53 -04:00
Improved pt_PT spell file generation.
This commit is contained in:
parent
d70b2a8355
commit
0ee8df9ce5
@ -14,15 +14,15 @@ FILES = pt_PT.aff pt_PT.dic
|
|||||||
#
|
#
|
||||||
# Fetching the pt_PT files from the Natura project.
|
# Fetching the pt_PT files from the Natura project.
|
||||||
#
|
#
|
||||||
PT_DIR = http://natura.di.uminho.pt/download/sources/Dictionaries/myspell
|
PT_FNAME = oo3x-pt-PT.oxt
|
||||||
PT_FNAME = myspell.pt-latest.zip
|
PT_DIR = http://extensions.services.openoffice.org/e-files/1196/5/$(PT_FNAME)
|
||||||
:attr {fetch = $PT_DIR/%file%} $PT_FNAME
|
:attr {fetch = $PT_DIR} $PT_FNAME
|
||||||
|
|
||||||
#
|
#
|
||||||
# Fetching the pt_BR files from BrOffice.org (Brazilian OOo).
|
# Fetching the pt_BR files from BrOffice.org (Brazilian OOo).
|
||||||
#
|
#
|
||||||
BR_FNAME = pt_BR-V.zip
|
BR_FNAME = Vero_pt_BR_V207AOC.oxt
|
||||||
BR_DIR = http://www.deso-se.com.br/downloads/broffice.org/$(BR_FNAME)
|
BR_DIR = http://www.broffice.org/files/$(BR_FNAME)
|
||||||
:attr {fetch = $BR_DIR} $BR_FNAME
|
:attr {fetch = $BR_DIR} $BR_FNAME
|
||||||
|
|
||||||
all: $SPELLDIR/pt.latin1.spl $SPELLDIR/pt.utf-8.spl \
|
all: $SPELLDIR/pt.latin1.spl $SPELLDIR/pt.utf-8.spl \
|
||||||
@ -50,11 +50,17 @@ pt_PT.aff pt_PT.dic: {buildcheck=}
|
|||||||
:fetch $PT_FNAME
|
:fetch $PT_FNAME
|
||||||
:sys $UNZIP $PT_FNAME
|
:sys $UNZIP $PT_FNAME
|
||||||
:delete $PT_FNAME
|
:delete $PT_FNAME
|
||||||
:move myspell.pt-*/pt_PT.dic .
|
:move dictionaries/pt_PT.dic .
|
||||||
:move myspell.pt-*/pt_PT.aff .
|
:move dictionaries/pt_PT.aff .
|
||||||
:move myspell.pt-*/README_pt_PT.txt .
|
:move dictionaries/README_pt_PT.txt .
|
||||||
:move myspell.pt-*/COPYING COPYING_pt_PT.txt
|
:move dictionaries/COPYING COPYING_pt_PT.txt
|
||||||
:deldir myspell.pt-*
|
:delete {r}{f} dictionaries
|
||||||
|
:delete {r}{f} META-INF
|
||||||
|
:delete {f} description.xml
|
||||||
|
:delete {f} dictionaries.xcu
|
||||||
|
:delete {f} LICENSES.txt
|
||||||
|
:sys $VIM pt_PT.dic -u NONE -e -c "%s/\t.*//" -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'):
|
@if not os.path.exists('pt_PT.orig.aff'):
|
||||||
:copy pt_PT.aff pt_PT.orig.aff
|
:copy pt_PT.aff pt_PT.orig.aff
|
||||||
@if not os.path.exists('pt_PT.orig.dic'):
|
@if not os.path.exists('pt_PT.orig.dic'):
|
||||||
@ -67,13 +73,11 @@ pt_BR.aff pt_BR.dic: {buildcheck=}
|
|||||||
:fetch $BR_FNAME
|
:fetch $BR_FNAME
|
||||||
:sys $UNZIP $BR_FNAME
|
:sys $UNZIP $BR_FNAME
|
||||||
:delete $BR_FNAME
|
:delete $BR_FNAME
|
||||||
:sys $VIM README_pt_BR.TXT -u NONE -e -c "set ff=unix" -c update -c q
|
:sys $VIM README_pt_BR.TXT -u NONE -N -e -c "set ff=unix" -c update -c q
|
||||||
:move README_pt_BR.TXT README_pt_BR.txt
|
:move README_pt_BR.TXT README_pt_BR.txt
|
||||||
|
|
||||||
# Vim seems to ignore the dots from the word list.
|
:sys $VIM pt_BR.dic -u NONE -N -e -c "set ff=unix" -c update -c q
|
||||||
# Removing words with dot to avoid misbehaviour.
|
:sys $VIM pt_BR.aff -u NONE -N -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'):
|
@if not os.path.exists('pt_BR.orig.aff'):
|
||||||
:copy pt_BR.aff pt_BR.orig.aff
|
:copy pt_BR.aff pt_BR.orig.aff
|
||||||
@if not os.path.exists('pt_BR.orig.dic'):
|
@if not os.path.exists('pt_BR.orig.dic'):
|
||||||
@ -92,6 +96,23 @@ 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.aff pt_BR.aff >pt_BR.diff
|
||||||
:sys {force} diff -a -C 1 pt_BR.orig.dic pt_BR.dic >>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
|
# Check for updated OpenOffice spell files. When there are changes the
|
||||||
# ".new.aff" and ".new.dic" files are left behind for manual inspection.
|
# ".new.aff" and ".new.dic" files are left behind for manual inspection.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
*** pt_BR.orig.aff 2008-02-21 19:41:04.000000000 -0300
|
*** pt_BR.orig.aff 2010-05-15 13:03:45.000000000 +0200
|
||||||
--- pt_BR.aff 2008-02-24 11:08:15.000000000 -0300
|
--- pt_BR.aff 2010-05-15 13:03:45.000000000 +0200
|
||||||
***************
|
***************
|
||||||
*** 1,3 ****
|
*** 1,3 ****
|
||||||
SET ISO8859-1
|
SET ISO8859-1
|
||||||
|
@ -1,58 +1,45 @@
|
|||||||
*** pt_PT.orig.aff 2008-02-21 19:40:49.000000000 -0300
|
*** pt_PT.orig.aff 2010-08-10 22:36:56.000000000 +0200
|
||||||
--- pt_PT.aff 2008-02-24 11:14:39.000000000 -0300
|
--- pt_PT.aff 2010-08-10 22:43:56.000000000 +0200
|
||||||
***************
|
***************
|
||||||
*** 1,4 ****
|
*** 1,6 ****
|
||||||
SET ISO8859-1
|
SET UTF-8
|
||||||
- TRY aerisontcdmlupvgbfzáhçqjíxãóéêâúõACMPSBTELGRIFVDkHJONôywUKXZWQÁYÍÉàÓèÂÚ
|
! LANG pt_PT
|
||||||
|
! TRY aerisontcdmlupvgbfzáhçqjíxãóéêâúõACMPSBTELGRIFVDkHJONôywUKXZWQÁYÍÉàÓèÂÚ
|
||||||
|
! KEY qwertyuiop|asdfghjkl|zxcvbnm
|
||||||
|
! WORDCHARS -
|
||||||
|
|
||||||
|
--- 1,10 ----
|
||||||
--- 1,17 ----
|
SET UTF-8
|
||||||
SET ISO8859-1
|
! #LANG pt_PT
|
||||||
|
! #TRY aerisontcdmlupvgbfzáhçqjíxãóéêâúõACMPSBTELGRIFVDkHJONôywUKXZWQÁYÍÉàÓèÂÚ
|
||||||
+ NAME European Portuguese
|
! #KEY qwertyuiop|asdfghjkl|zxcvbnm
|
||||||
+ VERSION 2008-07-05
|
! #WORDCHARS -
|
||||||
+ HOME http://natura.di.uminho.pt/
|
!
|
||||||
+ AUTHOR Rui Vilela
|
! FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
|
||||||
+ EMAIL ruivilela AT di DOT uminho DOT pt
|
! LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
|
||||||
+ AUTHOR José João de Almeira
|
! UPP ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ
|
||||||
+ EMAIL jj AT di DOT uminho DOT pt
|
|
||||||
+ AUTHOR Alberto Simões
|
|
||||||
+ EMAIL ambs AT di DOT uminho DOT pt
|
|
||||||
+ COPYRIGHT GPL, LGPL, MPL
|
|
||||||
+
|
|
||||||
+ FOL ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
|
|
||||||
+ LOW ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
|
|
||||||
+ UPP ßÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞÿ
|
|
||||||
|
|
||||||
***************
|
***************
|
||||||
*** 1047,1048 ****
|
*** 1300,1312 ****
|
||||||
--- 1060,1063 ----
|
|
||||||
SFX J e ódromo e
|
|
||||||
+
|
|
||||||
+
|
|
||||||
REP 24
|
|
||||||
***************
|
|
||||||
*** 1073,1086 ****
|
|
||||||
|
|
||||||
! MAP 11
|
! MAP 11
|
||||||
! MAP aá
|
! MAP aá
|
||||||
! MAP aã
|
! MAP aã
|
||||||
! MAP aâ
|
! MAP aâ
|
||||||
! MAP eé
|
! MAP eé
|
||||||
! MAP eê
|
! MAP eê
|
||||||
! MAP ií
|
! MAP ií
|
||||||
MAP cç
|
MAP cç
|
||||||
! MAP oó
|
! MAP oó
|
||||||
! MAP oô
|
! MAP oô
|
||||||
! MAP oõ
|
! MAP oõ
|
||||||
! MAP uú
|
! MAP uú
|
||||||
!
|
--- 1304,1311 ----
|
||||||
--- 1088,1095 ----
|
|
||||||
|
|
||||||
! MAP 6
|
! MAP 6
|
||||||
! MAP aáãâAÁÃÂ
|
! MAP aáãâAÁÃÂ
|
||||||
! MAP eéêEÉÊ
|
! MAP eéêEÉÊ
|
||||||
! MAP iíIÍ
|
! MAP iíIÍ
|
||||||
MAP cç
|
MAP cç
|
||||||
! MAP oóõôOÓÕÔ
|
! MAP oóõôOÓÕÔ
|
||||||
! MAP uúüUÚÜ
|
! MAP uúüUÚÜ
|
||||||
|
Loading…
x
Reference in New Issue
Block a user