Yasuhiro Horimoto 2019-01-12 06:06:00 +0900 (Sat, 12 Jan 2019) Revision: d99de765b0b5563bda3ef7ad37497de4b31e365f https://github.com/groonga/groonga/commit/d99de765b0b5563bda3ef7ad37497de4b31e365f Message: doc: separate NormalizerAuto into other pages Added files: doc/source/reference/normalizers/normalizer_auto.rst Modified files: doc/locale/ja/LC_MESSAGES/reference.po doc/source/example/reference/normalizers/normalizer-auto.log Modified: doc/locale/ja/LC_MESSAGES/reference.po (+18 -3) =================================================================== --- doc/locale/ja/LC_MESSAGES/reference.po 2019-01-11 16:48:43 +0900 (18f784d8c) +++ doc/locale/ja/LC_MESSAGES/reference.po 2019-01-12 06:06:00 +0900 (5764853b1) @@ -23976,6 +23976,24 @@ msgid "" "mysql>`_" msgstr "" +msgid "``NormalizerAuto`` hasn't parameter::" +msgstr "``NormalizerAuto`` には引数はありません。::" + +msgid "" +"``NormalizerAuto`` normalizes half-width katakana (such as U+FF76 HALFWIDTH " +"KATAKANA LETTER KA) + half-width katakana voiced sound mark (U+FF9E " +"HALFWIDTH KATAKANA VOICED SOUND MARK) to full-width katakana with voiced " +"sound mark (U+30AC KATAKANA LETTER GA). The former is two characters but the " +"latter is one character." +msgstr "" +"``NormalizerAuto`` は、半角カタカナ(例えば「カ」: U+FF76 HALFWIDTH KATAKANA " +"LETTER KA) + 半角カタカナの濁点(「゙」: U+FF9E HALFWIDTH KATAKANA VOICED " +"SOUND MARK)を濁点付きの全角カタカナ(「ガ」: U+30AC KATAKANA LETTER GA)に正" +"規化します。前者は2文字ですが、後者は1文字です。" + +msgid ":doc:`../commands/normalize`" +msgstr "" + msgid "``NormalizerNFKC100``" msgstr "" @@ -24318,9 +24336,6 @@ msgstr "" msgid "This option enables normalize hiragana and katakana to romaji." msgstr "このオプションは、ひらがなとカタカナをローマ字に正規化します。" -msgid ":doc:`../commands/normalize`" -msgstr "" - msgid "Operations" msgstr "操作方法" Modified: doc/source/example/reference/normalizers/normalizer-auto.log (+15 -2) =================================================================== --- doc/source/example/reference/normalizers/normalizer-auto.log 2019-01-11 16:48:43 +0900 (7b6aaebde) +++ doc/source/example/reference/normalizers/normalizer-auto.log 2019-01-12 06:06:00 +0900 (075356dc1) @@ -1,4 +1,17 @@ Execution example:: - table_create NormalLexicon TABLE_HASH_KEY ShortText --normalizer NormalizerAuto - # [[0, 1337566253.89858, 0.000355720520019531], true] + normalize NormalizerAuto "ガ" + # [ + # [ + # 0, + # 1547239424.874337, + # 0.0001468658447265625 + # ], + # { + # "normalized": "ガ", + # "types": [ + # ], + # "checks": [ + # ] + # } + # ] Added: doc/source/reference/normalizers/normalizer_auto.rst (+54 -0) 100644 =================================================================== --- /dev/null +++ doc/source/reference/normalizers/normalizer_auto.rst 2019-01-12 06:06:00 +0900 (c18df42fe) @@ -0,0 +1,54 @@ +.. -*- rst -*- + +.. highlightlang:: none + +.. groonga-command +.. database: normalisers + +.. _normalizer-auto: + +``NormalizerAuto`` +================== + +Summary +------- + +Normally you should use ``NormalizerAuto`` +normalizer. ``NormalizerAuto`` was the normalizer for Groonga 2.0.9 or +earlier. ``KEY_NORMALIZE`` flag in ``table_create`` on Groonga 2.0.9 +or earlier equals to ``--normalizer NormalizerAuto`` option in +``table_create`` on Groonga 2.1.0 or later. + +``NormalizerAuto`` supports all encoding. It uses Unicode NFKC +(Normalization Form Compatibility Composition) for UTF-8 encoding +text. It uses encoding specific original normalization for other +encodings. The results of those original normalization are similar to +NFKC. + +Syntax +------ + +``NormalizerAuto`` hasn't parameter:: + + NormalizerAuto + +Usage +----- + +``NormalizerAuto`` normalizes half-width katakana (such as U+FF76 HALFWIDTH KATAKANA +LETTER KA) + half-width katakana voiced sound mark (U+FF9E HALFWIDTH +KATAKANA VOICED SOUND MARK) to full-width katakana with +voiced sound mark (U+30AC KATAKANA LETTER GA). The former is two +characters but the latter is one character. + +Here is an example that uses ``NormalizerAuto`` normalizer: + +.. groonga-command +.. include:: ../../example/reference/normalizers/normalizer-auto.log +.. table_create NormalLexicon TABLE_HASH_KEY ShortText --normalizer NormalizerAuto +.. _normalizer-auto: + +See also +---------- + +* :doc:`../commands/normalize` -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190112/fe9bdd05/attachment-0001.html>