cvs: phpdoc-fr /reference/pspell configure.xml constants.xml functions.xml reference.xml /reference/pspell/functions pspell-add-to-personal.xml
pspell-add-to-session.xml pspell-check.xml pspell-clear-session.xml pspell-config-create.xml pspell-config-ignore.xml pspell-config-mode.xml
pspell-config-personal.xml pspell-config-repl.xml pspell-config-runtogether.xml pspell-config-save-repl.xml pspell-new-config.xml
pspell-new-personal.xml pspell-new.xml pspell-save-wordlist.xml pspell-store-replacement.xml pspell-suggest.xml
| From: | Damien Seguy | Date: | Wed, 09 Jul 2003 11:34:35 +0000 |
| Subject: | cvs: phpdoc-fr /reference/pspell configure.xml constants.xml functions.xml reference.xml /reference/pspell/functions pspell-add-to-personal.xml pspell-add-to-session.xml pspell-check.xml pspell-clear-session.xml pspell-config-create.xml pspell-config-ignore.xml pspell-config-mode.xml pspell-config-personal.xml pspell-config-repl.xml pspell-config-runtogether.xml pspell-config-save-repl.xml pspell-new-config.xml pspell-new-personal.xml pspell-new.xml pspell-save-wordlist.xml pspell-store-replacement.xml pspell-suggest.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-609@lists.php.net to get a copy of this message | ||
dams Wed Jul 9 07:34:35 2003 EDT
Added files:
/phpdoc-fr/reference/pspell configure.xml constants.xml
Modified files:
/phpdoc-fr/reference/pspell functions.xml reference.xml
/phpdoc-fr/reference/pspell/functions pspell-add-to-personal.xml
pspell-add-to-session.xml
pspell-check.xml
pspell-clear-session.xml
pspell-config-create.xml
pspell-config-ignore.xml
pspell-config-mode.xml
pspell-config-personal.xml
pspell-config-repl.xml
pspell-config-runtogether.xml
pspell-config-save-repl.xml
pspell-new-config.xml
pspell-new-personal.xml
pspell-new.xml
pspell-save-wordlist.xml
pspell-store-replacement.xml
pspell-suggest.xml
Log:
keep up with en tree
Index: phpdoc-fr/reference/pspell/functions.xml diff -u /dev/null phpdoc-fr/reference/pspell/functions.xml:1.3 --- /dev/null Wed Jul 9 07:34:35 2003 +++ phpdoc-fr/reference/pspell/functions.xml Wed Jul 9 07:34:35 2003 @@ -0,0 +1,17 @@ +&reference.pspell.functions.pspell-add-to-personal; +&reference.pspell.functions.pspell-add-to-session; +&reference.pspell.functions.pspell-check; +&reference.pspell.functions.pspell-clear-session; +&reference.pspell.functions.pspell-config-create; +&reference.pspell.functions.pspell-config-ignore; +&reference.pspell.functions.pspell-config-mode; +&reference.pspell.functions.pspell-config-personal; +&reference.pspell.functions.pspell-config-repl; +&reference.pspell.functions.pspell-config-runtogether; +&reference.pspell.functions.pspell-config-save-repl; +&reference.pspell.functions.pspell-new-config; +&reference.pspell.functions.pspell-new-personal; +&reference.pspell.functions.pspell-new; +&reference.pspell.functions.pspell-save-wordlist; +&reference.pspell.functions.pspell-store-replacement; +&reference.pspell.functions.pspell-suggest; Index: phpdoc-fr/reference/pspell/reference.xml diff -u phpdoc-fr/reference/pspell/reference.xml:1.3 phpdoc-fr/reference/pspell/reference.xml:1.4 --- phpdoc-fr/reference/pspell/reference.xml:1.3 Tue Feb 4 19:03:52 2003 +++ phpdoc-fr/reference/pspell/reference.xml Wed Jul 9 07:34:35 2003 @@ -2,19 +2,44 @@ <reference id="ref.pspell"> <title>Pspell</title> <titleabbrev>Pspell</titleabbrev> + <partintro> - <simpara> + + <section id="pspell.intro"> + &reftitle.intro; + <para> La librairie pspell vous permet de vérifier l'orthographe d'un mot, et suggérer des corrections. - </simpara> - <simpara> + </para> + ¬e.no-windows.extension; + </section> + + <section id="pspell.requirements"> + &reftitle.required; + <para> Vous aurez besoin des librairies aspell et pspell, disponibles à <ulink url="&url.aspell;">&url.aspell;</ulink> et <ulink url="&url.pspell;">&url.pspell;</ulink> (respectivement). Il faut aussi ajouter l'option <option role="configure">--with-pspell[=dir]</option> lors de la compilation de PHP. - </simpara> + </para> + </section> + + &reference.pspell.configure; + + <section id="pspell.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="pspell.resources"> + &reftitle.resources; + &no.resource; + </section> + + &reference.pspell.constants; + </partintro> &reference.pspell.functions; Index: phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml:1.1 Sun Apr 14 20:37:22 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-add-to-personal"> <refnamediv> <refname>pspell_add_to_personal</refname> - <refpurpose>Ajoute le mot au dictionnaire personnel.</refpurpose> + <refpurpose>Ajoute le mot au dictionnaire personnel</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_add_to_personal</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> @@ -26,13 +26,15 @@ <example> <title>Exemple avec <function>pspell_add_to_personal</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); $pspell_link = pspell_new_config ($pspell_config); pspell_add_to_personal ($pspell_link, "Vlad"); pspell_save_wordlist ($pspell_link); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml Wed Jul 9 07:34:35 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_add_to_session</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> Index: phpdoc-fr/reference/pspell/functions/pspell-check.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-check.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-check.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-check.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-check.xml Wed Jul 9 07:34:35 2003 @@ -9,8 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>pspell_check</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <type>bool</type><methodname>pspell_check</methodname> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> @@ -21,14 +21,16 @@ <example> <title><function>pspell_check</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_link = pspell_new ("french"); if (pspell_check ($pspell_link, "testt")) { echo "L'orthographe est exacte"; } else { echo "Désolé, mauvaise orthographe"; } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-clear-session"> <refnamediv> <refname>pspell_clear_session</refname> - <refpurpose>Remet à zéro la session courante.</refpurpose> + <refpurpose>Remet à zéro la session courante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_clear_session</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_clear_session</function> remet à zéro la @@ -22,14 +22,16 @@ <example> <title>Exemple avec <function>pspell_add_to_personal</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -$pspell_link = pspell_new_config ($pspell_config); -pspell_add_to_personal ($pspell_link, "Vlad"); -pspell_clear_session ($pspell_link); -pspell_save_wordlist ($pspell_link); //"Vlad" ne sera pas sauvé -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + $pspell_link = pspell_new_config ($pspell_config); + pspell_add_to_personal ($pspell_link, "Vlad"); + pspell_clear_session ($pspell_link); + pspell_save_wordlist ($pspell_link); //"Vlad" ne sera pas sauvé +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-create.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-create.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-create.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-create.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-create.xml Wed Jul 9 07:34:35 2003 @@ -11,17 +11,11 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_config_create</methodname> + <type>int</type><methodname>pspell_config_create</methodname> <methodparam><type>string</type><parameter>language</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - spelling - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - jargon - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - encoding - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>spelling</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>jargon</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_config_create</function> a une syntaxe similaire à @@ -63,17 +57,17 @@ <itemizedlist> <listitem> <simpara> - PSPELL_FAST - Mode rapide (moins de suggestions, plus de vitesse) + <constant>PSPELL_FAST</constant> - Mode rapide (moins de suggestions, plus de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_NORMAL - Mode normal mode (plus de suggestions) + <constant>PSPELL_NORMAL</constant> - Mode normal mode (plus de suggestions) </simpara> </listitem> <listitem> <simpara> - PSPELL_BAD_SPELLERS - Mode lent (beaucoup plus de suggestions, moins de vitesse) + <constant>PSPELL_BAD_SPELLERS</constant> - Mode lent (beaucoup plus de suggestions, moins de vitesse) </simpara> </listitem> </itemizedlist> @@ -86,12 +80,14 @@ <example> <title>Exemple avec <function>pspell_config_create</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); -$pspell_link = pspell_new_personal (pspell_config); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); + $pspell_link = pspell_new_personal (pspell_config); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-config-ignore"> <refnamediv> <refname>pspell_config_ignore</refname> - <refpurpose>Ignore les mots des moins de N caractères.</refpurpose> + <refpurpose>Ignore les mots des moins de N caractères</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_ignore</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>int</type><parameter>n</parameter></methodparam> </methodsynopsis> <simpara> @@ -22,12 +22,14 @@ <example> <title>Exemple avec <function>pspell_config_ignore</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_ignore($pspell_config, 5); $pspell_link = pspell_new_config($pspell_config); pspell_check($pspell_link, "abcd"); // Ce mot ne provoquera pas d'erreur -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml Wed Jul 9 07:34:35 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_mode</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <simpara> @@ -42,14 +42,16 @@ </para> <para> <example> - <title><function>pspell_config_mode</function></title> + <title>Exemple avec <function>pspell_config_mode</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_mode($pspell_config, PSPELL_FAST); $pspell_link = pspell_new_config($pspell_config); pspell_check($pspell_link, "thecat"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml Wed Jul 9 07:34:35 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_personal</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>file</parameter></methodparam> </methodsynopsis> <simpara> @@ -32,12 +32,14 @@ <example> <title>Exemple avec <function>pspell_config_personal</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); $pspell_link = pspell_new_config ($pspell_config); pspell_check ($pspell_link, "thecat"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-config-repl"> <refnamediv> <refname>pspell_config_repl</refname> - <refpurpose>Choisit le fichier qui contient les paires de remplacement.</refpurpose> + <refpurpose>Choisit le fichier qui contient les paires de remplacement</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_repl</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>file</parameter></methodparam> </methodsynopsis> <simpara> @@ -30,13 +30,15 @@ <example> <title>Exemple avec <function>pspell_config_repl</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); $pspell_link = pspell_new_config ($pspell_config); pspell_check ($pspell_link, "thecat"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml:1.2 phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml:1.3 --- phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml:1.2 Tue Aug 13 22:19:34 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml Wed Jul 9 07:34:35 2003 @@ -12,8 +12,8 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_runtogether</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> - <methodparam><type>boolean</type><parameter>flag</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>bool</type><parameter>flag</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_config_runtogether</function> doit être @@ -30,12 +30,14 @@ <example> <title>Exemple avec <function>pspell_config_runtogether</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_runtogether ($pspell_config, &true;); -$pspell_link = pspell_new_config ($pspell_config); -pspell_check ($pspell_link, "thecat"); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_runtogether ($pspell_config, &true;); + $pspell_link = pspell_new_config ($pspell_config); + pspell_check ($pspell_link, "thecat"); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml Wed Jul 9 07:34:35 2003 @@ -4,16 +4,14 @@ <refentry id="function.pspell-config-save-repl"> <refnamediv> <refname>pspell_config_save_repl</refname> - <refpurpose> - Active la sauvegarde des paires de remplacement - </refpurpose> + <refpurpose>Active la sauvegarde des paires de remplacement</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_save_repl</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> - <methodparam><type>boolean</type><parameter>flag</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>bool</type><parameter>flag</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_config_save_repl</function> doit être appelé Index: phpdoc-fr/reference/pspell/functions/pspell-new-config.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-new-config.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-new-config.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-new-config.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-new-config.xml Wed Jul 9 07:34:35 2003 @@ -9,8 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_new_config</methodname> - <methodparam><type>resource</type><parameter>config</parameter></methodparam> + <type>int</type><methodname>pspell_new_config</methodname> + <methodparam><type>int</type><parameter>config</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_new_config</function> ouvre un nouveau dictionnaire @@ -29,14 +29,16 @@ </para> <para> <example> - <title><function>pspell_new_config</function></title> + <title>Exemple avec <function>pspell_new_config</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); -$pspell_link = pspell_new_personal (pspell_config); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); + $pspell_link = pspell_new_personal (pspell_config); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml Wed Jul 9 07:34:35 2003 @@ -4,28 +4,18 @@ <refentry id="function.pspell-new-personal"> <refnamediv> <refname>pspell_new_personal</refname> - <refpurpose> - Charge un nouveau dictionnaire avec un dictionnaire personnel - </refpurpose> + <refpurpose>Charge un nouveau dictionnaire avec un dictionnaire personnel</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_new_personal</methodname> + <type>int</type><methodname>pspell_new_personal</methodname> <methodparam><type>string</type><parameter>personal</parameter></methodparam> <methodparam><type>string</type><parameter>language</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - spelling - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - jargon - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - encoding - </parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - mode - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>spelling</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>jargon</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_new_personal</function> charge un nouveau dictionnaire @@ -78,17 +68,17 @@ <itemizedlist> <listitem> <simpara> - PSPELL_FAST - Mode rapide (moins de suggestions, plus de vitesse) + <constant>PSPELL_FAST</constant> - Mode rapide (moins de suggestions, plus de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_NORMAL - Mode normal mode (plus de suggestions) + <constant>PSPELL_NORMAL</constant> - Mode normal mode (plus de suggestions) </simpara> </listitem> <listitem> <simpara> - PSPELL_BAD_SPELLERS - Mode lent (beaucoup plus de suggestions, moins de vitesse) + <constant>PSPELL_BAD_SPELLERS</constant> - Mode lent (beaucoup plus de suggestions, moins de vitesse) </simpara> </listitem> </itemizedlist> @@ -101,9 +91,13 @@ <example> <title>Exemple avec <function>pspell_new_personal</function></title> <programlisting role="php"> -<?php -$pspell_link = pspell_new_personal ("/var/dictionaries/custom.pws", "en", "", "", "", PSPELL_FAST|PSPELL_RUN_TOGETHER)); -?> +<![CDATA[ +<?php + $pspell_link = pspell_new_personal ("/var/dictionaries/custom.pws", + "en", "", "", "", + PSPELL_FAST | PSPELL_RUN_TOGETHER)); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-new.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-new.xml:1.3 phpdoc-fr/reference/pspell/functions/pspell-new.xml:1.4 --- phpdoc-fr/reference/pspell/functions/pspell-new.xml:1.3 Tue Feb 4 18:58:17 2003 +++ phpdoc-fr/reference/pspell/functions/pspell-new.xml Wed Jul 9 07:34:35 2003 @@ -9,21 +9,13 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_new</methodname> + <type>int</type><methodname>pspell_new</methodname> <methodparam><type>string</type><parameter>language</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - spelling - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - jargon - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - encoding - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - mode - </parameter></methodparam> - </methodsynopsis> + <methodparam choice="opt"><type>string</type><parameter>spelling</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>jargon</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> <simpara> <function>pspell_new</function> ouvre un nouveau dictionnaire et retourne un identifiant de dictionnaire, pour utiliser avec d'autres @@ -56,23 +48,24 @@ <itemizedlist> <listitem> <simpara> - PSPELL_FAST - Mode rapide (moins de suggestions, plus de vitesse) + <constant>PSPELL_FAST</constant> - Mode rapide (moins de suggestions, plus de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_NORMAL - Mode normal mode (plus de suggestions) + <constant>PSPELL_NORMAL</constant> - Mode normal mode (plus de suggestions) </simpara> </listitem> <listitem> <simpara> - PSPELL_BAD_SPELLERS - Mode lent (beaucoup plus de suggestions, moins de vitesse) + <constant>PSPELL_BAD_SPELLERS</constant> - Mode lent (beaucoup plus de suggestions, moins de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_RUN_TOGETHER - Considère que des mots accolés forment un - composé autorisé. C'est à dire que "lechat" sera un composé valide. + <constant>PSPELL_RUN_TOGETHER</constant> - Considère que + des mots accolés forment un vomposé autorisé. + C'est à dire que "lechat" sera un composé valide. Cette option ne modifie que les résutlat retournés par <function>pspell_check</function>; <function>pspell_suggest</function> retournera toujours les mêmes @@ -80,9 +73,10 @@ </simpara> </listitem> </itemizedlist> - <parameter>Mode</parameter> est un champs de bit, construits à partir - des constantes listées ci dessus. Cependant, PSPELL_FAST, PSPELL_NORMAL et - PSPELL_BAD_SPELLERS sont mutuellement exclusives : vous ne devez + <parameter>mode</parameter> est un champs de bit, construits à partir + des constantes listées ci dessus. Cependant, <constant>PSPELL_FAST</constant>, + <constant>PSPELL_NORMAL</constant> et + <constant>PSPELL_BAD_SPELLERS</constant> sont mutuellement exclusives : vous ne devez en utiliser qu'une seule en même temps. </para> <para> @@ -91,11 +85,13 @@ </para> <para> <example> - <title><function>pspell_new</function></title> + <title>Exemple avec <function>pspell_new</function></title> <programlisting role="php"> -<?php -$pspell_link = pspell_new("en", "", "", "", (PSPELL_FAST|PSPELL_RUN_TOGETHER)); -?> +<![CDATA[ +<?php + $pspell_link = pspell_new("en", "", "", "", PSPELL_FAST|PSPELL_RUN_TOGETHER); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-save-wordlist"> <refnamediv> <refname>pspell_save_wordlist</refname> - <refpurpose>Sauve le dictionnaire personnel dans un fichier.</refpurpose> + <refpurpose>Sauve le dictionnaire personnel dans un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_save_wordlist</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_save_wordlist</function> sauve le dictionnaire personnel de @@ -26,13 +26,15 @@ <example> <title>Exemple <function>pspell_add_to_personal</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/tmp/dicts/newdict"); $pspell_link = pspell_new_config ($pspell_config); pspell_add_to_personal ($pspell_link, "Vlad"); pspell_save_wordlist ($pspell_link); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml Wed Jul 9 07:34:35 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_store_replacement</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>misspelled</parameter></methodparam> <methodparam><type>string</type><parameter>correct</parameter></methodparam> </methodsynopsis> @@ -34,14 +34,16 @@ <example> <title>Exemple avec <function>pspell_store_replacement</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); -$pspell_link = pspell_new_config ($pspell_config); -pspell_store_replacement ($pspell_link, $misspelled, $correct); -pspell_save_wordlist ($pspell_link); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); + $pspell_link = pspell_new_config ($pspell_config); + pspell_store_replacement ($pspell_link, $misspelled, $correct); + pspell_save_wordlist ($pspell_link); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-suggest.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-suggest.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-suggest.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-suggest.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-suggest.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-suggest"> <refnamediv> <refname>pspell_suggest</refname> - <refpurpose>Suggèegrave;re une orthographe</refpurpose> + <refpurpose>Suggère une orthographe</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>array</type><methodname>pspell_suggest</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> @@ -19,17 +19,19 @@ </simpara> <para> <example> - <title><function>pspell_suggest</function></title> + <title>Exemple avec <function>pspell_suggest</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_link = pspell_new ("english"); if (!pspell_check ($pspell_link, "testt")){ $suggestions = pspell_suggest ($pspell_link, "testt"); - for ($i=0; $i < count ($suggestions); $i++) { - echo "Orthographes suggerées : " . $suggestions[$i] . "<br>"; + for ($i=0; $i < count ($suggestions); $i++) { + echo "Orthographes suggérées : " . $suggestions[$i] . "<br>"; } } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/configure.xml +++ phpdoc-fr/reference/pspell/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="pspell.installation"> &reftitle.install; <para> Si vous avez installé les librairies PSPELL, vous devez simplement ajouter l'option <option role="configure">--with-pspell[=dir]</option>, lors de la compilation de PHP. </para> </section> <!-- 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 --> Index: phpdoc-fr/reference/pspell/constants.xml +++ phpdoc-fr/reference/pspell/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="pspell.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> <constant>PSPELL_FAST</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>PSPELL_NORMAL</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>PSPELL_BAD_SPELLERS</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>PSPELL_RUN_TOGETHER</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> </variablelist> </section> <!-- 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 -->
Index: phpdoc-fr/reference/pspell/functions.xml diff -u /dev/null phpdoc-fr/reference/pspell/functions.xml:1.3 --- /dev/null Wed Jul 9 07:34:35 2003 +++ phpdoc-fr/reference/pspell/functions.xml Wed Jul 9 07:34:35 2003 @@ -0,0 +1,17 @@ +&reference.pspell.functions.pspell-add-to-personal; +&reference.pspell.functions.pspell-add-to-session; +&reference.pspell.functions.pspell-check; +&reference.pspell.functions.pspell-clear-session; +&reference.pspell.functions.pspell-config-create; +&reference.pspell.functions.pspell-config-ignore; +&reference.pspell.functions.pspell-config-mode; +&reference.pspell.functions.pspell-config-personal; +&reference.pspell.functions.pspell-config-repl; +&reference.pspell.functions.pspell-config-runtogether; +&reference.pspell.functions.pspell-config-save-repl; +&reference.pspell.functions.pspell-new-config; +&reference.pspell.functions.pspell-new-personal; +&reference.pspell.functions.pspell-new; +&reference.pspell.functions.pspell-save-wordlist; +&reference.pspell.functions.pspell-store-replacement; +&reference.pspell.functions.pspell-suggest; Index: phpdoc-fr/reference/pspell/reference.xml diff -u phpdoc-fr/reference/pspell/reference.xml:1.3 phpdoc-fr/reference/pspell/reference.xml:1.4 --- phpdoc-fr/reference/pspell/reference.xml:1.3 Tue Feb 4 19:03:52 2003 +++ phpdoc-fr/reference/pspell/reference.xml Wed Jul 9 07:34:35 2003 @@ -2,19 +2,44 @@ <reference id="ref.pspell"> <title>Pspell</title> <titleabbrev>Pspell</titleabbrev> + <partintro> - <simpara> + + <section id="pspell.intro"> + &reftitle.intro; + <para> La librairie pspell vous permet de vérifier l'orthographe d'un mot, et suggérer des corrections. - </simpara> - <simpara> + </para> + ¬e.no-windows.extension; + </section> + + <section id="pspell.requirements"> + &reftitle.required; + <para> Vous aurez besoin des librairies aspell et pspell, disponibles à <ulink url="&url.aspell;">&url.aspell;</ulink> et <ulink url="&url.pspell;">&url.pspell;</ulink> (respectivement). Il faut aussi ajouter l'option <option role="configure">--with-pspell[=dir]</option> lors de la compilation de PHP. - </simpara> + </para> + </section> + + &reference.pspell.configure; + + <section id="pspell.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="pspell.resources"> + &reftitle.resources; + &no.resource; + </section> + + &reference.pspell.constants; + </partintro> &reference.pspell.functions; Index: phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml:1.1 Sun Apr 14 20:37:22 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-add-to-personal.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-add-to-personal"> <refnamediv> <refname>pspell_add_to_personal</refname> - <refpurpose>Ajoute le mot au dictionnaire personnel.</refpurpose> + <refpurpose>Ajoute le mot au dictionnaire personnel</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_add_to_personal</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> @@ -26,13 +26,15 @@ <example> <title>Exemple avec <function>pspell_add_to_personal</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); $pspell_link = pspell_new_config ($pspell_config); pspell_add_to_personal ($pspell_link, "Vlad"); pspell_save_wordlist ($pspell_link); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-add-to-session.xml Wed Jul 9 07:34:35 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_add_to_session</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> Index: phpdoc-fr/reference/pspell/functions/pspell-check.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-check.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-check.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-check.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-check.xml Wed Jul 9 07:34:35 2003 @@ -9,8 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>pspell_check</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <type>bool</type><methodname>pspell_check</methodname> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> @@ -21,14 +21,16 @@ <example> <title><function>pspell_check</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_link = pspell_new ("french"); if (pspell_check ($pspell_link, "testt")) { echo "L'orthographe est exacte"; } else { echo "Désolé, mauvaise orthographe"; } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-clear-session.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-clear-session"> <refnamediv> <refname>pspell_clear_session</refname> - <refpurpose>Remet à zéro la session courante.</refpurpose> + <refpurpose>Remet à zéro la session courante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_clear_session</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_clear_session</function> remet à zéro la @@ -22,14 +22,16 @@ <example> <title>Exemple avec <function>pspell_add_to_personal</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -$pspell_link = pspell_new_config ($pspell_config); -pspell_add_to_personal ($pspell_link, "Vlad"); -pspell_clear_session ($pspell_link); -pspell_save_wordlist ($pspell_link); //"Vlad" ne sera pas sauvé -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + $pspell_link = pspell_new_config ($pspell_config); + pspell_add_to_personal ($pspell_link, "Vlad"); + pspell_clear_session ($pspell_link); + pspell_save_wordlist ($pspell_link); //"Vlad" ne sera pas sauvé +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-create.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-create.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-create.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-create.xml:1.1 Sun Apr 14 20:37:24 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-create.xml Wed Jul 9 07:34:35 2003 @@ -11,17 +11,11 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_config_create</methodname> + <type>int</type><methodname>pspell_config_create</methodname> <methodparam><type>string</type><parameter>language</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - spelling - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - jargon - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - encoding - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>spelling</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>jargon</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_config_create</function> a une syntaxe similaire à @@ -63,17 +57,17 @@ <itemizedlist> <listitem> <simpara> - PSPELL_FAST - Mode rapide (moins de suggestions, plus de vitesse) + <constant>PSPELL_FAST</constant> - Mode rapide (moins de suggestions, plus de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_NORMAL - Mode normal mode (plus de suggestions) + <constant>PSPELL_NORMAL</constant> - Mode normal mode (plus de suggestions) </simpara> </listitem> <listitem> <simpara> - PSPELL_BAD_SPELLERS - Mode lent (beaucoup plus de suggestions, moins de vitesse) + <constant>PSPELL_BAD_SPELLERS</constant> - Mode lent (beaucoup plus de suggestions, moins de vitesse) </simpara> </listitem> </itemizedlist> @@ -86,12 +80,14 @@ <example> <title>Exemple avec <function>pspell_config_create</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); -$pspell_link = pspell_new_personal (pspell_config); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); + $pspell_link = pspell_new_personal (pspell_config); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-ignore.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-config-ignore"> <refnamediv> <refname>pspell_config_ignore</refname> - <refpurpose>Ignore les mots des moins de N caractères.</refpurpose> + <refpurpose>Ignore les mots des moins de N caractères</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_ignore</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>int</type><parameter>n</parameter></methodparam> </methodsynopsis> <simpara> @@ -22,12 +22,14 @@ <example> <title>Exemple avec <function>pspell_config_ignore</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_ignore($pspell_config, 5); $pspell_link = pspell_new_config($pspell_config); pspell_check($pspell_link, "abcd"); // Ce mot ne provoquera pas d'erreur -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-mode.xml Wed Jul 9 07:34:35 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_mode</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <simpara> @@ -42,14 +42,16 @@ </para> <para> <example> - <title><function>pspell_config_mode</function></title> + <title>Exemple avec <function>pspell_config_mode</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_mode($pspell_config, PSPELL_FAST); $pspell_link = pspell_new_config($pspell_config); pspell_check($pspell_link, "thecat"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-personal.xml Wed Jul 9 07:34:35 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_personal</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>file</parameter></methodparam> </methodsynopsis> <simpara> @@ -32,12 +32,14 @@ <example> <title>Exemple avec <function>pspell_config_personal</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); $pspell_link = pspell_new_config ($pspell_config); pspell_check ($pspell_link, "thecat"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-repl.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-config-repl"> <refnamediv> <refname>pspell_config_repl</refname> - <refpurpose>Choisit le fichier qui contient les paires de remplacement.</refpurpose> + <refpurpose>Choisit le fichier qui contient les paires de remplacement</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_repl</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>file</parameter></methodparam> </methodsynopsis> <simpara> @@ -30,13 +30,15 @@ <example> <title>Exemple avec <function>pspell_config_repl</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); $pspell_link = pspell_new_config ($pspell_config); pspell_check ($pspell_link, "thecat"); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml:1.2 phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml:1.3 --- phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml:1.2 Tue Aug 13 22:19:34 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-runtogether.xml Wed Jul 9 07:34:35 2003 @@ -12,8 +12,8 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_runtogether</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> - <methodparam><type>boolean</type><parameter>flag</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>bool</type><parameter>flag</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_config_runtogether</function> doit être @@ -30,12 +30,14 @@ <example> <title>Exemple avec <function>pspell_config_runtogether</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_runtogether ($pspell_config, &true;); -$pspell_link = pspell_new_config ($pspell_config); -pspell_check ($pspell_link, "thecat"); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_runtogether ($pspell_config, &true;); + $pspell_link = pspell_new_config ($pspell_config); + pspell_check ($pspell_link, "thecat"); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-config-save-repl.xml Wed Jul 9 07:34:35 2003 @@ -4,16 +4,14 @@ <refentry id="function.pspell-config-save-repl"> <refnamediv> <refname>pspell_config_save_repl</refname> - <refpurpose> - Active la sauvegarde des paires de remplacement - </refpurpose> + <refpurpose>Active la sauvegarde des paires de remplacement</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_config_save_repl</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> - <methodparam><type>boolean</type><parameter>flag</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>bool</type><parameter>flag</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_config_save_repl</function> doit être appelé Index: phpdoc-fr/reference/pspell/functions/pspell-new-config.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-new-config.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-new-config.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-new-config.xml:1.1 Sun Apr 14 20:37:25 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-new-config.xml Wed Jul 9 07:34:35 2003 @@ -9,8 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_new_config</methodname> - <methodparam><type>resource</type><parameter>config</parameter></methodparam> + <type>int</type><methodname>pspell_new_config</methodname> + <methodparam><type>int</type><parameter>config</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_new_config</function> ouvre un nouveau dictionnaire @@ -29,14 +29,16 @@ </para> <para> <example> - <title><function>pspell_new_config</function></title> + <title>Exemple avec <function>pspell_new_config</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); -$pspell_link = pspell_new_personal (pspell_config); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); + $pspell_link = pspell_new_personal (pspell_config); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-new-personal.xml Wed Jul 9 07:34:35 2003 @@ -4,28 +4,18 @@ <refentry id="function.pspell-new-personal"> <refnamediv> <refname>pspell_new_personal</refname> - <refpurpose> - Charge un nouveau dictionnaire avec un dictionnaire personnel - </refpurpose> + <refpurpose>Charge un nouveau dictionnaire avec un dictionnaire personnel</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_new_personal</methodname> + <type>int</type><methodname>pspell_new_personal</methodname> <methodparam><type>string</type><parameter>personal</parameter></methodparam> <methodparam><type>string</type><parameter>language</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - spelling - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - jargon - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - encoding - </parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - mode - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>spelling</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>jargon</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_new_personal</function> charge un nouveau dictionnaire @@ -78,17 +68,17 @@ <itemizedlist> <listitem> <simpara> - PSPELL_FAST - Mode rapide (moins de suggestions, plus de vitesse) + <constant>PSPELL_FAST</constant> - Mode rapide (moins de suggestions, plus de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_NORMAL - Mode normal mode (plus de suggestions) + <constant>PSPELL_NORMAL</constant> - Mode normal mode (plus de suggestions) </simpara> </listitem> <listitem> <simpara> - PSPELL_BAD_SPELLERS - Mode lent (beaucoup plus de suggestions, moins de vitesse) + <constant>PSPELL_BAD_SPELLERS</constant> - Mode lent (beaucoup plus de suggestions, moins de vitesse) </simpara> </listitem> </itemizedlist> @@ -101,9 +91,13 @@ <example> <title>Exemple avec <function>pspell_new_personal</function></title> <programlisting role="php"> -<?php -$pspell_link = pspell_new_personal ("/var/dictionaries/custom.pws", "en", "", "", "", PSPELL_FAST|PSPELL_RUN_TOGETHER)); -?> +<![CDATA[ +<?php + $pspell_link = pspell_new_personal ("/var/dictionaries/custom.pws", + "en", "", "", "", + PSPELL_FAST | PSPELL_RUN_TOGETHER)); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-new.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-new.xml:1.3 phpdoc-fr/reference/pspell/functions/pspell-new.xml:1.4 --- phpdoc-fr/reference/pspell/functions/pspell-new.xml:1.3 Tue Feb 4 18:58:17 2003 +++ phpdoc-fr/reference/pspell/functions/pspell-new.xml Wed Jul 9 07:34:35 2003 @@ -9,21 +9,13 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>pspell_new</methodname> + <type>int</type><methodname>pspell_new</methodname> <methodparam><type>string</type><parameter>language</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - spelling - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - jargon - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - encoding - </parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - mode - </parameter></methodparam> - </methodsynopsis> + <methodparam choice="opt"><type>string</type><parameter>spelling</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>jargon</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> <simpara> <function>pspell_new</function> ouvre un nouveau dictionnaire et retourne un identifiant de dictionnaire, pour utiliser avec d'autres @@ -56,23 +48,24 @@ <itemizedlist> <listitem> <simpara> - PSPELL_FAST - Mode rapide (moins de suggestions, plus de vitesse) + <constant>PSPELL_FAST</constant> - Mode rapide (moins de suggestions, plus de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_NORMAL - Mode normal mode (plus de suggestions) + <constant>PSPELL_NORMAL</constant> - Mode normal mode (plus de suggestions) </simpara> </listitem> <listitem> <simpara> - PSPELL_BAD_SPELLERS - Mode lent (beaucoup plus de suggestions, moins de vitesse) + <constant>PSPELL_BAD_SPELLERS</constant> - Mode lent (beaucoup plus de suggestions, moins de vitesse) </simpara> </listitem> <listitem> <simpara> - PSPELL_RUN_TOGETHER - Considère que des mots accolés forment un - composé autorisé. C'est à dire que "lechat" sera un composé valide. + <constant>PSPELL_RUN_TOGETHER</constant> - Considère que + des mots accolés forment un vomposé autorisé. + C'est à dire que "lechat" sera un composé valide. Cette option ne modifie que les résutlat retournés par <function>pspell_check</function>; <function>pspell_suggest</function> retournera toujours les mêmes @@ -80,9 +73,10 @@ </simpara> </listitem> </itemizedlist> - <parameter>Mode</parameter> est un champs de bit, construits à partir - des constantes listées ci dessus. Cependant, PSPELL_FAST, PSPELL_NORMAL et - PSPELL_BAD_SPELLERS sont mutuellement exclusives : vous ne devez + <parameter>mode</parameter> est un champs de bit, construits à partir + des constantes listées ci dessus. Cependant, <constant>PSPELL_FAST</constant>, + <constant>PSPELL_NORMAL</constant> et + <constant>PSPELL_BAD_SPELLERS</constant> sont mutuellement exclusives : vous ne devez en utiliser qu'une seule en même temps. </para> <para> @@ -91,11 +85,13 @@ </para> <para> <example> - <title><function>pspell_new</function></title> + <title>Exemple avec <function>pspell_new</function></title> <programlisting role="php"> -<?php -$pspell_link = pspell_new("en", "", "", "", (PSPELL_FAST|PSPELL_RUN_TOGETHER)); -?> +<![CDATA[ +<?php + $pspell_link = pspell_new("en", "", "", "", PSPELL_FAST|PSPELL_RUN_TOGETHER); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-save-wordlist.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-save-wordlist"> <refnamediv> <refname>pspell_save_wordlist</refname> - <refpurpose>Sauve le dictionnaire personnel dans un fichier.</refpurpose> + <refpurpose>Sauve le dictionnaire personnel dans un fichier</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_save_wordlist</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> </methodsynopsis> <simpara> <function>pspell_save_wordlist</function> sauve le dictionnaire personnel de @@ -26,13 +26,15 @@ <example> <title>Exemple <function>pspell_add_to_personal</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_config = pspell_config_create ("en"); pspell_config_personal ($pspell_config, "/tmp/dicts/newdict"); $pspell_link = pspell_new_config ($pspell_config); pspell_add_to_personal ($pspell_link, "Vlad"); pspell_save_wordlist ($pspell_link); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-store-replacement.xml Wed Jul 9 07:34:35 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>pspell_store_replacement</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>misspelled</parameter></methodparam> <methodparam><type>string</type><parameter>correct</parameter></methodparam> </methodsynopsis> @@ -34,14 +34,16 @@ <example> <title>Exemple avec <function>pspell_store_replacement</function></title> <programlisting role="php"> -<?php -$pspell_config = pspell_config_create ("en"); -pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); -pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); -$pspell_link = pspell_new_config ($pspell_config); -pspell_store_replacement ($pspell_link, $misspelled, $correct); -pspell_save_wordlist ($pspell_link); -?> +<![CDATA[ +<?php + $pspell_config = pspell_config_create ("en"); + pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws"); + pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl"); + $pspell_link = pspell_new_config ($pspell_config); + pspell_store_replacement ($pspell_link, $misspelled, $correct); + pspell_save_wordlist ($pspell_link); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/functions/pspell-suggest.xml diff -u phpdoc-fr/reference/pspell/functions/pspell-suggest.xml:1.1 phpdoc-fr/reference/pspell/functions/pspell-suggest.xml:1.2 --- phpdoc-fr/reference/pspell/functions/pspell-suggest.xml:1.1 Sun Apr 14 20:37:26 2002 +++ phpdoc-fr/reference/pspell/functions/pspell-suggest.xml Wed Jul 9 07:34:35 2003 @@ -4,13 +4,13 @@ <refentry id="function.pspell-suggest"> <refnamediv> <refname>pspell_suggest</refname> - <refpurpose>Suggèegrave;re une orthographe</refpurpose> + <refpurpose>Suggère une orthographe</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>array</type><methodname>pspell_suggest</methodname> - <methodparam><type>resource</type><parameter>dictionary_link</parameter></methodparam> + <methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam> <methodparam><type>string</type><parameter>word</parameter></methodparam> </methodsynopsis> <simpara> @@ -19,17 +19,19 @@ </simpara> <para> <example> - <title><function>pspell_suggest</function></title> + <title>Exemple avec <function>pspell_suggest</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $pspell_link = pspell_new ("english"); if (!pspell_check ($pspell_link, "testt")){ $suggestions = pspell_suggest ($pspell_link, "testt"); - for ($i=0; $i < count ($suggestions); $i++) { - echo "Orthographes suggerées : " . $suggestions[$i] . "<br>"; + for ($i=0; $i < count ($suggestions); $i++) { + echo "Orthographes suggérées : " . $suggestions[$i] . "<br>"; } } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/pspell/configure.xml +++ phpdoc-fr/reference/pspell/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="pspell.installation"> &reftitle.install; <para> Si vous avez installé les librairies PSPELL, vous devez simplement ajouter l'option <option role="configure">--with-pspell[=dir]</option>, lors de la compilation de PHP. </para> </section> <!-- 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 --> Index: phpdoc-fr/reference/pspell/constants.xml +++ phpdoc-fr/reference/pspell/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="pspell.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> <constant>PSPELL_FAST</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>PSPELL_NORMAL</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>PSPELL_BAD_SPELLERS</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>PSPELL_RUN_TOGETHER</constant> (<link linkend="language.types.integer">entier</link>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> </variablelist> </section> <!-- 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 -->