Table of Contents

Interface IPatternConsumer

Namespace
iText.Layout.Hyphenation
Assembly
itext.layout.dll

This interface is used to connect the XML pattern file parser to the hyphenation tree.

public interface IPatternConsumer

Remarks

This interface is used to connect the XML pattern file parser to the hyphenation tree.

This work was authored by Carlos Villegas (cav@uniscope.co.jp).

Methods

AddClass(string)

Add a character class.

void AddClass(string chargroup)

Parameters

chargroup string

character group

Remarks

Add a character class. A character class defines characters that are considered equivalent for the purpose of hyphenation (e.g. "aA"). It usually means to ignore case.

AddException(string, IList)

Add a hyphenation exception.

void AddException(string word, IList hyphenatedword)

Parameters

word string

word to add as an exception

hyphenatedword IList

pre-hyphenated word

Remarks

Add a hyphenation exception. An exception replaces the result obtained by the algorithm for cases for which this fails or the user wants to provide his own hyphenation. A hyphenatedword is a vector of alternating String's and Hyphen instances

AddPattern(string, string)

Add hyphenation patterns.

void AddPattern(string pattern, string values)

Parameters

pattern string

the pattern

values string

interletter values expressed as a string of digit characters.