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

Custom Dictionary Suggestions

6 Answers 83 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Indira
Top achievements
Rank 1
Indira asked on 17 May 2010, 05:02 PM
Hi,

I have two questions. Help is greatly appreciated.

  1. Is it possible to have hyphenated text in the custom dictionary and to read those to suggestions list? We are using custom dictionary with data fields to suggest and the user wants to see them as one data field rather than parts of the field.  Ex: they want to see the suggestion "PRESENT-REPORTING-UNIT-CODE" for a mispelled "PRESENT-REPORTING-UNT-CDE".  Currently it suggests individual words.
  2. How to force the spell checker to show custom dictionary suggestions to be displayed on top in the suggestion box? Would need to have the custom suggestions at the top in the suggestions box, for example, if "Doctor" is misspelled and if the custom dictionary has suggestions like "DOCTR" , "DCTR". Custom suggestions needs to be on top.


Thanks,
Indira.

6 Answers, 1 is accepted

Sort by
0
Indira
Top achievements
Rank 1
answered on 18 May 2010, 05:21 PM
I'm still here waiting to here answeres from support group.  Thx!
0
Rumen
Telerik team
answered on 20 May 2010, 12:34 PM
Hi Indira,

Straight to the points:
1) The requested feature is not supported out-of-the box by RadSpell. The hyphen - symbol is used as a word separator in the RadSpell's code and even if you put a hyphenated word as "PRESENT-REPORTING-UNIT-CODE" in the dictionary the spellchecker will suggest individial words.

2) The suggested words are not listed in a specific order. Their order depends on the used spellchecking provider and it could not be customized.

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
Indira
Top achievements
Rank 1
answered on 21 May 2010, 07:10 PM
Thanks Rumen.

For the 1st one, could you send me examples on how to customize the Radspell to show hyphenated words?

Thanks,
Indira.
0
Rumen
Telerik team
answered on 24 May 2010, 04:35 PM
Hi Indira,

I am afraid that this scenario is not supported by RadSpell and it is not possible to implement this custom functionality in the current version of the spellchecker.

I logged your feature request for future consideration, but I am not sure whether it will be implemented because we should change the current spellchecking algorithm, which is not an easy task. If anyone else request this functionality we will increase its priority.

I updated your Telerik points for your feature request.

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
Sonia
Top achievements
Rank 1
answered on 02 Sep 2010, 10:18 AM

Hi All

I need to add my custom Dictionary.Any help will be greatly appreciated.

Have used CustomDictionarySuffix  as shown below

My Custom Dictionary file is at following location

\\SpellCheckPrototype\App_Data\RadSpell

Its name is "en-US-Custom.txt"

But its not working fine.As the words i added in this file are coming in spell check window.

Please let me know where i am wrong

 

Thanks
Sonia Dhamia

In HTML Design

<

 

telerik:RadSpell A ID="SpellCheckControl" EnableEmbeddedScripts="false" runat="server" ButtonType="None" ClientTextSource="clientTextSource" CustomDictionarySuffix="Custom" DialogsScriptFile="../Telerik/CombinedSpellScripts.js" />

 

<input type="button" id="SpellCheckButton" value="Start SpellCheck" name="SpellCheckButton" onclick="InitiateSpellCheck();" />

 

 

 

In JS File

function InitiateSpellCheck() {

 

 

 

try {

 

 

//HidePopupProcessing();

 

 

var sources = new Array();

 

//PopupProcessing();

 

 

 

$(

"[spellcheck=True]").each(function() {

 

 sources.push(

new Telerik.Web.UI.Spell.HtmlElementTextSource(this));

 

 });

 

 

var _spell = $('[id$=SpellCheckControl]')[0];

 

//var _spell = document.getElementById("ctl00_ctl00_SpellCheckControl").id;

 

 

 

var _spellid = _spell.id;

 

 

var spell = GetRadSpell(_spellid);

 

 

//var spell = GetRadSpell(_spell);

 

 

 

spell.set_textSource(new Telerik.Web.UI.Spell.MultipleHtmlElementsSource(sources));

 

 

//SetDebugPoint(LabelCTR, "in startSpellCheck");

 

 

 

spell.startSpellCheck();

 

 

//HidePopupProcessing();

 

 

 

}

 

 

 

catch (e) {

 HidePopupProcessing();

 

//alert(e);

 

 

 

}

 

}

 

 

 

 

 

 

 

 

0
Rumen
Telerik team
answered on 06 Sep 2010, 02:14 PM
Hi Sonia,

en-US-Custom.txt is the name of the custom dictionary which stores the words added by the users, when the spellchecker uses its default configuration.

I noticed that you set CustomDictionarySuffix="Custom" which will create a custom dictionary with name en-USCustom.txt (without - slash between US and Custom). You can see how the CustomDictionarySuffix property works in the following live demo: Different Custom Dictionaries.

If you still experience any problems, open a support ticket and send a sample working project that demonstrates them.

All the best,
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
Indira
Top achievements
Rank 1
Answers by
Indira
Top achievements
Rank 1
Rumen
Telerik team
Sonia
Top achievements
Rank 1
Share this question
or