Package: myspell-nl

Version: 1:2.10-1

 

Debian version: 7.6

 

The problem is that the file /usr/share/hunspell/nl.aff (part of the
myspell-nl package) gives errors if you construct a ispell Dictionary with
it in PostgreSQL as follow:

CREATE TEXT SEARCH DICTIONARY dutch_ispell (

    template = ispell,

    DictFile = nl,

    AffFile = nl,

    StopWords = dutch

);

 

The error reads:

ERROR:  wrong affix file format for flag

CONTEXT:  line 827 of configuration file
"/usr/share/postgresql/9.3/tsearch_data/nl.affix": "SFX CA Y 2"

 

In the /usr/share/hunspell/nl.aff file it says:

# accept an optional  - when compounding, first part 

# the second line allows for the optional hyphen 

SFX CA Y 2 

SFX CA 0 /CaCp 

SFX CA 0 -/CaCp

 

 

In the PostgreSQL documentation it reads (
<http://www.postgresql.org/docs/8.3/static/textsearch-dictionaries.html#TEXT
SEARCH-ISPELL-DICTIONARY>
http://www.postgresql.org/docs/8.3/static/textsearch-dictionaries.html#TEXTS
EARCH-ISPELL-DICTIONARY):

Note: MySpell does not support compound words. Hunspell has sophisticated
support for compound words. At present, PostgreSQL implements only the basic
compound word operations of Hunspell.

 

So the problems are:

- The package Myspell-nl appears to deliver a Hunspell dictionary (there is
not even a  simlink in the /usr/share/myspell/dits/ directory, there are
simlinks there for the Hunspell files installed through the Hunspell-en and
Hunspell-de packages)

- PostgreSQL does not support COMPOUND words in Hunspell files (or at least
not the way it is done in the Dutch affix file)

- Since I only know this error to appear in PostgreSQL when using the Dutch
myspell files I don't know where to report this, the myspell-nl package or
the PostgreSQL-common package. The PostgreSQL-common package comes with the
"pg_updatedicts" this automatically copies supported installed files to
/var/cache/postgresql/dicts/ and creates links to them in
/usr/share/postgresql/9.3/tsearch_data. The myspell-nl puts the files in a
place where pg_updatedicts expects them to be compatible with PostgreSQL.

 

Hope it helps

Reply via email to