Custom Dictionary Suggestions

7 posts, 0 answers
  1. Indira
    Indira avatar
    14 posts
    Member since:
    Mar 2010

    Posted 17 May 2010 Link to this post

    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.

  2. Indira
    Indira avatar
    14 posts
    Member since:
    Mar 2010

    Posted 18 May 2010 Link to this post

    I'm still here waiting to here answeres from support group.  Thx!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 20 May 2010 Link to this post

    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.
  5. Indira
    Indira avatar
    14 posts
    Member since:
    Mar 2010

    Posted 21 May 2010 Link to this post

    Thanks Rumen.

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

    Thanks,
    Indira.
  6. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 24 May 2010 Link to this post

    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.
  7. Sonia
    Sonia avatar
    4 posts
    Member since:
    Aug 2010

    Posted 02 Sep 2010 Link to this post

    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);

     

     

     

    }

     

    }

     

     

     

     

     

     

     

     

  8. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 06 Sep 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017