Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 35 additions & 41 deletions doc/src/sgml/charset.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,9 @@ C以外のロケールにおいて、<productname>PostgreSQL</productname>が<li
<productname>PostgreSQL</productname> will also behave according
to that locale.
-->
《マッチ度[84.179104]》上で説明したように、オペレーティングシステムの環境は、新しく初期化されたデータベースクラスタのロケールのデフォルトを提供します
上で説明したように、オペレーティングシステムの環境は、新しく初期化されたデータベースクラスタのデフォルトのロケールを提供します
多くの場合、これで十分です。
オペレーティングシステムが目的の言語/地域に設定されている場合、<productname>PostgreSQL</productname>もデフォルトでそのロケールに従って動作します。
《機械翻訳》上で説明したように、オペレーティングシステムの環境は、新しく初期化されたデータベースクラスタのロケールのデフォルトを提供します。
多くの場合、これで十分です。
オペレーティングシステムが目的の言語/地域に設定されている場合、デフォルトによって<productname>PostgreSQL</productname>もそのロケールに従って動作します。
</para>
</listitem>

Expand Down Expand Up @@ -531,7 +528,7 @@ SQLコマンド<command>CREATE DATABASE</command>とそれに相当するコマ
A locale provider specifies which library defines the locale behavior for
collations and character classifications.
-->
《機械翻訳》ロケールプロバイダは、照合と文字分類のライブラリ動作を定義するロケールを指定します
ロケールプロバイダは、照合と文字分類のロケール動作を定義するライブラリを指定します
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

照合順序で統一で良いのではないでしょうか。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

でも、"collation order"っていうのも出てくるんですよね。"collation"も"collation order"も「照合順序」と訳してしまうと区別がつかなくなるので、単独の"collation"をここでは「照合」と訳しています。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに"collation"を照合"collation order"を照合順序とした方がすっきりしますが、
他で統一されてなくて"collation"を照合順序としている場合が多いです。
統一されていないのでissueを立てます。

</para>

<para>
Expand All @@ -540,7 +537,7 @@ SQLコマンド<command>CREATE DATABASE</command>とそれに相当するコマ
above, each have an option to select the locale provider. Here is an
example to initialize a database cluster using the ICU provider:
-->
《機械翻訳》前述のように、ロケール設定をセレクトするコマンドとツールには、それぞれロケールプロバイダをセレクトするオプションがあります
前述のように、ロケール設定を選択するコマンドとツールには、それぞれロケールプロバイダを選択するオプションがあります
次に、ICUプロバイダを使用してデータベースクラスタを初期化する例を示します。
<programlisting>
initdb --locale-provider=icu --icu-locale=en
Expand All @@ -564,14 +561,14 @@ initdb --locale-provider=icu --icu-locale=en
provide some locale-aware behavior, such as messages (see <xref
linkend="guc-lc-messages"/>).
-->
《機械翻訳》ロケールプロバイダに関係なく、オペレーティングシステムは、メッセージなどのロケール認識動作を提供するために使用されます(<xref linkend="guc-lc-messages"/>を参照)。
ロケールプロバイダに関係なく、オペレーティングシステムは、メッセージなどのロケール認識動作を提供するために使用されます(<xref linkend="guc-lc-messages"/>を参照)。
</para>

<para>
<!--
The available locale providers are listed below:
-->
《機械翻訳》利用可能なロケールプロバイダは次のとおりです。
利用可能なロケールプロバイダは次のとおりです。
</para>

