Support Forum


Keyoti Support Forum - SpellChecker with TxTextControl 15.Net
Keyoti Support Forum
Keyoti Support Forum
Home | Profile | Register | Active Topics | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Technical Support Questions
 RapidSpell Desktop .NET
 SpellChecker with TxTextControl 15.Net
 New Topic  Reply to Topic
Author Topic  

Mauro76

Italy
13 Posts

Posted - 12 Oct 2009 :  00:59:40  Show Profile  Reply with Quote

We are trying to use the spell checker with TextControl .Net V.15. In our text we use have implemented the word division (syllables). As you see the character ^ is used by the text control to divide the syllables. However the spell checker consider as an error the presence of this character. We'd like to know if there is a way to tell the spellchecker to ignore this character and consider the word "dispo-ni^bi^litą" as equal to "disponibilitą" which is present in the main dictionary. The same is valid for all the words underlined in red in the text below:

http://h:/Mzanuso/Testo.jpg



Mauro76

Italy
13 Posts

Posted - 12 Oct 2009 :  01:13:03  Show Profile  Reply with Quote
This is an example of our problems:
http://img104.imageshack.us/img104/9433/testoz.jpg
http://img104.imageshack.us/img104/5103/testo1.jpg
Go to Top of Page

Jim

Canada
2203 Posts

Posted - 12 Oct 2009 :  15:19:54  Show Profile  Reply with Quote
Sure, you just want to override the method that checks the word, so that it removes the ^ char.

class SChecker : RapidSpellChecker
{
protected override bool LookUpMainDictionary(string query)
{

return base.LookUpMainDictionary(query.Replace("^", ""));
}

protected override bool LookUpUserDictionary(string query)
{

return base.LookUpUserDictionary(query.Replace("^", ""));
}

protected override System.Collections.ArrayList FindSuggestions(string word, bool searchLowerCase)
{
return base.FindSuggestions(word.Replace("^", ""), searchLowerCase);
}
}



and then use it like this


rapidSpellAsYouType1.RapidSpellChecker = new SChecker();
or
rapidSpellDialog.CheckerEngine = new SChecker();

Best
Jim



-your feedback is helpful to other users, thank you!
Go to Top of Page

Mauro76

Italy
13 Posts

Posted - 13 Oct 2009 :  06:02:50  Show Profile  Reply with Quote
Thank you very much for all.
bye
Mauro
Go to Top of Page
  Topic  
 New Topic  Reply to Topic
Jump To:
Keyoti Support Forum © Keyoti Inc. Go To Top Of Page
Snitz Forums 2000


About | Contact | Site Map | Privacy Policy

Copyright © 2002-2010 Keyoti Inc.