Tinymce 如何将个人单词列表添加到Aspell?

Tinymce 如何将个人单词列表添加到Aspell?,tinymce,aspell,Tinymce,Aspell,在调用aspell字典时,我有一个需要包含在其中的单词的个人列表。我需要首先从命令行检查这一点,然后将其实现到PHP拼写检查器插件(TinyMCE)中 我需要相应地修改PHP代码。有人能帮我吗 function TinyPspellShell(&$config, $lang, $mode, $spelling, $jargon, $encoding) { $this->lang = $lang; $this->mode = $mode; $this-&

在调用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;
}
函数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#u match(“#win#i”,php#u uname()))
$this->cmd=''''.$config['tinypspellshell.aspell'.'.''.''.'.-a--lang=“.this->lang.--encoding=utf-8-H<$this->tmpfile 2>&1”;
其他的
$this->cmd=“cat”。$this->tmpfile。”|“$config['tinypspellshell.aspell']”-a--encoding=utf-8-H--lang=“.this->lang;
}

我尝试了$aspell check new.txt-p dict.txt,并保存了一个简单的单词,但表示dict格式不正确

TinyMCE拼写检查器插件的最新PHP实现具有此功能。