hirokawa Tue Feb 20 07:12:19 2001 EDT
Modified files:
/phpdoc/ja/functions array.xml bzip2.xml cpdf.xml mnogosearch.xml
pcre.xml
Log:
update translation.
Index: phpdoc/ja/functions/array.xml
diff -u phpdoc/ja/functions/array.xml:1.18 phpdoc/ja/functions/array.xml:1.19
--- phpdoc/ja/functions/array.xml:1.18 Sat Feb 3 17:05:22 2001
+++ phpdoc/ja/functions/array.xml Tue Feb 20 07:12:19 2001
@@ -499,14 +499,15 @@
およびSORT_REGULARにリセットします。
</para>
<para>
- 成功時にtrue、失敗した場合にfalseを返します。
+ 成功時に<literal>TRUE</literal>、失敗した場合に
+ <literal>FALSE</literal>を返します。
</para>
<example>
<title>複数の配列をソートする</title>
<programlisting role="php">
-$ar1 = array("10", 100, 100, "a");
-$ar2 = array(1, 3, "2", 1);
-array_multisort($ar1, $ar2);
+$ar1 = array ("10", 100, 100, "a");
+$ar2 = array (1, 3, "2", 1);
+array_multisort ($ar1, $ar2);
</programlisting>
<para>
この例では、ソートの後で、最初の配列は、10,"a", 100,
100となりま
@@ -735,11 +736,16 @@
<funcprototype>
<funcdef>array <function>array_reverse</function></funcdef>
<paramdef>array <parameter>array</parameter></paramdef>
+ <paramdef>bool
+ <parameter><optional>preserve_keys</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>array_reverse</function>は、<parameter>array</parameter>
- を引数とし、要素の順番を逆にした新しい配列を返します。
+
+を引数とし、要素の順番を逆にした新しい配列を返します。この際、
+ <parameter>preserve_keys</parameter>が<literal>TRUE</literal>の場
+ 合はキーが保持されます。
</para>
<para>
<example>
@@ -747,10 +753,12 @@
<programlisting role="php">
$input = array ("php", 4.0, array ("green", "red"));
$result = array_reverse ($input);
+$result_keyed = array_reverse ($input, TRUE);
</programlisting>
</example>
- この例において、$result は array(array("green", "red"), 4.0, "php")
- となります。
+ この例において、<varname>$result</varname>は、<literal>array
+ (array ("green", "red"), 4.0, "php")</literal>となります。しかし、
+ <varname>$result2[0]</varname>はまだ<literal>"php"</literal>です。
<note>
<para>
この関数は、PHP 4.0ベータ3で追加されました。
@@ -1716,7 +1724,7 @@
<refentry id="function.in-array">
<refnamediv>
<refname>in_array</refname>
- <refpurpose>配列に値がある場合にtrueを返す</refpurpose>
+ <refpurpose>配列に値がある場合にTRUEを返す</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
@@ -1725,12 +1733,20 @@
<funcdef>bool in_array</funcdef>
<paramdef>mixed <parameter>needle</parameter></paramdef>
<paramdef>array <parameter>haystack</parameter></paramdef>
+ <paramdef>bool <parameter>strict</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
<parameter>haystack</parameter>で
-
<parameter>needle</parameter>を検索し、配列にそれがあった場合にtrueを
- 返します。それ以外の場合は、falseを返します。
+ <parameter>needle</parameter>を検索し、配列にそれがあった場合に
+ <literal>TRUE</literal>、それ以外の場合は、
+ <literal>FALSE</literal>を返します。
+ </para>
+ <para>
+ 3番目のパラメータ<parameter>strict</parameter>が
+ <literal>TRUE</literal>に設定された場合、
+ <function>in_array</function>は、<parameter>haystack</parameter>
+ の中の <parameter>needle</parameter>の型も確認します。
</para>
<para>
<example>
@@ -1742,11 +1758,64 @@
}
</programlisting>
</example>
- <note>
- <para>
- この関数は、PHP 4.0で追加されました。
- </para>
- </note>
+ </para>
+ <para>
+ <example>
+ <title>strictを指定した<function>in_array</function>の例</title>
+ <programlisting role="php">
+<?php
+$a = array('1.10', 12.4, 1.13);
+
+if (in_array('12.4', $a, TRUE))
+ echo "'12.4' found with strict check\n";
+if (in_array(1.13, $a, TRUE))
+ echo "1.13 found with strict check\n";
+?>
+
+// この例は以下のような出力となります。
+
+1.13 found with strict check
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ <function>search_array</function>も参照下さい。
+ </para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.search-array">
+ <refnamediv>
+ <refname>search_array</refname>
+ <refpurpose>
+
+指定した値を配列で検索し、見付かった場合に対応するキーを返す
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>説明</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>mixed <function>search_array</function></funcdef>
+ <paramdef>mixed <parameter>needle</parameter></paramdef>
+ <paramdef>array <parameter>haystack</parameter></paramdef>
+ <paramdef>bool <parameter>strict</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <parameter>haystack</parameter>において
+
+<parameter>needle</parameter>を検索し、配列中に見付かった場合にそ
+
+のキーを返します。そうでない場合に<literal>FALSE</literal>を返し
+ ます。
+ </para>
+ <para>
+ 3番目のパラメータ<parameter>strict</parameter>が
+ <literal>TRUE</literal>に設定された場合、
+ <function>search_array</function>は
+ <parameter>haystack</parameter>の中にある
+ <parameter>needle</parameter>の型も確認します。
+ </para>
+ <para>
+ <function>in_array</function>も参照下さい。
</para>
</refsect1>
</refentry>
@@ -2055,7 +2124,7 @@
<refnamediv>
<refname>next</refname>
<refpurpose>
- 内部配列ポイャ¿を進める
+ 内部配列ポインタを進める
</refpurpose>
</refnamediv>
<refsect1>
@@ -2068,8 +2137,8 @@
</funcsynopsis>
<para>
内部配列ポインタが次の場所を指すようにし、(ポインタ移動後の)
-
その配列の要素を返します。それ以上要素がない場合はfalseを
- 返します。
+ その配列の要素を返します。それ以上要素がない場合は
+ <literal>FALSE</literal>を返します。
</para>
<para>
<function>next</function>は、1つの違いを除いて<function>
@@ -2078,12 +2147,12 @@
次の配列要素を返すとともに内部配列ポインタを 1
つ進めるという
ことです。もし内部配列ポインタを 1
つ進めた結果、要素リストの
最後の先まで行ってしまった場合、<function>next</function>は
- falseを返します。
+ <literal>FALSE</literal>を返します。
<warning>
<para>
配列に空の要素、または、値0をキーとする要素がある場合、この関数
-
は、これらの要素に関してfalseを返します。空の要素または値0をキー
- とする要素がある配列を適切に順処理するには、
+
+は、これらの要素に関して<literal>FALSE</literal>を返します。空
+
+の要素または値0をキーとする要素がある配列を適切に順処理するには、
<function>each</function>関数を参照下さい。
</para>
</warning>
Index: phpdoc/ja/functions/bzip2.xml
diff -u phpdoc/ja/functions/bzip2.xml:1.1 phpdoc/ja/functions/bzip2.xml:1.2
--- phpdoc/ja/functions/bzip2.xml:1.1 Sun Feb 18 15:29:44 2001
+++ phpdoc/ja/functions/bzip2.xml Tue Feb 20 07:12:19 2001
@@ -383,7 +383,7 @@
<refentry id="function.bzwrite">
<refnamediv>
- <refname>bzread</refname>
+ <refname>bzwrite</refname>
<refpurpose>バイナリ対応のbzip2ファイルへの書き込み</refpurpose>
</refnamediv>
<refsect1>
Index: phpdoc/ja/functions/cpdf.xml
diff -u phpdoc/ja/functions/cpdf.xml:1.12 phpdoc/ja/functions/cpdf.xml:1.13
--- phpdoc/ja/functions/cpdf.xml:1.12 Thu Jan 4 22:29:04 2001
+++ phpdoc/ja/functions/cpdf.xml Tue Feb 20 07:12:19 2001
@@ -1273,21 +1273,19 @@
<refentry id="function.cpdf-newpath">
<refnamediv>
<refname>cpdf_newpath</refname>
- <refpurpose>
- 新規パスを開始する
- </refpurpose>
+ <refpurpose>新規パスを開始する</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
<funcsynopsis>
<funcprototype>
<funcdef>void <function>cpdf_newpath</function></funcdef>
- <paramdef>int <parameter>pdf_document</parameter></paramdef>
+ <paramdef>int <parameter>pdf document</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>cpdf_newpath</function> は、パラメータ
- <parameter>pdf_document</parameter>で指定したドキュメントにおいて
+ <parameter>pdf document</parameter>で指定したドキュメントにおいて
新規のパスを開始します。
</para>
</refsect1>
Index: phpdoc/ja/functions/mnogosearch.xml
diff -u phpdoc/ja/functions/mnogosearch.xml:1.1 phpdoc/ja/functions/mnogosearch.xml:1.2
--- phpdoc/ja/functions/mnogosearch.xml:1.1 Mon Feb 19 01:57:19 2001
+++ phpdoc/ja/functions/mnogosearch.xml Tue Feb 20 07:12:19 2001
@@ -55,33 +55,49 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_alloc_agent</function> returns mnogosearch agent
- identifier on success, <literal>FALSE</literal> on error. This function creates a
- session with database parameters.
- </para>
- <para>
- <parameter>dbaddr</parameter> - URL-style database description. Options (type,
host, database name, port, user and password) to connect to SQL database.
- Do not matter for built-in text files support. Format: DBAddr
DBType:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/
- Currently supported DBType values are: mysql, pgsql, msql, solid, mssql, oracle,
ibase. Actually, it does not matter for native libraries support.
- But ODBC users should specify one of supported values. If your database type is
not supported, you may use "unknown" instead.
- </para>
- <para>
- <parameter>dbmode</parameter> - You may select SQL database mode of words
storage. When "single" is specified, all words are stored in the same
- table. If "multi" is selected, words will be located in different tables
depending of their lengths. "multi" mode is usually faster
- but requires more tables in database. If "crc" mode is selected, mnoGoSearch
will store 32 bit integer
- word IDs calculated by CRC32 algorythm instead of words. This mode requres less
disk space and it is faster comparing with "single"
- and "multi" modes. "crc-multi" uses the same storage structure with the "crc"
mode, but also stores words in different tables depending on
- words lengths like "multi" mode. Format: DBMode single/multi/crc/crc-multi
+ <function>udm_alloc_agent</function> は、成功時にmnogosearchエー
+
+ジェントID、エラー時に<literal>FALSE</literal>を返します。この関
+
+数は、データベースパラメータを有するセッションを生成します。
+ </para>
+ <para>
+ <parameter>dbaddr</parameter> - URL形式のデータベース名。SQLデー
+
+タベースへ接続する際のオプション(型、ホスト、データベース名、ポー
+ ト、ユーザ、パスワード)。
+
+組み込みのテキストファイルサポートには関係ありません。フォーマッ
+ ト: DBAddr DBType:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/
+ 現在、サポートされている DBType の値は次のものです。:
+mysql,
+ pgsql, msql, solid, mssql, oracle, ibase
+
+実際、ネーティブなライブラリのサポートは重要ではありません。しかし、
+
+ODBCユーザは、サポートされる値の一つを指定する必要があります。使
+
+用するデータベース型がサポートされていない場合、"unknown"を代わり
+ に使用することも可能です。
+ </para>
+ <para>
+ <parameter>dbmode</parameter> - 単語の記憶用SQLデータベースモー
+
+ドを選択可能です。"single"を指定した場合、全ての単語は、同じテー
+
+ブルに保存されます。"multi"を選択した場合、単語はその長さに応じて
+
+別々のテーブルに保存されます。"multi"モードの方が通常高速ですが、
+
+データベース上でより多くのテーブルを必要とします。"crc"モードが選
+ 択された場合、mnoGoSearch
+は、単語の代わりにCRC32アルゴリズムで計
+
+算された32ビット整数の単語IDを保存します。このモードで必要なディ
+
+スク容量はより小さいですが、"single"および"multi"モードと比較して
+ より高速です。"crc-multi"
+は、"crc"モードと同じ記憶構造を使用しま
+
+すが、"multi"モードのように単語長に応じて別々のデータベースに単語
+ を保存します。フォーマット: DBMode single/multi/crc/crc-multi
</para>
<note>
<para>
- <parameter>dbaddr</parameter> and <parameter>dbmode</parameter> must match those
used during indexing.
+ <parameter>dbaddr</parameter> および
+ <parameter>dbmode</parameter> は、インデックス作成時に使用される
+ これらの選択子に一致している必要があります。
</para>
</note>
<note>
<para>
- In fact this function does not open connection to database and
- thus does not check entered login and password. Actual connection to database
and login/password verification is done by <function>udm_find</function>.
+
+実際、これらの関数はデータベースへの接続をオープンする必要はなく、
+
+よって、ログイン名やパスワードを確認しません。実際のデータベース
+ への接続およびログイン/パスワード認証は、
+ <function>udm_find</function>で行われます。
</para>
</note>
</refsect1>
@@ -105,138 +121,158 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_set_agent_param</function> returns <literal>TRUE</literal> on
success,
- <literal>FALSE</literal> on error. Defines mnoGoSearch session parameters.
+ <function>udm_set_agent_param</function> は成功時に
+ <literal>TRUE</literal>、エラー時に<literal>FALSE</literal>を返し
+ ます。mnoGoSearch セッションパラメータを定義します。
</para>
<simpara>
- The following parameters and their values are available:
+ 以下のパラメータおよびそれらの値が利用可能です。
</simpara>
<itemizedlist>
<listitem>
- <simpara>
- UDM_PARAM_PAGE_NUM - used to choose search results page number (results are
returned by pages beginning from
- 0, with UDM_PARAM_PAGE_SIZE results per page).
- </simpara>
+ <simpara>
+ UDM_PARAM_PAGE_NUM -
+はページ番号を検索結果とするために使用さ
+
+れます。(結果は、ページ毎にUDM_PARAM_PAGE_SIZE個の結果を有する0
+ から始まるページで返されます)
+ </simpara>
</listitem>
<listitem>
- <simpara>
- UDM_PARAM_PAGE_SIZE - number of search results displayed on one page.
- </simpara>
+ <simpara>
+ UDM_PARAM_PAGE_SIZE - は一ページに表示される検索結果の数。
+ </simpara>
</listitem>
<listitem>
- <simpara>
- UDM_PARAM_SEARCH_MODE - search mode. The following values available:
UDM_MODE_ALL -
- search for all words; UDM_MODE_ANY - search for any word; UDM_MODE_BOOL - boolean
search. See <function>udm_find</function> for details on boolean search.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- UDM_PARAM_CACHE_MODE - turns on or off search result cache mode. When enabled,
the search engine will store
- search results to disk. In case a similar search is performed later, the
engine will take results from the cache for faster performance.
- Available values: UDM_CACHE_ENABLED, UDM_CACHE_DISABLED.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- UDM_PARAM_TRACK_MODE - turns on or off trackquery mode. Since version 3.1.2
mnoGoSearch has a query tracking support.
- Note that tracking is implemented in SQL version only and not available in
built-in database.
- To use tracking, you have to create tables for tracking support. For MySQL,
use create/mysql/track.txt.
- When doing a search, front-end uses those tables to store query words, a
number of found documents and current UNIX timestamp in seconds.
- Available values: UDM_TRACK_ENABLED, UDM_TRACK_DISABLED.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- UDM_PARAM_CHARSET - defines local charset. Available values: set of charsets
supported by mnoGoSearch,
- e.g. koi8-r, cp1251, ...
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- UDM_PARAM_STOPFILE - Defines name and path
- to stopwords file. (There is a small difference with mnoGoSearch
- - while in mnoGoSearch if relative path or no path entered, it
- looks for this file in relation to UDM_CONF_DIR, the module looks for
- the file in relation to current path, i.e. to the path where the
- php script is executed.)
- </simpara>
- </listitem>
- <listitem>
+ <simpara>
+ UDM_PARAM_SEARCH_MODE - 検索モード。次の値が利用可能です。:
+ UDM_MODE_ALL - 全ての単語を検索します。;
+ UDM_MODE_ANY - 全ての単語で検索する;
+ UDM_MODE_BOOL -
+論理値検索。論理値検索に関する詳細については
+ <function>udm_find</function> を参照下さい。
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ UDM_PARAM_CACHE_MODE -
+検索結果のキャッシュモードをオンまたはオ
+
+フにします。有効の場合、検索エンジンは検索結果をディスクに保存
+
+します。似たような検索が後で実行された場合、エンジンはより高速
+ にキャッシュから結果を得ることが可能です。
+ 利用可能な値: UDM_CACHE_ENABLED, UDM_CACHE_DISABLED.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ UDM_PARAM_TRACK_MODE -
+クエリ追跡モードをオンまたはオフにします。
+ バージョン3.1.2以降、mnoGoSearch
+はクエリ追跡モードをサポートし
+
+ています。追跡はSQLバージョンにのみ実装されており、組み込みデー
+
+タベースでは利用できません。追跡を使用するには、テーブルを追跡
+ サポート用に作成する必要があります。MySQLの場合、
+
+create/mysql/track.txtを使用して下さい。検索実行時に、フロント
+
+エンドはクエリ単語、見つけたドキュメントの数、カレントの秒単位
+
+のUNIXタイムスタンプを保存するためにこれらのテーブルを使用しま
+ す。
+ 利用可能な値: UDM_TRACK_ENABLED, UDM_TRACK_DISABLED.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ UDM_PARAM_CHARSET -
+ローカルなcharsetを定義します。利用可能な値:
+ mnoGoSearchによりサポートされるcharsetの組,
+ 例えば、koi8-r, cp1251, ...
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ UDM_PARAM_STOPFILE - stopfileの名前とパスを定義します。
+
+(mnoGoSearchと若干違いがあります。つまり、mnoGoSearchにおいては、
+
+相対パスまたはパスが入力されなかった場合、UDM_CONF_DIRに関して
+
+このファイルが探されます。モジュールは、このファイルをカレント
+
+のパス(すなわち、PHPスクリプトが実行されるパス)で探します。
+ </simpara>
+ </listitem>
+ <listitem>
<simpara>
- UDM_PARAM_STOPTABLE - Load stop words from the given SQL table. You may use
several StopwordTable commands.
- This command has no effect when compiled without SQL database support.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
-
- UDM_PARAM_WEIGHT_FACTOR - represents weight factors for specific document
parts. Currently body, title, keywords, description, url are supported.
- To activate this feature please use degrees of 2 in *Weight commands of
- the indexer.conf. Let's imagine that we have these weights:
- </simpara>
- <simpara>URLWeight 1</simpara>
- <simpara>BodyWeight 2</simpara>
- <simpara>TitleWeight 4</simpara>
- <simpara>KeywordWeight 8</simpara>
- <simpara>DescWeight 16</simpara>
- <simpara>
- As far as indexer uses bit OR operation for word weights when some
- word presents several time in the same document, it is possible at search
- time to detect word appearance in different document parts. Word which
- appears only in the body will have 00000010 argegate weight (in binary
notation).
- Word used in all document parts will have 00011111 aggregate weight.
- </simpara>
- <simpara>
- This parameter's value is a string of hex digits ABCDE. Each digit is a factor
for corresponding bit in word weight. For the given above weights
- configuration:
- </simpara>
- <simpara>E is a factor for weight 1 (URL Weight bit)</simpara>
- <simpara>D is a factor for weight 2 (BodyWeight bit)</simpara>
- <simpara>C is a factor for weight 4 (TitleWeight bit)</simpara>
- <simpara>B is a factor for weight 8 (KeywordWeight bit)</simpara>
- <simpara>A is a factor for weight 16 (DescWeight bit)</simpara>
- <simpara>
- Examples:
- </simpara>
- <simpara>
- UDM_PARAM_WEIGHT_FACTOR=00001 will search through URLs only.
- </simpara>
- <simpara>
- UDM_PARAM_WEIGHT_FACTOR=00100 will search through Titles only.
- </simpara>
- <simpara>
- UDM_PARAM_WEIGHT_FACTOR=11100 will search through Title,Keywords,Desctription
but not through URL and Body.
- </simpara>
- <simpara>
- UDM_PARAM_WEIGHT_FACTOR=F9421 will search through:
+ UDM_PARAM_STOPTABLE -
+指定したSQLテーブルから停止単語をロードし
+
+ます。複数のStopwordTableコマンドを使用可能です。このコマンドは、
+
+SQLデータベースサポートを有効にせずにコンパイルした場合は使用で
+ きません。
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ UDM_PARAM_WEIGHT_FACTOR -
+指定したドキュメント部分の重み係数を
+ 表します。現在、body, title, keywords, description, urlがサポー
+
+トされています。この機能を有効にするには、indexer.confの*Weight
+
+コマンドに2の累乗を指定して下さい。ここで次のような重みを指定し
+ た場合を考えてみましょう。
</simpara>
- <simpara>Description with factor 15 (F hex)</simpara>
+ <simpara>URLWeight 1</simpara>
+ <simpara>BodyWeight 2</simpara>
+ <simpara>TitleWeight 4</simpara>
+ <simpara>KeywordWeight 8</simpara>
+ <simpara>DescWeight 16</simpara>
+ <simpara>
+ 同じドキュメントにいくつかの単語が複数回現れる場合、
+
+indexerが単語の重みにOR演算子を使用するので、異なったドキュメン
+
+トの部分に単語が現れる回数を検出可能です。全てのドキュメント部
+ 分で使用される単語は、重み集合 00011111 を有します。
+ </simpara>
+ <simpara>
+ このパラメータの値は、16進数文字列 ABCDE
+です。各桁は、単語重み
+
+の対応するビットの因子です。上で指定した重み設定は次のようにな
+ ります。
+ </simpara>
+ <simpara>E は重み1の因子 (URL Weight ビット)</simpara>
+ <simpara>D は重み2の因子 (BodyWeight ビット)</simpara>
+ <simpara>C は重み4の因子 (TitleWeight ビット)</simpara>
+ <simpara>B は重み8の因子 (KeywordWeight ビット)</simpara>
+ <simpara>A は重み16の因子 (DescWeight ビット)</simpara>
+ <simpara>
+ 例:
+ </simpara>
+ <simpara>
+ UDM_PARAM_WEIGHT_FACTOR=00001 は、URLのみを検索します。
+ </simpara>
+ <simpara>
+ UDM_PARAM_WEIGHT_FACTOR=00100 は、Titleのみを検索します。
+ </simpara>
+ <simpara>
+ UDM_PARAM_WEIGHT_FACTOR=11100 は、Title,Keywords,Desctriptionを
+ 検索しますが、URL と Bodyは検索しません。
+ </simpara>
+ <simpara>
+ UDM_PARAM_WEIGHT_FACTOR=F9421 は、次の検索を行います。
+ </simpara>
+ <simpara>Description with factor 15 (16進数 F)</simpara>
<simpara>Keywords with factor 9</simpara>
<simpara>Title with factor 4</simpara>
<simpara>Body with factor 2</simpara>
<simpara>URL with factor 1</simpara>
<simpara>
- If UDM_PARAM_WEIGHT_FACTOR variable is ommited, original weight value is
- taken to sort results. For a given above weight configuration it means
- that document description has a most big weight 16.
+ UDM_PARAM_WEIGHT_FACTOR
+変数が省略された場合、元の重みの値はソー
+
+ト結果から引き出されます。上記で指定した重み設定の場合、ドキュ
+ メントのDescriptionは、最大重み16を有するドキュメントの
+ descriptionを意味します。
</simpara>
- </listitem>
- <listitem>
- <simpara>
- UDM_PARAM_WORD_MATCH - word match. You may use this parameter to choose word
match type. This feature works only
- in "single" and "multi" modes using SQL based and built-in database. It does
not work in cachemode and other modes
- since they use word CRC and do not support substring search.
- Available values:
- </simpara>
- <simpara>UDM_MATCH_BEGIN - word beginning match;</simpara>
- <simpara>UDM_MATCH_END - word ending match;</simpara>
- <simpara>UDM_MATCH_WORD - whole word match;</simpara>
- <simpara>UDM_MATCH_SUBSTR - word substring match.</simpara>
- </listitem>
- </itemizedlist>
+ </listitem>
+ <listitem>
+ <simpara>
+ UDM_PARAM_WORD_MATCH -
+単語にマッチ。このパラメータを単語検索型
+
+を選択する際に使用可能です。この機能は、"single"および"multi"モー
+
+ドでSQLデータベースおよび組み込みのデータベースを使用する場合に
+
+のみ動作します。この機能は、cachemodeおよび他のモードでは動作し
+
+ません。これは、これらのモードが、単語CRCを使用しており、部分文
+ 字列検索をサポートしていないからです。
+ 利用可能な値は次のようになります。
+ </simpara>
+ <simpara>UDM_MATCH_BEGIN - 単語の始めにマッチ</simpara>
+ <simpara>UDM_MATCH_END - 単語の終りにマッチ</simpara>
+ <simpara>UDM_MATCH_WORD - 単語全体にマッチ</simpara>
+ <simpara>UDM_MATCH_SUBSTR - 単語の部分文字列にマッチ</simpara>
+ </listitem>
+ </itemizedlist>
</refsect1>
</refentry>
-
+
<refentry id="function.udm-add-search-limit">
<refnamediv>
<refname>udm_add_search_limit</refname>
@@ -253,33 +289,35 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_add_search_limit</function> returns <literal>TRUE</literal> on
- success, <literal>FALSE</literal> on error. Adds search restrictions.
+ <function>udm_add_search_limit</function> は、成功時に
+ <literal>TRUE</literal>、エラー時に<literal>FALSE</literal>を返し
+ ます。検索の制約を追加します。
</para>
<para>
- <parameter>agent</parameter> - a link to Agent,
- received after call to <function>udm_alloc_agent</function>.
- </para>
- <para>
- <parameter>var</parameter> - defines parameter, indicating limit.
- </para>
- <para>
- <parameter>val</parameter> - defines value of the current parameter.
- </para>
+ <parameter>agent</parameter> -
+ <function>udm_alloc_agent</function>から返されたエージェントへの
+ リンク
+ </para>
+ <para>
+ <parameter>var</parameter> - パラメータを定義、制限を示す。
+ </para>
+ <para>
+ <parameter>val</parameter> - カレントのパラメータの値を定義
+ </para>
<para>
- Possible <parameter>var</parameter> values:
- </para>
- <itemizedlist>
- <listitem>
+ 使用可能な<parameter>var</parameter>の値は次のようになります。
+ </para>
+ <itemizedlist>
+ <listitem>
<simpara>
- UDM_LIMIT_URL - defines document URL limitations to limit search through
subsection
+ UDM_LIMIT_URL - defines document URL limitations to limit search through
+subsection
of database. It supports SQL % and _ LIKE wildcards, where % matches any
number of characters, even zero characters,
and _ matches exactly one character. E.g. http://my.domain.__/catalog may
stand for http://my.domain.ru/catalog and http://my.domain.ua/catalog.
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_LIMIT_TAG - defines site TAG limitations. In indexer-conf you can assign
specific TAGs to various sites and parts of a site.
+ UDM_LIMIT_TAG - サイトTAG制約を定義します。In indexer-conf you can
+assign specific TAGs to various sites and parts of a site.
Tags in mnoGoSearch 3.1.x are lines, that may contain metasymbols % and _.
Metasymbols allow searching among groups of tags.
E.g. there are links with tags ABCD and ABCE, and search restriction is by ABC_
- the search will be made among both of the tags.
</simpara>
@@ -325,7 +363,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_clear_search_limits</function> resets defined search limitations
and returns <literal>TRUE</literal>.
+ <function>udm_clear_search_limits</function> は、検索に関する制約
+ をリセットし、<literal>TRUE</literal>を返します。
</para>
</refsect1>
</refentry>
@@ -345,12 +384,12 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_find</function> returns result link identifier on success,
- <literal>FALSE</literal> on error.
+ <function>udm_find</function> は成功時に結果リンクID、エラー時に
+ <literal>FALSE</literal> を返します。
</para>
<para>
- The search itself. The first argument - session, the next one -
- query itself. To find something just type words you want to find
+
+検索を行います。最初の引数はセッション、次の引数はクエリ本体です。
+ To find something just type words you want to find
and press SUBMIT button. For example, "mysql odbc". You should
not use quotes " in query, they are written here only to divide a
query from other text. mnoGoSearch will find all documents that
@@ -407,47 +446,52 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_get_res_param</function> returns result parameter
- value on success, <literal>FALSE</literal> on error.
+ <function>udm_get_res_param</function> は成功時に結果パラメータを
+ 返します。エラー時に<literal>FALSE</literal>を返します。
</para>
<para>
- <parameter>res</parameter> - a link to result identifier,
- received after call to <function>udm_find</function>.
+ <parameter>res</parameter> - <function>udm_find</function>から返
+ された結果IDへのリンク。
</para>
<para>
- <parameter>param</parameter> - parameter identifier, may have the
- following values:
+ <parameter>param</parameter> - パラメータIDであり、次の値のどれか
+ となります。
</para>
<itemizedlist>
- <listitem>
+ <listitem>
<simpara>
- UDM_PARAM_NUM_ROWS - number of received found links on the current page. It
is equal to
- UDM_PARAM_PAGE_SIZE for all search pages, on the last page - the rest of links.
+ UDM_PARAM_NUM_ROWS -
+カレントのページで見付かったリンクの数。
+
+全ての検索ページでの最後のページでのUDM_PARAM_PAGE_SIZE、残りの
+ リンクに等しい。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_PARAM_FOUND - total number of results matching the query.
+ UDM_PARAM_FOUND - クエリにマッチする結果の合計の数
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_PARAM_WORDINFO - information on the words found. E.g. search for "a good
book" will return "a: stopword, good:5637, book: 120"
+ UDM_PARAM_WORDINFO - 見付かった単語に関する情報。例えば、"a
+ good book" に関するクエリは "a: stopword, good:5637, book: 120"
+ を返します。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_PARAM_SEARCHTIME - search time in seconds.
+ UDM_PARAM_SEARCHTIME - 秒単位の検索時間。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_PARAM_FIRST_DOC - the number of the first document displayed on current
page.
+ UDM_PARAM_FIRST_DOC -
+カレントのページに表示される最初のドキュ
+ メントの数。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_PARAM_LAST_DOC - the number of the last document displayed on current page.
+ UDM_PARAM_LAST_DOC -
+カレントのページに表示される最後のドキュメ
+ ントの数。
</simpara>
</listitem>
</itemizedlist>
@@ -470,79 +514,85 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_get_res_field</function> returns result field value on success,
<literal>FALSE</literal> on error.
+ <function>udm_get_res_field</function> は、成功時に結果フィールド、
+ エラー時に<literal>FALSE</literal>を返します。
</para>
<para>
- <parameter>res</parameter> - a link to result identifier,
- received after call to <function>udm_find</function>.
+ <parameter>res</parameter> - <function>udm_find</function>から返
+ された結果IDへのリンク。
</para>
<para>
- <parameter>row</parameter> - the number of the link on the current page. May
have values from 0 to
- <parameter>UDM_PARAM_NUM_ROWS</parameter>.
+ <parameter>row</parameter> - カレントページのリンク番号。0から
+ <parameter>UDM_PARAM_NUM_ROWS</parameter>までの番号。
</para>
<para>
- <parameter>field</parameter> - field identifier, may have the following values:
+ <parameter>field</parameter> - フィールドID。次の値のどれか。
</para>
<itemizedlist>
<listitem>
<simpara>
- UDM_FIELD_URL - document URL field
+ UDM_FIELD_URL - ドキュメントURLフィールド
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_CONTENT - document Content-type field (for example, text/html).
+ UDM_FIELD_CONTENT - ドキュメントContent-typeフィールド (例えば、
+ text/html)
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_TITLE - document title field.
+ UDM_FIELD_TITLE - ドキュメントのtitleフィールド。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_KEYWORDS - document keywords field (from META KEYWORDS tag).
+ UDM_FIELD_KEYWORDS - ドキュメントkeywordsフィールド(META
+ KEYWORDSタグから)
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_DESC - document description field (from META DESCRIPTION tag).
+ UDM_FIELD_DESC - ドキュメントdescriptionフィールド (META
+ DESCRIPTIONタグから)
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_TEXT - document body text (the first couple of lines to give an idea
- of what the document is about).
+ UDM_FIELD_TEXT - ドキュメント body テキスト
+(最初の数行でドキュ
+ メントの内容に関するアイデアを示す)。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_SIZE - document size.
+ UDM_FIELD_SIZE - ドキュメントのサイズ。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_URLID - unique URL ID of the link.
+ UDM_FIELD_URLID - リンクへのユニークなURL ID。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_RATING - page rating (as calculated by mnoGoSearch).
+ UDM_FIELD_RATING - (mnoGoSearchで計算された)ページのレーティン
+ グ。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_MODIFIED - last-modified field in unixtime format.
+ UDM_FIELD_MODIFIED - unixtime形式のlast-modifiedフィールド。
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_ORDER - the number of the current document in set of found documents.
+ UDM_FIELD_ORDER -
+見つかったドキュメントの中のカレントのドキュ
+ メントの数
</simpara>
</listitem>
<listitem>
<simpara>
- UDM_FIELD_CRC - document CRC.
+ UDM_FIELD_CRC - ドキュメントCRC。
</simpara>
</listitem>
</itemizedlist>
@@ -563,14 +613,16 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_free_res</function> returns <literal>TRUE</literal> on success,
<literal>FALSE</literal> on error.
+ <function>udm_free_res</function> は成功時に
+ <literal>TRUE</literal>、エラー時に<literal>FALSE</literal>を返し
+ ます。
</para>
<para>
- <parameter>res</parameter> - a link to result identifier,
- received after call to <function>udm_find</function>.
+ <parameter>res</parameter> - <function>udm_find</function>から返
+ された結果IDへのリンク。
</para>
<para>
- Freeing up memory allocated for results.
+ 結果用に確保されたメモリを開放します。
</para>
</refsect1>
</refentry>
@@ -589,14 +641,17 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_free_agent</function> returns <literal>TRUE</literal> on success,
<literal>FALSE</literal> on error.
+ <function>udm_free_agent</function> は成功時に
+ <literal>TRUE</literal>、エラー時に<literal>FALSE</literal>を返し
+ ます。
</para>
<para>
- <parameter>agent</parameter> - link to agent identifier, received
- after call to <function>udm_alloc_agent</function>.
+ <parameter>agent</parameter> -
+ <function>udm_alloc_agent</function>から返されたエージェントIDへ
+ のリンク。
</para>
<para>
- Freeing up memory allocated for agent session.
+
+エージェントセッション用に確保されたメモリを開放します。
</para>
</refsect1>
</refentry>
@@ -615,15 +670,16 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>udm_errno</function> returns mnoGoSearch error number,
- zero if no error.
+ <function>udm_errno</function> は、mnoGoSearch エラー番号を返しま
+ す。エラーがない場合にゼロを返します。
</para>
<para>
- <parameter>agent</parameter> - link to agent identifier, received
- after call to <function>udm_alloc_agent</function>.
+ <parameter>agent</parameter> -
+ <function>udm_alloc_agent</function>へのコールから返されるエージェ
+ ントIDへのリンク
</para>
<para>
- Receiving numeric agent error code.
+ 数字でエージェントエラーコードを返します。
</para>
</refsect1>
</refentry>
Index: phpdoc/ja/functions/pcre.xml
diff -u phpdoc/ja/functions/pcre.xml:1.15 phpdoc/ja/functions/pcre.xml:1.16
--- phpdoc/ja/functions/pcre.xml:1.15 Sat Feb 3 17:05:22 2001
+++ phpdoc/ja/functions/pcre.xml Tue Feb 20 07:12:19 2001
@@ -497,11 +497,35 @@
</para>
<para>
<parameter>limit</parameter>が指定された場合、最大
- <parameter>limit</parameter>個の部分文字列のみが返されます。
+
+<parameter>limit</parameter>個の部分文字列のみが返されます。そし
+ て、<parameter>limit</parameter>が-1の場合は"制限がない"ことを意
+
+味します。これは、<parameter>flags</parameter>を指定する場合に便
+ 利です。
</para>
<para>
- flagsが<constant>PREG_SPLIT_NO_EMPTY</constant>の場合、空でない要
- 素のみが<function>preg_split</function>により返されます。
+ <parameter>flags</parameter>
+は次のフラグを組み合わせたものとする
+ ことが可能です。(ビット和演算子|で組み合わせる):
+ <variablelist>
+ <varlistentry>
+ <term>PREG_SPLIT_NO_EMPTY</term>
+ <listitem>
+ <simpara>
+ このフラグが設定されている場合、空でないもののみが、
+ <function>preg_split</function>により返されます。
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>PREG_SPLIT_DELIM_CAPTURE</term>
+ <listitem>
+ <simpara>
+
+このフラグが設定されている場合、デリミタパターンの括弧で括ら
+
+れた式の値が取得され、同時に返されます。このフラグは4.0.5で追
+ 加されました。
+ </simpara>
+ </listitem>
+ </varlistentry>
+ </variablelist>
</para>
<example>
<title><function>preg_split</function> の例</title>
@@ -517,7 +541,7 @@
</para>
<programlisting role="php">
$str = 'string';
-$chars = preg_split('//', $str, 0, PREG_SPLIT_NO_EMPTY);
+$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
print_r($chars);
</programlisting>
</example>