| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Safe Haskell | Safe-Infered |
Text.Hyphenation.Hyphenator
Description
Hyphenation based on the Knuth-Liang algorithm as used by TeX.
- data Hyphenator = Hyphenator {}
- hyphenate :: Hyphenator -> String -> [String]
- defaultLeftMin, defaultRightMin :: Int
Documentation
data Hyphenator Source
Constructors
| Hyphenator | |
Fields
| |
Hyphenate with a given set of patterns
hyphenate :: Hyphenator -> String -> [String]Source
hyphenate a single word using the specified Hyphenator. Returns a set of candidate breakpoints by decomposing the input into substrings.
ghci> hyphenate english_US "supercalifragilisticexpialadocious" ["su","per","cal","ifrag","ilis","tic","ex","pi","al","ado","cious"] ghci> hyphenate english_US "hyphenation" ["hy","phen","ation"]