Home > Desktop > AJAX Spell Checker in Opera

AJAX Spell Checker in Opera

March 26, 2007

Although Opera already contains a built-in spell checker, there is an even nicer one that you can download into the browser.

A “Check spelling” link appears below text input areas while entering text, clicking on the link will perform a spell check on the text without reloading the page (see screenshots below). The spell checker works using Opera’s User JavaScript, which is similar to Firefox’s GreaseMonkey.

About the script:

  • It’s blazing fast since JavaScript is stored locally
  • Inline and dynamic
  • AJAX is used to send and receive data
  • Support for 27 languages
  • Ability to switch language dynamically

I’ve been using it for over a week already, and I must say that I’ve been very impressed with it. It’s fast and easy to use, though the installation could be a bit confusing.

Opera’s User JavaScript is extremely powerful, but besides for not having an active distribution system, unfortunately installing a script with a simple click of a button is still lacking. Since Opera doesn’t support the Firefox-like extension model, extending the browser’s functionality using User JavaScript becomes vital to developers, which is why Opera needs to make it easier for developers to distribute their scripts.

Installation instructions:

  1. Download the files here (Put the files in a folder e.g. My Documents/OperaScripts)
  2. In the Opera browser go to Tools > Preferences > Advanced > Content > JavaScript Options > Choose… Select the folder with the contents of the files you just downloaded (i.e. My Documents/OperaScripts)
  3. Click OK

spell-checker1.png
(Spell checker suggestions in Opera)

 

spell-checker2.png
(Spell checker in Opera)

(via Intrepid Street)

