Skip to main content

I am looking for a spell check program that I can call from an RMCOBOL program. I have written a small word processing program to create a medical report. I am converting from UNIX to WINDOWS. Under UNIX I used a program called ISPELL that was accessed through the 'call system' command. I am trying to find something similar to use under V12 in Windows. Also am looking for a Fax program which could be accessed similarly. I would appreciate any suggestions. Thanks.

I am looking for a spell check program that I can call from an RMCOBOL program. I have written a small word processing program to create a medical report. I am converting from UNIX to WINDOWS. Under UNIX I used a program called ISPELL that was accessed through the 'call system' command. I am trying to find something similar to use under V12 in Windows. Also am looking for a Fax program which could be accessed similarly. I would appreciate any suggestions. Thanks.

<< I am looking for a spell check program that I can call from an RMCOBOL program. >>

You might try investigating the use of GNU Aspell for this task. Below is an excerpt from the GNU Aspell page in regards to this tool:

"GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell. It can either be used as a library or as an independent spell checker."

 

<< Also am looking for a Fax program which could be accessed similarly. >>

Windows provides a built-in, command-line, fax utility which might address this concern.  This tool is named, "Windows Fax and Scan(wfs.exe)", and, you can install it using the "Turn Windows features on or off" manager in "Programs and Features".

 

Unfortunately, I don't have any experience with either of these solutions, but, after reviewing their descriptions, it seems that they might be able to provide the needed functionality.

 

Regards,

 

Steve Jolivet

Senior SupportLine Representative, North American Support

Micro Focus


I am looking for a spell check program that I can call from an RMCOBOL program. I have written a small word processing program to create a medical report. I am converting from UNIX to WINDOWS. Under UNIX I used a program called ISPELL that was accessed through the 'call system' command. I am trying to find something similar to use under V12 in Windows. Also am looking for a Fax program which could be accessed similarly. I would appreciate any suggestions. Thanks.

Hi, you can develop and CodeBridge .dll that use Regular Expresion for Check Spell. An Example

checkspeel.tpl

#include "checkspell.h"

[[ integer out ret_val]] int checkspell(
[[ string in]] char *text,
[[ string in]] char* patterns);

checkspell.h

#include <stdio.h>
#include <regex.h>

int getsize(char *path)
{
result = 0;
...
...
// 1.- if is OK, 0.- not ok
return result;
}

and then in your cobol program

...
...
01 RESULT PIC 9(10).
88 K_OK VALUE 1.
...
...
CALL "checkspell" USING
WS-TEXT K-PATTERNS
GIVING RESULT.

To implement the comprobation logic in c follow this link

www.gnu.org/.../Regular-Expressions.html

Regards.


#inclue