Warning: include(../lntop.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 19

Warning: include() [function.include]: Failed opening '../lntop.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 19

Warning: include(../levoe_menu.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 46

Warning: include() [function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 46



Учебник РНР
НазадВперёд

pspell_config_repl

(PHP 4 >= 4.0.2)

pspell_config_repl - устанавливает файл, содержащий замещающие пары.

Описание

int pspell_config_repl (int dictionary_link, string file)

pspell_config_repl() должна использоваться в config до вызова pspell_new_config(). Замещающие пары повышают качество проверщика правописания. Если слово записано неверно, а правильный вариант не найден в списке, можно использовать pspell_store_replacement() для хранения замещающей пары, а pspell_save_wordlist() затем сохраняет список слов/wordlist вместе с замещающими парами. Файл должен иметь доступ для записи для того, кто запускает php (например, nobody). Отметьте, пожалуйста, что эта функция не работает, если у вас нет pspell .11.2 и aspell .32.5 или новее.

Пример 1. pspell_config_repl()
$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_config ($pspell_config);
pspell_check ($pspell_link, "thecat");

Назад Оглавление Вперёд
pspell_config_personal Вверхpspell_config_runtogether


Warning: include(../pravoe_menu.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 148

Warning: include() [function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 148

Rambler's Top100
© 2009 Тест скорости интернета |  Boont.Ru

Warning: include(../lnbottom.php) [function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 274

Warning: include() [function.include]: Failed opening '../lnbottom.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/pspell-config-repl.html on line 274