Kbase P38352: How to implement a Spell Checker in Progress?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Unverified
GOAL:
How to implement a Spell Checker in Progress?
GOAL:
Is there a spell checker embedded with Progress?
FIX:
Progress has no embedded spell checker, however this can be solved in several ways:
1. For example on Windows you can use an EPI to use this functionality or the Microsoft Word as an ActiveX Automation Server as the example in DLC\src\samples\activex\spellcheck\
This example uses the Word automation objects to check the spelling of text entered into a Progress fill-in field. You must have the Word application from Office 95, 97 or 2000 installed on your system to run this example.
2. You may try to implement it yourself following these guidelines:
- You have to have a list of allowed words containing all the ones that will be considered as valid by the spell checker (a dictionary), you may consider to use a table in the Progress database for it.
- You implement a procedure in order to divide the string you want to analyze in words
- You confront each of these words with the words in the dictionary.
- If one word is not a valid one you ask the user if he would like to ignore the suggestion, rewrite the word or add this word to the dictionary.