<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.international.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.enchant.php',
    1 => 'Enchant',
    2 => 'Enchant spelling library',
  ),
  'up' => 
  array (
    0 => 'refs.international.php',
    1 => '国际化与字符编码支持',
  ),
  'prev' => 
  array (
    0 => 'refs.international.php',
    1 => '国际化与字符编码支持',
  ),
  'next' => 
  array (
    0 => 'enchant.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/enchant/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.enchant.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.enchant" class="book">
 
 <h1 class="title">Enchant spelling library</h1>
 

 
 <div id="intro.enchant" class="preface">
  <h1 class="title">简介</h1>
  <p class="simpara">
   Enchant is the PHP binding for the
   <a href="https://rrthomas.github.io/enchant/" class="link external">&raquo;&nbsp;Enchant library</a>. Enchant steps
   in to provide uniformity and conformity on top of all spelling
   libraries, and implement certain features that may be lacking in
   any individual provider library. Everything should &quot;just work&quot;
   for any and every definition of &quot;just working.&quot;
  </p>
  <p class="para">
   Enchant supports the following backends:
   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara">
      <code class="literal">Aspell/Pspell (intends to replace Ispell)</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">Ispell (old as sin, could be interpreted as a defacto standard)</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">MySpell/Hunspell (an OOo projects, also used by Mozilla)</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">Uspell (primarily Yiddish, Hebrew, and Eastern European languages - hosted in AbiWord&#039;s CVS under the module &quot;uspell&quot;)</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">Hspell (Hebrew)</code>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">AppleSpell (Mac OSX)</code>
     </span>
    </li>
   </ul>
  </p>
 </div>
 

 




 




 







 







 




 





<ul class="chunklist chunklist_book"><li><a href="enchant.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="enchant.requirements.php">需求</a></li><li><a href="enchant.installation.php">安装</a></li><li><a href="enchant.resources.php">资源类型</a></li></ul></li><li><a href="enchant.constants.php">预定义常量</a></li><li><a href="enchant.examples.php">示例</a></li><li><a href="ref.enchant.php">Enchant 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.enchant-broker-describe.php">enchant_broker_describe</a> — Enumerates the Enchant providers</li><li><a href="function.enchant-broker-dict-exists.php">enchant_broker_dict_exists</a> — Whether a dictionary exists or not. Using non-empty tag</li><li><a href="function.enchant-broker-free.php">enchant_broker_free</a> — Free the broker resource and its dictionaries</li><li><a href="function.enchant-broker-free-dict.php">enchant_broker_free_dict</a> — Free a dictionary resource</li><li><a href="function.enchant-broker-get-dict-path.php">enchant_broker_get_dict_path</a> — Get the directory path for a given backend</li><li><a href="function.enchant-broker-get-error.php">enchant_broker_get_error</a> — Returns the last error of the broker</li><li><a href="function.enchant-broker-init.php">enchant_broker_init</a> — Create a new broker object capable of requesting</li><li><a href="function.enchant-broker-list-dicts.php">enchant_broker_list_dicts</a> — Returns a list of available dictionaries</li><li><a href="function.enchant-broker-request-dict.php">enchant_broker_request_dict</a> — Create a new dictionary using a tag</li><li><a href="function.enchant-broker-request-pwl-dict.php">enchant_broker_request_pwl_dict</a> — Creates a dictionary using a PWL file</li><li><a href="function.enchant-broker-set-dict-path.php">enchant_broker_set_dict_path</a> — Set the directory path for a given backend</li><li><a href="function.enchant-broker-set-ordering.php">enchant_broker_set_ordering</a> — Declares a preference of dictionaries to use for the language</li><li><a href="function.enchant-dict-add.php">enchant_dict_add</a> — Add a word to personal word list</li><li><a href="function.enchant-dict-add-to-personal.php">enchant_dict_add_to_personal</a> — 别名 enchant_dict_add</li><li><a href="function.enchant-dict-add-to-session.php">enchant_dict_add_to_session</a> — Add 'word' to this spell-checking session</li><li><a href="function.enchant-dict-check.php">enchant_dict_check</a> — Check whether a word is correctly spelled or not</li><li><a href="function.enchant-dict-describe.php">enchant_dict_describe</a> — Describes an individual dictionary</li><li><a href="function.enchant-dict-get-error.php">enchant_dict_get_error</a> — Returns the last error of the current spelling-session</li><li><a href="function.enchant-dict-is-added.php">enchant_dict_is_added</a> — Whether or not 'word' exists in this spelling-session</li><li><a href="function.enchant-dict-is-in-session.php">enchant_dict_is_in_session</a> — 别名 enchant_dict_is_added</li><li><a href="function.enchant-dict-quick-check.php">enchant_dict_quick_check</a> — Check the word is correctly spelled and provide suggestions</li><li><a href="function.enchant-dict-store-replacement.php">enchant_dict_store_replacement</a> — Add a correction for a word</li><li><a href="function.enchant-dict-suggest.php">enchant_dict_suggest</a> — Will return a list of values if any of those pre-conditions are not met</li></ul></li><li><a href="class.enchantbroker.php">EnchantBroker</a> — The EnchantBroker class</li><li><a href="class.enchantdictionary.php">EnchantDictionary</a> — The EnchantDictionary class</li></ul></div><?php manual_footer($setup); ?>