★ wanayoo — archive 1999 http://fr.php.net/manual/de/function.pspell-config-create.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Pspell
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this page is not availableFrench version of this pageHungarian version of this page
Spanish version of this page is not availableDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
Pspell
* pspell_add_to_personal
* pspell_add_to_session
* pspell_check
* pspell_clear_session
* pspell_config_create
* pspell_config_ignore
* pspell_config_mode
* pspell_config_personal
* pspell_config_repl
* pspell_config_runtogether
* pspell_config_save_repl
* pspell_new
* pspell_new_config
* pspell_new_personal
* pspell_save_wordlist
* pspell_store_replacement
* pspell_suggest

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: pspell_config_create
View the source code for this pageSearch the site



Previous page
 pspell_clear_session
 Updated
Tue, 27 Feb 2001
pspell_config_ignore 
Next page


pspell_config_create

(PHP 4 >= 4.0.2)

pspell_config_create -- Create a config used to open a dictionary.

Description

int pspell_config_create (string language [, string spelling [, string jargon [, string encoding]]])

Pspell_config_create() has a very similar syntax to pspell_new(). In fact, using pspell_config_create() immediatelly followed by pspell_new_config() will produce the exact same result. However, after creating a new config, you can also use pspell_config_*() functions before calling pspell_new_config() to take advantage of some advanced functionality.

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.

The spelling parameter is the requested spelling for languages with more than one spelling such as English. Known values are 'american', 'british', and 'canadian'.

The jargon parameter contains extra information to distinguish two different words lists that have the same language and spelling parameters.

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.

The mode parameter is the mode in which spellchecker will work. There are several modes available:

  • PSPELL_FAST - Fast mode (least number of suggestions)

  • PSPELL_NORMAL - Normal mode (more suggestions)

  • PSPELL_BAD_SPELLERS - Slow mode (a lot of suggestions)

For more information and examples, check out inline manual pspell website:http://pspell.sourceforge.net/.

Beispiel 1. Pspell_config_create()


$pspell_config = pspell_config_create ("en");
pspell_config_personal ($pspell_config, "/var/dictionaries/custom.pws");
pspell_config_repl ($pspell_config, "/var/dictionaries/custom.repl");
$pspell_link = pspell_new_personal (pspell_config);
      


 About Notes


Previous page
 pspell_clear_session
 Updated
Tue, 27 Feb 2001
pspell_config_ignore 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.