Opened 11 years ago

Closed 9 years ago

#7618 closed enhancement (wontfix)

[cla][patch] Spell cheker for all king of input/richEditor

Reported by: iDo Owned by: dante
Priority: high Milestone: future
Component: DojoX Widgets Version:
Keywords: Cc:
Blocked By: Blocking:

Description

it's a spell checker which work with all input and all iframe. eg: you can use it with textarea, dijit.from.TextArea?, dijit.Editor, etc...

Attachments (7)

SpellCheck.js (71 bytes) - added by iDo 11 years ago.
i18n bundle
test_SpellCheck.html (5.0 KB) - added by iDo 11 years ago.
test file
spellcheck.gif (879 bytes) - added by iDo 11 years ago.
icon for plugin button
SpellCheck.3.js (2.4 KB) - added by iDo 11 years ago.
plugin file for dijit.Editor
spellcheck.php (3.5 KB) - added by iDo 11 years ago.
php exemple (utf-8 bug fix)
SpellCheck.2.js (12.4 KB) - added by iDo 11 years ago.
the code of the widget (add leftClickToOpen params)
spellcheck.zip (8.0 KB) - added by iDo 11 years ago.
review of style guide

Download all attachments as: .zip

Change History (15)

comment:2 Changed 11 years ago by dante

Milestone: tbdfuture
Status: newassigned

moving to future for now. ido: are these the most recent patches? I know you've been working on some stuff still ...

comment:3 Changed 11 years ago by iDo

Yep, this is the latest version. I'm working on integrate it in a dijit.Editor plugin.

Changed 11 years ago by iDo

Attachment: SpellCheck.js added

i18n bundle

Changed 11 years ago by iDo

Attachment: test_SpellCheck.html added

test file

Changed 11 years ago by iDo

Attachment: spellcheck.gif added

icon for plugin button

Changed 11 years ago by iDo

Attachment: SpellCheck.3.js added

plugin file for dijit.Editor

comment:4 Changed 11 years ago by iDo

@dante : here you have the version which work in plugin of dijit.Editor. For this mode, you have to add something like "aspell:'spellchecker.php'" in djConfig

Changed 11 years ago by iDo

Attachment: spellcheck.php added

php exemple (utf-8 bug fix)

Changed 11 years ago by iDo

Attachment: SpellCheck.2.js added

the code of the widget (add leftClickToOpen params)

Changed 11 years ago by iDo

Attachment: spellcheck.zip added

review of style guide

comment:5 Changed 11 years ago by iDo

note : use only zip file (ignore others)

(is there a way to delete files ?)

comment:6 Changed 11 years ago by ontak

Hi, I am trying to use your script (SpellCheck?.js) for a J2EE server (Weblogic, WebSphere?). I see that in your example, you require user to include "spellcheck.php". How can I translate that over in a J2EE environment?

comment:7 Changed 10 years ago by iDo

spellcheck.php is quite simple. It call an unix binarie (aspell) and parse result. Parsing result should print something like that :

{response:[
	{ 
		mot :"tun", 
		offset:8, 
		length:3, 
		suggestion:["tune","tub","tu","un","tus","Sun","ton","tua","tue","tuf","tut","tué","tût","d'un","l'un"]
	},{ 
		mot :"tesst", 
		offset:12, 
		length:5, 
		suggestion:["tests","test","t'est","testa","teste","testé","est","lests","d'est","lest","t'es-tu","t'eusse","t'eut","t'eût","c'est","l'est","m'est","n'est","s'est"]
	}
]}

comment:8 Changed 9 years ago by dante

Resolution: wontfix
Status: assignedclosed

I would suggest creating this as a 3rd-party-like product with various server implementations. ideally as part of the dojox decouple.

Note: See TracTickets for help on using tickets.