pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Improve support of Hunspell in ispell dictionary.
8+ messages / 3 participants
[nested] [flat]
* pgsql: Improve support of Hunspell in ispell dictionary.
@ 2016-03-04 17:08 Teodor Sigaev <teodor@sigaev.ru>
2016-03-04 18:24 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Artur Zakirov <a.zakirov@postgrespro.ru>
2016-03-06 14:53 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Peter Eisentraut <peter_e@gmx.net>
2016-03-07 14:49 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Peter Eisentraut <peter_e@gmx.net>
0 siblings, 3 replies; 8+ messages in thread
From: Teodor Sigaev @ 2016-03-04 17:08 UTC (permalink / raw)
To: pgsql-committers
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d78a7d9c7fa3e9cd494b906f065fe7b7fe9fb9a5
Modified Files
--------------
doc/src/sgml/textsearch.sgml | 148 ++++-
src/backend/tsearch/Makefile | 7 +-
src/backend/tsearch/dicts/hunspell_sample.affix | 24 +
.../tsearch/dicts/hunspell_sample_long.affix | 35 ++
.../tsearch/dicts/hunspell_sample_long.dict | 8 +
.../tsearch/dicts/hunspell_sample_num.affix | 26 +
src/backend/tsearch/dicts/hunspell_sample_num.dict | 8 +
src/backend/tsearch/dicts/ispell_sample.affix | 26 +
src/backend/tsearch/dicts/ispell_sample.dict | 8 +
src/backend/tsearch/dicts/synonym_sample.syn | 5 +
src/backend/tsearch/dicts/thesaurus_sample.ths | 17 +
src/backend/tsearch/hunspell_sample.affix | 24 -
src/backend/tsearch/ispell_sample.affix | 26 -
src/backend/tsearch/ispell_sample.dict | 8 -
src/backend/tsearch/spell.c | 611 ++++++++++++++++++---
src/backend/tsearch/synonym_sample.syn | 5 -
src/backend/tsearch/thesaurus_sample.ths | 17 -
src/include/tsearch/dicts/spell.h | 51 +-
src/test/regress/expected/tsdicts.out | 234 ++++++++
src/test/regress/sql/tsdicts.sql | 64 +++
20 files changed, 1183 insertions(+), 169 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Improve support of Hunspell in ispell dictionary.
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
@ 2016-03-04 18:24 ` Artur Zakirov <a.zakirov@postgrespro.ru>
2016-03-04 18:38 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
2 siblings, 1 reply; 8+ messages in thread
From: Artur Zakirov @ 2016-03-04 18:24 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers
Thank you for commit.
This commit did not pass regression tests in Windows Server in
pgbuildfarm. Attached patch fix it.
On 04.03.2016 20:08, Teodor Sigaev wrote:
> 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
>
> Branch
> ------
> master
>
> Details
> -------
> http://git.postgresql.org/pg/commitdiff/d78a7d9c7fa3e9cd494b906f065fe7b7fe9fb9a5
>
> Modified Files
> --------------
> doc/src/sgml/textsearch.sgml | 148 ++++-
> src/backend/tsearch/Makefile | 7 +-
> src/backend/tsearch/dicts/hunspell_sample.affix | 24 +
> .../tsearch/dicts/hunspell_sample_long.affix | 35 ++
> .../tsearch/dicts/hunspell_sample_long.dict | 8 +
> .../tsearch/dicts/hunspell_sample_num.affix | 26 +
> src/backend/tsearch/dicts/hunspell_sample_num.dict | 8 +
> src/backend/tsearch/dicts/ispell_sample.affix | 26 +
> src/backend/tsearch/dicts/ispell_sample.dict | 8 +
> src/backend/tsearch/dicts/synonym_sample.syn | 5 +
> src/backend/tsearch/dicts/thesaurus_sample.ths | 17 +
> src/backend/tsearch/hunspell_sample.affix | 24 -
> src/backend/tsearch/ispell_sample.affix | 26 -
> src/backend/tsearch/ispell_sample.dict | 8 -
> src/backend/tsearch/spell.c | 611 ++++++++++++++++++---
> src/backend/tsearch/synonym_sample.syn | 5 -
> src/backend/tsearch/thesaurus_sample.ths | 17 -
> src/include/tsearch/dicts/spell.h | 51 +-
> src/test/regress/expected/tsdicts.out | 234 ++++++++
> src/test/regress/sql/tsdicts.sql | 64 +++
> 20 files changed, 1183 insertions(+), 169 deletions(-)
>
>
--
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Attachments:
tsearch-dicts-for-windows.patch (text/x-patch, 575B) download
*** a/src/tools/msvc/Install.pm
--- b/src/tools/msvc/Install.pm
***************
*** 143,149 **** sub Install
$target . '/share/tsearch_data/');
CopySetOfFiles(
'Dictionaries sample files',
! [ glob("src\\backend\\tsearch\\*_sample.*") ],
$target . '/share/tsearch_data/');
my $pl_extension_files = [];
--- 143,149 ----
$target . '/share/tsearch_data/');
CopySetOfFiles(
'Dictionaries sample files',
! [ glob("src\\backend\\tsearch\\dicts\\*_sample*") ],
$target . '/share/tsearch_data/');
my $pl_extension_files = [];
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Improve support of Hunspell in ispell dictionary.
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
2016-03-04 18:24 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Artur Zakirov <a.zakirov@postgrespro.ru>
@ 2016-03-04 18:38 ` Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 0 replies; 8+ messages in thread
From: Teodor Sigaev @ 2016-03-04 18:38 UTC (permalink / raw)
To: Artur Zakirov <a.zakirov@postgrespro.ru>; pgsql-committers
Thank you, pushed
Artur Zakirov wrote:
> Thank you for commit.
>
> This commit did not pass regression tests in Windows Server in pgbuildfarm.
> Attached patch fix it.
>
> On 04.03.2016 20:08, Teodor Sigaev wrote:
>> 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
>>
>> Branch
>> ------
>> master
>>
>> Details
>> -------
>> http://git.postgresql.org/pg/commitdiff/d78a7d9c7fa3e9cd494b906f065fe7b7fe9fb9a5
>>
>> Modified Files
>> --------------
>> doc/src/sgml/textsearch.sgml | 148 ++++-
>> src/backend/tsearch/Makefile | 7 +-
>> src/backend/tsearch/dicts/hunspell_sample.affix | 24 +
>> .../tsearch/dicts/hunspell_sample_long.affix | 35 ++
>> .../tsearch/dicts/hunspell_sample_long.dict | 8 +
>> .../tsearch/dicts/hunspell_sample_num.affix | 26 +
>> src/backend/tsearch/dicts/hunspell_sample_num.dict | 8 +
>> src/backend/tsearch/dicts/ispell_sample.affix | 26 +
>> src/backend/tsearch/dicts/ispell_sample.dict | 8 +
>> src/backend/tsearch/dicts/synonym_sample.syn | 5 +
>> src/backend/tsearch/dicts/thesaurus_sample.ths | 17 +
>> src/backend/tsearch/hunspell_sample.affix | 24 -
>> src/backend/tsearch/ispell_sample.affix | 26 -
>> src/backend/tsearch/ispell_sample.dict | 8 -
>> src/backend/tsearch/spell.c | 611 ++++++++++++++++++---
>> src/backend/tsearch/synonym_sample.syn | 5 -
>> src/backend/tsearch/thesaurus_sample.ths | 17 -
>> src/include/tsearch/dicts/spell.h | 51 +-
>> src/test/regress/expected/tsdicts.out | 234 ++++++++
>> src/test/regress/sql/tsdicts.sql | 64 +++
>> 20 files changed, 1183 insertions(+), 169 deletions(-)
>>
>>
>
>
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Improve support of Hunspell in ispell dictionary.
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
@ 2016-03-06 14:53 ` Peter Eisentraut <peter_e@gmx.net>
2016-03-06 19:31 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Artur Zakirov <a.zakirov@postgrespro.ru>
2 siblings, 1 reply; 8+ messages in thread
From: Peter Eisentraut @ 2016-03-06 14:53 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers
On 3/4/16 12:08 PM, Teodor Sigaev wrote:
> 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.
Are the blank lines at the end of the new affix sample files necessary?
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Improve support of Hunspell in ispell dictionary.
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
2016-03-06 14:53 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Peter Eisentraut <peter_e@gmx.net>
@ 2016-03-06 19:31 ` Artur Zakirov <a.zakirov@postgrespro.ru>
0 siblings, 0 replies; 8+ messages in thread
From: Artur Zakirov @ 2016-03-06 19:31 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers
On 06.03.2016 17:53, Peter Eisentraut wrote:
> On 3/4/16 12:08 PM, Teodor Sigaev wrote:
>> 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.
>
> Are the blank lines at the end of the new affix sample files necessary?
>
>
>
Actually this blank lines are not necessary. New affix sample files was
just copied from hunspell_sample.affix and modified. The
hunspell_sample.affix has two blank lines at the end before and after
the commit too, if I am not mistaken. The ispell_sample.affix and the
ispell_sample.dict have one blank line at the end before and after the
commit.
--
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Improve support of Hunspell in ispell dictionary.
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
@ 2016-03-07 14:49 ` Peter Eisentraut <peter_e@gmx.net>
2016-03-07 21:03 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Artur Zakirov <a.zakirov@postgrespro.ru>
2 siblings, 1 reply; 8+ messages in thread
From: Peter Eisentraut @ 2016-03-07 14:49 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers
On 3/4/16 12:08 PM, Teodor Sigaev wrote:
> 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.
The uninstall target in src/backend/tsearch/Makefile doesn't work
anymore, because it tries to uninstall from, e.g.,
share/tsearch_data/dicts/hunspell_sample_long.dict, but the files are at
share/tsearch_data/dicts/hunspell_sample_long.dict .
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Improve support of Hunspell in ispell dictionary.
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
2016-03-07 14:49 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Peter Eisentraut <peter_e@gmx.net>
@ 2016-03-07 21:03 ` Artur Zakirov <a.zakirov@postgrespro.ru>
2016-03-08 01:39 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 8+ messages in thread
From: Artur Zakirov @ 2016-03-07 21:03 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers
On 07.03.2016 17:49, Peter Eisentraut wrote:
> On 3/4/16 12:08 PM, Teodor Sigaev wrote:
>> 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.
>
> The uninstall target in src/backend/tsearch/Makefile doesn't work
> anymore, because it tries to uninstall from, e.g.,
> share/tsearch_data/dicts/hunspell_sample_long.dict, but the files are at
> share/tsearch_data/dicts/hunspell_sample_long.dict .
>
>
>
Thank you for notice that. Indeed. It is my fault.
Attached patch should fix it.
--
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Attachments:
tsearch-makefile-uninstall-data.patch (text/x-patch, 1.8K) download
*** a/src/backend/tsearch/Makefile
--- b/src/backend/tsearch/Makefile
***************
*** 13,23 **** include $(top_builddir)/src/Makefile.global
DICTDIR=tsearch_data
! DICTFILES=dicts/synonym_sample.syn dicts/thesaurus_sample.ths \
! dicts/hunspell_sample.affix \
! dicts/ispell_sample.affix dicts/ispell_sample.dict \
! dicts/hunspell_sample_long.affix dicts/hunspell_sample_long.dict \
! dicts/hunspell_sample_num.affix dicts/hunspell_sample_num.dict
OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
dict_simple.o dict_synonym.o dict_thesaurus.o \
--- 13,27 ----
DICTDIR=tsearch_data
! # List of dictionaries files
! DICTFILES=synonym_sample.syn thesaurus_sample.ths \
! hunspell_sample.affix \
! ispell_sample.affix ispell_sample.dict \
! hunspell_sample_long.affix hunspell_sample_long.dict \
! hunspell_sample_num.affix hunspell_sample_num.dict
!
! # Local paths to dictionaries files
! DICTFILES_PATH=$(addprefix dicts/,$(DICTFILES))
OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
dict_simple.o dict_synonym.o dict_thesaurus.o \
***************
*** 27,34 **** OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
include $(top_srcdir)/src/backend/common.mk
.PHONY: install-data
! install-data: $(DICTFILES) installdirs
! $(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES)) '$(DESTDIR)$(datadir)/$(DICTDIR)/'
installdirs:
$(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'
--- 31,38 ----
include $(top_srcdir)/src/backend/common.mk
.PHONY: install-data
! install-data: $(DICTFILES_PATH) installdirs
! $(INSTALL_DATA) $(addprefix $(srcdir)/,$(DICTFILES_PATH)) '$(DESTDIR)$(datadir)/$(DICTDIR)/'
installdirs:
$(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Improve support of Hunspell in ispell dictionary.
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
2016-03-07 14:49 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Peter Eisentraut <peter_e@gmx.net>
2016-03-07 21:03 ` Re: pgsql: Improve support of Hunspell in ispell dictionary. Artur Zakirov <a.zakirov@postgrespro.ru>
@ 2016-03-08 01:39 ` Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 8+ messages in thread
From: Peter Eisentraut @ 2016-03-08 01:39 UTC (permalink / raw)
To: Artur Zakirov <a.zakirov@postgrespro.ru>; Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers
On 3/7/16 4:03 PM, Artur Zakirov wrote:
> On 07.03.2016 17:49, Peter Eisentraut wrote:
>> The uninstall target in src/backend/tsearch/Makefile doesn't work
>> anymore, because it tries to uninstall from, e.g.,
>> share/tsearch_data/dicts/hunspell_sample_long.dict, but the files are at
>> share/tsearch_data/dicts/hunspell_sample_long.dict .
>
> Thank you for notice that. Indeed. It is my fault.
>
> Attached patch should fix it.
Thanks.
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2016-03-08 01:39 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-03-04 17:08 pgsql: Improve support of Hunspell in ispell dictionary. Teodor Sigaev <teodor@sigaev.ru>
2016-03-04 18:24 ` Artur Zakirov <a.zakirov@postgrespro.ru>
2016-03-04 18:38 ` Teodor Sigaev <teodor@sigaev.ru>
2016-03-06 14:53 ` Peter Eisentraut <peter_e@gmx.net>
2016-03-06 19:31 ` Artur Zakirov <a.zakirov@postgrespro.ru>
2016-03-07 14:49 ` Peter Eisentraut <peter_e@gmx.net>
2016-03-07 21:03 ` Artur Zakirov <a.zakirov@postgrespro.ru>
2016-03-08 01:39 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox