本手册由zengl开源网的站长提供 首页:www.zengl.com Spell Checker  拼写检查器 Spell Checker Configuration   拼写检查器的配置 FCKeditor comes with built-in integration with ...

本手册由zengl开源网的站长提供 首页:www.zengl.com

Spell Checker  拼写检查器

Spell Checker Configuration   拼写检查器的配置

FCKeditor comes with built-in integration with two spell checkers: ieSpell and Speller Pages. Here you will find information about these spell checkers and how to configure them.  FCK编辑器内部集成有两个拼写检查器:" ieSpell " 和 " Speller Pages "。 这里将提供有关这些检查器的信息以及如何配置他们。

ieSpell 

As the name says, ieSpell is an extension for Internet Explorer that does spell checking at the client side. It is quite simple and efficient, but it runs on IE/Windows only.  正如名字所说的,ieSpell 是一个IE浏览器的扩展,可以在客户端对拼写进行检查。这个相当容易且有效,但是只能在 windows 系统的IE 浏览器下使用。

To use ieSpell just set the following configuration in fckconfig.js or in your own Configuration File: 要使用ieSpell 只需要在配置文件里设置如下的配置选项:

FCKConfig.SpellChecker = 'ieSpell' ;

The first time a user runs the Spell Checker, he/she will be automatically informed that ieSpell is not installed and will be redirected to the download URL (the URL can also be configured using IeSpellDownloadUrl option).   当用户第一次运行拼写检查器时,会被通知说 ieSpell 没有安装 并且会转到下载链接(这个链接地址可以 使用 IeSpellDownloadUrl 选项进行配置)。

When running FCKeditor with ieSpell with non-IE browsers, the "Check Spell" button will be automatically disabled.
当在非IE浏览器中使用编辑器的ieSpell 时,对应的"拼写检查"按钮会自动变灰色即被禁用。

NOTE: ieSpell is free for personal use. Commercial licenses are available for very low prices. For more info about ieSpell, its licensing, configurations and more, go to http://www.iespell.com/.  注意:ieSpell 可以供个人自由的使用。即使是商业许可也只需很少的费用。想知道关于 IeSpell 的更多信息,可以到 http://www.iespell.com/ 网站查看。

Speller Pages

Speller Pages is a free, Open Source, server side spell checker that uses the powerful GNU Aspell engine for the hard work. This should be the preferred spell checker, but it requires some server side configuration (this is why it is not set as the default one). Speller Pages 是一个开源免费的软件,他使用服务端脚本 采用 GNU Aspell 引擎完成繁琐的工作。这是个不错的拼写检查器,但是他需要进行一些服务端配置(所以他没有被设置为默认选项,你可以打开 fckconfig.js ,在 2.6.5版的 fckconfig.js 中 默认使用的是WSC ,即;FCKConfig.SpellChecker      = 'WSC' ;    // 'WSC' | 'SCAYT' | 'SpellerPages' | 'ieSpell'  其中的WSC 和 SCAYT 本章没介绍,读者可以自己找些资料看看)。

To use Speller Pages just set the following configuration in fckconfig.js or in your own Configuration File: 要使用Speller Pages 可以在配置文件fckconfig.js或自定义的配置文件中配置如下选项:

FCKConfig.SpellChecker = 'SpellerPages' ;

FCKeditor uses a customized version of Speller Pages, so any specific configuration must be done in the files found at: editor/dialog/fck_spellerpages/spellerpages. All changed lines have been marked with a "by FredCK" comment.
FCKeditor使用的是定制版的Speller Pages ,所以所有要更改的配置都必须写在 editor/dialog/fck_spellerpages/spellerpages 该目录中的文件里。所有修改过的行都已经用"by FredCK" 注释标记起来了。

The files included in the package are set to run over Windows with PHP. Useful information about Windows configuration can be found here: Installation Instructions. 在上面提到的目录中的文件 都是针对 windows 系统的PHP环境下的。有关windows下配置的更多有用信息,请查看Installation Instructions该链接。

If the server is not Windows just go to to the spellerpages/server-scripts directory, locate the appropriate file and adjust the var that holds the path to the aspell binary.   如果服务器不是在 windows系统下运行的,只需进入 spellerpages/server-scripts 目录,找到相关的文件,然后修改 用于指定 aspell 可执行文件路径的变量即可。(例如在该目录的spellchecker.php文件中有两行这样的代码:

$aspell_prog    = '"C:\Program Files\Aspell\bin\aspell.exe"';    // by FredCK (for Windows)
//$aspell_prog    = 'aspell';                                        // by FredCK (for Linux)

这里的路径估计就是 aspell 引擎执行文件的路径)

For more info about Speller Pages, its licensing, installation, configuration and more, go to http://spellerpages.sourceforge.net/.  有关 Speller Pages 的许可协议,以及安装 ,配置等更多的信息,可以查看 http://spellerpages.sourceforge.net/  该链接。

Configuration options  配置选项

   ● Aspell and Windows 2003 Server Configuration  查看该链接(Aspell 和 windows 2003 服务器下的配置)

   ● Updating Aspell on Unix  查看该链接(在Unix下升级Aspell)。

  译者附注:有关拼写检查的内容,这章也没讲的非常详细,有些地方英文讲到比较模糊,我也只能模糊的翻译了,等以后有充分了解再来做补充,不过还好这个功能不常用,如果想更好的掌握它,可以查看上面提到过的一些链接,或许对你会有帮助。

如果本文有翻译不周的地方,或有其他方面的评论,可以到下方发表评论。

上下篇

下一篇: 内置文件浏览器FCKeditor

上一篇: FCKeditor的模板设置

相关文章

FCKeditor的模板设置

FCKeditor自定义文件浏览器

FCKeditor的安装

FCKeditor脚本压缩

FCKeditor的调试

JavaScript脚本加载fckeditor编辑器