Kouhei Sutou
null+****@clear*****
Sat Oct 24 16:48:56 JST 2015
Kouhei Sutou 2015-10-24 16:48:56 +0900 (Sat, 24 Oct 2015) New Revision: 97c88f06c7219d7251659cf52d91227346c14e98 https://github.com/pgroonga/pgroonga.github.io/commit/97c88f06c7219d7251659cf52d91227346c14e98 Message: Translate pgroonga.snippet_html Added files: _po/ja/reference/functions/pgroonga-snippet-html.po ja/reference/functions/pgroonga-snippet-html.md Modified files: reference/functions/pgroonga-snippet-html.md Added: _po/ja/reference/functions/pgroonga-snippet-html.po (+93 -0) 100644 =================================================================== --- /dev/null +++ _po/ja/reference/functions/pgroonga-snippet-html.po 2015-10-24 16:48:56 +0900 (d678e0b) @@ -0,0 +1,93 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2015-10-24 16:48+0900\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgid "" +"---\n" +"title: pgroonga.snippet function\n" +"layout: en\n" +"---" +msgstr "" +"---\n" +"title: pgroonga.snippet関数\n" +"layout: ja\n" +"---" + +msgid "# `pgroonga.snippet` function" +msgstr "# `pgroonga.snippet`関数" + +msgid "## Summary" +msgstr "## 概要" + +msgid "" +"`pgroonga.snippet_html` function returns texts around keywords from target tex" +"t. It's also known as [KWIC](https://en.wikipedia.org/wiki/Key_Word_in_Context" +") (keyword in context). You can see it in search result on Web search engine." +msgstr "" +"`pgroonga.snippet_html`関数は対象テキストの中からキーワード周辺のテキストを抽出して返します。これは[KWIC](https://ja" +".wikipedia.org/wiki/KWIC)(keyword in context)とも呼ばれています。Web検索エンジンの結果で使われていることが多" +"いので見たことが多い人も多いでしょう。" + +msgid "## Syntax" +msgstr "## 構文" + +msgid "Here is the syntax of this function:" +msgstr "この関数の構文は次の通りです。" + +msgid "" +"```text\n" +"text[] pgroonga.snippet_html(target, ARRAY[keyword1, keyword2, ...])\n" +"```" +msgstr "" + +msgid "" +"`target` is a `text` type value. `pgroonga.snippet_html` extracts keywords wit" +"h around texts from `target`." +msgstr "`target`は`text`型の値です。`pgroonga.snippet_html`は`target`の中からキーワード周辺のテキストを抽出します。" + +msgid "" +"`keyword1`, `keyword2`, `...` are an array of `text` type. The keywords to be " +"extracted from `target`. You must specify one or more keywords." +msgstr "" +"`keyword1`, `keyword2`, `...`は`text`型の配列です。これらのキーワードを`target`から抽出します。1つ以上のキーワー" +"ドを指定する必要があります。" + +msgid "`pgroonga.snippet_html` returns an array of `text` type." +msgstr "`pgroonga.snippet_html`は`text`型の配列を返します。" + +msgid "" +"Element in the returned array is a text around keyword. The keyword is surroun" +"d with `<span class=\"keyword\">` and `</span>`. `<`, `>`, `&` and `\"` in `targe" +"t` is HTML escaped." +msgstr "" +"返ってくる配列の各要素はキーワード周辺のテキストです。キーワードは`<span class=\"keyword\">`と`</span>`で囲まれています。`t" +"arget`中の`<`、`>`、`&`、`\"`はHTMLエスケープされます。" + +msgid "" +"The maximum size of part of `target` in each element is 200 bytes. Its unit is" +" byte not the number of characters. Each element may be lager than 200 bytes b" +"ecause each element includes `<span class=\"keyword\">` and `</span>` and may ha" +"ve HTML escaped values. If `<` is HTML escaped to `<`, the byte size is inc" +"reased to 4 from 1." +msgstr "" +"各要素の`target`由来の部分の最大サイズは200バイトです。単位は文字数ではなくバイトです。各要素は200バイトより大きくなることがありまう。なぜなら" +"、各要素には`<span class=\"keyword\">`と`</span>`が含まれますし、HTMLエスケープした値が含まれることもあるからです。もし、" +"`<`がHTMLエスケープされると`<`になり、バイトサイズは1から4に増えます。" + +msgid "## Usage" +msgstr "## 使い方" + +msgid "See [examples in tutorial](../../tutorial/#snippet)." +msgstr "[チュートリアルの中の例](../../tutorial/#snippet)も参考にしてください。" + +msgid "## See also" +msgstr "## 参考" + +msgid " * [Examples in tutorial](../../tutorial/#snippet)" +msgstr " * [チュートリアルの中の例](../../tutorial/#snippet)" Added: ja/reference/functions/pgroonga-snippet-html.md (+36 -0) 100644 =================================================================== --- /dev/null +++ ja/reference/functions/pgroonga-snippet-html.md 2015-10-24 16:48:56 +0900 (1364394) @@ -0,0 +1,36 @@ +--- +title: pgroonga.snippet関数 +layout: ja +--- + +# `pgroonga.snippet`関数 + +## 概要 + +`pgroonga.snippet_html`関数は対象テキストの中からキーワード周辺のテキストを抽出して返します。これは[KWIC](https://ja.wikipedia.org/wiki/KWIC)(keyword in context)とも呼ばれています。Web検索エンジンの結果で使われていることが多いので見たことが多い人も多いでしょう。 + +## 構文 + +この関数の構文は次の通りです。 + +```text +text[] pgroonga.snippet_html(target, ARRAY[keyword1, keyword2, ...]) +``` + +`target`は`text`型の値です。`pgroonga.snippet_html`は`target`の中からキーワード周辺のテキストを抽出します。 + +`keyword1`, `keyword2`, `...`は`text`型の配列です。これらのキーワードを`target`から抽出します。1つ以上のキーワードを指定する必要があります。 + +`pgroonga.snippet_html`は`text`型の配列を返します。 + +返ってくる配列の各要素はキーワード周辺のテキストです。キーワードは`<span class="keyword">`と`</span>`で囲まれています。`target`中の`<`、`>`、`&`、`"`はHTMLエスケープされます。 + +各要素の`target`由来の部分の最大サイズは200バイトです。単位は文字数ではなくバイトです。各要素は200バイトより大きくなることがありまう。なぜなら、各要素には`<span class="keyword">`と`</span>`が含まれますし、HTMLエスケープした値が含まれることもあるからです。もし、`<`がHTMLエスケープされると`<`になり、バイトサイズは1から4に増えます。 + +## 使い方 + +[チュートリアルの中の例](../../tutorial/#snippet)も参考にしてください。 + +## 参考 + + * [チュートリアルの中の例](../../tutorial/#snippet) Modified: reference/functions/pgroonga-snippet-html.md (+1 -1) =================================================================== --- reference/functions/pgroonga-snippet-html.md 2015-10-24 16:25:15 +0900 (ab9e1d5) +++ reference/functions/pgroonga-snippet-html.md 2015-10-24 16:48:56 +0900 (4607d32) @@ -25,7 +25,7 @@ text[] pgroonga.snippet_html(target, ARRAY[keyword1, keyword2, ...]) Element in the returned array is a text around keyword. The keyword is surround with `<span class="keyword">` and `</span>`. `<`, `>`, `&` and `"` in `target` is HTML escaped. -The maximum size of part of `target` in each element is 200 bytes. It's unit is byte not the number of characters. Each element may be lager than 200 bytes because each element includes `<span class="keyword">` and `</span>` and may have HTML escaped values. If '<' is HTML escaped to `<`, the byte size is increased to 4 from 1. +The maximum size of part of `target` in each element is 200 bytes. Its unit is byte not the number of characters. Each element may be lager than 200 bytes because each element includes `<span class="keyword">` and `</span>` and may have HTML escaped values. If `<` is HTML escaped to `<`, the byte size is increased to 4 from 1. ## Usage -------------- next part -------------- HTML����������������������������...Download