Re: Spell with foreign dictionaries

WinForms

ComponentOne's WinForms controls

Spell with foreign dictionaries

  • rated by 0 users
  • This post has 2 Replies |
  • 1 Follower
  • I'm having trouble implementing the international dictionaries into my application.
    I create a simple app that has a reference to the .NET 2.0 version of c1Spell (2.2.20073.78).

     
    I then do the following (as a test in a test application):

    Dim b As New C1.Win.C1Spell.C1Spell()
    b.MainDictFile = "C:\Program Files\ComponentOne Studio.NET 2.0\bin\Dictionaries\C1Spell_de-DE.dct"
    b.IsOptionSettingFixed = False
    Dim c as boolean = b.CheckString("TEST")

    When it executes the 'CheckString' function, it errors out:

    System.IndexOutOfRangeException was caught
      Message="Index was outside the bounds of the array."
      Source="C1.Win.C1Spell.2"
      StackTrace:
           at C1.Win.C1Spell.C1SpellBase.h.a(Byte[] A_0, Int64 A_1)
           at C1.Win.C1Spell.C1SpellBase.h.a(Int64 A_0, Boolean A_1, String& A_2)
           at C1.Win.C1Spell.C1SpellBase.h.a()
           at C1.Win.C1Spell.C1SpellBase.h.b()
           at C1.Win.C1Spell.C1SpellBase.b.k()
           at C1.Win.C1Spell.C1Spell.c()
           at C1.Win.C1Spell.C1Spell.a(String A_0)
           at C1.Win.C1Spell.C1Spell.CheckHTMLString(String htmlStr)
           at Ungerboeck.EBMS.weaNote.CheckSpelling(Boolean ablnAutoCheck) in Data\Temporary Projects\WindowsApplication1\Form1.vb:line 12
     

    Is this a known issue, or do I need to set a few more properties?

     

    Thanks 

  • C1Spell_check.zip
    Hi,
     
    I have been able to execute your code with the available Dictionary set as the main dictionary [Application attached]. I would suggestion you to check the dictionary file (dump it in a text file and see the content) and also use the latest build for C1Spell.
     
    Else please send me the dictionary file and I will try to get this working.
     
    Thanks,
    Gary.
    <craigdUSI> wrote in message news:201695@10.0.1.98...

    I'm having trouble implementing the international dictionaries into my application.
    I create a simple app that has a reference to the .NET 2.0 version of c1Spell (2.2.20073.78).


    I then do the following (as a test in a test application):

    Dim b As New C1.Win.C1Spell.C1Spell()
    b.MainDictFile = "C:\Program Files\ComponentOne Studio.NET 2.0\bin\Dictionaries\C1Spell_de-DE.dct"
    b.IsOptionSettingFixed = False
    Dim c as boolean = b.CheckString("TEST")

    When it executes the 'CheckString' function, it errors out:

    System.IndexOutOfRangeException was caught
      Message="Index was outside the bounds of the array."
      Source="C1.Win.C1Spell.2"
      StackTrace:
           at C1.Win.C1Spell.C1SpellBase.h.a(Byte[] A_0, Int64 A_1)
           at C1.Win.C1Spell.C1SpellBase.h.a(Int64 A_0, Boolean A_1, String& A_2)
           at C1.Win.C1Spell.C1SpellBase.h.a()
           at C1.Win.C1Spell.C1SpellBase.h.b()
           at C1.Win.C1Spell.C1SpellBase.b.k()
           at C1.Win.C1Spell.C1Spell.c()
           at C1.Win.C1Spell.C1Spell.a(String A_0)
           at C1.Win.C1Spell.C1Spell.CheckHTMLString(String htmlStr)
           at Ungerboeck.EBMS.weaNote.CheckSpelling(Boolean ablnAutoCheck) in Data\Temporary Projects\WindowsApplication1\Form1.vb:line 12
     

    Is this a known issue, or do I need to set a few more properties?

     

    Thanks 



    http://helpcentral.componentone.com/cs/forums/p/74224/201695.aspx#201695

  • Please note that the C1SpellChecker dictionaries are not compatible with the old C1Spell dictionaries.

    The new format has better compression and richer semantics. If you want to use an old dictionatry, you have to export it to a text file (using the old DictUtil utility), then convert the text file into a new dictionary (using the new C1DictionaryEditor utility).

Page 1 of 1 (3 items)