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.

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.

Public destructor Destroy; override;
 
Public procedure SetIgnoreWords(Value: TStringList);
 
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;
 
Public property AspellLanguage: string read FAspellLanguage;
 
Public property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage;
 

Generated by PasDoc 0.16.0.