Improve support of Hunspell in ispell dictionary.

Teodor Sigaev <teodor@sigaev.ru>

Commit: d78a7d9c7fa3e9cd494b906f065fe7b7fe9fb9a5
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2016-03-04T17:08:47Z
Releases: 9.6.0
Improve support of Hunspell in ispell dictionary.

Now it's possible to load recent version of Hunspell for several languages.
To handle these dictionaries Hunspell patch adds support for:
* FLAG long - sets the double extended ASCII character flag type
* FLAG num - sets the decimal number flag type (from 1 to 65535)
* AF parameter - alias for flag's set

Also it moves test dictionaries into separate directory.

Author: Artur Zakirov with editorization by me

Files

PathChange+/−
doc/src/sgml/textsearch.sgml modified +140 −8
src/backend/tsearch/dicts/hunspell_sample.affix (from src/backend/tsearch/hunspell_sample.affix) renamed +0 −0
src/backend/tsearch/dicts/hunspell_sample_long.affix added +35 −0
src/backend/tsearch/dicts/hunspell_sample_long.dict added +8 −0
src/backend/tsearch/dicts/hunspell_sample_num.affix added +26 −0
src/backend/tsearch/dicts/hunspell_sample_num.dict added +8 −0
src/backend/tsearch/dicts/ispell_sample.affix (from src/backend/tsearch/ispell_sample.affix) renamed +0 −0
src/backend/tsearch/dicts/ispell_sample.dict (from src/backend/tsearch/ispell_sample.dict) renamed +0 −0
src/backend/tsearch/dicts/synonym_sample.syn (from src/backend/tsearch/synonym_sample.syn) renamed +0 −0
src/backend/tsearch/dicts/thesaurus_sample.ths (from src/backend/tsearch/thesaurus_sample.ths) renamed +0 −0
src/backend/tsearch/Makefile modified +5 −2
src/backend/tsearch/spell.c modified +544 −67
src/include/tsearch/dicts/spell.h modified +39 −12
src/test/regress/expected/tsdicts.out modified +234 −0
src/test/regress/sql/tsdicts.sql modified +64 −0

Documentation touched