2

呼び出されたときに aspell 辞書に含める必要がある単語の個人的なリストがあります。最初にコマンドラインからこれをチェックしてから、これを PHP スペルチェッカー プラグイン (TinyMCE) に実装する必要があります。それに応じて PHP コードを変更する必要があります。誰でも私を助けることができますか?

function TinyPspellShell(&$config, $lang, $mode, $spelling, $jargon, $encoding) {
    $this->lang = $lang;
    $this->mode = $mode;
    $this->error = false;
    $this->errorMsg = array();

    $this->tmpfile = tempnam($config['tinypspellshell.tmp'], "tinyspell");

    if(preg_match("#win#i",php_uname()))
        $this->cmd = '"' . $config['tinypspellshell.aspell']  . '"' . " -a --lang=". $this->lang." --encoding=utf-8 -H < $this->tmpfile 2>&1";
    else
        $this->cmd = "cat ". $this->tmpfile ." | " . $config['tinypspellshell.aspell'] . " -a --encoding=utf-8 -H --lang=". $this->lang;
}

$aspell check new.txt -p dict.txt を保存した単純な単語で試しましたが、 Dict not in correct form と表示されます。

4

0 に答える 0