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

Commitd31f77f

Browse files
author
Artur Zakirov
committed
Documentation fix for contrib dictionaries
1 parent27cd178 commitd31f77f

File tree

8 files changed

+300
-0
lines changed

8 files changed

+300
-0
lines changed

‎doc/src/sgml/contrib.sgml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ CREATE EXTENSION <replaceable>module_name</> FROM unpackaged;
118118
&file-fdw;
119119
&fuzzystrmatch;
120120
&hstore;
121+
&hunspell-en-us
122+
&hunspell-fr
123+
&hunspell-nl-nl
124+
&hunspell-ru-ru
125+
&hunspell-tr-tr
121126
&intagg;
122127
&intarray;
123128
&isn;

‎doc/src/sgml/filelist.sgml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@
119119
<!ENTITY file-fdw SYSTEM "file-fdw.sgml">
120120
<!ENTITY fuzzystrmatch SYSTEM "fuzzystrmatch.sgml">
121121
<!ENTITY hstore SYSTEM "hstore.sgml">
122+
<!ENTITY hunspell-en-us SYSTEM "hunspell-en-us.sgml">
123+
<!ENTITY hunspell-fr SYSTEM "hunspell-fr.sgml">
124+
<!ENTITY hunspell-nl-nl SYSTEM "hunspell-nl-nl.sgml">
125+
<!ENTITY hunspell-ru-ru SYSTEM "hunspell-ru-ru.sgml">
126+
<!ENTITY hunspell-tr-tr SYSTEM "hunspell-tr-tr.sgml">
122127
<!ENTITY intagg SYSTEM "intagg.sgml">
123128
<!ENTITY intarray SYSTEM "intarray.sgml">
124129
<!ENTITY isn SYSTEM "isn.sgml">

‎doc/src/sgml/hunspell-en-us.sgml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!-- doc/src/sgml/hunspell-en-us.sgml -->
2+
3+
<sect1 id="hunspell-en-us" xreflabel="hunspell_en_us">
4+
<title>hunspell_en_us</title>
5+
6+
<indexterm zone="hunspell-en-us">
7+
<primary>hunspell_en_us</primary>
8+
</indexterm>
9+
10+
<para>
11+
<filename>hunspell_en_us</filename> provides American English <application>Hunspell</>
12+
dictionary. During installation the module, following actions are performed:
13+
</para>
14+
15+
<itemizedlist>
16+
<listitem>
17+
<para>
18+
Dictionary and affixes files are copied to the
19+
<filename>$SHAREDIR/tsearch_data</filename> directory.
20+
</para>
21+
</listitem>
22+
<listitem>
23+
<para>
24+
<literal>public.english_hunspell</literal> dictionary is created:
25+
26+
<programlisting>
27+
CREATE TEXT SEARCH DICTIONARY public.english_hunspell (
28+
TEMPLATE = ispell,
29+
DictFile = en_us,
30+
AffFile = en_us,
31+
StopWords = english
32+
);
33+
</programlisting>
34+
35+
</para>
36+
</listitem>
37+
<listitem>
38+
<para>
39+
<literal>public.english</literal> text search configuration is created:
40+
41+
<programlisting>
42+
CREATE TEXT SEARCH CONFIGURATION public.english (
43+
COPY = pg_catalog.simple
44+
);
45+
46+
ALTER TEXT SEARCH CONFIGURATION public.english
47+
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,
48+
word, hword, hword_part
49+
WITH public.english_hunspell, pg_catalog.english_stem;
50+
</programlisting>
51+
52+
</para>
53+
</listitem>
54+
</itemizedlist>
55+
56+
</sect1>

