[PHP-DOC] cvs: phpdoc /en/functions pspell.xml From: Egon Schmid (eschmid <email protected>)
Date: 08/08/00

eschmid Tue Aug 8 12:45:34 2000 EDT

  Modified files:
    /phpdoc/en/functions pspell.xml
  Log:
  Beautified it a bit.
  
Index: phpdoc/en/functions/pspell.xml
diff -u phpdoc/en/functions/pspell.xml:1.4 phpdoc/en/functions/pspell.xml:1.5
--- phpdoc/en/functions/pspell.xml:1.4 Sun Aug 6 14:40:40 2000
+++ phpdoc/en/functions/pspell.xml Tue Aug 8 12:45:33 2000
@@ -58,65 +58,70 @@
      The language parameter is the language code which consists of the
      two letter ISO 639 language code and an optional two letter ISO
      3166 country code after a dash or underscore.
- </para>
- <para>
- The spelling parameter is the requested spelling for languages
- with more than one spelling such as English. Known values are 'american',
- 'british', and 'canadian'.
- </para>
- <para>
- The jargon parameter contains extra information to distinguish two
- different words lists that have the same language and spelling
- parameters.
- </para>
- <para>
- The encoding parameter is the encoding that words are expected to be in.
- Valid values are 'utf-8', 'iso8859-*', 'koi8-r', 'viscii', 'cp1252',
- 'machine unsigned 16', 'machine unsigned 32'. This parameter is largely
- untested, so be careful when using.
     </para>
- <para>The mode parameter is the mode in which spellchecker will work.
- There are several modes available:
+ <para>
+ The spelling parameter is the requested spelling for languages
+ with more than one spelling such as English. Known values are
+ 'american', 'british', and 'canadian'.
+ </para>
+ <para>
+ The jargon parameter contains extra information to distinguish
+ two different words lists that have the same language and
+ spelling parameters.
+ </para>
+ <para>
+ The encoding parameter is the encoding that words are expected to
+ be in. Valid values are 'utf-8', 'iso8859-*', 'koi8-r',
+ 'viscii', 'cp1252', 'machine unsigned 16', 'machine unsigned
+ 32'. This parameter is largely untested, so be careful when
+ using.
+ </para>
+ <para>
+ The mode parameter is the mode in which spellchecker will work.
+ There are several modes available:
      <itemizedlist>
       <listitem>
        <simpara>
- PSPELL_FAST - Fast mode (least number of suggestions)
+ PSPELL_FAST - Fast mode (least number of suggestions)
        </simpara>
       </listitem>
       <listitem>
        <simpara>
- PSPELL_NORMAL - Normal mode (more suggestions)
+ PSPELL_NORMAL - Normal mode (more suggestions)
        </simpara>
       </listitem>
       <listitem>
        <simpara>
- PSPELL_BAD_SPELLERS - Slow mode (a lot of suggestions)
+ PSPELL_BAD_SPELLERS - Slow mode (a lot of suggestions)
        </simpara>
       </listitem>
       <listitem>
        <simpara>
- PSPELL_RUN_TOGETHER - Consider run-together words as legal compounds.
- That is, "thecat" will be a legal compound, athough there should be a
- space between the two words. Changing this setting only affects the
- results returned by
- <function>pspell_check</function>;
- <function>pspell_suggest</function> will still return suggestions.
+ PSPELL_RUN_TOGETHER - Consider run-together words as legal
+ compounds. That is, "thecat" will be a legal compound,
+ athough there should be a space between the two
+ words. Changing this setting only affects the results returned
+ by <function>pspell_check</function>;
+ <function>pspell_suggest</function> will still return
+ suggestions.
        </simpara>
       </listitem>
      </itemizedlist>
- Mode is a bitmask constructed from different constants listed above.
- However, PSPELL_FAST, PSPELL_NORMAL and PSPELL_BAD_SPELLERS are mutually
- exclusive, so you should select only one of them.
- </para>
- <para>
- For more information and examples, check out inline manual pspell
- website:<ulink url="&url.pspell;">&url.pspell;</ulink>.
- </para>
+ Mode is a bitmask constructed from different constants listed
+ above. However, PSPELL_FAST, PSPELL_NORMAL and
+ PSPELL_BAD_SPELLERS are mutually exclusive, so you should select
+ only one of them.
+ </para>
+ <para>
+ For more information and examples, check out inline manual pspell
+ website:<ulink url="&url.pspell;">&url.pspell;</ulink>.
+ </para>
     <para>
      <example>
       <title><function>Pspell_new</function></title>
       <programlisting role="php">
-$pspell_link = pspell_new ("en", "", "", "", (PSPELL_FAST | PSPELL_RUN_TOGETHER));
+$pspell_link = pspell_new ("en", "", "", "",
+ (PSPELL_FAST|PSPELL_RUN_TOGETHER));
       </programlisting>
      </example>
     </para>
@@ -182,7 +187,7 @@
       <programlisting role="php">
 $pspell_link = pspell_new ("en");
 
-if (!pspell_check ($pspell_link, "testt")){
+if (!pspell_check ($pspell_link, "testt")) {
     $suggestions = pspell_suggest ($pspell_link, "testt");
 
     for ($i=0; $i &lt; count ($suggestions); $i++) {