CVS update: php3/doc/functions
| From: | eschmid | Date: | Fri, 15 Jan 1999 07:06:33 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3559@lists.php.net to get a copy of this message | ||
Date: Friday January 15, 1999 @ 2:06
Author: eschmid
Update of /repository/php3/doc/functions
In directory asf:/u/temp/cvs-serv11423
Modified Files:
aspell.sgml
Log Message:
Some more spelings.
Index: php3/doc/functions/aspell.sgml
diff -c php3/doc/functions/aspell.sgml:1.1 php3/doc/functions/aspell.sgml:1.2
*** php3/doc/functions/aspell.sgml:1.1 Mon Jan 11 01:32:44 1999
--- php3/doc/functions/aspell.sgml Fri Jan 15 02:06:31 1999
***************
*** 2,17 ****
<title>Aspell Functions</title>
<titleabbrev>aspell</titleabbrev>
<partintro>
! <simpara>
! The <function>aspell</function> functions allows you to check the spelling
! on a word and offer suggestions.
!
! you need the aspell library, available from:
! http://metalab.unc.edu/kevina
</partintro>
! <refentry id="function.aspell">
<refnamediv>
<refname>aspell_new</refname>
<refpurpose>load a new dictionary</refpurpose>
--- 2,18 ----
<title>Aspell Functions</title>
<titleabbrev>aspell</titleabbrev>
<partintro>
! <simpara>
! The <function>aspell</function> functions allows you to check the
! spelling on a word and offer suggestions.
!
! <simpara>
! you need the aspell library, available from: <ulink
! url="http://metalab.unc.edu/kevina">http://metalab.unc.edu/kevina</ulink>
</partintro>
! <refentry id="function.aspell-new">
<refnamediv>
<refname>aspell_new</refname>
<refpurpose>load a new dictionary</refpurpose>
***************
*** 24,31 ****
<paramdef>string <parameter>personal</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_new</function> opens up a new dictionary and
! returns the dictionary link identifier for use in other aspell functions.
<para>
<example>
<title>aspell_new</title>
--- 25,33 ----
<paramdef>string <parameter>personal</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_new</function> opens up a new dictionary and
! returns the dictionary link identifier for use in other aspell
! functions.
<para>
<example>
<title>aspell_new</title>
***************
*** 37,43 ****
</refentry>
! <refentry id="function.aspell">
<refnamediv>
<refname>aspell_check</refname>
<refpurpose>check a word</refpurpose>
--- 39,45 ----
</refentry>
! <refentry id="function.aspell-check">
<refnamediv>
<refname>aspell_check</refname>
<refpurpose>check a word</refpurpose>
***************
*** 50,69 ****
<paramdef>string <parameter>word</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_check</function> checks the spelling
! of a word and returns true if the spelling is correct, calse if not.
<para>
<example>
<title>aspell_check</title>
<programlisting>
$aspell_link=aspell_new("english");
! if(aspell_check($aspell_link,"testt"))
! {
! echo "This is a valid spelling";
! }
! else
! {
! echo "Sorry, wrong spelling";
}
</programlisting>
</example>
--- 52,68 ----
<paramdef>string <parameter>word</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_check</function> checks the spelling of a word
! and returns true if the spelling is correct, calse if not.
<para>
<example>
<title>aspell_check</title>
<programlisting>
$aspell_link=aspell_new("english");
! if (aspell_check($aspell_link,"testt")) {
! echo "This is a valid spelling";
! } else {
! echo "Sorry, wrong spelling";
}
</programlisting>
</example>
***************
*** 71,81 ****
</refentry>
!
! <refentry id="function.aspell">
<refnamediv>
! <refname>aspell_check</refname>
! <refpurpose>check a word without changing its case or trying to trim
it</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
--- 70,80 ----
</refentry>
! <refentry id="function.aspell-check-raw">
<refnamediv>
! <refname>aspell_check-raw</refname>
! <refpurpose>check a word without changing its case or trying to
! trim it</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
***************
*** 85,113 ****
<paramdef>string <parameter>word</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_check_raw</function> 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.
<para>
<example>
<title>aspell_check_raw</title>
<programlisting>
$aspell_link=aspell_new("english");
! if(aspell_check_raw($aspell_link,"testt"))
! {
! echo "This is a valid spelling";
}
- else
- {
- echo "Sorry, wrong spelling";
- }
</programlisting>
</example>
</refsect1>
</refentry>
! <refentry id="function.aspell">
<refnamediv>
<refname>aspell_suggest</refname>
<refpurpose>suggest spellings of a word</refpurpose>
--- 84,109 ----
<paramdef>string <parameter>word</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_check_raw</function> 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.
<para>
<example>
<title>aspell_check_raw</title>
<programlisting>
$aspell_link=aspell_new("english");
! if (aspell_check_raw($aspell_link,"testt")) {
! echo "This is a valid spelling";
! } else {
! echo "Sorry, wrong spelling";
}
</programlisting>
</example>
</refsect1>
</refentry>
! <refentry id="function.aspell-suggest">
<refnamediv>
<refname>aspell_suggest</refname>
<refpurpose>suggest spellings of a word</refpurpose>
***************
*** 120,138 ****
<paramdef>string <parameter>word</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_suggest</function>
! returns an array of possible spellings for the given word.
<para>
<example>
<title>aspell_suggest</title>
<programlisting>
$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 "Possible spelling: " . $suggestions[$i] . "<br>";
}
}
</programlisting>
--- 116,134 ----
<paramdef>string <parameter>word</parameter></paramdef>
</funcsynopsis>
<simpara>
! <function>aspell_suggest</function> returns an array of possible
! spellings for the given word.
<para>
<example>
<title>aspell_suggest</title>
<programlisting>
$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 "Possible spelling: " . $suggestions[$i] . "<br>";
}
}
</programlisting>
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net