‎doc/src/sgml/hunspell-fr.sgml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!-- doc/src/sgml/hunspell-fr.sgml -->
2+
3+
<sect1 id="hunspell-fr" xreflabel="hunspell_fr">
4+
<title>hunspell_fr</title>
5+
6+
<indexterm zone="hunspell-fr">
7+
<primary>hunspell_fr</primary>
8+
</indexterm>
9+
10+
<para>
11+
<filename>hunspell_fr</filename> provides French <application>Hunspell</>
12+
dictionary. During installation the module, following actions are performed:
13+
</para>
14+
15+
<itemizedlist>
16+
<listitem>
17+
<para>
18+
Dictionary and affixes files are copied to the
19+
<filename>$SHAREDIR/tsearch_data</filename> directory.
20+
</para>
21+
</listitem>
22+
<listitem>
23+
<para>
24+
<literal>public.french_hunspell</literal> dictionary is created:
25+
26+
<programlisting>
27+
CREATE TEXT SEARCH DICTIONARY public.french_hunspell (
28+
TEMPLATE = ispell,
29+
DictFile = fr,
30+
AffFile = fr,
31+
StopWords = french
32+
);
33+
</programlisting>
34+
35+
</para>
36+
</listitem>
37+
<listitem>
38+
<para>
39+
<literal>public.french</literal> text search configuration is created:
40+
41+
<programlisting>
42+
CREATE TEXT SEARCH CONFIGURATION public.french (
43+
COPY = pg_catalog.simple
44+
);
45+
46+
ALTER TEXT SEARCH CONFIGURATION public.french
47+
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,
48+
word, hword, hword_part
49+
WITH public.french_hunspell, pg_catalog.french_stem;
50+
</programlisting>
51+
52+
</para>
53+
</listitem>
54+
</itemizedlist>
55+
56+
</sect1>

‎doc/src/sgml/hunspell-nl-nl.sgml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!-- doc/src/sgml/hunspell-nl-nl.sgml -->
2+
3+
<sect1 id="hunspell-nl-nl" xreflabel="hunspell_nl_nl">
4+
<title>hunspell_nl_nl</title>
5+
6+
<indexterm zone="hunspell-nl-nl">
7+
<primary>hunspell_nl_nl</primary>
8+
</indexterm>
9+
10+
<para>
11+
<filename>hunspell_nl_nl</filename> provides Dutch <application>Hunspell</>
12+
dictionary. During installation the module, following actions are performed:
13+
</para>
14+
15+
<itemizedlist>
16+
<listitem>
17+
<para>
18+
Dictionary and affixes files are copied to the
19+
<filename>$SHAREDIR/tsearch_data</filename> directory.
20+
</para>
21+
</listitem>
22+
<listitem>
23+
<para>
24+
<literal>public.dutch_hunspell</literal> dictionary is created:
25+
26+
<programlisting>
27+
CREATE TEXT SEARCH DICTIONARY public.dutch_hunspell (
28+
TEMPLATE = ispell,
29+
DictFile = nl_nl,
30+
AffFile = nl_nl,
31+
StopWords = dutch
32+
);
33+
</programlisting>
34+
35+
</para>
36+
</listitem>
37+
<listitem>
38+
<para>
39+
<literal>public.dutch</literal> text search configuration is created:
40+
41+
<programlisting>
42+
CREATE TEXT SEARCH CONFIGURATION public.dutch (
43+
COPY = pg_catalog.simple
44+
);
45+
46+
ALTER TEXT SEARCH CONFIGURATION public.dutch
47+
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,
48+
word, hword, hword_part
49+
WITH public.dutch_hunspell, pg_catalog.dutch_stem;
50+
</programlisting>
51+
52+
</para>
53+
</listitem>
54+
</itemizedlist>
55+
56+
</sect1>

