★ wanayoo — archive 1999 http://fr.php.net/manual/kr/function.pspell-new.phpNouvelle recherche | Portail wanayoo
PHP Tuesday, March 20, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  

lookup:
PHP ManualPHP Manual
PspellPspell
 pspell_add_to_personalpspell_add_to_personal
 pspell_add_to_sessionpspell_add_to_session
 pspell_checkpspell_check
 pspell_clear_sessionpspell_clear_session
 pspell_config_createpspell_config_create
 pspell_config_ignorepspell_config_ignore
 pspell_config_modepspell_config_mode
 pspell_config_personalpspell_config_personal
 pspell_config_replpspell_config_repl
 pspell_config_runtogetherpspell_config_runtogether
 pspell_config_save_replpspell_config_save_repl
 pspell_newpspell_new
 pspell_new_configpspell_new_config
 pspell_new_personalpspell_new_personal
 pspell_save_wordlistpspell_save_wordlist
 pspell_store_replacementpspell_store_replacement
 pspell_suggestpspell_suggest

previouspspell_config_save_repl
pspell_new_confignext

Last updated: Sun, 18 Mar 2001
view this page in English | Brazilian Portuguese | Czech | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Spanish | Plain HTML

pspell_new

(PHP 4 >= 4.0.2)

pspell_new -- 새 사전 열기

설명

int pspell_new (string language [, string spelling [, string jargon [, string encoding [, int mode]]]])

Pspell_new()함수는 새 사전을 열고 다른 pspell함수에서 사용할수 있도록 사전 연결 identifier를 반환합니다.

language 파라미터는 두자로 된 ISO 639 언어 코드입니다. 선택적으로 ISO 639 언어 코드 이후 '-' 나 '_' 를 적고 두자로 된 ISO 3166 국가코드를 추가할 수 있습니다.

spelling 파라미터는 English 와 같이 한 철자 이상의 철자가 있는 언어에 대해 철자를 지정합니다. English 의 경우 알려진 값에는 'american', 'british', and 'canadian' 가 있습니다.

jargon 파라미터는 동일한 language와 spelling 파라미터를 가지고 있는 두 다른 단어 목록을 구별하기 위한 추가정보입니다.

encoding 파라미터는 단어의 인코딩 정보입니다. 가능한 값에는 'utf-8', 'iso8859-*', 'koi8-r', 'viscii', 'cp1252', 'machine unsigned 16', 'machine unsigned 32' 가 있습니다. 이 파라미터는 거의 테스트되지 않았으니, 사용할 때 주의하세요.

mode 파라미터는 단어검사기의 실행모드입니다. 아래에 몇가지 가능한 모드가 있습니다.

  • PSPELL_FAST - 빠른 실행모드 (최소한의 추천단어)

  • PSPELL_NORMAL - 보통 실행모드 (더 많은 추천단어)

  • PSPELL_BAD_SPELLERS - 느린 실행모드 (가장많은 추천단어)

  • PSPELL_RUN_TOGETHER - 연결된 단어를 정당한 합성어로 고려할지를 결정합니다. 즉, 말하자면 두 단어 사이에 공백(space)이 있어야 할지라도 "thecat"은 정당한 합성어가 됩니다. 이 설정을 바꾸면 pspell_check()함수에 의해 반환되는 결과값에만 영향을 미칩니다.; pspell_suggest()함수는 여전히 추천단어를 반환합니다.

모드는 위에 나열된 서로 다른 상수로 구성된 bitmask 입니다. PSPELL_FAST, PSPELL_NORMAL, PSPELL_BAD_SPELLERS 이 서로 배타적일지라도, 이것들중에 하나만을 선택해야합니다.

자세한 정보와 예제는 pspell 웹사이트(http://pspell.sourceforge.net/)의 매뉴얼을 참고하세요.

예 1. Pspell_new()


$pspell_link = pspell_new ("en", "", "", "", 
                           (PSPELL_FAST|PSPELL_RUN_TOGETHER));
      

previouspspell_config_save_repl
pspell_new_confignext

Last updated: Sun, 18 Mar 2001
add note | about notes

show source | credits | mirror sites:  

Copyright © 1998-2001 The PHP Group
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Tue Mar 20 07:31:16 2001 MET