Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e78219

Browse files
author
Artur Zakirov
committed
Improve support of Hunspell
1 parent2ec35d4 commit1e78219

File tree

6 files changed

+387
-185
lines changed

6 files changed

+387
-185
lines changed

‎src/backend/tsearch/Makefile‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ include $(top_builddir)/src/Makefile.global
1414

1515
DICTDIR=tsearch_data
1616

17-
DICTFILES=dicts/synonym_sample.syn dicts/thesaurus_sample.ths\
18-
dicts/hunspell_sample.affix dicts/ispell_sample.affix dicts/ispell_sample.dict\
19-
dicts/hunspell_sample_long.affix dicts/hunspell_sample_long.dict\
20-
dicts/hunspell_sample_num.affix dicts/hunspell_sample_num.dict
17+
# List of dictionaries files
18+
DICTFILES=synonym_sample.syn thesaurus_sample.ths\
19+
hunspell_sample.affix\
20+
ispell_sample.affix ispell_sample.dict\
21+
hunspell_sample_long.affix hunspell_sample_long.dict\
22+
hunspell_sample_num.affix hunspell_sample_num.dict
23+
24+
# Local paths to dictionaries files
25+
DICTFILES_PATH=$(addprefix dicts/,$(DICTFILES))
2126

2227
OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o\
2328
dict_simple.o dict_synonym.o dict_thesaurus.o\
@@ -27,8 +32,8 @@ OBJS = ts_locale.o ts_parse.o wparser.o wparser_def.o dict.o \
2732
include$(top_srcdir)/src/backend/common.mk
2833

2934
.PHONY: install-data
30-
install-data:$(DICTFILES) installdirs
31-
$(INSTALL_DATA)$(addprefix$(srcdir)/,$(DICTFILES))'$(DESTDIR)$(datadir)/$(DICTDIR)/'
35+
install-data:$(DICTFILES_PATH) installdirs
36+
$(INSTALL_DATA)$(addprefix$(srcdir)/,$(DICTFILES_PATH))'$(DESTDIR)$(datadir)/$(DICTDIR)/'
3237

3338
installdirs:
3439
$(MKDIR_P)'$(DESTDIR)$(datadir)''$(DESTDIR)$(datadir)/$(DICTDIR)'

‎src/backend/tsearch/dicts/hunspell_sample.affix‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ SFX A YIES[^AEIOU]Y
2121

2222
SFX \ N 1
2323
SFX \ 0Y/L[^Y]
24-

‎src/backend/tsearch/dicts/hunspell_sample_long.affix‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ SFX sA YIES[^AEIOU]Y
3232

3333
SFX s\ N 1
3434
SFX s\ 0Y/2[^Y]
35-

‎src/backend/tsearch/dicts/hunspell_sample_num.affix‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ SFX 304 YIES[^AEIOU]Y
2323

2424
SFX 305 N 1
2525
SFX 305 0Y/102[^Y]
26-

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp