суббота, 23 июня 2007 г.

Your In-Line Spell Check for Opera

The OSpell UserJS script is a JavaScript customization for the Opera Web Browser. It allows in-line spell checking at the click of a button, or the tap of a couple keys.


This UserJS is split into two scripts, OSpell (download) and OSpell Preferences (download). The preferences file has been updated, and the name changed, as of version 1.0 beta 27, so make sure to delete your old preferences file before installing the new one. Please remove older versions of OSpell before you download this, as they could interfere with each other, and not work at all. That applies for Orangoo Spell Check as well. When using this, it is best if you do not have any other in-line spell checking scripts installed.

The OSpell Preferences script is entirely optional, and allows you to define your own custom settings, including which engine to use (line #16) and if the script should not display the language selector (uncomment line #19). You can open this in a simple text editor, such as Notepad, Notepad++, CrimsonEditor, etc. By default I have the spell check engine set to use the server provided by fearphage, but it can be easily changed in the preferences.

If you don't know how to set up UserJS in Opera, then you can watch this video. It shows the basics of setting up UserJS for the first time. If you already have UserJS set up, you do not need to create a new directory for OSpell, but simply need to save it in your current UserJS directory. The video is just over 10MB, and is encoded in Theora. It will play in VLC Media Player, MPlayer, and Xine. To play it in Windows Media Player, you will need to install an OGG Codec that supports Theora video.

If you need to ask questions, or want to make a suggestion, then please feel free to leave a post in the My Opera Comunity official forum topic or in my OSpell forum.

Here are some of the new feaures of OSpell:

It can use either Orangoo spell check, or the GMail spell check as it's engine. This option is easy to change in the preferences on line #16 (refer to the comment on line #15 for more info).

It is as fast as Orangoo Spell Check version 3, but the code is smaller, and all contained in one script.

Support for spell checking in text fields (single-line fields) in addition to text areas (multi-line fields).

External preferences can be set in OSpell Preferences script. This makes upgrading easier, as you won't have to set up OSpell every time a new version is released.

The combo box that allows you to select your language can be easily disabled in the preferences. Just edit line #19 and remove the two slashes "//" from the left side. You can also define which languages you want the script to show in the combo box on this line.


Here are some of the features that the script has inherited from the Orangoo Spell Check scripts:

Works inline with no popups.

Works with textareas added dynamically through JavaScript.

Supports keyboard shortcuts: Ctrl+, (comma) to activate spellcheck, Ctrl+Enter to accept changes, and Ctrl+' (apostrophe) to cancel spellcheck.

Easy keyboard navigation. Use spatial navigation (hold Shift while presing arrow keys) to navigate misspelled words. Press numbers 1-9 to select from listed suggestions for a misspelled word, or press 0 to keep original word.

Support for RTL text.

Various other small tweaks and changed.


OSpell was created by Sombria with some help from d.i.z.. The official forum topic can be found here at the My Opera Community.

Комментариев нет: