cvs: phpdoc /en/reference/enchant examples.xml /en/reference/enchant/functions enchant-dict-suggest.xml

From: Date: Fri, 07 Nov 2008 11:39:10 +0000
Subject: cvs: phpdoc /en/reference/enchant examples.xml /en/reference/enchant/functions enchant-dict-suggest.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2437@lists.php.net to get a copy of this message
vrana Fri Nov 7 11:39:10 2008 UTC Modified files: /phpdoc/en/reference/enchant examples.xml /phpdoc/en/reference/enchant/functions enchant-dict-suggest.xml Log: Reversed enchant_dict_check in examples (bug #44207) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/enchant/examples.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/enchant/examples.xml diff -u phpdoc/en/reference/enchant/examples.xml:1.2 phpdoc/en/reference/enchant/examples.xml:1.3 --- phpdoc/en/reference/enchant/examples.xml:1.2 Fri Dec 21 23:52:47 2007 +++ phpdoc/en/reference/enchant/examples.xml Fri Nov 7 11:39:10 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <appendix xml:id="enchant.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; <example> @@ -19,10 +19,9 @@ $d = enchant_broker_request_dict($r, $tag); $dprovides = enchant_dict_describe($d); echo "dictionary $tag provides:\n"; - $spellerrors = enchant_dict_check($d, "soong"); + $wordcorrect = enchant_dict_check($d, "soong"); print_r($dprovides); - echo "found $spellerrors spell errors\n"; - if ($spellerrors) { + if (!$wordcorrect) { $suggs = enchant_dict_suggest($d, "soong"); echo "Suggestions for 'soong':"; print_r($suggs); http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/enchant/functions/enchant-dict-suggest.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/enchant/functions/enchant-dict-suggest.xml diff -u phpdoc/en/reference/enchant/functions/enchant-dict-suggest.xml:1.3 phpdoc/en/reference/enchant/functions/enchant-dict-suggest.xml:1.4 --- phpdoc/en/reference/enchant/functions/enchant-dict-suggest.xml:1.3 Wed Jun 20 22:24:22 2007 +++ phpdoc/en/reference/enchant/functions/enchant-dict-suggest.xml Fri Nov 7 11:39:10 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry xml:id="function.enchant-dict-suggest" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>enchant_dict_suggest</refname> @@ -59,9 +59,8 @@ 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) { + $wordcorrect = enchant_dict_check($d, "soong"); + if (!$wordcorrect) { $suggs = enchant_dict_suggest($d, "soong"); echo "Suggestions for 'soong':"; print_r($suggs);

« previous php.doc.cvs (#2437) next »