Navigation Menu

Skip to content

Commit

Permalink
Translate snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 23, 2015
1 parent b722ca4 commit 6085ade
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 26 deletions.
38 changes: 26 additions & 12 deletions _po/ja/tutorial/index.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-16 21:28+0900\n"
"PO-Revision-Date: 2015-10-23 13:09+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -299,7 +299,7 @@ msgstr ""
msgid ""
"You can sort matched records by precision ascending by using `pgroonga.score` "
"function in `ORDER BY` clause:"
msgstr ""
msgstr "`ORDER BY`節で`pgroonga.score`関数を使うことでスコアー順にマッチしたレコードをソートできます。"

msgid ""
"```sql\n"
Expand All @@ -321,22 +321,27 @@ msgid ""
"See [`pgroonga.score` function](../reference/functions/pgroonga-score.html) fo"
"r more details such as how to compute precision."
msgstr ""
"マッチした度合いの計算方法など詳細は[`pgroonga.score`関数](../reference/functions/pgroonga-score.h"
"tml)を参照してください。"

msgid "{: #snippet}"
msgstr ""

msgid "### Snippet (KWIC, keyword in context)"
msgstr ""
msgstr "### スニペット(KWIC、keyword in context)"

msgid ""
"You can use `pgroonga.snippet_html` function to get texts around keywords from"
" search target text. It's also known as [KWIC](https://en.wikipedia.org/wiki/K"
"ey_Word_in_Context) (keyword in context). You can see it in search result on W"
"eb search engine."
msgstr ""
"`pgroonga.snippet_html`関数を使うと検索対象のテキストからキーワード周辺のテキストを抽出できます。この処理を[KWIC](https:"
"//ja.wikipedia.org/wiki/KWIC)(keyword in context)とも言います。Webの検索エンジンの検索結果でみたことがあ"
"る人も多いでしょう。"

msgid "Here is a sample text for description. It's a description about Groonga."
msgstr ""
msgstr "説明用のサンプルテキストは次の通りです。なお、これはGroongaの説明文です。"

msgid ""
"> Groonga is a fast and accurate full text search engine based on inverted ind"
Expand All @@ -351,14 +356,16 @@ msgid ""
"`fast`. Keywords in extracted texts are surround with `<span class=\"keyword\">`"
" and `</span>`."
msgstr ""
"この中には`fast`というキーワードがいくつか出現しています。`pgroonga.snippet_html`は`fast`周辺のテキストを抽出します。抽出"
"されたテキスト内のキーワードは`<span class=\"keyword\">`と`</span>`で囲まれています。"

msgid ""
"`html` in `pgroonga.snippet_html` means that this function returns result for "
"HTML output."
msgstr ""
msgstr "`pgroonga.snippet_html`という関数名の中の`html`は、この関数はHTML出力用の結果を返す、という意味です。"

msgid "Here is the result of `pgroonga.snippet_html` against the above text:"
msgstr ""
msgstr "上述のテキストに対して`pgroonga.snippet_html`を実行した結果は次の通りです。"

msgid ""
"> Groonga is a <span class=\"keyword\">fast</span> and accurate full text search"
Expand All @@ -369,14 +376,17 @@ msgstr ""
msgid ""
"This function can be used for all texts. It's not only for search result by PG"
"roonga."
msgstr ""
msgstr "この関数はすべてのテキストに対して使うことができます。PGroongaでの検索結果以外にも使えるということです。"

msgid ""
"Here is a sample SQL that describe about it. You can use the function in the f"
"ollowing `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.po"
"stgresql.org/docs/current/static/functions-array.html) is a PostgreSQL functio"
"n that converts an array to rows."
"Here is a sample SQL that describes about it. You can use the function in the "
"following `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.p"
"ostgresql.org/docs/current/static/functions-array.html) is a PostgreSQL functi"
"on that converts an array to rows."
msgstr ""
"この挙動を説明するサンプルSQLは次の通りです。`FROM`がない次の`SELECT`でもこの関数を使えます。[`unnest`](http://www.p"
"ostgresql.jp/document/current/html/functions-array.html)は配列を列に変換するPostgreSQLの関"
"数であることに注意してください。"

msgid ""
"```sql\n"
Expand Down Expand Up @@ -419,16 +429,20 @@ msgid ""
"See [`pgroonga.snippet_html` function](../reference/functions/pgroonga-snippet"
"-html.html) for more details."
msgstr ""
"詳細は[`pgroonga.snippet_html`関数](../reference/functions/pgroonga-snippet-html.ht"
"ml)を参照してください。"

msgid "## Equality condition and comparison conditions"
msgstr ""
msgstr "## 等価条件と比較条件"

