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

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.

Source: source/component/PasDoc_Aspell.pas (line 67).

Public destructor Destroy; override;

This item has no description.

Source: source/component/PasDoc_Aspell.pas (line 69).

Public procedure SetIgnoreWords(Value: TStringList);

Tell Aspell to ignore all words in Value for subsequent CheckString calls.

Source: source/component/PasDoc_Aspell.pas (line 83).

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.

Source: source/component/PasDoc_Aspell.pas (line 89).

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.

Source: source/component/PasDoc_Aspell.pas (line 74).

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.

Source: source/component/PasDoc_Aspell.pas (line 79).

Public property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage;

Callback for diagnostic messages.

Source: source/component/PasDoc_Aspell.pas (line 92).


Generated by PasDoc 0.17.0.snapshot.