Debian Codegraph @

doc/source/reference/normalizers/normalizer_auto.rst

raw
1 .. -*- rst -*-
2
3 .. groonga-command
4 .. database: normalisers
5
6 .. _normalizer-auto:
7
8 ``NormalizerAuto``
9 ==================
10
11 Summary
12 -------
13
14 Normally you should use ``NormalizerAuto``
15 normalizer. ``NormalizerAuto`` was the normalizer for Groonga 2.0.9 or
16 earlier. ``KEY_NORMALIZE`` flag in ``table_create`` on Groonga 2.0.9
17 or earlier equals to ``--normalizer NormalizerAuto`` option in
18 ``table_create`` on Groonga 2.1.0 or later.
19
20 ``NormalizerAuto`` supports all encoding. It uses Unicode NFKC
21 (Normalization Form Compatibility Composition) for UTF-8 encoding
22 text. It uses encoding specific original normalization for other
23 encodings. The results of those original normalization are similar to
24 NFKC.
25
26 Syntax
27 ------
28
29 ``NormalizerAuto`` hasn't parameter::
30
31 NormalizerAuto
32
33 Usage
34 -----
35
36 ``NormalizerAuto`` normalizes half-width katakana (such as U+FF76 HALFWIDTH KATAKANA
37 LETTER KA) + half-width katakana voiced sound mark (U+FF9E HALFWIDTH
38 KATAKANA VOICED SOUND MARK) to full-width katakana with
39 voiced sound mark (U+30AC KATAKANA LETTER GA). The former is two
40 characters but the latter is one character.
41
42 Here is an example that uses ``NormalizerAuto`` normalizer:
43
44 .. groonga-command
45 .. include:: ../../example/reference/normalizers/normalizer-auto.log
46 .. table_create NormalLexicon TABLE_HASH_KEY ShortText --normalizer NormalizerAuto
47
48 See also
49 --------
50
51 * :doc:`../commands/normalize`