Removing words from the default dictionary

3 posts, 0 answers
  1. Nathan
    Nathan avatar
    2 posts
    Member since:
    Aug 2012

    Posted 27 Aug 2012 Link to this post

    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

  2. Andrew
    Andrew avatar
    140 posts

    Posted 29 Aug 2012 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Nathan
    Nathan avatar
    2 posts
    Member since:
    Aug 2012

    Posted 30 Aug 2012 Link to this post

    Thanks for you help. I will see if I can gather a list of words that are being reported and will let you know.
Back to Top