Android Open Source - sdk-hyphenation Rule Definition






From Project

Back to project page sdk-hyphenation.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project sdk-hyphenation listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.silpa.hyphenation.text;
// w w w  . j av a2s. com
import org.silpa.hyphenation.util.List;


/**
 * Data describing how words should be hyphenated.
 */
public interface RuleDefinition {


    /**
     * Get pattern tree structure to match against character sequences.
     *
     * @param c The first character of the sequence to match
     * @return Tree structure to match against
     */
    List getPatternTree(int c);


    /**
     * Get the hyphenation info for words where hyphenation patterns should not be applied.
     *
     * @param word The word to check
     * @return Hyphenation for the word or null if the word was not an exception
     */
    int[] getException(String word);

}




Java Source Code List

org.silpa.hyphenation.text.ByteScanner.java
org.silpa.hyphenation.text.Hyphenator.java
org.silpa.hyphenation.text.RuleDefinition.java
org.silpa.hyphenation.text.TreeNode.java
org.silpa.hyphenation.text.Utf8TexParser.java
org.silpa.hyphenation.util.Applicator.java
org.silpa.hyphenation.util.ErrorHandler.java
org.silpa.hyphenation.util.Hashtable.java
org.silpa.hyphenation.util.List.java
org.silpa.hyphenation.util.LoggingErrorHandler.java