Dominique Pelle wrote:

> >> Attached patch adds the AAP files to build the Breton dictionary
> >> for Vim in utf-8 and latin1 encoding from the OpenOffice-3.x Breton
> >> dictionary.
> >>
> >> Breton (Brezhoneg, language code "br") is a Celtic language spoken in
> >> Brittany (west of France) which is closely related to Cornish and Welsh
> >> For more information about Breton, see:
> >>   http://en.wikipedia.org/wiki/Breton_language
> >
> > Thanks.  I'll have a look soon.  Would the same method work for other
> > languages and OpenOffice-3 spell files?
> 
> OpenOffice-3 spell file works well at least for the Breton dictionary.
> I've tested it fairly well.
> 
> I'll give it a try with other languages, but I've just noticed already
> that the OpenOffice-3.x Esperanto dictionary does not work whereas the
> OpenOffice-2.x one works well. ":mkspell! /tmp/eo eo_ilo" gives
> errors:
> 
> Reading affix file eo_ilo.aff ...
> Unrecognized or duplicate item in eo_ilo.aff line 22: LANG
> Invalid value for FLAG in eo_ilo.aff line 25: UTF-8
> Unrecognized or duplicate item in eo_ilo.aff line 27: WORDCHARS
> Unrecognized or duplicate item in eo_ilo.aff line 28: KEY
> Unrecognized or duplicate item in eo_ilo.aff line 31: BREAK
> Unrecognized or duplicate item in eo_ilo.aff line 32: BREAK
> Unrecognized or duplicate item in eo_ilo.aff line 33: BREAK
> 
> ... and the output Vim dictionary eo.utf-8.spl contains some garbage
> words with numbers (looking at output of ":spelldump") for example:
> 
> a-vort0oj
> a-vort0ojn
> a-vort0on

Yeah, they switched from MySpell to HunSpell.  The new one has many
extra features.  Most can be found with :help spell-affix-not-supported.
That's work to verify the resulting word list is valid.

Once you figure it out for one language the next one should be easier.

-- 
Westheimer's Discovery:
        A couple of months in the laboratory can
        frequently save a couple of hours in the library.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

Raspunde prin e-mail lui