| Copyright | (C) 2012-2015 Edward Kmett |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
Text.Hyphenation.Exception
Contents
Description
Synopsis
- data Exceptions
- addException :: String -> Exceptions -> Exceptions
- lookupException :: String -> Exceptions -> Maybe [Int]
- scoreException :: String -> [Int]
- parseExceptions :: String -> Exceptions
Pattern file support
data Exceptions #
Hyphenation exceptions are special cases that should use the specified hyphenation points.
Instances
| Show Exceptions # | |
Defined in Text.Hyphenation.Exception Methods showsPrec :: Int -> Exceptions -> ShowS # show :: Exceptions -> String # showList :: [Exceptions] -> ShowS # | |
| Semigroup Exceptions # | Exceptions permit an exact list of hyphenation locations but merging exceptions is used to restrict the set when both contain the same word |
Defined in Text.Hyphenation.Exception Methods (<>) :: Exceptions -> Exceptions -> Exceptions # sconcat :: NonEmpty Exceptions -> Exceptions # stimes :: Integral b => b -> Exceptions -> Exceptions # | |
| Monoid Exceptions # | Exceptions permit an exact list of hyphenation locations but merging exceptions is used to restrict the set when both contain the same word |
Defined in Text.Hyphenation.Exception Methods mempty :: Exceptions # mappend :: Exceptions -> Exceptions -> Exceptions # mconcat :: [Exceptions] -> Exceptions # | |
addException :: String -> Exceptions -> Exceptions #
add an exception to the exception table. if it is already present, this will restrict the set of hyphenations to the intersection of the set provided and the set present.
lookupException :: String -> Exceptions -> Maybe [Int] #
Try to find a matching hyphenation exception.
scoreException :: String -> [Int] #
Convert an exception string to a score.
parseExceptions :: String -> Exceptions #
Parse one exception per line from an input string