Custom suggestion

12 posts, 0 answers
  1. Animesh Dey
    Animesh Dey avatar
    24 posts
    Member since:
    Jul 2012

    Posted 04 Aug 2010 Link to this post

    I am working on Rad Spell checker (asp.net ajax),
    I am facing problem to implement the following scenario.

    Scenario:
    Need to create a custom dictionary for doctors. Client can add/Edit/delete words on that dictionary. And when spelling is checked, Suggestion should display words from the custom dictionary not from the default dictionary.

    Regards
    Animesh Chandra Dey
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 05 Aug 2010 Link to this post

    Hi Animesh,

    Please, follow the instructions below to create your own custom Medical TDF dictionary by using the Dictionary Configurator tool, which you can download from the following code library project: Dictionary Configuration.

    1. You need to create a text file following the "word-per-line" rule and excluding any special symbols after each word for example: test/ or test::
      The correct syntax is test
    2. Save the text file with Unicode (UTF-8 with signature) encoding
    3. Rename the .dic / .txt extension to .tdf
    4. Convert the file by using the Dictionary Configurator tool.
    5. Place the new dictionary in the "\RadControls\Spell\TDF", test and verify that the spellchecker works properly with it.

      If the dictionary language is incompatible with the phonetic spell check provider then set the spellchecker to use its EditDistanceProvider (SpellCheckProvider="EditDistanceProvider").


    Greetings,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Animesh Dey
    Animesh Dey avatar
    24 posts
    Member since:
    Jul 2012

    Posted 05 Aug 2010 Link to this post

    Hi, Rumen. Thank you for your reply. 

    That link that you provide "Dictionary Configuration" link is not working. Would you please give the working link.

    Regards
    Animesh Chandra Dey

  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 05 Aug 2010 Link to this post

    Hi Animesh,

    Here is the correct link: http://www.telerik.com/community/code-library/aspnet-ajax/spell/dictionary-configuration.aspx.


    Kind regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Animesh Dey
    Animesh Dey avatar
    24 posts
    Member since:
    Jul 2012

    Posted 05 Aug 2010 Link to this post

    Hi, Rumen. Thank once again for your reply. 

    I have another issue on spell check. I need to show my dictionary as my suggestions. I am attaching a file for you visualization.


    Regards,

    Animesh Chandra Dey 
  7. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 05 Aug 2010 Link to this post

    Hi Animesh,

    The list with suggestions is taken from the TDF dictionary that RadSpell is configured to use. By default, RadSpell uses the en-US.tdf dictionary. If you want to use your own dictionary, you should put this TDF file in the App_Data/RadSpell folder and set the DictionaryLanguage property:

    <telerik:RadSpell ID="RadSpell1" runat="server" DictionaryLanguage="Dictionary_Name" />

    You can find more information in the following article: http://www.telerik.com/help/aspnet-ajax/spell_dictionariesoverview.html

    Greetings,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Animesh Dey
    Animesh Dey avatar
    24 posts
    Member since:
    Jul 2012

    Posted 10 Aug 2010 Link to this post

    hi Rumen ,

    Thanx for your reply.

    I have another question. Is it possible to use multiple custom dictionaries as DictionaryLanguage. I means as Suggestion list.

    Regards
    Animesh Chandra Dey
  9. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 12 Aug 2010 Link to this post

    Hi Animesh Dey,

    I believe that the following demo will be very helpful for your scenario:
    http://demos.telerik.com/aspnet-ajax/spell/examples/multiplelanguages/defaultcs.aspx

    Kind regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Animesh Dey
    Animesh Dey avatar
    24 posts
    Member since:
    Jul 2012

    Posted 13 Aug 2010 Link to this post

    hi Rumen ,

    Thanx for your reply.

    I saw the demo but this does not meet my requirement.

    My client is a doctor. He wants two type of dictionaries as suggestion language (english & medical) at the same type. Suppose he type "Hyperlipidemia is a new type of virus". Any one never want to select two type of dictionary to validate a single sentence.

    So I need to show suggestion words from two dictionary at the same time. Is there any way to meet the scenario?


     Regards
    Animesh Chandra Dey
  11. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 18 Aug 2010 Link to this post

    Hi Animesh,

    RadSpell could not operate with two dictionaries in the same time.
    What you can do is to merge the words of both dictionaries in a single TDF file using the Dictionary Converter tool. You can put the words of one of both dictionaries in a TXT file following the "word-per-line" rule and import the words in the other dictionary using the Dictionary Configurator tool.

    Here is how to create the TXT file before the importation procedure:

    1.     Follow the "word-per-line" rule and exclude any special symbols after each word for example: test/ or test::
          The correct syntax is test
    2. Save the text file with Unicode (UTF-8 with signature) encoding
    3. Rename the .dic / .txt extension to .tdf

    Best regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Animesh Dey
    Animesh Dey avatar
    24 posts
    Member since:
    Jul 2012

    Posted 18 Aug 2010 Link to this post

    Hi, Rumen.

    Thank you for your reply.


    I need to keep both of the dictionaries separate. Because my client can manipulate words on doctor dictionary, not in English dictionary. So to meet my requirement I can't merge the words of both dictionaries.

    It will be a great feature if telerik provide this. We hope telerik will provide this feature in next version..


    Regards
    Animesh Chandra Dey

  13. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 20 Aug 2010 Link to this post

    Hi Animesh,

    What you can do in this case is to load the words from the medical dictionary in the custom dictionary of RadSpell which is created when the user add a new word. If the spell is configured to use the en-US.TFD dictionary, the name of the custom dictionary is en-US-Custom.txt and you can put the medical words in it. You should follow the word per line rule when importing new words in the custom txt dictionary.


    Regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017