<variablelist>
Expand All @@ -584,7 +581,7 @@ initdb --locale-provider=icu --icu-locale=en
the <literal>C</literal> and <literal>C.UTF-8</literal> locales are
supported for this provider.
-->
《機械翻訳》<literal>組み込み</literal>プロバイダは組み込みの操作を使用します。
<literal>builtin</literal>プロバイダは組み込みの操作を使用します。
このプロバイダでは、<literal>C</literal>および<literal>C.UTF-8</literal>ロケールのみがサポートされています。
</para>
<para>
Expand All @@ -593,7 +590,7 @@ initdb --locale-provider=icu --icu-locale=en
<literal>C</literal> locale in the libc provider. When using this
locale, the behavior may depend on the database encoding.
-->
《機械翻訳》<literal>C</literal>ロケールの動作は、libcプロバイダの<literal>C</literal>ロケールと同じです。
<literal>C</literal>ロケールプロバイダの動作は、libcプロバイダの<literal>C</literal>ロケールと同じです。
このロケールを使用する場合、動作はデータベースエンコーディングによって異なる場合があります。
</para>
<para>
Expand All @@ -604,9 +601,9 @@ initdb --locale-provider=icu --icu-locale=en
regular expression character classes are based on the "POSIX
Compatible" semantics, and the case mapping is the "simple" variant.
-->
《機械翻訳》<literal>C.UTF-8</literal>ロケールは、データベースエンコーディングが<literal>UTF-8</literal>であり、動作がUnicodeに基づいている場合にのみ使用できます。
<literal>C.UTF-8</literal>ロケールは、データベースエンコーディングが<literal>UTF-8</literal>であり、動作がUnicodeに基づいている場合にのみ使用できます。
照合順序はコードポイント値のみを使用します。
正規表現文字クラスは"POSIX Compatible"セマンティクスに基づいており、ケースマッピングは"シンプル"バリアントです
正規表現文字クラスは"POSIX Compatible"セマンティクスに基づいており、ケースマッピングは"シンプル"亜種です
</para>
</listitem>
</varlistentry>
Expand All @@ -621,8 +618,8 @@ initdb --locale-provider=icu --icu-locale=en
library. <productname>PostgreSQL</productname> must have been
configured with support.
-->
《機械翻訳》<literal>icu</literal>プロバイダーは、外部ICU<indexterm><primary>ICU</primary></indexterm>ライブラリを使用します。
<productname>PostgreSQL</productname>サポートが設定されている必要があります
<literal>icu</literal>プロバイダは、外部ICU<indexterm><primary>ICU</primary></indexterm>ライブラリを使用します。
<productname>PostgreSQL</productname>がICUサポート付きで設定されている必要があります
</para>
<para>
<!--
Expand All @@ -633,8 +630,7 @@ initdb --locale-provider=icu --icu-locale=en
<literal>LC_CTYPE</literal> can be set independently of the ICU
locale.
-->
《機械翻訳》ICUでは、照合順序およびデータベースエンコーディングから独立したオペレーティングシステムおよび文字の分類動作が提供されます。
これは、結果を変更せずに他のプラットフォームに移行する場合に適しています。
ICUでは、照合順序およびデータベースエンコーディングから独立したオペレーティングシステムおよび文字の分類動作が提供されます。これは、結果を変更せずに他のプラットフォームに移行する場合に適しています。
<literal>LC_COLLATE</literal>および<literal>LC_CTYPE</literal>は、ICUロケールから独立して設定できます。
</para>
<note>
Expand All @@ -644,7 +640,7 @@ initdb --locale-provider=icu --icu-locale=en
library used, as it is updated to reflect changes in natural language
over time.
-->
《機械翻訳》ICU提供者にとって、結果は、時間の経過に伴う自然言語の変化を反映するように更新されるため、使用されるICUライブラリのバージョンに依存する可能性がある
ICUプロバイダは時間の経過に伴う自然言語の変化を反映して更新されるため、結果は、使用されるICUライブラリのバージョンに依存する可能性があります
</para>
</note>
</listitem>
Expand All @@ -660,7 +656,7 @@ initdb --locale-provider=icu --icu-locale=en
controlled by the settings <literal>LC_COLLATE</literal> and
<literal>LC_CTYPE</literal>, so they cannot be set independently.
-->
《機械翻訳》<literal>libc</literal>プロバイダは、オペレーティングシステムのCライブラリを使用します。
<literal>libc</literal>プロバイダは、オペレーティングシステムのCライブラリを使用します。
照合順序と文字の分類の動作は、<literal>LC_COLLATE</literal>と<literal>LC_CTYPE</literal>の設定によって制御されるため、個別に設定することはできません。
</para>
<note>
Expand All @@ -669,7 +665,7 @@ initdb --locale-provider=icu --icu-locale=en
The same locale name may have different behavior on different
platforms when using the libc provider.
-->
《機械翻訳》同じロケール名前でも、libcプロバイダを使用する場合、プラットフォームによって動作が異なる場合があります。
同じロケール名でも、libcプロバイダを使用する場合、プラットフォームによって動作が異なる場合があります。
</para>
</note>
</listitem>
Expand Down Expand Up @@ -1300,7 +1296,7 @@ ICUは<quote>collate</quote>と<quote>ctype</quote>を別々に設定する機
<!--
On all platforms, the following collations are supported:
-->
《機械翻訳》すべてのプラットフォームで、次の照合がサポートされています
すべてのプラットフォームで、次の照合順序がサポートされています

