in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Spell with foreign dictionaries

Last post 06-17-2008 9:03 AM by C1_BernardoC. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-06-2008 9:52 AM

    Spell with foreign dictionaries

    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 

  • 02-12-2008 12:42 PM In reply to

    Re: Spell with foreign dictionaries

    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

  • 06-17-2008 9:03 AM In reply to

    Re: Spell with foreign dictionaries

    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)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.