This is a migrated thread and some comments may be shown as answers.

Removing words from the default dictionary

2 Answers 86 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 27 Aug 2012, 10:07 PM
We have an issue where clients are complaining that certain words like "paine" (misspelling of "pain") are not being recognized as errors by the spellchecker. I have taken a look at the file Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll and it appears that the words that they are complaining about are indeed in the dictionary. This is somewhat odd as they are recognized as errors by OpenOffice and MS Word. Is there any way to remove these words from the custom dictionary? If it involves creating a new custom dictionary (which I would rather not do), are there any silverlight-specific guides to doing so? It seems that all of the ones that I have come across are for ASP.net

Thanks

2 Answers, 1 is accepted

Sort by
0
Andrew
Telerik team
answered on 29 Aug 2012, 03:10 PM
Hi Nathan,

If you want to remove those words from the dictionary you have two options:

1) Get the .tdf file, remove the words you consider wrong and should not be there, and add it as a resource to your project. Then manually create a RadDictionary object and load the new .tdf file. All available .tdf files can be found here. Use the following code if you want to manually load a dictionary:

DocumentSpellChecker dsp = radRichTextBox1.SpellChecker as DocumentSpellChecker;
RadDictionary dictionary = new RadDictionary();
dictionary.Load(...); //provide stream to the new dictionary
dsp.AddDictionary(dictionary, CultureInfo.InvariantCulture);

 2) All assemblies that contain dictionaries like Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll are loaded through MEF. You can create such assembly on your own with the new edited .tdf file supplied in it. You can read more about this approach here.

On a side note, we would appreciate it if you could share the list of words reported by your clients, so that we can confirm that some words should be removed and adjust the dictionary for one of the upcoming releases.
All the best,
Andrew
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nathan
Top achievements
Rank 1
answered on 30 Aug 2012, 04:33 PM
Thanks for you help. I will see if I can gather a list of words that are being reported and will let you know.
Tags
SpellChecker
Asked by
Nathan
Top achievements
Rank 1
Answers by
Andrew
Telerik team
Nathan
Top achievements
Rank 1
Share this question
or