Class TeXHyphenator


  • public class TeXHyphenator
    extends Object
    Hyphenates words according to the TeX algorithm.
    Author:
    Jamie Nicolson (nicolson@cs.stanford.edu)
    • Constructor Detail

      • TeXHyphenator

        public TeXHyphenator()
    • Method Detail

      • loadDefault

        public void loadDefault()
        Loads the default hyphenation rules in DefaultTeXHyphenator.
      • toString

        public static String toString​(int[] i)
      • findBreakPoints

        public boolean[] findBreakPoints​(char[] lcphrase)
        Parameters:
        lcphrase - Some English text in lowercase.
        Returns:
        An array of booleans, one per character of the input, indicating whether it would be OK to insert a hyphen before that character.