Lost password? | Help

[ advanced search ]

[UserJS] Orangoo Spell Check v3

Forums » Opera Community » General Opera topics » User JavaScript


Go to last post

Thursday, 15. March 2007, 10:43:28

amix3k

avatar

Posts: 6

[UserJS] Orangoo Spell Check v3

I am the author of Orangoo Spell and I have great news for you :smile:

I have hacked a new version of Opera Orangoo spell check, that enables spell checking in Opera.

My version is a lot faster than older versions since:
* Almost everything is stored locally
* Ajax is used to send and receive data

There is still support for 27 languages.

Read more and download the script from:
http://amix.dk/blog/viewEntry/19114

If you like my hack, consider digg'ing it:
http://digg.com/software/Spell_check_for_Opera

A thanks goes out to Sombria and d.i.z for their initial versions.

Thursday, 15. March 2007, 10:56:30 (edited)

XP1

avatar

Posts: 170

Wonderful, I hope in-line spell checking becomes a native feature in Opera. I miss it so much when I'm not typing in Firefox.

Thursday, 15. March 2007, 12:54:21

Tamil

Opera :-(|)

avatar

Posts: 110325

Heaven

Welcome to Opera community.

Thanks. :up:

Thursday, 15. March 2007, 14:43:34

d.i.z.

bug hunter

avatar

Posts: 2942

Poland

Wow, very nice. I think my version becomes obsolete now.

Some thoughts:
- keyboard shortcuts missing
- div should have same padding applied as textarea to minimize differences in text breaking (not entirely possible because of scrolling space but...)
- changing language should be possible in spell checking mode too
- unnecessary code could be removed (like sniffing etc)
- more testing when I get home

Thursday, 15. March 2007, 18:55:54

flitz

avatar

Posts: 78

Brazil

WOW! that's really great!

Thursday, 15. March 2007, 19:11:21

Stevie1

avatar

Posts: 15

i miss the orangoo logo!

Thursday, 15. March 2007, 20:51:55

Saddle Magic

Psycho Chicken What_The_Cluck!

avatar

Posts: 19081

That is much faster :up: I too miss the orangoo logo :left:

Thursday, 15. March 2007, 22:55:25

BAMAToNE

Internet Sensation

avatar

Posts: 1857

Tuscaloosa, AL

:up: :beer:

Welcome to the Opera Forums!

Thursday, 15. March 2007, 23:19:22

ThunderFire

avatar

Banned User

Really nice!

You almost feel the urge to type endlessly just in order to try the script :smile:

Much faster than previous versions.

Friday, 16. March 2007, 02:46:16

DynaBMan

avatar

Posts: 966

USA

Well, I just have to do this to see how it is going to work. Not bad, I must say.

Friday, 16. March 2007, 04:53:04

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Sweet...

I just hope amix3k allows me to throw this on my site like d.i.z. did with version 2. If not, then I'll have to take my page down.

BTW: The script is extremely efficient. Very nice work. :wink:

Friday, 16. March 2007, 04:57:18

idleskitter

relax max

avatar

Banned User

@amix3k
Thank you -- nice script indeed. :up:
It comes in very handy, speed is always welcomed, seems to be a good alternative to old 'right click > Check spelling' of Opera browser.
Works fine with Opera forums.

Orangoo Spell Check v3 has issues on ZoneAlarm user forums though, i.e. spellcheck works but it seems there's no way back to resume editing there. You might have a look into it the other day.

Originally posted by d.i.z.:

- unnecessary code could be removed (like sniffing etc)


Agreed, ...

Friday, 16. March 2007, 06:52:51

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by d.i.z.:

...
- changing language should be possible in spell checking mode too
...



Are you talking about this:

Screenshot

Friday, 16. March 2007, 07:47:09

amix3k

avatar

Posts: 6

Hi

Thanks for the feedback!

I don't really plan to spend more time on this script, so some of you JavaScript hackers are very welcome to modify or extend my version.

d.i.z could for example port some nice features from his version (like keyboard shortcuts etc. :smile:).

Friday, 16. March 2007, 11:26:02

drlaunch

Traveler From Beyond

avatar

Posts: 1003

Norway

Wow. Thanks for making such an awesome userJS! And it's so easy to use.

