in

C1 Community

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

Using Dictionary Path with WebEditor

Last post 05-12-2008 10:37 AM by C1_DmitriM. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 04-21-2008 7:23 AM

    Using Dictionary Path with WebEditor

    Hello All,

    I am assuming that the DictionaryPath option allows you to add a custom dictionary to use in the spellchecker option of this component (.dct).

    Just i've created my own custom dictionary and try to use this with the WebEditor but its failing to pickup and use this file.

    I have added the path to this file as the following "~/dic.dct", "../dic.dct" etc in many formats also the AppSettings option also to pickup this file.

    I either have the oringal dictionary file being used by the component saying "tradedata" is not a word when in my custom dictionary ive allowed this as its our company name. Or the component allows anything to go through as a word even ones the default dictionary would pickup.

    Does anyone know how to do this or have assigned a custom dictionary to this component and can give me some insight.

    Thanks, Jason

    Filed under: ,
  • 04-23-2008 5:01 AM In reply to

    Re: Using Dictionary Path with WebEditor

    Hi Jason,

    I just tried to use not default dictionary and it works.
    My dictionaries locates inside "Dictionaries" folder.
    So I used ~/Dictionaries/C1Spell_de-DE.dct for DictionaryPath and it works without problem.

    I think problem is not with path to dictionary file. At least you can try to use absolute path to dictionary (e.g. "C:\WebSites\WebEditorSite\Dictionaries\C1Spell_de-DE.dct" )

    May be format of your dictionary file is not supported by WebEditor.
    If you can attach dictionary file here then I can test it on my side.
    (Use Options / File attachment when composing reply on forum).

    Best regards, Dmitri.

  • 04-23-2008 5:27 AM In reply to

    Re: Using Dictionary Path with WebEditor

    C1_DmitriM:

    Hi Jason,

    I just tried to use not default dictionary and it works.
    My dictionaries locates inside "Dictionaries" folder.
    So I used ~/Dictionaries/C1Spell_de-DE.dct for DictionaryPath and it works without problem.

    I think problem is not with path to dictionary file. At least you can try to use absolute path to dictionary (e.g. "C:\WebSites\WebEditorSite\Dictionaries\C1Spell_de-DE.dct" )

    May be format of your dictionary file is not supported by WebEditor.
    If you can attach dictionary file here then I can test it on my side.
    (Use Options / File attachment when composing reply on forum).

    Best regards, Dmitri.

     

    Thanks Dmitri, I have attached my dictionary file to this post. I have tried both ways of relative and absolute path to get this working with no joy.

    I've even downloaded the most recent component version to make sure and tested my dictionary using visual studio WebSpeller with my dictionary and this works.

    Any insight you can provide as to why this might not be working for me is greatly appreciated.

    Thanks, Jason

  • 05-09-2008 10:28 AM In reply to

    Re: Using Dictionary Path with WebEditor

    Hi Jason,

    I debugged attached dictionary and got conclusion what dictionary file is Invalid for C1WebEditor (InvalidFileFormat).

    Currently trying to figure out why this happen.

    Best regards, Dmitri.
  • 05-09-2008 4:00 PM In reply to

    Re: Using Dictionary Path with WebEditor

    Hi Jason,

     This file is not a C1SpellChecker dictionary. It's an old-style C1Spell
    dictionary.

    To convert this into the new format, you should do this:

    1) Use the old dictionary utility to extract all words to a plain text file
    2) Use the new dictionary utility to create a new dictionary with the words
     

    Best regards, Dmitri. 

  • 05-12-2008 7:10 AM In reply to

    Re: Using Dictionary Path with WebEditor

    Thanks Dmitri,

    I did as you suggested and downloaded the C1SpellChecker.2_2.0.20082.13.zip which has the C1DictionaryEditor.

    This seems to create the WebEditor dictionary files while the other creates the win form dictionary files for the C1.Win.SpellCheck.

    I did find some issues tho with the C1DictionaryEditor which is all words added to word list must be in lower case otherwise they are not picked up. This does not effect the webeditor as this add a captial letter to all words for start of sentences etc on its own. The other was that words cannot contain charactures like ' and - for words like leader's and co-operation. Even though this looks like it should handle them using the rules section of the dictionary creation. I have error with these showing leader[!Data]s as a word to change too even if word its picking up is leader's.

    But this is a pre-rease or beta from C1 so i would assume this will be changed at some point.

    Anyway thanks again for your help Dmitri.

    Best Regards, Jason

  • 05-12-2008 10:37 AM In reply to

    Re: Using Dictionary Path with WebEditor

    Hi Jason,

    The old dictionaries were case-insensitive, the new ones are case-sensitive.
    In the new dictionaries, names should be in upper-case, and regular nouns
    should be lower-case.

    For example:

        abalone
        Adam
        apple

    This allows the new spell-checker to pick up errors like

        I called adam on the phone.

    * Problem with coma ' will be fixed in the near C1WebEditor release(pre-release).

    Best regards, Dmitri 

Page 1 of 1 (7 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.