com doc/ja: Document enchant related changes as of PHP 8.0.0: language-snippets.ent reference/enchant/constants.xml
reference/enchant/functions/enchant-broker-free-dict.xml reference/enchant/functions/enchant-broker-free.xml
reference/enchant/functions/enchant-broker-get-dict-path.xml reference/enchant/functions/enchant-broker-set-dict-path.xml
reference/enchant/functions/enchant-dict-add-to-personal.xml reference/enchant/functions/enchant-dict-a

From: Date: Thu, 31 Dec 2020 19:44:23 +0000
Subject: com doc/ja: Document enchant related changes as of PHP 8.0.0: language-snippets.ent reference/enchant/constants.xml
reference/enchant/functions/enchant-broker-free-dict.xml reference/enchant/functions/enchant-broker-free.xml
reference/enchant/functions/enchant-broker-get-dict-path.xml reference/enchant/functions/enchant-broker-set-dict-path.xml
reference/enchant/functions/enchant-dict-add-to-personal.xml reference/enchant/functions/enchant-dict-a
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-6019@lists.php.net to get a copy of this message
Commit: a65ee670c2c3ed0a5896a22b883690e789132020 Author: Yoshinari Takaoka <mumumu@mumumu.org> Fri, 1 Jan 2021 04:44:23 +0900 Parents: 688dcc378e668fc21979633e1df594c12fbf04f5 Branches: master Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=a65ee670c2c3ed0a5896a22b883690e789132020 Log: Document enchant related changes as of PHP 8.0.0 Changed paths: M language-snippets.ent M reference/enchant/constants.xml M reference/enchant/functions/enchant-broker-free-dict.xml M reference/enchant/functions/enchant-broker-free.xml A reference/enchant/functions/enchant-broker-get-dict-path.xml A reference/enchant/functions/enchant-broker-set-dict-path.xml M reference/enchant/functions/enchant-dict-add-to-personal.xml A reference/enchant/functions/enchant-dict-add.xml A reference/enchant/functions/enchant-dict-is-added.xml M reference/enchant/functions/enchant-dict-is-in-session.xml M reference/enchant/setup.xml

