I've created an open-source spell checker wrapper implementing Jazzy.  I'm
currently in the process of writing an article for the CFDJ zine about it
and the process I went through.  The code hasn't been released yet, but will
be once I finish the article (sometime between now and the end of October..
time has been hard to find lately, as this hasn't been my #1 priority).

Basically, I wrote a Java class that encapsulates the Jazzy functionality,
and then called that in coldfusion.  If you want, I can share some code
off-list to point you in the right direction.

An example of how it is invoked is like this:

<cfscript>
 spellcheck = CreateObject("java", "com.darronschall.SpellCheck");
 spellcheck.setDictionary("/JavaClasses/com/darronschall/english.txt");
 spellcheck.setTextToCheck(form.spelltext);
 spellcheck.runSpellCheck();
 variables.errors = spellcheck.getErrors();
</cfscript>

<cfoutput>There are #ArrayLen(variables.errors)# errors.</cfoutput>
<cfloop from="1" to="#ArrayLen(variables.errors)#" step="1" index="i">
 <cfdump var="#variables.errors[i].getWord()#">
 <cfdump var="#variables.errors[i].getSuggestions()#">
</cfloop>

-d


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, September 15, 2003 9:14 AM
Subject: Speel checkers? ( WAS RE: Alternative QYSIWYG editors)


> Now are there any open source spell scheckers for these QYSIWYG editors?
I've been digging around and can't find any.  I've been looking at
http://sourceforge.net/projects/jazzy/ with the idea of writing a custom tag
to encapsulate and all, but have not gotten very far yet.
>
> Doug
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to