Welcome Guest Search | Active Topics | Sign In | Register

Spell Checker's Add to dictionary functionality Options
guest
Posted: Monday, November 21, 2011 7:30:14 AM
Rank: Newbie
Groups: Member

Joined: 11/21/2011
Posts: 3
Hi,

First of all I would like to thank the essential object team for such a great tool. All the controls are really good.

Iam using the spell check control and it is working really well except only one issue. I have enabled the "Add to Dictionary" button by handling the "custom word" event and in turn called the "AddCustomWord" method to add the word. But the problem is whenever the user loggs out the current session the added word also goes out. It is not permanently added to the dictionary(en_US). Is this the actual functionality or am I doing anything wrong here? need your suggestions.
eo_support
Posted: Monday, November 21, 2011 8:23:57 AM
Rank: Administration
Groups: Administration

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

You will have to explicitly save and load it. We do not permanently save it in order to avoid one user enters all the "wrong" word for everyone else.

Thanks!
guest
Posted: Monday, November 21, 2011 10:22:36 AM
Rank: Newbie
Groups: Member

Joined: 11/21/2011
Posts: 3
Hi,
Thanks for your quick response.
I added words in to "en_US.dic" file. But those words are not getting identified by the spell checker. Is there any formats or any particular syntax to enter custom words into the dictionary. If you can shed some lights on this, it will be of great help.

Thanks.
eo_support
Posted: Monday, November 21, 2011 10:39:22 AM
Rank: Administration
Groups: Administration

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

You can't add them directly into en_US.dic. That file is a text file but has a certain format. You will need to call AddCustomWord method on the SpellChecker to add custom words.

Thanks
guest
Posted: Monday, November 21, 2011 10:57:08 AM
Rank: Newbie
Groups: Member

Joined: 11/21/2011
Posts: 3
Hi,

I have used the same function, Pls find the code sample below.

Protected Sub SplChk4_CustomWord(ByVal sender As Object, ByVal e As EO.Web.SpellCheckerEventArgs) Handles SplChk4.CustomWord

EO.Web.SpellChecker.AddCustomWord("en_US", e.CustomWord, True)

End Sub
It is not making any difference. This function si executing without any error. But I guess the word is not getting added into the dictionary. When i click the "Add to Dictionary" button it shows as if the word is added. But after closing the spell check window, i clicked again to do a spell check, same words which appeared as added was again listed as mispelled words.

Thanks.


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.