| Description | Hierarchy | Fields | Methods | Properties |
type THunSpell = class(TComponent)
Component wrapper for the Hunspell library <http://hunspell.sourceforge.net/>.
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function Spell(const AWord: string): boolean; |
![]() |
function Suggest(const AWord: string; AStrings: TStrings): integer; |
![]() |
function Ignore(const AWord: string): boolean; |
![]() |
function Add(const AWord: string): boolean; |
![]() |
function GetDicts(AList: TStrings): integer; |
![]() |
class function SearchDicts(const ADir: string; AList: TStrings): integer; |
![]() |
property Codepage: Word read fCodePage; |
![]() |
property CustomDic: boolean read fCustomDic write SetCustomDic; |
![]() |
property CustomDistName: string read GetCustomDictName; |
![]() |
property Dict: string read fDict write SetDict; |
![]() |
property DictDir: string read fDictDir write SetDictDir; |
![]() |
property DictEncoding: string read GetDictEncoding; |
![]() |
property Enabled: boolean read fEnabled write SetEnabled default true; |
![]() |
property IgnoreAllCaps: boolean read fIgnoreAllCaps write fIgnoreAllCaps; |
![]() |
property IgnoreWordsWithNumbers: boolean read fIgnoreWordsWithNumbers write fIgnoreWordsWithNumbers; |
![]() |
property Initialized: boolean read GetInitialized; |
![]() |
property OnInit: TNotifyEvent read fOnInit write fOnInit; |
![]() |
property OnUninit: TNotifyEvent read fOnUninit write fOnUninit; |
![]() |
constructor Create(AOwner: TComponent); override; |
|
Public declarations | |
![]() |
destructor Destroy; override; |
![]() |
function Spell(const AWord: string): boolean; |
|
Check a word Parameters
Returns
| |
![]() |
function Ignore(const AWord: string): boolean; |
|
Ignore all occurrences of the word. Parameters
Returns
| |
![]() |
function Add(const AWord: string): boolean; |
|
If CustomDic = Parameters
Returns
| |
![]() |
function GetDicts(AList: TStrings): integer; |
|
Get all dictionaries in the dictionaries directory (DictDir). Parameters
ReturnsCount of found dictionaries. | |
![]() |
property Codepage: Word read fCodePage; |
|
Return codepage of loaded dictionary. | |
![]() |
property CustomDic: boolean read fCustomDic write SetCustomDic; |
|
En-/Disable custom dictionary. Added words are saved to dict\custom.dic | |
![]() |
property CustomDistName: string read GetCustomDictName; |
|
Full filename of the custom dictionary. | |
![]() |
property Dict: string read fDict write SetDict; |
|
Filename of dictionary to use without the extension (.dic, .aff), e.g. | |
![]() |
property DictDir: string read fDictDir write SetDictDir; |
|
Directory where the dictionary is located. If CustomDic = | |
![]() |
property DictEncoding: string read GetDictEncoding; |
|
Return the encoding of the loaded dictionary. | |
![]() |
property Enabled: boolean read fEnabled write SetEnabled default true; |
|
En/-disable spell checking. | |
![]() |
property IgnoreAllCaps: boolean read fIgnoreAllCaps write fIgnoreAllCaps; |
|
Ignore words with all capital letters, e.g. acronyms. | |
![]() |
property IgnoreWordsWithNumbers: boolean read fIgnoreWordsWithNumbers write fIgnoreWordsWithNumbers; |
|
Ignore words containing numbers. | |
![]() |
property Initialized: boolean read GetInitialized; |
|
Returns | |
![]() |
property OnInit: TNotifyEvent read fOnInit write fOnInit; |
|
Hunspell was initialized. | |
![]() |
property OnUninit: TNotifyEvent read fOnUninit write fOnUninit; |
|
Hunspell was uninitialized. | |