On Mon, Jun 05, 2006 at 01:05:25PM -0300, Jakson A. Aquino wrote:
> [...] the list of words for the Portuguese language as
> spoken in Brazil is a bit incomplete (I've got it from
> http://ftp.vim.org/pub/vim/runtime/spell/). A possible
> solution to the problem is the use of the new list released
> by BrOffice, the Brazilian branch of OpenOffice:
> 
>   the files .dic and .aff:
>   http://www.deso-se.com.br/downloads/pt_br-1400.zip
> 
>   the website (in Portuguese):
>   http://www.openoffice.org.br/?q=verortografico
> 
> According to the BrOffice team, this new list has 1.400.000
> words, and fixes many errors of the old list.  The problem is
> that the command ":mkspell pt pt_BR" produce the pt.utf8.spl
> file, but the following error message is repeated hundreds of
> times (with different line numbers):
> 
>   "Unrecognized or duplicate item in pt_BR.aff line 548: SXF"

I downloaded the OpenOffice source code and, then, discovered what was
happening. All instances of "SXF" in the pt_BR.aff file must be
replaced with "SFX". The invalid flag is not causing problems for
OpenOffice because myspell ignores the first field of all lines but
the first of a rule of expansion, and the "SXF" flag never appears in
the first line. Vim reads the first field of all lines and, thus, it
was able to spot the invalid flag.


Reply via email to