Advertisements
Categories: Desktop
  1. March 26, 2007 at 3:01 pm

    Yay! Thank you for that! I could never get the built in spell checker to work properly (doesn’t recognize aspell).

  2. March 26, 2007 at 3:09 pm

    Daniel, you can remove step #5 (Restart Opera) from the list, it will works without restart.

  3. March 26, 2007 at 3:09 pm

    Daniel, I think you should check out this new spell checker that’s being worked on by d.i.z. and Sombria:

    http://my.opera.com/community/forums/topic.dml?id=182282

  4. minisu
    March 26, 2007 at 3:11 pm

    Nice, does it work in chat?

  5. March 26, 2007 at 3:20 pm

    FataL, thanks for pointing that out, I’ve updated my post.

  6. rpsgc
    March 26, 2007 at 3:40 pm

    “Support for 27 languages”

    It only has Dansk, English, Hrvatski, Norski and Polski ??

  7. March 26, 2007 at 3:52 pm

    rpsgc: “To define what languages should be supported you should alter the SUPPORT_LANGUAGES variable in orangoo_opera_v3.js.”

  8. rpsgc
    March 26, 2007 at 4:01 pm

    @Daniel Goldman

    I must’ve missed that, thanks 🙂

  9. March 26, 2007 at 5:22 pm

    Opera’s User JavaScript is extremely powerful, but besides for not having an active distribution system, unfortunately installing a script with a simple click of a button is still lacking.

    Not being able to use User-JS when JS is globally deactivated is the killer for this feature. They should be handled separately.

  10. March 26, 2007 at 7:35 pm

    Daniel, that’s an old version of the script. Granted it was the most recent of the scripts entitled Orangoo Spell Check, but now OSpell has take it’s place.

    Orangoo v3 didn’t work in the latest weekly builds, and it required xErath’s cross-domain XMLHTTPRequest script (which came in the ZIP file). OSpell is a single script that works very similarly to Amix’s script, but is smaller in size.

    I think it’s also important to mention that Sombria (the creator of the Orangoo v1 UserJS) made OSpell with a little help from d.i.z. (who made the Orangoo v2 UserJS, based on Sombria’s original).

  11. Dim
    March 26, 2007 at 11:27 pm

    Wow, this is great. Thanks. Going to be pretty useful instead of using a spell check program I use outside the browser.

  12. March 26, 2007 at 11:43 pm

    I think calling the current solution “built in” is more than a little bit of a stretch 🙂 If you have to go download and install a third party item, it’s not “built in”! This sort of functionality really needs to be an on/off in the preferences. Still, at least it can be done… 🙂

  13. March 27, 2007 at 8:10 am

    GT500, I changed the link to point to the newer version. However, I have a few issues with it.

    1) The main script didn’t pickup the changes preferences script. I had to manually change the script to turn off Gmail checking.
    2) Why is the Gmail spell checker the default, if it requires a log on? The script needs to be simple.
    3) I think the spell checker should be enabled by default only for text areas, not input boxes. First, the image below small text boxes look horrible, and second, text boxes are normally used just for short input (such as your name, etc.), I don’t think spell checking it important there.

    My $0.02.

  14. Moonlight Gambler
    March 27, 2007 at 10:13 am

    I too had trouble with Aspell, so I changed to tinySpell.

    http://www.tinyspell.m6.net

    Simpler, easier, and checks everything you spell or copy.

  15. March 27, 2007 at 10:38 am

    Is any body else having issues on phpBB powered forums? The spell checker does not work when writing a new message or when posting a private message. Other than that, it is a great find!

  16. March 27, 2007 at 12:36 pm

    Aspell works fine for me. It sounds like OSpell is still undergoing some improvements, so I’ll wait until it is more refined before using it.

  17. March 27, 2007 at 2:34 pm

    That spellchecker UserJS does not work in my case:( .It always gets me the message “invalid response from server”, on any language.

  18. March 27, 2007 at 2:51 pm

    Daniel Goldman wrote:

    1) The main script didn’t pickup the changes preferences script. I had to manually change the script to turn off Gmail checking.

    Did you remove the old script before installing the new one?

    I’ve also not heard of it having trouble with the preferences script. Do you have your UserJS folder set globally?

    Daniel Goldman wrote:

    2) Why is the Gmail spell checker the default, if it requires a log on? The script needs to be simple.

    The version at my site is set to use the server provided by fearphage, and not GMail, but it defaults to GMail if the preferences file isn’t there. I’ll go ahead and change it in the version on my site, so that it always defaults to the fearphage server.

    Daniel Goldman wrote:

    3) I think the spell checker should be enabled by default only for text areas, not input boxes. First, the image below small text boxes look horrible, and second, text boxes are normally used just for short input (such as your name, etc.), I don’t think spell checking it important there.

    There are a few people who agree with you, but there are also people who find it frustrating when it doesn’t check text fields (and I sympathise with them). I’ll leave it up to d.i.z. and Sombria to decide if that option needs changed in the next version.

    If you have any further problems, questions, or suggestions, then you can leave a post in the OSpell forum topic at the My Opera Community. That way you’ll get more than just me trying to help you. 😉

    IceArdor wrote:

    Aspell works fine for me. It sounds like OSpell is still undergoing some improvements, so I’ll wait until it is more refined before using it.

    Yes, OSpell is having a few issues in it’s current state. Most people don’t seem to be having trouble with it, but there do seem to be more issues with OSpell than with previous scripts.

    As for me, I have 3 computers, 4 different operating system, and OSpell works fine on all of them. Granted that doesn’t mean that it will work fine for everyone…

  19. March 27, 2007 at 2:58 pm

    GT500, thanks for the clarification.

  20. sc
    March 27, 2007 at 2:58 pm

    Not being able to use User-JS when JS is globally deactivated is the killer for this feature. They should be handled separately.

    Mathias, I think you can disable “regular” JS with a UserScript and still be able to use other UserJS. See http://userjs.org/scripts/browser/enhancements/disable-script

  21. March 27, 2007 at 5:53 pm

    BTW: OSpell was just updated with a bugfix. Anyone who has it might want to download the new version. 😉

  22. Jadd
    March 29, 2007 at 4:13 am

    Opera’s User JavaScript is extremely powerful, but besides for not having an active distribution system, unfortunately installing a script with a simple click of a button is still lacking. Since Opera doesn’t support the Firefox-like extension model, extending the browser’s functionality using User JavaScript becomes vital to developers, which is why Opera needs to make it easier for developers to distribute their scripts.

    Yes! Exactly!

  23. Mark Gillespie
    April 29, 2007 at 7:06 am

    All very nice, but it’s worth pointing out, if you use Opera for email/newsgroups, then you still need the ASpell stuff.

    This add-on is only good for web paged based spell checking.

    It would be nice if Opera overhauled the spell checker to use this, and made it work with email. It would be also nice if it did the way firefox does, and puts squiggles under misspelled words.

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: