Class TAspellProcess
Unit
Declaration
type TAspellProcess = class(TObject)
Description
This is a class to interface with aspell through pipe. It uses underlying TProcessLineTalk to execute and "talk" with aspell.
Source: source/component/PasDoc_Aspell.pas (line 52).
Hierarchy
- TObject
- TAspellProcess
Overview
Methods
| Public | constructor Create(const AAspellMode, AAspellLanguage: string; AOnMessage: TPasDocMessageEvent); |
| Public | destructor Destroy; override; |
| Public | procedure SetIgnoreWords(Value: TStringList); |
| Public | procedure CheckString(const AString: string; const AErrors: TObjectVector); |
Properties
| Public | property AspellMode: string read FAspellMode; |
| Public | property AspellLanguage: string read FAspellLanguage; |
| Public | property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage; |
Description
Methods
| Public | constructor Create(const AAspellMode, AAspellLanguage: string; AOnMessage: TPasDocMessageEvent); |
|
Constructor. Values for AspellMode and AspellLanguage are the same as for aspell --mode and --lang command-line options. You can pass here '', then we will not pass appropriate command-line option to aspell. | |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | procedure SetIgnoreWords(Value: TStringList); |
|
Tell Aspell to ignore all words in Value for subsequent CheckString calls. | |
| Public | procedure CheckString(const AString: string; const AErrors: TObjectVector); |
|
Spellchecks AString and returns result. Will create an array of TSpellingError objects, one entry for each misspelled word. Offsets of TSpellingErrors will be relative to AString. | |
Properties
| Public | property AspellMode: string read FAspellMode; |
|
Aspell input mode (passed to aspell --mode command-line option) passed at construction. Empty string means the Aspell default. | |
| Public | property AspellLanguage: string read FAspellLanguage; |
|
Language code for aspell (passed to aspell --lang command-line option) passed at construction. Empty string means the Aspell default. | |
| Public | property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage; |
|
Callback for diagnostic messages. | |
Generated by PasDoc 0.17.0.snapshot.