Show / Hide Table of Contents

    Interface IPatternConsumer

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

    This interface has been taken from the Apache FOP project (http://xmlgraphics.apache.org/fop/). They have been slightly modified.

    Namespace: Lucene.Net.Analysis.Compound.Hyphenation
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public interface IPatternConsumer

    Methods

    | Improve this Doc View Source

    AddClass(String)

    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.

    Declaration
    void AddClass(string chargroup)
    Parameters
    Type Name Description
    System.String chargroup

    character group

    | Improve this Doc View Source

    AddException(String, IList<Object>)

    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

    Declaration
    void AddException(string word, IList<object> hyphenatedword)
    Parameters
    Type Name Description
    System.String word
    IList<System.Object> hyphenatedword
    | Improve this Doc View Source

    AddPattern(String, String)

    Add hyphenation patterns.

    Declaration
    void AddPattern(string pattern, string values)
    Parameters
    Type Name Description
    System.String pattern

    the pattern

    System.String values

    interletter values expressed as a string of digit characters.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)