<variablelist>
<varlistentry>
Expand All @@ -1316,15 +1312,10 @@ ICUは<quote>collate</quote>と<quote>ctype</quote>を別々に設定する機
the ICU root locale; see <xref
linkend="collation-managing-predefined-icu-und-x-icu"/>.)
-->
《マッチ度[72.195122]》この照合順序は、デフォルトUnicode照合基本テーブルを使用してUnicode照合アルゴリズムで並べ替えます。
すべてのエンコーディングで使用できます。
この照合順序を使用するにはICUサポートが必要です。
(この照合順序は、ICU rootロケールと同じ動作をします。
<xref linkend="collation-managing-predefined-icu-und-x-icu"/>を参照してください。)
《機械翻訳》このSQL標準照合順序は、Unicode照合順序アルゴリズムとデフォルトUnicode照合順序エレメントテーブルを使用してソートします。
この標準SQL照合順序は、デフォルトUnicode照合基本テーブルを使用してUnicode照合アルゴリズムで並べ替えます。
すべてのエンコーディングで使用できます。
この照合順序を使用するにはICUサポートが必要であり、PostgresがICUの別のバージョンで構築されている場合は動作が変更される可能性があります(この照合順序はICUルートロケールと同じ動作をします。
<xref linkend="collation-managing-predefined-icu-und-x-icu"/>を参照してください。)
(この照合順序は、ICUルートロケールと同じ動作をします。<xref linkend="collation-managing-predefined-icu-und-x-icu"/>を参照してください。)
</para>
</listitem>
</varlistentry>
Expand All @@ -1343,8 +1334,8 @@ ICUは<quote>collate</quote>と<quote>ctype</quote>を別々に設定する機
behavior as the libc locale specification <literal>C</literal> in
<literal>UTF8</literal> encoding.)
-->
《機械翻訳》このSQL標準照合順序では、言語コードポイントではなくUnicodeオーダーの値を使用してソートされ、ASCII文字<quote><literal>A</literal></quote>から<quote><literal>Z</literal></quote>のみが文字として扱われます。
動作は効率的で、すべてのバージョンにわたって安定(stable)です
この標準SQL照合順序による並べ替えでは、自然言語の並び順ではなく、Unicodeのコードポイント値を使用してソートされ、ASCII文字<quote><literal>A</literal></quote>から<quote><literal>Z</literal></quote>のみが文字として扱われます。
動作は効率的で、すべてのバージョンにわたって安定です
エンコーディング<literal>UTF8</literal>でのみ使用可能です。
(この照合順序は、<literal>UTF8</literal>エンコーディングのlibcロケール指定<literal>C</literal>と同じ動作をします。)
</para>
Expand All @@ -1366,10 +1357,10 @@ ICUは<quote>collate</quote>と<quote>ctype</quote>を別々に設定する機
<productname>Postgres</productname> major version. This collation is
only available for encoding <literal>UTF8</literal>.
-->
《機械翻訳》この照合順序は、自然言語のコードポイントではなく、Unicodeのオーダー値でソートされます
この照合順序による並べ替えでは、自然言語の並び順ではなく、Unicodeのコードポイント値を使用してソートされます
関数<function>lower</function>、<function>initcap</function>、<function>upper</function>には、Unicodeシンプルケースマッピングを使用します。
パターンマッチ(正規表現を含む)の場合は、POSIX互換のUnicode<ulink url="https://www.unicode.org/reports/tr18/#Compatibility_Properties">互換性プロパティを使用します</ulink>。
行動は効率的であり、安定(stable)メジャーバージョン内の<productname>Postgres</productname>である
パターンマッチ(正規表現を含む)の場合は、POSIX互換のUnicode<ulink url="https://www.unicode.org/reports/tr18/#Compatibility_Properties">互換亜種プロパティを使用します</ulink>。
動作は効率的で、<productname>Postgres</productname>のメジャーバージョン内で安定です
この照合順序は、エンコーディング<literal>UTF8</literal>でのみ使用できます。
</para>
</listitem>
Expand All @@ -1389,9 +1380,9 @@ ICUは<quote>collate</quote>と<quote>ctype</quote>を別々に設定する機
database encoding, but behavior may vary between different database
encodings.
-->
《機械翻訳》<literal>C</literal>と<literal>POSIX</literal>の照合は、<quote>従来のC</quote>の動作に基づいています。
ソート言語のバイトではなくオーダー値で照合され、ASCII文字<quote><literal>A</literal></quote>から<quote><literal>Z</literal></quote>までのみが文字として扱われます
この動作は効率的であり、特定のデータベースエンコーディングのすべてのバージョンで安定(stable)ですが、動作はデータベースのエンコーディングによって異なる場合があります。
<literal>C</literal>と<literal>POSIX</literal>の照合は、<quote>従来のC</quote>の動作に基づいています。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここの照合順序で良いと思います。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上です。

