Index: phpdoc/fr/functions/aspell.xml diff -u phpdoc/fr/functions/aspell.xml:1.1 phpdoc/fr/functions/aspell.xml:1.2 --- phpdoc/fr/functions/aspell.xml:1.1 Fri Jul 21 03:27:50 2000 +++ phpdoc/fr/functions/aspell.xml Thu Oct 26 23:53:37 2000 @@ -1,166 +1,182 @@ - - Fonctions Aspell - aspell - - - Les fonctions Aspell vous permettent de vérifier l'orthographe d'un mot, - et d'offrir des suggestions de corrections. Plusieurs langues sont disponible, comme - l'allemand, le suédois et le danois. - - - - Vous avez besoin de la librairie Aspell, disponible à : - http://aspell.sourceforge.net/ - - - - - - aspell_new - Charge un nouveau dictionnaire - - - Description - - int aspell_new - string master - string personal - - - aspell_new ouvre un nouveau dictionaire, et retourne un - identifiant de dictionnaire pour utilisation ultérieure dans les fonctions aspell. - - - - aspell_new - -$aspell_link=aspell_new("english"); - - - - - - - - - aspell_check - Vérifie un mot - - - Description - - boolean aspell_check - int dictionary_link - string word - - - aspell_check vérifie l'orthographe d'un mot et retourne TRUE - si l'orthographe est correcte, et FALSE sinon. - - - - aspell_check - -$aspell_link=aspell_new("english"); -if (aspell_check($aspell_link,"testt")) { - echo "L'orthographe est correcte."; -} else { - echo "Désolé, l'orthographe est incorrecte."; -} - - - - - - - - - aspell_check-raw - - Vérifie un mot sans en changer la casse et sans essayer de supprimer les - espaces aux extrémités. - - - - Description - - boolean aspell_check_raw - int dictionary_link - string word - - - aspell_check_raw vérifie l'orthographe d'un mot sans en - changer la casse, et sans essayer de supprimer les espaces aux extrémités. Elle - retourne true si l'orthographe est bonne, et false sinon. - - - - aspell_check_raw - -$aspell_link=aspell_new("english"); -if (aspell_check_raw($aspell_link,"testt")) { - echo "This is a valid spelling"; -} else { - echo "Sorry, wrong spelling"; -} - - - - - - - - - aspell_suggest - - suggère l'orthographe d'un mot - - - - Description - - array aspell_suggest - int dictionary_link - string word - - - aspell_suggest retourne un tableau contenant les orthographes - possibles d'un mot mal formé. - - - - aspell_suggest - -$aspell_link=aspell_new("english"); - -if (!aspell_check($aspell_link,"testt")) { - $suggestions=aspell_suggest($aspell_link,"testt"); - - for($i=0; $i < count($suggestions); $i++) { - echo "Orthographe envisageable : " . $suggestions[$i] . "<br>"; - } -} - - - - - - - - - + + Fonctions Aspell + aspell + + + + Les fonctions Aspell vous permettent de vérifier l'orthographe d'un mot, + et d'offrir des suggestions de corrections. Plusieurs langues sont disponibles, + comme le franç, l'allemand, le suédois et le danois. + + + + aspell fonctionne avec de trs vielles versions (jusqu'ˆ la version .27.* ou + presque) de la librairie aspell. Ce module, et ces versions d'aspell + ne sont plus supportŽes. Si vous voulez utiliser les possibilitŽs + de vŽrifications d'orthographe en PHP, utilisez plut™t + pspell. Ce module utilise la librairie pspell + qui fonctionne avec les nouvelles versions de aspell. + + + Vous avez besoin de la librairie Aspell, disponible à : + http://aspell.sourceforge.net/ + + + + + + aspell_new + Charge un nouveau dictionnaire + + + Description + + + int aspell_new + string master + string personal + + + + aspell_new ouvre un nouveau dictionaire, et + retourne un identifiant de dictionnaire pour utilisation ultérieure + dans les fonctions aspell. + + + + aspell_new + +$aspell_link=aspell_new("english"); + + + + + + + + + aspell_check + Vérifie un mot + + + Description + + + boolean aspell_check + int dictionary_link + string word + + + + aspell_check vérifie l'orthographe d'un mot et retourne TRUE + si l'orthographe est correcte, et FALSE sinon. + + + + aspell_check + +$aspell_link=aspell_new("english"); +if (aspell_check($aspell_link,"testt")) { + echo "L'orthographe est correcte."; +} else { + echo "Désolé, l'orthographe est incorrecte."; +} + + + + + + + + + aspell_check-raw + + Vérifie un mot sans en changer la casse et sans essayer de supprimer les + espaces aux extrémités. + + + + Description + + boolean aspell_check_raw + int dictionary_link + string word + + + aspell_check_raw vérifie l'orthographe + d'un mot sans en changer la casse, et sans essayer de supprimer les + espaces aux extrémités. Elle retourne true si l'orthographe + est bonne, et false sinon. + + + + aspell_check_raw + +$aspell_link=aspell_new("english"); +if (aspell_check_raw($aspell_link,"testt")) { + echo "This is a valid spelling"; +} else { + echo "Sorry, wrong spelling"; +} + + + + + + + + + aspell_suggest + + suggère l'orthographe d'un mot + + + + Description + + array aspell_suggest + int dictionary_link + string word + + + + aspell_suggest retourne un tableau contenant les orthographes + possibles d'un mot mal formé. + + + + aspell_suggest + +$aspell_link=aspell_new("english"); + +if (!aspell_check($aspell_link,"testt")) { + $suggestions=aspell_suggest($aspell_link,"testt"); + + for($i=0; $i < count($suggestions); $i++) { + echo "Orthographe envisageable : " . $suggestions[$i] . "<br>"; + } +} + + + + + + + + +