‎doc/src/sgml/hunspell-ru-ru.sgml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!-- doc/src/sgml/hunspell-ru-ru.sgml -->
2+
3+
<sect1 id="hunspell-ru-ru" xreflabel="hunspell_ru_ru">
4+
<title>hunspell_ru_ru</title>
5+
6+
<indexterm zone="hunspell-ru-ru">
7+
<primary>hunspell_ru_ru</primary>
8+
</indexterm>
9+
10+
<para>
11+
<filename>hunspell_ru_ru</filename> provides Russian <application>Hunspell</>
12+
dictionary. During installation the module, following actions are performed:
13+
</para>
14+
15+
<itemizedlist>
16+
<listitem>
17+
<para>
18+
Dictionary and affixes files are copied to the
19+
<filename>$SHAREDIR/tsearch_data</filename> directory.
20+
</para>
21+
</listitem>
22+
<listitem>
23+
<para>
24+
<literal>public.russian_hunspell</literal> dictionary is created:
25+
26+
<programlisting>
27+
CREATE TEXT SEARCH DICTIONARY public.russian_hunspell (
28+
TEMPLATE = ispell,
29+
DictFile = ru_ru,
30+
AffFile = ru_ru,
31+
StopWords = russian
32+
);
33+
</programlisting>
34+
35+
</para>
36+
</listitem>
37+
<listitem>
38+
<para>
39+
<literal>public.russian</literal> text search configuration is created:
40+
41+
<programlisting>
42+
CREATE TEXT SEARCH CONFIGURATION public.russian (
43+
COPY = pg_catalog.simple
44+
);
45+
46+
ALTER TEXT SEARCH CONFIGURATION public.russian
47+
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart
48+
WITH public.russian_hunspell, pg_catalog.english_stem;
49+
50+
ALTER TEXT SEARCH CONFIGURATION public.russian
51+
ALTER MAPPING FOR word, hword, hword_part
52+
WITH public.russian_hunspell, pg_catalog.russian_stem;
53+
</programlisting>
54+
55+
</para>
56+
</listitem>
57+
</itemizedlist>
58+
59+
</sect1>

‎doc/src/sgml/hunspell-tr-tr.sgml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!-- doc/src/sgml/hunspell-tr-tr.sgml -->
2+
3+
<sect1 id="hunspell-tr-tr" xreflabel="hunspell_tr_tr">
4+
<title>hunspell_tr_tr</title>
5+
6+
<indexterm zone="hunspell-tr-tr">
7+
<primary>hunspell_tr_tr</primary>
8+
</indexterm>
9+
10+
<para>
11+
<filename>hunspell_tr_tr</filename> provides Turkish <application>Hunspell</>
12+
dictionary. During installation the module, following actions are performed:
13+
</para>
14+
15+
<itemizedlist>
16+
<listitem>
17+
<para>
18+
Dictionary and affixes files are copied to the
19+
<filename>$SHAREDIR/tsearch_data</filename> directory.
20+
</para>
21+
</listitem>
22+
<listitem>
23+
<para>
24+
<literal>public.turkish_hunspell</literal> dictionary is created:
25+
26+
<programlisting>
27+
CREATE TEXT SEARCH DICTIONARY public.turkish_hunspell (
28+
TEMPLATE = ispell,
29+
DictFile = tr_tr,
30+
AffFile = tr_tr,
31+
StopWords = turkish
32+
);
33+
</programlisting>
34+
35+
</para>
36+
</listitem>
37+
<listitem>
38+
<para>
39+
<literal>public.turkish</literal> text search configuration is created:
40+
41+
<programlisting>
42+
CREATE TEXT SEARCH CONFIGURATION public.turkish (
43+
COPY = pg_catalog.simple
44+
);
45+
46+
ALTER TEXT SEARCH CONFIGURATION public.turkish
47+
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart,
48+
word, hword, hword_part
49+
WITH public.turkish_hunspell, pg_catalog.turkish_stem;
50+
</programlisting>
51+
52+
</para>
53+
</listitem>
54+
</itemizedlist>
55+
56+
</sect1>

‎doc/src/sgml/textsearch.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,6 +2800,13 @@ largehearted
28002800
</para>
28012801
</note>
28022802

2803+
<para>
2804+
In the <literal>contrib</literal> directory of the <productname>PostgreSQL</>
2805+
distribution there are additional modules which provide
2806+
<application>Hunspell</> dictionaries. This modules are listed in the
2807+
<xref linkend="contrib">.
2808+
</para>
2809+
28032810
</sect2>
28042811

28052812
<sect2 id="textsearch-snowball-dictionary">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp