Safe HaskellSafe

WEditorHyphen.LangHyphen

Description

Language-specific hyphenation rules.

Synopsis

Documentation

data LangHyphen #

Instances

Instances details
Show LangHyphen # 
Instance details

Defined in WEditorHyphen.LangHyphen

Methods

showsPrec :: Int -> LangHyphen -> ShowS

show :: LangHyphen -> String

showList :: [LangHyphen] -> ShowS

WordSplitter LangHyphen Char # 
Instance details

Defined in WEditorHyphen.LangHyphen

Methods

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