cvs: phpdoc-fr /reference/enchant reference.xml /reference/enchant/functions enchant-broker-describe.xml enchant-broker-dict-exists.xml
enchant-broker-free-dict.xml enchant-broker-free.xml enchant-broker-get-error.xml enchant-broker-init.xml enchant-broker-list-dicts.xml
enchant-broker-request-dict.xml enchant-broker-request-pwl-dict.xml enchant-broker-set-ordering.xml enchant-dict-add-to-personal.xml
enchant-dict-add-to-session.xml enchant-dict-check.xml enchant-dict-describe.xml enchant-dict-get-error.xml enchant-dict-is-in-session.xml
enchant-dict-quick-check.xml enchant-dict-store-replacement.xml enchant-dict-suggest.xml
| From: | Yannick Torres | Date: | Thu, 17 Aug 2006 21:04:10 +0000 |
| Subject: | cvs: phpdoc-fr /reference/enchant reference.xml /reference/enchant/functions enchant-broker-describe.xml enchant-broker-dict-exists.xml enchant-broker-free-dict.xml enchant-broker-free.xml enchant-broker-get-error.xml enchant-broker-init.xml enchant-broker-list-dicts.xml enchant-broker-request-dict.xml enchant-broker-request-pwl-dict.xml enchant-broker-set-ordering.xml enchant-dict-add-to-personal.xml enchant-dict-add-to-session.xml enchant-dict-check.xml enchant-dict-describe.xml enchant-dict-get-error.xml enchant-dict-is-in-session.xml enchant-dict-quick-check.xml enchant-dict-store-replacement.xml enchant-dict-suggest.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-4990@lists.php.net to get a copy of this message | ||
yannick Thu Aug 17 21:04:10 2006 UTC
Added files:
/phpdoc-fr/reference/enchant/functions enchant-broker-describe.xml
enchant-broker-dict-exists.xml
enchant-broker-free-dict.xml
enchant-broker-free.xml
enchant-broker-get-error.xml
enchant-broker-init.xml
enchant-broker-list-dicts.xml
enchant-broker-request-dict.xml
enchant-broker-request-pwl-dict.xml
enchant-broker-set-ordering.xml
enchant-dict-add-to-personal.xml
enchant-dict-add-to-session.xml
enchant-dict-check.xml
enchant-dict-describe.xml
enchant-dict-get-error.xml
enchant-dict-is-in-session.xml
enchant-dict-quick-check.xml
enchant-dict-store-replacement.xml
enchant-dict-suggest.xml
/phpdoc-fr/reference/enchant reference.xml
Log:
initial translation
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/enchant/functions/enchant-broker-describe.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-describe.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-describe.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-describe"> <refnamediv> <refname>enchant_broker_describe</refname> <refpurpose>Énumère les fournisseurs Enchant</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>array</type><methodname>enchant_broker_describe</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Énumère les fournisseurs Enchant et affiche quelques informations sur eux. Les mêmes informations sont fournis via la fonction phpinfo(). </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource d'un sponsor </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Liste les interfaces fournies par un sponsor donné</title> <programlisting role="php"> <![CDATA[ <?php $r = enchant_broker_init(); $bprovides = enchant_broker_describe($r); echo "Le sponsor courant fournit les interfaces suivantes :\n"; print_r($bprovides); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Le sponsor courant fournit les interfaces suivantes : Array ( [0] => Array ( [name] => aspell [desc] => Aspell Provider [file] => /usr/lib/enchant/libenchant_aspell.so ) [1] => Array ( [name] => hspell [desc] => Hspell Provider [file] => /usr/lib/enchant/libenchant_hspell.so ) [2] => Array ( [name] => ispell [desc] => Ispell Provider [file] => /usr/lib/enchant/libenchant_ispell.so ) [3] => Array ( [name] => myspell [desc] => Myspell Provider [file] => /usr/lib/enchant/libenchant_myspell.so ) ) ]]> </screen> </example> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-dict-exists.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-dict-exists.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-dict-exists.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-dict-exists"> <refnamediv> <refname>enchant_broker_dict_exists</refname> <refpurpose>Vérifie si un dictionnaire existe</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_dict_exists</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>tag</parameter></methodparam> </methodsynopsis> <para> Vérifie si un dictionnaire existe. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tag</parameter></term> <listitem> <para> langage, dans un format comme us_US, ch_DE, etc. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le langage existe, &false; sinon. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_broker_dict_exists</function></title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); if (enchant_broker_dict_exists($r,$tag)) { echo $tag . " dictionary found.\n"; } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_describe</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-free-dict.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-free-dict.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-free-dict.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-free-dict"> <refnamediv> <refname>enchant_broker_free_dict</refname> <refpurpose>Libère une ressource de dictionnaire</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_free_dict</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> </methodsynopsis> <para> Libère une ressource de dictionnaire. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_request_dict</function></member> <member><function>enchant_broker_request_pwl_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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-free.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-free.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-free.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.enchant-broker-free"> <refnamediv> <refname>enchant_broker_free</refname> <refpurpose>Free the broker resource and its dictionnaries</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_free</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Free a broker resource with all its dictionaries. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Broker resource </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_init</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-get-error.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-get-error.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-get-error.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-get-error"> <refnamediv> <refname>enchant_broker_get_error</refname> <refpurpose>Retourne la dernière erreur d'un sponsor</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>enchant_broker_get_error</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Retourne la dernière erreur survenue pour ce sponsor. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne le message si une erreur a été trouvée, ou &false; sinon. </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-init.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-init.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-init.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-init"> <refnamediv> <refname>enchant_broker_init</refname> <refpurpose>Crée un nouvel objet sponsor</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>resource</type><methodname>enchant_broker_init</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une ressource de sponsor en cas de succès, &false; sinon. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_free</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-list-dicts.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-list-dicts.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-list-dicts.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-list-dicts"> <refnamediv> <refname>enchant_broker_list_dicts</refname> <refpurpose>Retourne une liste de tous les dictionnaires disponibles</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>enchant_broker_list_dicts</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Retourne une liste de tous les dictionnaires disponibles ainsi que leurs détails. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Liste tous les dictionnaires disponibles pour un sponsor</title> <programlisting role="php"> <![CDATA[ <?php $r = enchant_broker_init(); $dicts = enchant_broker_list_dicts($r); print_r($dicts); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [0] => Array ( [lang_tag] => de [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [1] => Array ( [lang_tag] => de_DE [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [3] => Array ( [lang_tag] => en [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [4] => Array ( [lang_tag] => en_GB [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [5] => Array ( [lang_tag] => en_US [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [6] => Array ( [lang_tag] => hi_IN [provider_name] => myspell [provider_desc] => Myspell Provider [provider_file] => /usr/lib/enchant/libenchant_myspell.so ) ) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_describe </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-request-dict.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-request-dict.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-request-dict.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-request-dict"> <refnamediv> <refname>enchant_broker_request_dict</refname> <refpurpose>Crée un nouveau dictionnaire</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>resource</type><methodname>enchant_broker_request_dict</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>tag</parameter></methodparam> </methodsynopsis> <para> Crée un nouveau dictionnaire en utilisant le paramètre <parameter>tag</parameter>, représentant le langage dont vous voulez associer le dictionnaire ("en_US", "de_DE", ...). </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tag</parameter></term> <listitem> <para> Une balise décrivant le langage, par exemple, en_US, de_DE </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une ressource de dictionnaire en cas de succès, &false; si une erreur survient. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_broker_request_dict</function></title> <para> Vérifie si un dictionnaire existe en utilisant la fonction <function>enchant_broker_dict_exists</function> et le demande. </para> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $broker = enchant_broker_init(); if (enchant_broker_dict_exists($broker,$tag)) { $dict = enchant_broker_request_dict($r, $tag); } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_describe</function></member> <member><function>enchant_broker_dict_exists</function></member> <member><function>enchant_broker_dict_free</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-request-pwl-dict.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-request-pwl-dict.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-request-pwl-dict.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-request-pwl-dict"> <refnamediv> <refname>enchant_broker_request_pwl_dict</refname> <refpurpose>Crée un dictionnaire en utilisant un fichier PWL. Un fichier PWL est un fichier de mots personnels contenant un mot par ligne</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>resource</type><methodname>enchant_broker_request_pwl_dict</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Crée un dictionnaire en utilisant un fichier PWL. Un fichier PWL est un fichier de mots personnels contenant un mot par ligne. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>filename</parameter></term> <listitem> <para> Chemin vers le fichier PWL </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une ressource de dictionnaire en cas de succès, &false; si une erreur survient. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_describe</function></member> <member><function>enchant_broker_dict_exists</function></member> <member><function>enchant_broker_dict_free</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-set-ordering.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-set-ordering.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-set-ordering.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-set-ordering"> <refnamediv> <refname>enchant_broker_set_ordering</refname> <refpurpose>Déclare une préférence pour un dictionnaire d'une langue</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_set_ordering</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>tag</parameter></methodparam> <methodparam><type>string</type><parameter>ordering</parameter></methodparam> </methodsynopsis> <para> Déclare une préférence pour un dictionnaire à utiliser pour la langue spécifiée par le paramètre <parameter>tag</parameter>. L'ordre des langues est une liste séparée par une virgule. Le caractère spécial "*" peut être utilisé comme langue pour déclarer un ordre par défaut pour tous les langages qui ne déclarent pas explicitement un ordre. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tag</parameter></term> <listitem> <para> La langue. Le caractère "*" peut être utilisé en tant que langage pour déclarer un ordre par défaut pour tous les langages qui ne déclarent pas explicitement un ordre. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>ordering</parameter></term> <listitem> <para> Liste de noms de fournisseurs séparée par une virgule </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-personal.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-personal.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-personal.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-add-to-personal"> <refnamediv> <refname>enchant_dict_add_to_personal</refname> <refpurpose>Ajoute un mot à la liste des mots personnelle</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>enchant_dict_add_to_personal</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Ajoute le mot <parameter>word</parameter> à la liste des mots personnelle du dictionnaire <parameter>dict</parameter>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à ajouter </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-session.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-session.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-session.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-add-to-session"> <refnamediv> <refname>enchant_dict_add_to_session</refname> <refpurpose>Ajoute un mot à la session courante</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>enchant_dict_add_to_session</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Ajoute le mot <parameter>word</parameter> au dictionnaire fourni. Il ne sera ajouté que pour la session courante. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à ajouter </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-check.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-check.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-check.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-check"> <refnamediv> <refname>enchant_dict_check</refname> <refpurpose>Vérifie si un mot est correctement orthographié</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_dict_check</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Retourne &true; si le mot <parameter>word</parameter> est correctement orthographié, &false; sinon. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à vérifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le mot est correctement orthographié, &false; sinon. </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-describe.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-describe.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-describe.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-describe"> <refnamediv> <refname>enchant_dict_describe</refname> <refpurpose>Décrit un dictionnaire</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>enchant_dict_describe</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> </methodsynopsis> <para> Retourne les détails d'un dictionnaire. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_dict_describe</function></title> <para> Vérifie si un dictionnaire existe en utilisant la fonction <function>enchant_broker_dict_exists</function> et affiche tous les détails concernant ce dictionnaire. </para> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $broker = enchant_broker_init(); if (enchant_broker_dict_exists($broker,$tag)) { $dict = enchant_broker_request_dict($r, $tag); $dict_details = enchant_dict_describe($dict); print_r($dict_details); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [lang] => en_US [name] => aspell [desc] => Aspell Provider [file] => /usr/lib/enchant/libenchant_aspell.so ) ]]> </screen> </example> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-get-error.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-get-error.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-get-error.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-get-error"> <refnamediv> <refname>enchant_dict_get_error</refname> <refpurpose>Retourne la dernière erreur de la session courante</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>enchant_dict_get_error</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> </methodsynopsis> <para> Retourne la dernière erreur de la session courante. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne le message d'erreur sous la forme d'une chaîne de caractères, ou &false; si une erreur survient. </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-is-in-session.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-is-in-session.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-is-in-session.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-is-in-session"> <refnamediv> <refname>enchant_dict_is_in_session</refname> <refpurpose>Vérifie si un mot existe dans une session de vérification</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_dict_is_in_session</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Vérifie si un mot existe ou non dans la session courante. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à vérifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le mot existe, &false; sinon. </para> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-quick-check.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-quick-check.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-quick-check.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-quick-check"> <refnamediv> <refname>enchant_dict_quick_check</refname> <refpurpose>Vérifie si le mot est correctement orthographié et fournit des suggestions</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_dict_quick_check</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter role="reference">suggestions</parameter></methodparam> </methodsynopsis> <para> Retourne &true; si le mot est correctement orthographié, &false; si la variable des suggestions est fournie, et la remplit des suggestions possibles. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à vérifier </para> </listitem> </varlistentry> <varlistentry> <term><parameter>suggestions</parameter></term> <listitem> <para> Si le mot n'est pas correctement orthographié, cette variable contiendra un tableau de suggestions. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le mot est correctement orthographié, &false; sinon. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_dict_quick_check</function></title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); if (enchant_broker_dict_exists($r,$tag)) { $d = enchant_broker_request_dict($r, $tag); enchant_dict_quick_check($d, 'soong', $suggs); print_r($suggs); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [0] => song [1] => snog [2] => soon [3] => Sang [4] => Sung [5] => sang [6] => sung [7] => sponge [8] => spongy [9] => snag [10] => snug [11] => sonic [12] => sing [13] => songs [14] => Son [15] => Sonja [16] => Synge [17] => son [18] => Sejong [19] => sarong [20] => sooner [21] => Sony [22] => sown [23] => scone [24] => song's ) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_check</function></member> <member><function>enchant_dict_suggest</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-store-replacement.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-store-replacement.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-store-replacement.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-store-replacement"> <refnamediv> <refname>enchant_dict_store_replacement</refname> <refpurpose>Ajoute une orthographe pour un mot</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>enchant_dict_store_replacement</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>mis</parameter></methodparam> <methodparam><type>string</type><parameter>cor</parameter></methodparam> </methodsynopsis> <para> Ajoute une orthographe pour <parameter>mis</parameter> en utilisant <parameter>cor</parameter>. Notez que si vous remplacez @mis par @cor, alors il est probable que les futures occurences den@mis seront remplacées par @cor. Ainsi, @cor sera ajouté à la liste des suggestions. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>mis</parameter></term> <listitem> <para> Le mot à traiter </para> </listitem> </varlistentry> <varlistentry> <term><parameter>cor</parameter></term> <listitem> <para> Le mot correct </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-suggest.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-suggest.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-suggest.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-suggest"> <refnamediv> <refname>enchant_dict_suggest</refname> <refpurpose>Retourne une liste de valeurs si aucunes des conditions ne sont réunies</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>array</type><methodname>enchant_dict_suggest</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Mot à utiliser pour les suggestions </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne un tableau de suggestions si le mot est mal orthographié. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_dict_suggest</function></title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); if (enchant_broker_dict_exists($r,$tag)) { $d = enchant_broker_request_dict($r, $tag); $spellerrors = enchant_dict_check($d, "soong"); echo "found $spellerrors spell errors\n"; if ($spellerrors) { $suggs = enchant_dict_suggest($d, "soong"); echo "Suggestions pour 'soong' : "; print_r($suggs); } enchant_broker_free_dict($d); } enchant_broker_free($r); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_check</function></member> <member><function>enchant_dict_quick_check</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:"../../../../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/phpdoc-fr/reference/enchant/reference.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/reference.xml +++ phpdoc-fr/reference/enchant/reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: international --> <!-- Membership: pecl, external --> <reference id="ref.enchant"> <title>Fonctions enchant</title> <titleabbrev>enchant</titleabbrev> <partintro> <section id="enchant.intro"> &reftitle.intro; <para> Enchant est l'association &php; pour la <ulink url="&url.enchant;">librairie Enchant</ulink>. Enchant fournit une couche d'abstraction uniforme et conforme pour toutes les bibliothèques de vérifications d'orthographe et implémente certaines fonctionnalités qui peuvent manquer dans certaines bibliothèques. Tout devrait tout simplement fonctionner pour toutes les bibliothèques. </para> <para> Enchat supporte les différentes interfaces : <itemizedlist> <listitem> <para> <literal>Aspell/Pspell (prévu comme remplaçant de Ispell)</literal> </para> </listitem> <listitem> <para> <literal>Ispell (le plus ancien, peut être vu comme un standard defacto)</literal> </para> </listitem> <listitem> <para> <literal>MySpell/Hunspell (un projet OOo, également utilisé par Mozilla)</literal> </para> </listitem> <listitem> <para> <literal>Uspell (à l'origine pour les langues Yiddish, Hébreu, et l'europe de l'est - hébergé dans le CVS d'AbiWord's sous le module "uspell")</literal> </para> </listitem> <listitem> <para> <literal>Hspell (Hébreu)</literal> </para> </listitem> <listitem> <para> <literal>AppleSpell (Mac OSX)</literal> </para> </listitem> </itemizedlist> </para> </section> <section id="enchant.requirements"> &reftitle.required; <para> Cette version fournit les fonctions de la <ulink url="&url.enchant;">librairie Enchant</ulink> de Dom Lachowicz. Vous avez besoin d'Enchant 1.2.4 ou suivant. </para> </section> <section id="enchant.installation"> &reftitle.install; <para> &pecl.info; <ulink url="&url.pecl.package;enchant">&url.pecl.package;enchant</ulink>. </para> </section> <section id="enchant.configuration"> &reftitle.runtime; &no.config; </section> <section id="enchant.resources"> &reftitle.resources; <para> Il y a deux types de ressources pour cette extension. La première est un sponsor (manageur d'interfaces) et la seconde est un dictionnaire. </para> </section> <section id="enchant.examples"> &reftitle.examples; <example> <title>Exemple d'utilisation d'Enchant</title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); $bprovides = enchant_broker_describe($r); echo "Le sponsor courant fournit les interfaces suivantes :\n"; print_r($bprovides); $dicts = enchant_broker_list_dicts($r); print_r($dicts); if (enchant_broker_dict_exists($r,$tag)) { $d = enchant_broker_request_dict($r, $tag); $dprovides = enchant_dict_describe($d); echo "le dictionnaire $tag fournit :\n"; $spellerrors = enchant_dict_check($d, "soong"); print_r($dprovides); echo "$spellerrors erreurs d'orthographe ont été trouvées\n"; if ($spellerrors) { $suggs = enchant_dict_suggest($d, "soong"); echo "Suggestions pour 'soong' : "; print_r($suggs); } enchant_broker_free_dict($d); } else { } enchant_broker_free($r); ?> ]]> </programlisting> </example> </section> </partintro> &reference.enchant.functions; </reference> <!-- 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:"../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-describe.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-describe.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-describe.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-describe"> <refnamediv> <refname>enchant_broker_describe</refname> <refpurpose>Énumère les fournisseurs Enchant</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>array</type><methodname>enchant_broker_describe</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Énumère les fournisseurs Enchant et affiche quelques informations sur eux. Les mêmes informations sont fournis via la fonction phpinfo(). </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource d'un sponsor </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Liste les interfaces fournies par un sponsor donné</title> <programlisting role="php"> <![CDATA[ <?php $r = enchant_broker_init(); $bprovides = enchant_broker_describe($r); echo "Le sponsor courant fournit les interfaces suivantes :\n"; print_r($bprovides); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Le sponsor courant fournit les interfaces suivantes : Array ( [0] => Array ( [name] => aspell [desc] => Aspell Provider [file] => /usr/lib/enchant/libenchant_aspell.so ) [1] => Array ( [name] => hspell [desc] => Hspell Provider [file] => /usr/lib/enchant/libenchant_hspell.so ) [2] => Array ( [name] => ispell [desc] => Ispell Provider [file] => /usr/lib/enchant/libenchant_ispell.so ) [3] => Array ( [name] => myspell [desc] => Myspell Provider [file] => /usr/lib/enchant/libenchant_myspell.so ) ) ]]> </screen> </example> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-dict-exists.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-dict-exists.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-dict-exists.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-dict-exists"> <refnamediv> <refname>enchant_broker_dict_exists</refname> <refpurpose>Vérifie si un dictionnaire existe</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_dict_exists</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>tag</parameter></methodparam> </methodsynopsis> <para> Vérifie si un dictionnaire existe. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tag</parameter></term> <listitem> <para> langage, dans un format comme us_US, ch_DE, etc. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le langage existe, &false; sinon. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_broker_dict_exists</function></title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); if (enchant_broker_dict_exists($r,$tag)) { echo $tag . " dictionary found.\n"; } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_describe</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-free-dict.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-free-dict.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-free-dict.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-free-dict"> <refnamediv> <refname>enchant_broker_free_dict</refname> <refpurpose>Libère une ressource de dictionnaire</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_free_dict</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> </methodsynopsis> <para> Libère une ressource de dictionnaire. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_request_dict</function></member> <member><function>enchant_broker_request_pwl_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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-free.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-free.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-free.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.enchant-broker-free"> <refnamediv> <refname>enchant_broker_free</refname> <refpurpose>Free the broker resource and its dictionnaries</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_free</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Free a broker resource with all its dictionaries. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Broker resource </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_init</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-get-error.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-get-error.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-get-error.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-get-error"> <refnamediv> <refname>enchant_broker_get_error</refname> <refpurpose>Retourne la dernière erreur d'un sponsor</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>enchant_broker_get_error</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Retourne la dernière erreur survenue pour ce sponsor. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne le message si une erreur a été trouvée, ou &false; sinon. </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-init.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-init.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-init.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-init"> <refnamediv> <refname>enchant_broker_init</refname> <refpurpose>Crée un nouvel objet sponsor</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>resource</type><methodname>enchant_broker_init</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une ressource de sponsor en cas de succès, &false; sinon. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_free</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-list-dicts.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-list-dicts.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-list-dicts.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-list-dicts"> <refnamediv> <refname>enchant_broker_list_dicts</refname> <refpurpose>Retourne une liste de tous les dictionnaires disponibles</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>enchant_broker_list_dicts</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> </methodsynopsis> <para> Retourne une liste de tous les dictionnaires disponibles ainsi que leurs détails. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Liste tous les dictionnaires disponibles pour un sponsor</title> <programlisting role="php"> <![CDATA[ <?php $r = enchant_broker_init(); $dicts = enchant_broker_list_dicts($r); print_r($dicts); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [0] => Array ( [lang_tag] => de [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [1] => Array ( [lang_tag] => de_DE [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [3] => Array ( [lang_tag] => en [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [4] => Array ( [lang_tag] => en_GB [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [5] => Array ( [lang_tag] => en_US [provider_name] => aspell [provider_desc] => Aspell Provider [provider_file] => /usr/lib/enchant/libenchant_aspell.so ) [6] => Array ( [lang_tag] => hi_IN [provider_name] => myspell [provider_desc] => Myspell Provider [provider_file] => /usr/lib/enchant/libenchant_myspell.so ) ) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_broker_describe </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-request-dict.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-request-dict.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-request-dict.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-request-dict"> <refnamediv> <refname>enchant_broker_request_dict</refname> <refpurpose>Crée un nouveau dictionnaire</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>resource</type><methodname>enchant_broker_request_dict</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>tag</parameter></methodparam> </methodsynopsis> <para> Crée un nouveau dictionnaire en utilisant le paramètre <parameter>tag</parameter>, représentant le langage dont vous voulez associer le dictionnaire ("en_US", "de_DE", ...). </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tag</parameter></term> <listitem> <para> Une balise décrivant le langage, par exemple, en_US, de_DE </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une ressource de dictionnaire en cas de succès, &false; si une erreur survient. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_broker_request_dict</function></title> <para> Vérifie si un dictionnaire existe en utilisant la fonction <function>enchant_broker_dict_exists</function> et le demande. </para> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $broker = enchant_broker_init(); if (enchant_broker_dict_exists($broker,$tag)) { $dict = enchant_broker_request_dict($r, $tag); } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_describe</function></member> <member><function>enchant_broker_dict_exists</function></member> <member><function>enchant_broker_dict_free</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-request-pwl-dict.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-request-pwl-dict.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-request-pwl-dict.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-request-pwl-dict"> <refnamediv> <refname>enchant_broker_request_pwl_dict</refname> <refpurpose>Crée un dictionnaire en utilisant un fichier PWL. Un fichier PWL est un fichier de mots personnels contenant un mot par ligne</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>resource</type><methodname>enchant_broker_request_pwl_dict</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Crée un dictionnaire en utilisant un fichier PWL. Un fichier PWL est un fichier de mots personnels contenant un mot par ligne. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>filename</parameter></term> <listitem> <para> Chemin vers le fichier PWL </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une ressource de dictionnaire en cas de succès, &false; si une erreur survient. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_describe</function></member> <member><function>enchant_broker_dict_exists</function></member> <member><function>enchant_broker_dict_free</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-broker-set-ordering.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-broker-set-ordering.xml +++ phpdoc-fr/reference/enchant/functions/enchant-broker-set-ordering.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-broker-set-ordering"> <refnamediv> <refname>enchant_broker_set_ordering</refname> <refpurpose>Déclare une préférence pour un dictionnaire d'une langue</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_broker_set_ordering</methodname> <methodparam><type>resource</type><parameter>broker</parameter></methodparam> <methodparam><type>string</type><parameter>tag</parameter></methodparam> <methodparam><type>string</type><parameter>ordering</parameter></methodparam> </methodsynopsis> <para> Déclare une préférence pour un dictionnaire à utiliser pour la langue spécifiée par le paramètre <parameter>tag</parameter>. L'ordre des langues est une liste séparée par une virgule. Le caractère spécial "*" peut être utilisé comme langue pour déclarer un ordre par défaut pour tous les langages qui ne déclarent pas explicitement un ordre. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>broker</parameter></term> <listitem> <para> Ressource de sponsor </para> </listitem> </varlistentry> <varlistentry> <term><parameter>tag</parameter></term> <listitem> <para> La langue. Le caractère "*" peut être utilisé en tant que langage pour déclarer un ordre par défaut pour tous les langages qui ne déclarent pas explicitement un ordre. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>ordering</parameter></term> <listitem> <para> Liste de noms de fournisseurs séparée par une virgule </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-personal.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-personal.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-personal.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-add-to-personal"> <refnamediv> <refname>enchant_dict_add_to_personal</refname> <refpurpose>Ajoute un mot à la liste des mots personnelle</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>enchant_dict_add_to_personal</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Ajoute le mot <parameter>word</parameter> à la liste des mots personnelle du dictionnaire <parameter>dict</parameter>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à ajouter </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-session.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-session.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-add-to-session.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-add-to-session"> <refnamediv> <refname>enchant_dict_add_to_session</refname> <refpurpose>Ajoute un mot à la session courante</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>enchant_dict_add_to_session</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Ajoute le mot <parameter>word</parameter> au dictionnaire fourni. Il ne sera ajouté que pour la session courante. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à ajouter </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-check.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-check.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-check.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-check"> <refnamediv> <refname>enchant_dict_check</refname> <refpurpose>Vérifie si un mot est correctement orthographié</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_dict_check</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Retourne &true; si le mot <parameter>word</parameter> est correctement orthographié, &false; sinon. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à vérifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le mot est correctement orthographié, &false; sinon. </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-describe.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-describe.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-describe.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-describe"> <refnamediv> <refname>enchant_dict_describe</refname> <refpurpose>Décrit un dictionnaire</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>enchant_dict_describe</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> </methodsynopsis> <para> Retourne les détails d'un dictionnaire. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_dict_describe</function></title> <para> Vérifie si un dictionnaire existe en utilisant la fonction <function>enchant_broker_dict_exists</function> et affiche tous les détails concernant ce dictionnaire. </para> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $broker = enchant_broker_init(); if (enchant_broker_dict_exists($broker,$tag)) { $dict = enchant_broker_request_dict($r, $tag); $dict_details = enchant_dict_describe($dict); print_r($dict_details); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [lang] => en_US [name] => aspell [desc] => Aspell Provider [file] => /usr/lib/enchant/libenchant_aspell.so ) ]]> </screen> </example> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-get-error.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-get-error.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-get-error.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-get-error"> <refnamediv> <refname>enchant_dict_get_error</refname> <refpurpose>Retourne la dernière erreur de la session courante</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>enchant_dict_get_error</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> </methodsynopsis> <para> Retourne la dernière erreur de la session courante. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne le message d'erreur sous la forme d'une chaîne de caractères, ou &false; si une erreur survient. </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-is-in-session.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-is-in-session.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-is-in-session.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-is-in-session"> <refnamediv> <refname>enchant_dict_is_in_session</refname> <refpurpose>Vérifie si un mot existe dans une session de vérification</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_dict_is_in_session</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> Vérifie si un mot existe ou non dans la session courante. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à vérifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le mot existe, &false; sinon. </para> </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-quick-check.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-quick-check.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-quick-check.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-quick-check"> <refnamediv> <refname>enchant_dict_quick_check</refname> <refpurpose>Vérifie si le mot est correctement orthographié et fournit des suggestions</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>enchant_dict_quick_check</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter role="reference">suggestions</parameter></methodparam> </methodsynopsis> <para> Retourne &true; si le mot est correctement orthographié, &false; si la variable des suggestions est fournie, et la remplit des suggestions possibles. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Le mot à vérifier </para> </listitem> </varlistentry> <varlistentry> <term><parameter>suggestions</parameter></term> <listitem> <para> Si le mot n'est pas correctement orthographié, cette variable contiendra un tableau de suggestions. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne &true; si le mot est correctement orthographié, &false; sinon. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_dict_quick_check</function></title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); if (enchant_broker_dict_exists($r,$tag)) { $d = enchant_broker_request_dict($r, $tag); enchant_dict_quick_check($d, 'soong', $suggs); print_r($suggs); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [0] => song [1] => snog [2] => soon [3] => Sang [4] => Sung [5] => sang [6] => sung [7] => sponge [8] => spongy [9] => snag [10] => snug [11] => sonic [12] => sing [13] => songs [14] => Son [15] => Sonja [16] => Synge [17] => son [18] => Sejong [19] => sarong [20] => sooner [21] => Sony [22] => sown [23] => scone [24] => song's ) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_check</function></member> <member><function>enchant_dict_suggest</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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-store-replacement.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-store-replacement.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-store-replacement.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-store-replacement"> <refnamediv> <refname>enchant_dict_store_replacement</refname> <refpurpose>Ajoute une orthographe pour un mot</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>void</type><methodname>enchant_dict_store_replacement</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>mis</parameter></methodparam> <methodparam><type>string</type><parameter>cor</parameter></methodparam> </methodsynopsis> <para> Ajoute une orthographe pour <parameter>mis</parameter> en utilisant <parameter>cor</parameter>. Notez que si vous remplacez @mis par @cor, alors il est probable que les futures occurences den@mis seront remplacées par @cor. Ainsi, @cor sera ajouté à la liste des suggestions. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>mis</parameter></term> <listitem> <para> Le mot à traiter </para> </listitem> </varlistentry> <varlistentry> <term><parameter>cor</parameter></term> <listitem> <para> Le mot correct </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </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:"../../../../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/phpdoc-fr/reference/enchant/functions/enchant-dict-suggest.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/functions/enchant-dict-suggest.xml +++ phpdoc-fr/reference/enchant/functions/enchant-dict-suggest.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.enchant-dict-suggest"> <refnamediv> <refname>enchant_dict_suggest</refname> <refpurpose>Retourne une liste de valeurs si aucunes des conditions ne sont réunies</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>array</type><methodname>enchant_dict_suggest</methodname> <methodparam><type>resource</type><parameter>dict</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <para> </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>dict</parameter></term> <listitem> <para> Ressource de dictionnaire </para> </listitem> </varlistentry> <varlistentry> <term><parameter>word</parameter></term> <listitem> <para> Mot à utiliser pour les suggestions </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne un tableau de suggestions si le mot est mal orthographié. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>enchant_dict_suggest</function></title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); if (enchant_broker_dict_exists($r,$tag)) { $d = enchant_broker_request_dict($r, $tag); $spellerrors = enchant_dict_check($d, "soong"); echo "found $spellerrors spell errors\n"; if ($spellerrors) { $suggs = enchant_dict_suggest($d, "soong"); echo "Suggestions pour 'soong' : "; print_r($suggs); } enchant_broker_free_dict($d); } enchant_broker_free($r); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>enchant_dict_check</function></member> <member><function>enchant_dict_quick_check</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:"../../../../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/phpdoc-fr/reference/enchant/reference.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/enchant/reference.xml +++ phpdoc-fr/reference/enchant/reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: international --> <!-- Membership: pecl, external --> <reference id="ref.enchant"> <title>Fonctions enchant</title> <titleabbrev>enchant</titleabbrev> <partintro> <section id="enchant.intro"> &reftitle.intro; <para> Enchant est l'association &php; pour la <ulink url="&url.enchant;">librairie Enchant</ulink>. Enchant fournit une couche d'abstraction uniforme et conforme pour toutes les bibliothèques de vérifications d'orthographe et implémente certaines fonctionnalités qui peuvent manquer dans certaines bibliothèques. Tout devrait tout simplement fonctionner pour toutes les bibliothèques. </para> <para> Enchat supporte les différentes interfaces : <itemizedlist> <listitem> <para> <literal>Aspell/Pspell (prévu comme remplaçant de Ispell)</literal> </para> </listitem> <listitem> <para> <literal>Ispell (le plus ancien, peut être vu comme un standard defacto)</literal> </para> </listitem> <listitem> <para> <literal>MySpell/Hunspell (un projet OOo, également utilisé par Mozilla)</literal> </para> </listitem> <listitem> <para> <literal>Uspell (à l'origine pour les langues Yiddish, Hébreu, et l'europe de l'est - hébergé dans le CVS d'AbiWord's sous le module "uspell")</literal> </para> </listitem> <listitem> <para> <literal>Hspell (Hébreu)</literal> </para> </listitem> <listitem> <para> <literal>AppleSpell (Mac OSX)</literal> </para> </listitem> </itemizedlist> </para> </section> <section id="enchant.requirements"> &reftitle.required; <para> Cette version fournit les fonctions de la <ulink url="&url.enchant;">librairie Enchant</ulink> de Dom Lachowicz. Vous avez besoin d'Enchant 1.2.4 ou suivant. </para> </section> <section id="enchant.installation"> &reftitle.install; <para> &pecl.info; <ulink url="&url.pecl.package;enchant">&url.pecl.package;enchant</ulink>. </para> </section> <section id="enchant.configuration"> &reftitle.runtime; &no.config; </section> <section id="enchant.resources"> &reftitle.resources; <para> Il y a deux types de ressources pour cette extension. La première est un sponsor (manageur d'interfaces) et la seconde est un dictionnaire. </para> </section> <section id="enchant.examples"> &reftitle.examples; <example> <title>Exemple d'utilisation d'Enchant</title> <programlisting role="php"> <![CDATA[ <?php $tag = 'en_US'; $r = enchant_broker_init(); $bprovides = enchant_broker_describe($r); echo "Le sponsor courant fournit les interfaces suivantes :\n"; print_r($bprovides); $dicts = enchant_broker_list_dicts($r); print_r($dicts); if (enchant_broker_dict_exists($r,$tag)) { $d = enchant_broker_request_dict($r, $tag); $dprovides = enchant_dict_describe($d); echo "le dictionnaire $tag fournit :\n"; $spellerrors = enchant_dict_check($d, "soong"); print_r($dprovides); echo "$spellerrors erreurs d'orthographe ont été trouvées\n"; if ($spellerrors) { $suggs = enchant_dict_suggest($d, "soong"); echo "Suggestions pour 'soong' : "; print_r($suggs); } enchant_broker_free_dict($d); } else { } enchant_broker_free($r); ?> ]]> </programlisting> </example> </section> </partintro> &reference.enchant.functions; </reference> <!-- 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:"../../../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 -->