(PHP 4 >= 4.0.2)
pspell_config_repl -- 교정내용을 포함하고 있는 파일을 지정
설명
int
pspell_config_repl ( int dictionary_link, string file)
pspell_config_repl()함수는 pspell_new_config()함수를 호출하기 전에 설정되어야 합니다.
교정내용은 단어검사기의 질적 성능을 향상시킵니다. 단어의 철자가 틀리고 목록에서 적당한
추천단어를 찾지 못했을 경우,pspell_store_replacement()함수는 교정목록을 저장하고
pspell_save_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"); |
|