Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Spell > Using OpenOffice spell provider in RadSpell

Not answered Using OpenOffice spell provider in RadSpell

Feed from this thread
  • Posted on Nov 11, 2010 (permalink)

    Requirements

    RadControls version

    RadControls for ASP.NET AJAX
    Telerik.Web.UI, Q3 2010+
    .NET version

    as required by RadSpell
    Visual Studio version

    n/a
    programming language n/a
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    Starting from Q3 2010, we provide support for NHunspell and OpenOffice dictionaries for RadSpell. Here are the steps to enable this new feature:
    1. Download NHunSpell - http://nhunspell.sourceforge.net/
    2. Put the NHunSpell binaries in web application’s ~/bin folder (Hunspellx64.dll, Hunspellx86.dll, NHunspell.dll)
    3. Download OpenOffice dictionary for your language - http://extensions.services.openoffice.org/en/dictionaries  e.g. English (US)
    4. Rename dictionary file from .oxt to .zip – e.g. en_US.oxt to en_US.zip
    5. Open this zip archive and extract the .aff and .dic files to the RadSpell dictionary folder – e.g. en_US.aff and en_US.dic to ~/App_Data/RadSpell/
    6. Put the attached NHunSpell provider (NHunSpellCheckProvider.cs) in the App_Code folder
    7. Set the SpellCheckProviderTypeName property of the RadSpell control to "Telerik.Web.UI.NHunSpellCheckProvider, App_Code", e.g.

      You can also find attached a sample working example below.

    Reply

  • Tarang avatar

    Posted on Mar 11, 2011 (permalink)

    I've used this demo and seems working fine. The only trouble is I am not able to add word to custom dictionary. I've 'en-US-custom.txt' file under ~/App_Data/RadSpell folder. I also tried explicitly setting the value for DictionaryPath and CustomDictionarySuffix properties like below:

    <telerik:RadSpell ID="RadSpell1" runat="server" 
    ControlsToCheck="TextBox1" DictionaryPath="~/App_Data/RadSpell/" CustomDictionarySuffix="-custom"
    SpellCheckProviderTypeName="Telerik.Web.UI.NHunSpellCheckProvider, App_Code" />
    <asp:TextBox ID="TextBox1" runat="server" Width="200">samplle misstaken kontent</asp:TextBox> while adding custom word i am getting Server Error:500 "No dictionary loaded.Set the
    DictionaryPath property from the spell checker settings or copy the dictionaries to ~/App_Data/RadSpell/"
    
    Will you please suggest what should be done to resolve this? 
    
    P.S i've used same project which was given for demo.

    Reply

  • Rumen Rumen admin's avatar

    Posted on Mar 16, 2011 (permalink)

    Hello Tarang,

    For the time being RadSpell does not offer support for saving custom words when the NHunSpellCheckProvider is used. That is why my suggestion is to remove the Add Custom Words button by setting AllowAddCustom="false" in the RadSpell's declaration.

    Best regards,
    Rumen
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

  • Brian Mains Master avatar

    Posted on Mar 16, 2011 (permalink)

    Any timeframe when this might be available?  Is this something that will be available in the next release, of your product, or in the near future?  I have a requirement to have a custom addition of items to the dictionary, and I would like to use NHunspell if possible.

    Is there a way to modify the given spell check provider to add this ourselves even?  That's an option too.

    Thanks.

    Reply

  • Rumen Rumen admin's avatar

    Posted on Mar 21, 2011 (permalink)

    Hi Brian,

    I could not provide a firm estimate when this feature request will be implemented, because it is requested so far only by you and its priority is not high. If more users request this useful feature, we will increase its priority.
    Here you can find the PITS Issue and check its priority: Public URL.

    Best regards,
    Rumen
    the Telerik team

    Reply

  • Lini Lini admin's avatar

    Posted on Apr 20, 2011 (permalink)

    Hi,

    A quick workaround to get the add custom words functionality working with the NHunSpell provider is to just put the original RadSpell dictionary in the ~/App_Data/RadSpell/ folder next to the OpenOffice dictionaries. For example, for English (en-US), put the en-US.tdf file and not only the en_US.aff and en_US.dic files. This will fix the custom words and the spell checker will create a custom dictionary called en-US-Custom.txt.

    Best wishes,
    Lini
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Spell > Using OpenOffice spell provider in RadSpell