Friday, 16. March 2007, 11:39:39

DynaBMan

avatar

Posts: 966

USA

I don't suppose there would be any way to make this work with M2, would there now? I don't know anything about javascript, but I thought since it was stored locally, it might be possible.

Friday, 16. March 2007, 12:51:16

drlaunch

Traveler From Beyond

avatar

Posts: 1003

Norway

You can't run UserJS in Opera's own pages. But you could still install Aspell and right click -> Spell check.

Friday, 16. March 2007, 13:33:21

I am persistently impressed by the ingenious hacks I've seen thanks to UserJS. This is another fine example.

Friday, 16. March 2007, 15:39:06

ThunderFire

avatar

Banned User

I haven't study the script, but is it possible to tie the script with let's say Aspell?

If Aspell is already present in PC wouldn't that be even faster? (instead of using Orangoo)

Just a though (I like though the script interface much better than Aspell).

P.S Now that I was writing this, I found a nice addition on the script would be to automatically fix all occurrences of the same mistake.

Friday, 16. March 2007, 20:56:41

Saddle Magic

Psycho Chicken What_The_Cluck!

avatar

Posts: 19081

Originally posted by kesisoglou:

I haven't study the script, but is it possible to tie the script with let's say Aspell?


I believe this new version 3 script is using Aspell.

Friday, 16. March 2007, 21:55:31

drlaunch

Traveler From Beyond

avatar

Posts: 1003

Norway

I doubt that. It's faster because most of it is stored offline. But I think the spell checker still is Orangoo.

It's broken in the latest weekly. :frown:

Friday, 16. March 2007, 21:58:11

Originally posted by d.i.z.:

- keyboard shortcuts missing



huge +1 :wink:

Saturday, 17. March 2007, 05:27:42

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by drlaunch:

I doubt that. It's faster because most of it is stored offline. But I think the spell checker still is Orangoo.

It's broken in the latest weekly. :frown:



Is that why it stopped working. I just thought the service was down again. :wink:

Saturday, 17. March 2007, 14:48:15

flitz

avatar

Posts: 78

Brazil

No one fixed for this new weekly?

Saturday, 17. March 2007, 15:07:52

d.i.z.

bug hunter

avatar

Posts: 2942

Poland

Originally posted by amix3k:

I don't really plan to spend more time on this script


I was afraid of that.

I'm not sure anyone will pick up this version and improve. I'm not going to do this because it would need some serious rewrite of the code (to make script a lot smaller).

But Sombria is doing yet another version (already in beta) which can use GMail spellchecker. I'm sure she will announce it when it's ready.

Saturday, 17. March 2007, 22:48:31

ThunderFire

avatar

Banned User

Hmm... Without having see the script's internal, shouldn't be easy to make the change?

My guess is that you just have to point the script to another location right?

GMail spellchecker is very fast!

Saturday, 17. March 2007, 23:25:23

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2022

USA

Is there a reason to fix/update this if Sombria's version will obsolete it? Is there a proposed date on Sombria's version? I was already working on stripping down this one and I could or wouldn't mind adding d.i.z.'s improvements.

Sunday, 18. March 2007, 08:55:07

ThunderFire

avatar

Banned User

Originally posted by fearphage:

Is there a reason to fix/update this if Sombria's version will obsolete it? Is there a proposed date on Sombria's version? I was already working on stripping down this one and I could or wouldn't mind adding d.i.z.'s improvements.


I am going to wait for Sombria's version. No point of having 10 people working on the same project.

It's better to incrementally add our ideas instead of producing 10 different versions of the same code.

The script is already good as it is, never seen it having problems. We are talking of improving even more but as it stands, it's already beyond basic functionality, it's a mature script.

Sunday, 18. March 2007, 09:10:06

d.i.z.

bug hunter

avatar

Posts: 2942

Poland

Originally posted by fearphage:

Is there a proposed date on Sombria's version? I was already working on stripping down this one and I could or wouldn't mind adding d.i.z.'s improvements.


Sombria is working very fast so in a few days I guess :smile:

Sunday, 18. March 2007, 10:19:35

amix3k

avatar

Posts: 6

Hi again

