PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

pspell_config_runtogether - 複合語を有効な単語の組み合わせとして考慮する | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

pspell_config_runtogether

(PHP 4 >= 4.0.2, PHP 5, PHP 7)

pspell_config_runtogether複合語を有効な単語の組み合わせとして考慮する

説明

bool pspell_config_runtogether ( int $dictionary_link , bool $flag )

この関数は、複合語を正しい複合語として処理するかどうかを定義します。 つまり、"thecat" には、二つの単語の間に空白はありませんが、 正しい複合語となります。この設定の変更は、 pspell_check() による返り値にのみ影響を与えます。 pspell_suggest() は、この場合でも修正候補を返します。

pspell_config_runtogether() は、 pspell_new_config() をコールする前に設定を行うために使用する必要があります。

パラメータ

dictionary_link

flag

連続した単語を複合語として扱う場合な TRUE、 それ以外の場合は FALSE

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 pspell_config_runtogether()

<?php
$pspell_config 
pspell_config_create("en");
pspell_config_runtogether($pspell_configtrue);
$pspell_link pspell_new_config($pspell_config);
pspell_check($pspell_link"thecat");
?>


忘却曲線を使ってこの関数を確実に記憶に残す

フォーラムで「pspell_config_runtogether - 複合語を有効な単語の組み合わせとして考慮する」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | pspell_config_runtogether - 複合語を有効な単語の組み合わせとして考慮する」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: