From 053d64e7f7d152a45cb0c3d1a3a80cb43ee09e03 Mon Sep 17 00:00:00 2001 From: Egon Schmid Date: Sat, 18 Mar 2000 17:33:06 +0000 Subject: [PATCH] Here also. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@21706 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/aspell.xml | 92 +++++++++++++++++++++++--------------------- 1 file changed, 49 insertions(+), 43 deletions(-) diff --git a/functions/aspell.xml b/functions/aspell.xml index 3b713f3863..2ffc25d941 100644 --- a/functions/aspell.xml +++ b/functions/aspell.xml @@ -1,20 +1,22 @@ Aspell functions - aspell + Aspell + The aspell functions allows you to check the - spelling on a word and offer suggestions. - + spelling on a word and offer suggestions. + - You need the aspell library, available from: http://metalab.unc.edu/kevina/aspell/ + You need the aspell library, available from: &url.aspell;. + - aspell_new - load a new dictionary + Load a new dictionary Description @@ -24,24 +26,24 @@ string personal - aspell_new opens up a new dictionary and + Aspell_new opens up a new dictionary and returns the dictionary link identifier for use in other aspell functions. - aspell_new - -$aspell_link=aspell_new("english"); + <function>Aspell_new</function> + +$aspell_link=aspell_new ("english"); - + + - aspell_check - check a word + Check a word Description @@ -51,29 +53,31 @@ $aspell_link=aspell_new("english"); string word - aspell_check checks the spelling of a word - and returns true if the spelling is correct, false if not. + Aspell_check checks the spelling of a word + and returns true if the spelling is correct, false if not. + - aspell_check + <function>Aspell_check</function> -$aspell_link=aspell_new("english"); -if (aspell_check($aspell_link,"testt")) { +$aspell_link=aspell_new ("english"); +if (aspell_check ($aspell_link,"testt")) { echo "This is a valid spelling"; } else { echo "Sorry, wrong spelling"; } - + + - aspell_check-raw - check a word without changing its case or trying to - trim it + + Check a word without changing its case or trying to trim it + Description @@ -83,29 +87,30 @@ if (aspell_check($aspell_link,"testt")) { string word - aspell_check_raw checks the spelling of a + Aspell_check_raw checks the spelling of a word, without changing its case or trying to trim it in any way - and returns true if the spelling is correct, false if not. + and returns true if the spelling is correct, false if not. + - aspell_check_raw - -$aspell_link=aspell_new("english"); -if (aspell_check_raw($aspell_link,"testt")) { + <function>Aspell_check_raw</function> + +$aspell_link=aspell_new ("english"); +if (aspell_check_raw ($aspell_link, "test")) { echo "This is a valid spelling"; } else { echo "Sorry, wrong spelling"; } - + + - aspell_suggest - suggest spellings of a word + Suggest spellings of a word Description @@ -115,27 +120,28 @@ if (aspell_check_raw($aspell_link,"testt")) { string word - aspell_suggest returns an array of possible - spellings for the given word. + Aspell_suggest returns an array of possible + spellings for the given word. + - aspell_suggest - -$aspell_link=aspell_new("english"); + <function>Aspell_suggest</function> + +$aspell_link=aspell_new ("english"); -if (!aspell_check($aspell_link,"testt")) { - $suggestions=aspell_suggest($aspell_link,"testt"); +if (!aspell_check ($aspell_link, "test")) { + $suggestions=aspell_suggest ($aspell_link, "test"); - for($i=0; $i < count($suggestions); $i++) { - echo "Possible spelling: " . $suggestions[$i] . "<br>"; + for ($i=0; $i < count ($suggestions); $i++) { + echo "Possible spelling: " . $suggestions[$i] . "<br>"; } } - + + -