(PHP 4 >= 4.0.2)
pspell_config_runtogether -- 複合語を有効な単語の組み合わせとして考慮する
説明
int
pspell_config_runtogether ( int dictionary_link, boolean flag)
pspell_config_runtogether() は、
pspell_new_config()をコールする前に設定を行う
ために使用する必要があります。この関数は、複合語を正しい複合語と
して処理するかどうかを定義します。つまり、"thecat" には、二つの単
語の間に空白はありませんが、正しい複合語となります。この設定の変
更は、pspell_check()による返り値にのみ影響を与
えます。pspell_suggest() は、この場合でも修正
候補を返します。
例 1pspell_config_runtogether() $pspell_config = pspell_config_create ("en");
pspell_config_runtogether ($pspell_config, true);
$pspell_link = pspell_new_config ($pspell_config);
pspell_check ($pspell_link, "thecat"); |
|