diff --git a/language-snippets.ent b/language-snippets.ent index c7cc400aae..536db76844 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: b3d23714c285b70f6a033017aa0d5ad954e2c44c Maintainer: takagi Status: working --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: takagi Status: working --> <!-- Credits: hirokawa,haruki,shimooka,mumumu --> <!ENTITY installation.enabled.disable 'この拡張モジュールはデフォルトで有効になっています。無効にしたい場合は、次のオプションを指定してコンパイルします。'> @@ -262,6 +262,10 @@ xmlns="http://docbook.org/ns/docbook"><simpara>この機能は PHP 7.4.0 で xmlns="http://docbook.org/ns/docbook"><simpara>この関数は PHP 7.4.0 で <emphasis>非推奨</emphasis>になります。この関数に頼らないことを強く推奨します。</simpara></warning>'> +<!ENTITY warn.deprecated.function-8-0-0 '<warning +xmlns="http://docbook.org/ns/docbook"><simpara>この関数は PHP 8.0.0 で +<emphasis>非推奨</emphasis>になります。この関数に頼らないことを強く推奨します。</simpara></warning>'> + <!ENTITY removed.php.future 'この非推奨の機能は、<emphasis xmlns="http://docbook.org/ns/docbook">きっと</emphasis> 将来 <emphasis xmlns="http://docbook.org/ns/docbook">削除</emphasis> されるでしょう。'> @@ -322,6 +326,8 @@ PHP 7.4.0 で <emphasis>削除</emphasis> されました。</simpara></warning> <!ENTITY warn.deprecated.alias-7-4-0.removed-8-0-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>このエイリアスは PHP 7.4.0 で <emphasis>非推奨</emphasis> となり、PHP 8.0.0 で <emphasis>削除</emphasis> されました。</simpara></warning>'> +<!ENTITY warn.deprecated.alias-8-0-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>このエイリアスは PHP 8.0.0 で <emphasis>非推奨</emphasis> になりました。</simpara></warning>'> + <!ENTITY warn.experimental.func '<warning xmlns="http://docbook.org/ns/docbook"><simpara>この関数は、 <emphasis>実験的</emphasis> なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP diff --git a/reference/enchant/constants.xml b/reference/enchant/constants.xml index 246996dd4d..1c1008acaf 100644 --- a/reference/enchant/constants.xml +++ b/reference/enchant/constants.xml @@ -1,11 +1,23 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: takagi Status: ready --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: takagi Status: ready --> <appendix xml:id="enchant.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; <para> <variablelist> + <varlistentry xml:id="constant.libenchant-version"> + <term> + <constant>LIBENCHANT_VERSION</constant> + (<type>string</type>) + </term> + <listitem> + <simpara> + libenchant のバージョン。 + PHP 8.0.0 以降で利用可能です。 + </simpara> + </listitem> + </varlistentry> <varlistentry xml:id="constant.enchant-myspell"> <term> <constant>ENCHANT_MYSPELL</constant> @@ -16,6 +28,7 @@ MySpell 用の辞書の型。 <function>enchant_broker_get_dict_path</function> や <function>enchant_broker_set_dict_path</function> で利用します。 + PHP 8.0.0 以降では推奨されません。 </simpara> </listitem> </varlistentry> @@ -29,6 +42,7 @@ Ispell 用の辞書の型。 <function>enchant_broker_get_dict_path</function> や <function>enchant_broker_set_dict_path</function> で利用します。 + PHP 8.0.0 以降では推奨されません。 </simpara> </listitem> </varlistentry> diff --git a/reference/enchant/functions/enchant-broker-free-dict.xml b/reference/enchant/functions/enchant-broker-free-dict.xml index b2739f63c0..46706bbd0f 100644 --- a/reference/enchant/functions/enchant-broker-free-dict.xml +++ b/reference/enchant/functions/enchant-broker-free-dict.xml @@ -1,12 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 6fa29283c5861ccb1f9da74fb252f80e01d27668 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: takagi Status: ready --> <!-- Credits: mumumu --> <refentry xml:id="function.enchant-broker-free-dict" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>enchant_broker_free_dict</refname> <refpurpose>辞書リソースを開放する</refpurpose> </refnamediv> + + <refsynopsisdiv> + &warn.deprecated.function-8-0-0; + </refsynopsisdiv> + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -14,7 +19,8 @@ <methodparam><type>EnchantDictionary</type><parameter>dictionary</parameter></methodparam> </methodsynopsis> <para> - 辞書リソースを開放します。 + 辞書を開放します。 + PHP 8.0.0 以降では、この関数を呼び出す代わりに、オブジェクト自体を unset することを推奨します。 </para> </refsect1> <refsect1 role="parameters"> diff --git a/reference/enchant/functions/enchant-broker-free.xml b/reference/enchant/functions/enchant-broker-free.xml index 71d2b5c60b..d1ad0f7570 100644 --- a/reference/enchant/functions/enchant-broker-free.xml +++ b/reference/enchant/functions/enchant-broker-free.xml @@ -1,12 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 6fa29283c5861ccb1f9da74fb252f80e01d27668 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: takagi Status: ready --> <!-- Credits: mumumu --> <refentry xml:id="function.enchant-broker-free" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>enchant_broker_free</refname> <refpurpose>ブローカーリソースおよびその辞書を開放する</refpurpose> </refnamediv> + + <refsynopsisdiv> + &warn.deprecated.function-8-0-0; + </refsynopsisdiv> + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -14,7 +19,8 @@ <methodparam><type>EnchantBroker</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> - ブローカーリソースを、その辞書とともに開放します。 + ブローカーをその辞書とともに開放します。 + PHP 8.0.0 以降では、この関数を呼び出さず、オブジェクト自体を unset することを推奨します。 </para> </refsect1> diff --git a/reference/enchant/functions/enchant-broker-get-dict-path.xml b/reference/enchant/functions/enchant-broker-get-dict-path.xml new file mode 100644 index 0000000000..a76b00cd26 --- /dev/null +++ b/reference/enchant/functions/enchant-broker-get-dict-path.xml @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: mumumu Status: ready --> + +<refentry xml:id="function.enchant-broker-get-dict-path" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>enchant_broker_get_dict_path</refname> + <refpurpose>指定されたバックエンドの辞書のパスを取得する</refpurpose> + </refnamediv> + + <refsynopsisdiv> + &warn.deprecated.function-8-0-0; + </refsynopsisdiv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type class="union"><type>string</type><type>false</type></type><methodname>enchant_broker_get_dict_path</methodname> + <methodparam><type>EnchantBroker</type><parameter>broker</parameter></methodparam> + <methodparam><type>int</type><parameter>type</parameter></methodparam> + </methodsynopsis> + <para> + 指定されたバックエンドの辞書のパスを取得します。 + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &enchant.param.broker; + <varlistentry> + <term><parameter>type</parameter></term> + <listitem> + <para> + 辞書のタイプ。たとえば、<constant>ENCHANT_MYSPELL</constant> または <constant>ENCHANT_ISPELL</constant>。 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 成功した場合、辞書のディレクトリパスを返します。 + &return.falseforfailure; + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &enchant.changelog.broker-param; + </tbody> + </tgroup> + </informaltable> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + この関数は、拡張機能が Enchant v1 を使ってコンパイルされた場合にのみ利用可能です。 + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>enchant_broker_set_dict_path</function></member> + </simplelist> + </para> + </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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/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 +--> diff --git a/reference/enchant/functions/enchant-broker-set-dict-path.xml b/reference/enchant/functions/enchant-broker-set-dict-path.xml new file mode 100644 index 0000000000..4fc0832b4d --- /dev/null +++ b/reference/enchant/functions/enchant-broker-set-dict-path.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: mumumu Status: ready --> + +<refentry xml:id="function.enchant-broker-set-dict-path" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>enchant_broker_set_dict_path</refname> + <refpurpose>指定されたバックエンドの辞書のパスを設定する</refpurpose> + </refnamediv> + + <refsynopsisdiv> + &warn.deprecated.function-8-0-0; + </refsynopsisdiv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>enchant_broker_set_dict_path</methodname> + <methodparam><type>EnchantBroker</type><parameter>broker</parameter></methodparam> + <methodparam><type>int</type><parameter>type</parameter></methodparam> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + </methodsynopsis> + <para> + 指定されたバックエンドの辞書のパスを設定します。 + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &enchant.param.broker; + <varlistentry> + <term><parameter>type</parameter></term> + <listitem> + <para> + 辞書のタイプ。たとえば、<constant>ENCHANT_MYSPELL</constant> または <constant>ENCHANT_ISPELL</constant>。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>path</parameter></term> + <listitem> + <para> + 辞書のディレクトリパス。 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &enchant.changelog.broker-param; + </tbody> + </tgroup> + </informaltable> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + この関数は、拡張機能が Enchant v1 を使ってコンパイルされた場合にのみ利用可能です。 + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>enchant_broker_get_dict_path</function></member> + </simplelist> + </para> + </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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/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 +--> diff --git a/reference/enchant/functions/enchant-dict-add-to-personal.xml b/reference/enchant/functions/enchant-dict-add-to-personal.xml index 06613f6dee..023a9f8e30 100644 --- a/reference/enchant/functions/enchant-dict-add-to-personal.xml +++ b/reference/enchant/functions/enchant-dict-add-to-personal.xml @@ -1,94 +1,23 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 6fa29283c5861ccb1f9da74fb252f80e01d27668 Maintainer: takagi Status: ready --> -<!-- Credits: mumumu --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: mumumu Status: ready --> + <refentry xml:id="function.enchant-dict-add-to-personal" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>enchant_dict_add_to_personal</refname> - <refpurpose>パーソナル単語リストに単語を追加する</refpurpose> + <refpurpose>&Alias; <function>enchant_dict_add</function></refpurpose> </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>enchant_dict_add_to_personal</methodname> - <methodparam><type>EnchantDictionary</type><parameter>dictionary</parameter></methodparam> - <methodparam><type>string</type><parameter>word</parameter></methodparam> - </methodsynopsis> - <para> - 指定した辞書のパーソナル単語リストに、単語を追加します。 - </para> - </refsect1> - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &enchant.param.dictionary; - <varlistentry> - <term><parameter>word</parameter></term> - <listitem> - <para> - 追加する単語。 - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - &return.success; - </para> - </refsect1> - - <refsect1 role="changelog"> - &reftitle.changelog; - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - &enchant.changelog.dictionary-param; - </tbody> - </tgroup> - </informaltable> - </refsect1> - - <refsect1 role="examples"> - <example> - <title>PWL への単語の追加</title> - <programlisting role="php"> -<![CDATA[ -<?php -$filename = './my_word_list.pwl'; -$word = 'Supercalifragilisticexpialidocious'; + <refsynopsisdiv> + &warn.deprecated.alias-8-0-0; + </refsynopsisdiv> -$broker = enchant_broker_init(); -$dict = enchant_broker_request_pwl_dict($broker, $filename); - -enchant_dict_add_to_personal($dict, $word); - -enchant_broker_free($broker); - -?> -]]> - </programlisting> - </example> - </refsect1> - - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>enchant_broker_request_pwl_dict</function></member> - <member><function>enchant_broker_request_dict</function></member> - </simplelist> - </para> + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>enchant_dict_add</function>. + </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/enchant/functions/enchant-dict-add.xml b/reference/enchant/functions/enchant-dict-add.xml new file mode 100644 index 0000000000..207e6c0ca2 --- /dev/null +++ b/reference/enchant/functions/enchant-dict-add.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: mumumu Status: ready --> +<refentry xml:id="function.enchant-dict-add" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>enchant_dict_add</refname> + <refpurpose>単語リストに単語を追加する</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>void</type><methodname>enchant_dict_add</methodname> + <methodparam><type>EnchantDictionary</type><parameter>dictionary</parameter></methodparam> + <methodparam><type>string</type><parameter>word</parameter></methodparam> + </methodsynopsis> + <para> + 指定した辞書の単語リストに単語を追加します。 + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &enchant.param.dictionary; + <varlistentry> + <term><parameter>word</parameter></term> + <listitem> + <para> + 追加する単語。 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &enchant.changelog.dictionary-param; + </tbody> + </tgroup> + </informaltable> + </refsect1> + + <refsect1 role="examples"> + <example> + <title>辞書リストに単語を追加する</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$filename = './my_word_list.pwl'; +$word = 'Supercalifragilisticexpialidocious'; + +$broker = enchant_broker_init(); +$dict = enchant_broker_request_pwl_dict($broker, $filename); + +enchant_dict_add($dict, $word); + +enchant_broker_free($broker); + +?> +]]> + </programlisting> + </example> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>enchant_broker_request_pwl_dict</function></member> + <member><function>enchant_broker_request_dict</function></member> + </simplelist> + </para> + </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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/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 +--> diff --git a/reference/enchant/functions/enchant-dict-is-added.xml b/reference/enchant/functions/enchant-dict-is-added.xml new file mode 100644 index 0000000000..35b7a5a66f --- /dev/null +++ b/reference/enchant/functions/enchant-dict-is-added.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: mumumu Status: ready --> +<refentry xml:id="function.enchant-dict-is-added" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>enchant_dict_is_added</refname> + <refpurpose>現在のセッションに、単語が存在するかどうかを調べる</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>enchant_dict_is_added</methodname> + <methodparam><type>EnchantDictionary</type><parameter>dictionary</parameter></methodparam> + <methodparam><type>string</type><parameter>word</parameter></methodparam> + </methodsynopsis> + <para> + 現在のセッションに、指定された単語が存在するかを調べる。 + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &enchant.param.dictionary; + <varlistentry> + <term><parameter>word</parameter></term> + <listitem> + <para> + 調べる単語。 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 単語が存在した場合、&true; を返します。 + 存在しない場合、&false; を返します。 + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &enchant.changelog.dictionary-param; + </tbody> + </tgroup> + </informaltable> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>enchant_dict_add_to_session</function></member> + </simplelist> + </para> + </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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/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 +--> diff --git a/reference/enchant/functions/enchant-dict-is-in-session.xml b/reference/enchant/functions/enchant-dict-is-in-session.xml index 505c13ee60..90a907d54b 100644 --- a/reference/enchant/functions/enchant-dict-is-in-session.xml +++ b/reference/enchant/functions/enchant-dict-is-in-session.xml @@ -1,72 +1,24 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 6fa29283c5861ccb1f9da74fb252f80e01d27668 Maintainer: takagi Status: ready --> -<!-- Credits: mumumu --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: mumumu Status: ready --> + <refentry xml:id="function.enchant-dict-is-in-session" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>enchant_dict_is_in_session</refname> - <refpurpose>このスペリングセッションに '単語' が存在するかどうかを調べる</refpurpose> + <refpurpose>&Alias; <function>enchant_dict_is_added</function></refpurpose> </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>enchant_dict_is_in_session</methodname> - <methodparam><type>EnchantDictionary</type><parameter>dictionary</parameter></methodparam> - <methodparam><type>string</type><parameter>word</parameter></methodparam> - </methodsynopsis> - <para> - ある単語が、現在のセッション内に既に存在するかどうかを調べます。 - </para> - </refsect1> - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - &enchant.param.dictionary; - <varlistentry> - <term><parameter>word</parameter></term> - <listitem> - <para> - 探す単語。 - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - 単語が存在する場合に &true;、それ以外の場合に &false; を返します。 - </para> - </refsect1> - <refsect1 role="changelog"> - &reftitle.changelog; - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - &enchant.changelog.dictionary-param; - </tbody> - </tgroup> - </informaltable> - </refsect1> + <refsynopsisdiv> + &warn.deprecated.alias-8-0-0; + </refsynopsisdiv> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><function>enchant_dict_add_to_session</function></member> - </simplelist> - </para> + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>enchant_dict_is_added</function>. + </simpara> </refsect1> - </refentry> <!-- Keep this comment at the end of the file Local variables: diff --git a/reference/enchant/setup.xml b/reference/enchant/setup.xml index 73050e4f75..416f4c6d24 100644 --- a/reference/enchant/setup.xml +++ b/reference/enchant/setup.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 6fa29283c5861ccb1f9da74fb252f80e01d27668 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 94f2c273f0bb214580b3cba17273f79e8cc2cb25 Maintainer: takagi Status: ready --> <!-- Credits: mumumu --> <chapter xml:id="enchant.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -14,7 +14,7 @@ <link xlink:href="&url.enchant;">Enchant ライブラリ</link> の関数を使用しています。 Enchant 1.2.4 以降が必要です。 - Enchant 2.0.0 以降はまだサポートされていません。 + Enchant 2.0.0 以降は、PHP 8.0.0 以降でのみサポートされています。 </para> <para> Enchant には <link xlink:href="&url.glib;">Glib 2.6</link> 以降も必要です。
« previous php.doc.ja (#6019) next »