Is there a way of running a spell checker on a memo field?
Ollie.
Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Is there a way of running a spell checker on a memo field?
Ollie,
You could check each word against a dictionary everytime the space is pressed, or just once when the text is going to be saved
Ollie wrote:Is there a way of running a spell checker on a memo field?
Thanks NK - It looks promising - will try it.
Antonio - when you said "against a dictionary" did you mean a DBF file filled with words or a .DIC file?
Ollie,
>
when you said "against a dictionary" did you mean a DBF file filled with words or a .DIC file?
>
Both solutions may be fine, though you may get faster searches for words if you use a DBF (filled with words) and an index
Is it possible to use MS-word's speller via some kind of ActiveX?
Where can you obtain a dbf filled with dictionary words?
Reinaldo.
Reinaldo
There are possibly easier ways (to fill a dbf with dictionary words) but you could download the appropriate dictionary file from Open Office and write a little xBase program to put the words into a dbf. They are in clear text so it shouldn't be very hard to do.
Just a suggestion.
xProgrammer
x;
Couldn't find the clear text dictionary for download. If you have a link or can send the dictionary over, I'd appreciate it.
reinaldo <dot> crespo <at> gmail <dot> com
Thank you.
Reinaldo.
I use a 3rd party spell checker that is included in the application, and it works fine with memo fields. It is used by a wide variety of applications and is easy to implement ...
The license is royalty free for distribution.
Check it out at: www.wintertree-software.com
Tim;
I downloaded the 30 day trial version. Would you please send me some xharb code to test the library?
reinaldocrespo at structuredsystems dot com
Thank you.
reinaldo.
I'm sending it to your email today.
This is the spell checker you will find in many products on the market. It is very widely used.
SSCE_S16 SSCE_SetMainLexPath(const char *path);
...
Local cDicIni := cFilePath( GetModuleFileName( GetInstance() ) ) + "\" + "lex.ini"
SSCE_SetIniFile( cDicIni )
...
DLL32 FUNCTION SSCE_SetIniFile( pfilename AS STRING ) AS LONG LIB hDLL2Sorry. My mistake. All is well.
Everything works just perfectly.
BTW Tim, excellent product! Thank you very much.
Reinaldo.