You could do following:
* Install Aspell
* Install Python
* Install Nox Spell Server (which is Orangoo's Aspell proxy)

You launch Nox Spell Server, and alter line 2527 in orangoo_opera_v3.js to:
this.googie = new GoogieSpell("http://www.daimi.au.dk/~amix/googiespell/", "http://localhost:14003/?lang=");

BAM you got even faster _local_ spell checker.

d.i.z:
You would have to do very little code modification to use GMail's spell checker. But anyway, I am looking forward to her new version. Sorry to not be able to support this script - I simply have too many ongoing projects.
You and Sombria are welcome to use any of my code.

Sunday, 18. March 2007, 17:35:21

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2022

USA

Originally posted by d.i.z.:

Sombria is working very fast so in a few days

I'll wait then.

One thing I've noticed that is more a pet peeve than anything and happens in most if not all of these spelling scripts (and more) is the way things are quoted in objects. For example:
var a = {'foo': 'bar'}
is functionally the same as
var a = {foo: 'bar'}
The only reason to use quotes around the name is if the name starts with a number, is a reserved word, or has abnormal characters in it. Examples below:
var obj = {a: 0, b: 1, 'a-b': 2, a_b: 3, 'a+b': 4, 'var': 5, '0': 6}

Just a friendly tip to all.

Originally posted by amix3k:

[d.i.z.] and Sombria are welcome to use any of my code

Thanks a lot amix3k :rolleyes:

I like Sombria's version since it doesn't rely on external scripts/hacks... and because the thought of girls coding is hot p:

Sunday, 18. March 2007, 18:46:19

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by kesisoglou:

...

The script is already good as it is, never seen it having problems. We are talking of improving even more but as it stands, it's already beyond basic functionality, it's a mature script.



Well, it's not working on any of my machines, as I've updated to the latest weekly build of Opera. Assuming this is a bug in the script, that's the only thing that I would want changed. :wink:

Originally posted by d.i.z.:

Sombria is working very fast so in a few days I guess



Sweet... She's amazing...

Originally posted by fearphage:

I like Sombria's version since it doesn't rely on external scripts/hacks... and because the thought of girls coding is hot



Yea, I agree with you there. I wish I could find a girl around here who knew how to code...

Sunday, 18. March 2007, 23:02:08

ThunderFire

avatar

Banned User

Originally posted by GT500:

Originally posted by kesisoglou:

...

The script is already good as it is, never seen it having problems. We are talking of improving even more but as it stands, it's already beyond basic functionality, it's a mature script.


Well, it's not working on any of my machines, as I've updated to the latest weekly build of Opera. Assuming this is a bug in the script, that's the only thing that I would want changed. :wink:


That's strange, I am running Opera 9.10 build 8679 on Windows XP (MCE) - SP2, and the script worked out-of-the-box for me.

Sunday, 18. March 2007, 23:21:30

quiris

avatar

Posts: 6578

Poland

Originally posted by kesisoglou:

I am running Opera 9.10 build 8679

It is *not* latest unstable weekly.

Monday, 19. March 2007, 03:38:09

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by quiris:

Originally posted by kesisoglou:

I am running Opera 9.10 build 8679

It is *not* latest unstable weekly.



Exactly. The script worked fine in Opera 9.20 build 8732 as well, but in the new build 8746 the script is broken.

I'm not sure if this is a regression in Opera, or some added security breaking the script. If it's a bug, I hope that it's fixed before the next build comes out.

Maybe I should open a bug report on it... :wink:

Monday, 19. March 2007, 09:00:35

amix3k

avatar

Posts: 6

I am using a hack that enables cross-domain AJAX calls... This hack may be "fixed" in the latest build.
(a-lib-xmlhttp-cd.js and a-lib-stacktrace.js).

A note for Opera developers:
I would LOVE if cross-domain AJAX calls were possible from UserJS. It would open up for a _lot_ of possibilities.

Monday, 19. March 2007, 19:21:48

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

I take it that you are reffering to this UserJS from xErath.

Tuesday, 20. March 2007, 21:07:11

amix3k

avatar

Posts: 6

GT500:
Jea, I use xErath XMLHttpRequest hack.

Wednesday, 21. March 2007, 03:06:07

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by amix3k:

Jea, I use xErath XMLHttpRequest hack.



OK, I've already reported that his XMLHTTPRequest scripts might not be working in the latest build. We'll see if he comes up with something, or if he's still supporting those script.

Thursday, 22. March 2007, 07:30:40

Indyan

avatar

Posts: 455

India

Wow. This is super cool.

Thursday, 22. March 2007, 20:31:12

Saddle Magic

Psycho Chicken What_The_Cluck!

avatar

Posts: 19081

Still a no-go in build #8758

Thursday, 22. March 2007, 21:43:06

drlaunch

Traveler From Beyond

avatar

Posts: 1003

Norway

Yeah. Someone should fix it.

Thursday, 22. March 2007, 22:09:22

Saddle Magic

Psycho Chicken What_The_Cluck!

avatar

Posts: 19081

Originally posted by drlaunch:

Yeah. Someone should fix it.


The author has already stated the he will not maintain this script.

So we are left to the new script, http://my.opera.com/community/forums/topic.dml?id=182282

Friday, 23. March 2007, 00:25:14

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by Saddle Magic:

Originally posted by drlaunch:

Yeah. Someone should fix it.


The author has already stated the he will not maintain this script.

So we are left to the new script, http://my.opera.com/community/forums/topic.dml?id=182282



Yea, the new script is better, and only uses a single file. It also works in the latest weekly builds. :wink:

Friday, 23. March 2007, 00:47:25

ThunderFire

avatar

Banned User

Hmm doesn't work here. When I focus to a text area, it displays a message about the fearphage site:

error - HTTP links only

Then again the same message about myopera site:

error - HTTP links only

I am running Windows XP (MCE) - SP2 and Opera 9.10 build 8679

Friday, 23. March 2007, 01:11:55

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by kesisoglou:

Hmm doesn't work here. When I focus to a text area, it displays a message about the fearphage site:



Odd, it works fine for me. Try editing the script and change the spell check engine that it uses.

Line #12: var ENGINE = 2;

Try changing it to use the Orangoo server and see if that works better. The download in my sig, and on my site, uses the fearphage server by default. The original that was posted by d.i.z. uses the GMail server by default. :wink:

Friday, 23. March 2007, 09:18:17

ThunderFire

avatar

Banned User

Well I am moving my comments for "OSpell" in another thread http://my.opera.com/community/forums/topic.dml?id=182282 so that they don't get confused with "Orangoo Spell Check v3".

I think for the moment I'll stick to "Orangoo Spell Check v3", it works fine for me.

Friday, 23. March 2007, 13:07:05

vinczej

Az Internet zenéje

avatar

Posts: 2258

Hungary

Originally posted by amix3k:

I am the author of Orangoo Spell...



I use the Orangoo Spellcheck v2, and it works fine! Congrats! I use it for English.

But it's any way to transport the script to any other (above the 27), not supported languages? (E.g.Hungarian)

Friday, 23. March 2007, 18:33:57

GT500

Security Industry

avatar

Posts: 3450

Fighting Malware

Originally posted by vinczej:

I use the Orangoo Spellcheck v2, and it works fine! Congrats! I use it for English.



It's best to not use version 2, as it causes a high server load on Orangoo. :wink:

Originally posted by vinczej:

But it's any way to transport the script to any other (above the 27), not supported languages? (E.g.Hungarian)



There would have to be an aspell dictionary for it, and it would have to be installed on the server.

You'll have to request this one for OSpell though, because none of the older scripts are currently supported.

Friday, 23. March 2007, 19:22:33

vinczej

Az Internet zenéje

avatar

Posts: 2258

Hungary

Originally posted by GT500:

It's best to not use version 2, as it causes a high server load on Orangoo.



Thanks, but at home I can use Ospell very well!:up:

But at work is only the endless spellchecking. So there I have to use the Orangoo v2. I'll try to find the cause of the bad working. :frown:

Tuesday, 18. September 2007, 18:55:29 (edited)

h8uthemost

avatar

Posts: 36

See, I have to go back to version 2, because version 3 just keeps loading when I click Check Spelling. The green circle just endlessly loads. So I'm not sure why version 2, or even ospell works just fine, but version 3 doesn't.

I'm using Opera 9.23 Build 8808.

Forums » Opera Community » General Opera topics » User JavaScript