msgid ""
"You can use PGroonga for equality condition and comparison conditions. There a"
"re some differences between how to create index for string types and other typ"
"es. There is no difference between how to write condition for string types and"
" other types."
msgstr ""
"等価条件と比較条件にもPGroongaを使うことができます。この使い方をする場合、文字列型と他の型でインデックスの作り方が異なります。条件の書き方は文字列型"
"でも他の型でも違いはありません。"

msgid ""
" * How to use PGroonga for not string types\n"
Expand Down
26 changes: 13 additions & 13 deletions ja/tutorial/index.md
Expand Up @@ -175,7 +175,7 @@ SELECT *, pgroonga.score(score_memos)
-- (2 rows)
```

You can sort matched records by precision ascending by using `pgroonga.score` function in `ORDER BY` clause:
`ORDER BY`節で`pgroonga.score`関数を使うことでスコアー順にマッチしたレコードをソートできます。

```sql
SELECT *, pgroonga.score(score_memos)
Expand All @@ -189,30 +189,30 @@ SELECT *, pgroonga.score(score_memos)
-- (2 rows)
```

See [`pgroonga.score` function](../reference/functions/pgroonga-score.html) for more details such as how to compute precision.
マッチした度合いの計算方法など詳細は[`pgroonga.score`関数](../reference/functions/pgroonga-score.html)を参照してください。

{: #snippet}

### Snippet (KWIC, keyword in context)
### スニペット(KWICkeyword in context

You can use `pgroonga.snippet_html` function to get texts around keywords from search target text. 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.
`pgroonga.snippet_html`関数を使うと検索対象のテキストからキーワード周辺のテキストを抽出できます。この処理を[KWIC](https://ja.wikipedia.org/wiki/KWIC)keyword in context)とも言います。Webの検索エンジンの検索結果でみたことがある人も多いでしょう。

Here is a sample text for description. It's a description about Groonga.
説明用のサンプルテキストは次の通りです。なお、これはGroongaの説明文です。

> Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Groonga allows updates without read locks. These characteristics result in superior performance on real-time applications.

There are some `fast` keywords. `pgroonga.snippet_html` extracts texts around `fast`. Keywords in extracted texts are surround with `<span class="keyword">` and `</span>`.
この中には`fast`というキーワードがいくつか出現しています。`pgroonga.snippet_html``fast`周辺のテキストを抽出します。抽出されたテキスト内のキーワードは`<span class="keyword">``</span>`で囲まれています。

`html` in `pgroonga.snippet_html` means that this function returns result for HTML output.
`pgroonga.snippet_html`という関数名の中の`html`は、この関数はHTML出力用の結果を返す、という意味です。

Here is the result of `pgroonga.snippet_html` against the above text:
上述のテキストに対して`pgroonga.snippet_html`を実行した結果は次の通りです。

> Groonga is a <span class="keyword">fast</span> and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Gro
This function can be used for all texts. It's not only for search result by PGroonga.
この関数はすべてのテキストに対して使うことができます。PGroongaでの検索結果以外にも使えるということです。

Here is a sample SQL that describe about it. You can use the function in the following `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.postgresql.org/docs/current/static/functions-array.html) is a PostgreSQL function that converts an array to rows.
この挙動を説明するサンプルSQLは次の通りです。`FROM`がない次の`SELECT`でもこの関数を使えます。[`unnest`](http://www.postgresql.jp/document/current/html/functions-array.html)は配列を列に変換するPostgreSQLの関数であることに注意してください。

```sql
SELECT unnest(pgroonga.snippet_html(
Expand All @@ -236,11 +236,11 @@ SELECT unnest(pgroonga.snippet_html(
-- (2 rows)
```

See [`pgroonga.snippet_html` function](../reference/functions/pgroonga-snippet-html.html) for more details.
詳細は[`pgroonga.snippet_html`関数](../reference/functions/pgroonga-snippet-html.html)を参照してください。

## Equality condition and comparison conditions
## 等価条件と比較条件

You can use PGroonga for equality condition and comparison conditions. There are some differences between how to create index for string types and other types. There is no difference between how to write condition for string types and other types.
等価条件と比較条件にもPGroongaを使うことができます。この使い方をする場合、文字列型と他の型でインデックスの作り方が異なります。条件の書き方は文字列型でも他の型でも違いはありません。

このセクションでは次のことを説明します。

Expand Down
2 changes: 1 addition & 1 deletion tutorial/index.md
Expand Up @@ -212,7 +212,7 @@ Here is the result of `pgroonga.snippet_html` against the above text:
This function can be used for all texts. It's not only for search result by PGroonga.

Here is a sample SQL that describe about it. You can use the function in the following `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.postgresql.org/docs/current/static/functions-array.html) is a PostgreSQL function that converts an array to rows.
Here is a sample SQL that describes about it. You can use the function in the following `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.postgresql.org/docs/current/static/functions-array.html) is a PostgreSQL function that converts an array to rows.

```sql
SELECT unnest(pgroonga.snippet_html(
Expand Down

0 comments on commit 6085ade

Please sign in to comment.