Safe Haskell | Safe |
---|
Language-specific hyphenation rules.
Synopsis
- data LangHyphen
- langHyphen :: Language -> LangHyphen
Documentation
data LangHyphen #
Instances
Show LangHyphen # | |
Defined in WEditorHyphen.LangHyphen showsPrec :: Int -> LangHyphen -> ShowS show :: LangHyphen -> String showList :: [LangHyphen] -> ShowS | |
WordSplitter LangHyphen Char # | |
Defined in WEditorHyphen.LangHyphen splitWord :: LangHyphen -> Int -> Int -> [Char] -> Maybe [Int] # isWordChar :: LangHyphen -> Char -> Bool # isWhitespace :: LangHyphen -> Char -> Bool # appendHyphen :: LangHyphen -> [Char] -> [Char] # endsWithHyphen :: LangHyphen -> [Char] -> Bool # |
langHyphen :: Language -> LangHyphen #
Hyphenates words using Language
-specific rules.
Example usage:
import Text.Hyphenation import WEditor.Document import WEditor.LineWrap import WEditorHyphen.LangHyphen content = map UnparsedPara (lines "Your document content.") doc = editDocument (breakWords (langHyphen English_US)) content