Wintertree Software Inc.

WSpell ActiveX Spelling Checker - Support

Home Site index Contact us Catalog Shopping Cart Products Support Search

You are here: Home > Support > WSpell > Most or all words reported as misspellings


Most or all words reported as misspellings

Applies to: All versions

Problem: When checking text, WSpell reports all or most words as misspellings.

Discussion: The main American and UK English dictionaries are shipped as two files: SSCEAM.TLX (or SSCEBR.TLX) and SSCEAM2.CLX (or SSCEBR2.CLX). The first file contains about 1,000 of the most commonly used words in English. The second file contains about 100,000 of the most commonly used words. Words in the first file are also present in the second file.

If WSpell accepts words such as "the" or "of" but doesn't accept words such as "engine" or "improvement", the most likely cause is failure to open the SSCEAM2.CLX (or SSCEBR2.CLX) file. If WSpell rejects all words including words such as "the" and "of", the most likely cause is failure to open any dictionary files. The following points may help you to track down the problem:

An important point to consider is that WSpell passes the dictionary file names to Windows verbatim for opening. If Windows returns an error code, WSpell stops attempting to open the dictionary file. It doesn't search for the dictionary file in other folders, try different spellings of the dictionary file name, or magically blast through the file system's permissions to open the file at all costs. WSpell merely tries to open the files configured in MainDictionaryFiles, and if it can't open one or more of them, words contained within the unopenable files will be reported as misspelled. It's worth mentioning that failure to open a main dictionary file does not result in error messages displayed to the user. This is both a blessing and a curse: The user is not confronted with confusing messages about dictionary files, but it can be more difficult for you to detect that a problem has occurred and diagnose the cause of that problem.

Another, though less common, cause of dictionary open failure is file corruption. ssceam2.clx (and all dictionary files with a .clx extension) are binary files. If these files are transferred from one system to another using "ASCII" or "Text Mode" file transfer, they will be corrupted. If the dictionaries were once openable but WSpell suddenly started returning errors on attempts to open them, and no other changes took place on the run-time system, it's possible that the dictionary files became corrupted through file system corruption or some other cause. Replacing the files should solve the problem.

If the dictionary files open successfully but many words are still reported as misspelled, a potential cause is using a relative path name in the value assigned to MainDictionaryFiles (e.g., "..\dicts\ssceam.tlx,..\dicts\ssceam2.clx"). Under some circumstances, WSpell will re-open a compressed (.clx) dictionary file while checking spelling or looking up suggestions to load parts of the dictionary not cached in memory. To re-open the file, it uses the path name assigned in MainDictionaryFiles. If the path name is relative, and the calling application's current directory has changed, the attempt to re-open the file may fail. As a result, the needed parts of the dictionary are not loaded into memory, and the words contained within those parts are reported as misspelled. If a path is specified in the value assigned to MainDictionaryFiles, the path should therefore always be absolute (i.e., should start from the file system's root directory). Note that this does not apply if no path is specified in the value assigned to MainDictionaryFiles (e.g., "ssceam.tlx,ssceam2.clx"), because WSpell determines the absolute path of the folder containing wspell.ocx in this case, and automatically prefixes that folder onto the file names to form an absolute path.

An effective way to diagnose and correct dictionary-file problems is to create a diagnostic log file (click here for instructions). WSpell will record diagnostic information in the file you configure, including the names of dictionary files it tries to open and the results of those attempts. Sometimes by examining the contents of the diagnostic file you may be able to spot the problem, such as a malformed or misspelled path. If you contact Wintertree Software's Support group for help with solving dictionary related problems, the first thing they will ask is that you create the diagnostic log file and send the file's contents, so you can save time by including the contents when you contact Support initially.


Home Site index Contact us Catalog Shopping Cart Products Support Search


Copyright © 2015 Wintertree Software Inc.