Welcome Guest Search | Active Topics | Sign In | Register

Spell Checker Question Options
HigashiDragon
Posted: Friday, May 29, 2009 5:57:50 AM

Rank: Member
Groups: Member

Joined: 1/9/2009
Posts: 10
Hi there

I've recently purchased your web control suite and am currently converting a clients application to use the EO SpellChecker component.

They are currently using Polar spellchecker but we have ugraded their server and wanted to ratify all third party components.

Could you tell me if the followimg are possible using the EO Spell Checker?

To restrict the spell check process by ignoring words that are UPPERCASE
To restrict the spell check process by ignoring words that contain numbers
To restrict the spell check process by ignoring words that are HTML (without using in conjunction with the EO Editor)

Also when 'adding to dictionary', is this an addition to the dictionary being used by the Spell Checker at that instance or is their a defined custom dictionary file that can be made? If so what directory structure would I use instead of the defined locale structure?


Many Thanks in advance

Russ
HigashiDragon
Posted: Friday, May 29, 2009 7:38:35 AM

Rank: Member
Groups: Member

Joined: 1/9/2009
Posts: 10
well I think I've answered my own questions to a large degree.

I see how to programmatically do the UPPERCASE, NUMBER and HTML restrictions. I presume I can add a checkbox control to the dialog content template and handle them in the cs file.

Is there a way of starting the spellchecker off and showing the dialogue without using a startbutton. Can I get the dialogue to start on page_load?

Thanks
eo_support
Posted: Friday, May 29, 2009 9:04:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

SpellChecker offers several properties for you to specify whether to ignore certain words:

http://doc.essentialobjects.com/library/1/eo.web.spellchecker.ignoreallcapital.aspx
http://doc.essentialobjects.com/library/1/eo.web.spellchecker.ignorenonalpha.aspx

The first option should ignore UPPERCASE and the second option should ignore NUMBER and HTML for you.

When user clicks "Add to Dictionary", the word is added to a custom dictionary file (a plain text file) inside the same dictionary directory. You can use Windows Explorer to check for the files and you will see an additional file is created inside that directory. The file is created in the same directory where the main dictionary file is. So directory structure is the same.

You can start the SpellChecker by calling the spell checker's client side start method:

http://doc.essentialobjects.com/library/1/jsdoc.public.spellchecker.start.aspx

It will be something like this:

Code: JavaScript
eo_GetObject("SpellChecker1").start();


Note that you want to avoid calling this method too soon (before the page is fully loaded). So you may want to use setTimeout to delay the call. For example,

Code: JavaScript
setTimeout(
    function()
    {
        eo_GetObject("SpellChecker1").start();    
    }, 1000);


Thanks!


Thanks!
HigashiDragon
Posted: Friday, May 29, 2009 9:16:12 AM

Rank: Member
Groups: Member

Joined: 1/9/2009
Posts: 10
outstanding :)

thanks for that


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.