hyphenation-0.8.2: Configurable Knuth-Liang hyphenation
Copyright(C) 2012-2019 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Hyphenation.Exception

Description

 
Synopsis

Pattern file support

data Exceptions Source #

Hyphenation exceptions are special cases that should use the specified hyphenation points.

Instances

Instances details
Show Exceptions Source # 
Instance details

Defined in Text.Hyphenation.Exception

Semigroup Exceptions Source #

Exceptions permit an exact list of hyphenation locations but merging exceptions is used to restrict the set when both contain the same word

Instance details

Defined in Text.Hyphenation.Exception

Monoid Exceptions Source #

Exceptions permit an exact list of hyphenation locations but merging exceptions is used to restrict the set when both contain the same word

Instance details

Defined in Text.Hyphenation.Exception

addException :: String -> Exceptions -> Exceptions Source #

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] Source #

Try to find a matching hyphenation exception.

scoreException :: String -> [Int] Source #

Convert an exception string to a score.

parseExceptions :: String -> Exceptions Source #

Parse one exception per line from an input string