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-store-replacement.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-store-replacement.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-store-replacement.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-store-replacement.html on line 46



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

pspell_store_replacement

(PHP 4 >= 4.0.2)

pspell_store_replacement - сохраняет замещающую пару для слова.

Описание

int pspell_store_replacement (int dictionary_link, string misspelled, string correct)

pspell_store_replacement() сохраняет замещающую пару для слова, поэтому замещение может быть возвращено в дальнейшем функцией pspell_suggest(). Чтобы использовать преимущества этой функции, вы должны открывать словарь функцией pspell_new_personal(). Чтобы постоянно сохранить замещающую пару, вы должны использовать pspell_config_personal() и pspell_config_repl() для установки пути для сохранения ваших специализированных списков слов, а затем использовать pspell_save_wordlist() для записи изменений на диск. Отметьте, пожалуйста, что эта функция не будет работать, если у вас нет pspell .11.2 и aspell .32.5 или новее.

Пример 1. pspell_store_replacement()
$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_store_replacement ($pspell_link, $misspelled, $correct);
pspell_save_wordlist ($pspell_link);

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


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-store-replacement.html on line 150

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-store-replacement.html on line 150

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-store-replacement.html on line 276

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-store-replacement.html on line 276