自然言語の並び順ではなく、バイト値を使用してソートされ、ASCII文字<quote><literal>A</literal></quote>から<quote><literal>Z</literal></quote>のみが文字として扱われます
動作は効率的で、すべてのバージョンで特定のデータベースエンコーディングに対して安定ですが、動作はデータベースのエンコーディングによって異なる場合があります。
</para>
</listitem>
</varlistentry>
Expand All @@ -1404,7 +1395,7 @@ ICUは<quote>collate</quote>と<quote>ctype</quote>を別々に設定する機
The <literal>default</literal> collation selects the locale specified
at database creation time.
-->
《機械翻訳》<literal>デフォルト</literal>照合順序は、ロケールの作成時に指定したデータベースを選択します
<literal>default</literal>照合順序は、データベース作成時に指定したロケールを選択します
</para>
</listitem>
</varlistentry>
Expand All @@ -1417,7 +1408,7 @@ ICUは<quote>collate</quote>と<quote>ctype</quote>を別々に設定する機
support. The efficiency and stability of these additional collations
depend on the collation provider, the provider version, and the locale.
-->
《機械翻訳》オペレーティングシステムサポートによっては、追加の照合を使用できる場合があります。
オペレーティングシステムサポートによっては、追加の照合を使用できる場合があります。
これらの追加の照合の効率性と安定度は、照合順序プロバイダ、プロバイダバージョン、およびロケールによって異なります。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここも照合順序。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上。

</para>
</sect3>
Expand Down Expand Up @@ -1578,7 +1569,7 @@ ICUが提供する照合順序は、libcロケールと区別するために、S
<!--
<para>German collation, default variant</para>
-->
<para>ドイツ語照合順序、デフォルトの異型</para>
<para>ドイツ語照合順序、デフォルトの亜種</para>
</listitem>
</varlistentry>

Expand All @@ -1588,7 +1579,7 @@ ICUが提供する照合順序は、libcロケールと区別するために、S
<!--
<para>German collation for Austria, default variant</para>
-->
<para>オーストリアのドイツ語照合順序、デフォルトの異型</para>
<para>オーストリアのドイツ語照合順序、デフォルトの亜種</para>
<para>
<!--
(There are also, say, <literal>de-DE-x-icu</literal>
Expand Down Expand Up @@ -1870,7 +1861,7 @@ B-treeは非決定的照合順序を使用したインデックスでは重複
instance:
-->
ICUは、言語タグの一部として照合順序設定を持つ新しい照合順序を定義することで、照合順序の動作を広範囲に制御することができます。
これらの設定は、さまざまなニーズに合わせて照合順序順序を変更できます
これらの設定は、さまざまなニーズに合わせて照合順序を変更できます
インスタンスの場合:

<programlisting>
Expand Down Expand Up @@ -1995,7 +1986,7 @@ Unicode文字<literal>U+2063</literal>は不可視のセパレータであり、
<!--
<entry>Case/Variants</entry>
-->
<entry>大文字小文字/異型</entry>
<entry>大文字小文字/亜種</entry>
<entry><literal>true</literal></entry>
<entry><literal>true</literal></entry>
<entry><literal>true</literal></entry>
Expand All @@ -2005,9 +1996,12 @@ Unicode文字<literal>U+2063</literal>は不可視のセパレータであり、
</row>
<row>
<entry>level4</entry>
<!--
<entry>Punctuation<footnote><para>only with
<literal>ka-shifted</literal>; see <xref
linkend="icu-collation-settings-table"/></para></footnote></entry>
-->
<entry>句読点<footnote><para><literal>ka-shifted</literal>に対してのみ。<xref linkend="icu-collation-settings-table"/>参照</para></footnote></entry>
<entry><literal>true</literal></entry>
<entry><literal>true</literal></entry>
<entry><literal>false</literal></entry>
Expand Down
Loading