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

Custom suggestion

11 Answers 84 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Animesh Dey
Top achievements
Rank 2
Animesh Dey asked on 04 Aug 2010, 03:32 PM
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

11 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 05 Aug 2010, 11:28 AM
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
0
Animesh Dey
Top achievements
Rank 2
answered on 05 Aug 2010, 11:36 AM
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

0
Rumen
Telerik team
answered on 05 Aug 2010, 11:58 AM
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
0
Animesh Dey
Top achievements
Rank 2
answered on 05 Aug 2010, 12:44 PM
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 
0
Rumen
Telerik team
answered on 05 Aug 2010, 01:26 PM
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
0
Animesh Dey
Top achievements
Rank 2
answered on 10 Aug 2010, 08:14 AM
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
0
Rumen
Telerik team
answered on 12 Aug 2010, 03:49 PM
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
0
Animesh Dey
Top achievements
Rank 2
answered on 13 Aug 2010, 08:03 AM
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
0
Rumen
Telerik team
answered on 18 Aug 2010, 01:52 PM
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
0
Animesh Dey
Top achievements
Rank 2
answered on 18 Aug 2010, 03:14 PM
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

0
Rumen
Telerik team
answered on 20 Aug 2010, 02:45 PM
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
Tags
Spell
Asked by
Animesh Dey
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Animesh Dey
Top achievements
Rank 2
Share this question
or