cvs: peardoc /ja/package/authentication/auth/auth setcheckauthcallback.xml /ja/package/qa qa-pear-packagestatus.xml
/ja/package/structures/structures-datagrid/structures-datagrid getcolumns.xml /ja/package/structures/structures-datagrid/structures-datagrid-column
getdefaultdirection.xml setdefaultdirection.xml /ja/package/text text-languagedetect.xml /ja/package/text/text-languagedetect detect.xml example.xml

From: Date: Sat, 09 Dec 2006 00:09:24 +0000
Subject: cvs: peardoc /ja/package/authentication/auth/auth setcheckauthcallback.xml /ja/package/qa qa-pear-packagestatus.xml
/ja/package/structures/structures-datagrid/structures-datagrid getcolumns.xml /ja/package/structures/structures-datagrid/structures-datagrid-column
getdefaultdirection.xml setdefaultdirection.xml /ja/package/text text-languagedetect.xml /ja/package/text/text-languagedetect detect.xml example.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9026@lists.php.net to get a copy of this message
takagi Sat Dec 9 00:09:24 2006 UTC Added files: /peardoc/ja/package/text/text-languagedetect example.xml detect.xml /peardoc/ja/package/text text-languagedetect.xml /peardoc/ja/package/structures/structures-datagrid/structures-datagrid getcolumns.xml /peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column setdefaultdirection.xml getdefaultdirection.xml /peardoc/ja/package/qa qa-pear-packagestatus.xml /peardoc/ja/package/authentication/auth/auth setcheckauthcallback.xml Log: initial translation.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/text/text-languagedetect/example.xml?view=markup&rev=1.1 Index: peardoc/ja/package/text/text-languagedetect/example.xml +++ peardoc/ja/package/text/text-languagedetect/example.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect2 id="package.text.text-languagedetect.example"> <title>例</title> <programlisting role="php"><![CDATA[ <?php require_once 'Text/LanguageDetect.php'; $l = new Text_LanguageDetect(); echo "サポートしている言語:\n"; $langs = $l->getLanguages(); if (PEAR::isError($langs)) { die($langs->getMessage()); } sort($langs); echo implode(', ', $langs) . "\n\n"; $text = <<<EOD Hallo! Das ist ein Text in deutscher Sprache. Mal sehen, ob die Klasse erkennt, welche Sprache das hier ist. EOD; $result = $l->detect($text, 4); if (PEAR::isError($result)) { echo $result->getMessage(), "\n"; } else { print_r($result); } ?> ]]></programlisting> <para> 上の例の結果は、次のようになります。 </para> <screen><![CDATA[ サポートしている言語: albanian, arabic, azeri, bengali, bulgarian, cebuano, croatian, czech, danish, dutch, english, estonian, farsi, finnish, french, german, hausa, hawaiian, hindi, hungarian, icelandic, indonesian, italian, kazakh, kyrgyz, latin, latvian, lithuanian, macedonian, mongolian, nepali, norwegian, pashto, pidgin, polish, portuguese, romanian, russian, serbian, slovak, slovene, somali, spanish, swahili, swedish, tagalog, turkish, ukrainian, urdu, uzbek, vietnamese, welsh Array ( [german] => 0.407037037037 [dutch] => 0.288065843621 [english] => 0.283333333333 [danish] => 0.234526748971 ) ]]></screen> </sect2> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/text/text-languagedetect/detect.xml?view=markup&rev=1.1 Index: peardoc/ja/package/text/text-languagedetect/detect.xml +++ peardoc/ja/package/text/text-languagedetect/detect.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect2 id="package.text.text-languagedetect.detect"> <title>言語の検出</title> <para> まずはサポートされる言語の一覧を取得してみましょう。 <classname>Text_LanguageDetect</classname> オブジェクトの <function>getLanguages</function> をコールします。 このメソッドは、言語を表す文字列の配列を返します。例えば <literal>array('albanian', 'arabic', 'azeri')</literal> のようになります。 </para> <para> 実際の言語をそのテキストから取得するには <classname>Text_LanguageDetect</classname> オブジェクトの <function>detect</function> メソッドを使用します。 最初のパラメータにはテキストを指定します。そしてオプションの二番目のパラメータ <literal>$limit</literal> では、結果を最大で何件まで返すのかを指定します。 このメソッドの返す配列は、ソートされた言語名をキーとし、 そのスコアを値に持つものとなります。 言語が検出できなかった場合は、空の配列を返します。 </para> <para> 結果を一件だけ取得するには <function>detectSimple</function> を使用します。これは、言語名を文字列で返します。 検出できなかった場合は <literal>null</literal> を返します。 </para> <note> <para> 言語を正確に検出するには、ある程度の長さのテキストを指定する必要があります。 </para> </note> </sect2> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/text/text-languagedetect.xml?view=markup&rev=1.1 Index: peardoc/ja/package/text/text-languagedetect.xml +++ peardoc/ja/package/text/text-languagedetect.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect1 id="package.text.text-languagedetect"> <title>Text_LanguageDetect</title> <para> 指定したテキストの言語を検出します。 </para> <para> このパッケージは、与えられたテキストの言語の 3-gram の頻度順を調べ、既知の言語の 3-gram 頻度の表と対応させることで言語を検出します。 </para> <para> このパッケージは Cavnar &amp; Trenkle (1994): "N-Gram-Based Text Categorization" で提案された技術を実装したものです。 </para> &package.text.text-languagedetect.detect; &package.text.text-languagedetect.example; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid/getcolumns.xml?view=markup&rev=1.1 Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid/getcolumns.xml +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid/getcolumns.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid.getcolumns"> <refnamediv> <refname> <function>Structures_DataGrid::getColumns</function> </refname> <refpurpose>現在のカラムを返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;Structures/DataGrid.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> array <function>Structures_DataGrid::getColumns</function> </funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.getcolumns.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.getcolumns.returns"> &title.returns; <para> Structures_DataGrid_Column オブジェクト (への参照) を返します。 これは、(0 からはじまる) 数値添字の配列となります。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.getcolumns.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.getcolumns.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setdefaultdirection.xml?view=markup&rev=1.1 Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setdefaultdirection.xml +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setdefaultdirection.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.setdefaultdirection"> <refnamediv> <refname> <function>Structures_DataGrid_Column::setDefaultDirection</function> </refname> <refpurpose>このカラムのデフォルトのソート方向を設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;Structures/DataGrid/Column.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> void <function>Structures_DataGrid_Column::setDefaultDirection</function> </funcdef> <paramdef> string <parameter>$str</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setdefaultdirection.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setdefaultdirection.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$str</parameter> </term> <listitem> <para>&quot;ASC&quot; あるいは &quot;DESC&quot;。</para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setdefaultdirection.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setdefaultdirection.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getdefaultdirection.xml?view=markup&rev=1.1 Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getdefaultdirection.xml +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getdefaultdirection.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.getdefaultdirection"> <refnamediv> <refname> <function>Structures_DataGrid_Column::getDefaultDirection</function> </refname> <refpurpose>このカラムのデフォルトのソート方向を返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once &apos;Structures/DataGrid/Column.php&apos;;</funcsynopsisinfo> <funcprototype> <funcdef> string <function>Structures_DataGrid_Column::getDefaultDirection</function> </funcdef> <paramdef> <parameter>$str</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getdefaultdirection.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getdefaultdirection.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type /> <parameter>$str</parameter> </term> <listitem> <para /> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getdefaultdirection.returns"> &title.returns; <para> &quot;ASC&quot; あるいは &quot;DESC&quot; を返します。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getdefaultdirection.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getdefaultdirection.note"> &title.note; &note.notstatic; </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/qa/qa-pear-packagestatus.xml?view=markup&rev=1.1 Index: peardoc/ja/package/qa/qa-pear-packagestatus.xml +++ peardoc/ja/package/qa/qa-pear-packagestatus.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <sect1 id="package.qa.qa-pear-packagestatus"> <title>QA_Pear_PackageStatus</title> <para> PEAR の CVS ディレクトリ (<literal>pear</literal>) をチェックアウトしたものを調べ、 以下のような内容を報告するためのシンプルなツールです。 </para> <itemizedlist> <listitem> <para> <filename>package.xml</filename> のバージョン </para> </listitem> <listitem> <para> <filename>package.xml</filename> でバージョンが指定されているかどうか </para> </listitem> <listitem> <para> パッケージの状態 (Stable, Beta, ...) </para> </listitem> <listitem> <para> 最新版のリリース日 </para> </listitem> <listitem> <para> 最新版をリリースしてからの経過日数 </para> </listitem> </itemizedlist> <para> 各パッケージについてこれらの情報を一覧出力した後で、 全体でのパーセンテージをまとめます。 </para> <para> パッケージのこれらの統計情報を <ulink url="&url.qa.packagestatus;">pear.cweiske.de/packagestatus/</ulink> で確認することができます。これは毎日更新されます。 </para> </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/auth/setcheckauthcallback.xml?view=markup&rev=1.1 Index: peardoc/ja/package/authentication/auth/auth/setcheckauthcallback.xml +++ peardoc/ja/package/authentication/auth/auth/setcheckauthcallback.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.authentication.auth.auth.setcheckauthcallback"> <refnamediv> <refname>Auth::setCheckAuthCallback()</refname> <refpurpose>セッションが有効かどうかを調べる際に実行されるコールバックを設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>Auth::setCheckAuthCallback</function></funcdef> <paramdef>string <parameter>$checkAuthCallback</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth.auth.setcheckauthcallback.desc"> &title.desc; <para> この関数はコールバック関数を設定します。設定したコールバック関数は、 ログイン中のセッションが有効かどうかを調べるたびにコールされます。 このコールバックを使用して、 ログイン中のユーザが認証ソースでまだ有効であるかどうかを調べたりします。 </para> <para> コールバック関数には二つのパラメータが渡されます。 ログインしているユーザの名前と、Auth オブジェクトへの参照です。 このコールバック関数は、セッションを続行させるかどうかを指定する boolean 値を返さなければなりません。セッションを続行してもいい場合は &true;、セッションを終了させる場合は &false; を返します。 </para> <para> このコールバックでセッションを終了させた場合のステータスは、 <constant>AUTH_CALLBACK_ABORT</constant> となります。 </para> </refsect1> <refsect1 id="package.authentication.auth.auth.setcheckauthcallback.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$checkAuthCallback</parameter> </term> <listitem> <para> 使用するコールバック関数。 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.authentication.auth.auth.setcheckauthcallback.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#9026) next »