Unit HunSpell

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Component wrapper for Hunspell <http://hunspell.sourceforge.net/>

THunSpell Copyright (C) 2010, Stefan Ascher

Hunspell is the spell checker used by OpenOffice.org (LibreOffice???) and Mozilla (Firefox, Thunderbird etc.).

Get Dictionaries from <http://wiki.services.openoffice.org/wiki/Dictionaries>. It seems that the *.oxt files are ordinary ZIP files, you can open them with e.g. 7-Zip <http://www.7-zip.org/> and extract the files to the dictionary directory.

$Id: HunSpell.pas,v 1.7 2011/01/24 06:58:25 Stefan Ascher Exp $

Overview

Classes, Interfaces, Objects and Records

Name Description
Class THunSpell  

Functions and Procedures

procedure Register;
function IsSeparator(const AChar: Char): boolean;
function StripQuotes(const AWord: string): string;

Constants

THUNSPELL_VERSION = '1.11';
DIC_EXT = '.dic';
AFF_EXT = '.aff';
CUSTOM_NAME = 'custom.dic';
SEPARATOR_CHARS = ['.', ';', ',', ':', '¡', '!', '·', '"', 'ˆ', '+', '-', '*', '/', '\', '¨', ' ', #9, '`', '[', ']', '(', ')', 'º', 'ª', '{', '}', '?', '¿', '%', '=', '<', '>', '$', '@', '|', '˜'];
CP_ISOLATIN1 = 28591;
CP_WINLATIN1 = 1252;

Description

Functions and Procedures

procedure Register;
 
function IsSeparator(const AChar: Char): boolean;

Check if a character is a separator.

Parameters
AChar
The character to check.
Returns

True if AChar is a separator.

function StripQuotes(const AWord: string): string;

Strip single quotes from a string.

Parameters
AWord
The word.
Returns

AWord without single quotes.

Constants

THUNSPELL_VERSION = '1.11';
 
DIC_EXT = '.dic';

Extension of dic files

AFF_EXT = '.aff';

Extension of aff files

CUSTOM_NAME = 'custom.dic';

Name of custom dictionary

SEPARATOR_CHARS = ['.', ';', ',', ':', '¡', '!', '·', '"', 'ˆ', '+', '-', '*', '/', '\', '¨', ' ', #9, '`', '[', ']', '(', ')', 'º', 'ª', '{', '}', '?', '¿', '%', '=', '<', '>', '$', '@', '|', '˜'];

Separator characters used to detect word boundaries. Single quote (') is not included this is a special case.

CP_ISOLATIN1 = 28591;
 
CP_WINLATIN1 = 1252;
 

Author

Created

02-10-2010

Last Modified

2011/01/24 06:58:25 UTC


Generated by PasDoc 0.12.0 on 2011-01-24 07:59:29