citeproc-0.8.1: Generates citations and bibliography from CSL styles.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Citeproc.CaseTransform

Description

Provides functions that facilitate defining textcase transformations. To see how these can be used used, see the definitions of addTextCase in Citeproc.Pandoc and Citproc.CslJson.

Synopsis

Documentation

data CaseTransformState #

Tracks context in textcase transformations.

Instances

Instances details
Show CaseTransformState # 
Instance details

Defined in Citeproc.CaseTransform

Methods

showsPrec :: Int -> CaseTransformState -> ShowS

show :: CaseTransformState -> String

showList :: [CaseTransformState] -> ShowS

Eq CaseTransformState # 
Instance details

Defined in Citeproc.CaseTransform

newtype CaseTransformer #

Wraps a function used to define textcase transformations.

Constructors

CaseTransformer 

Fields

withUppercaseAll :: CaseTransformer #

Uppercase everything.

withLowercaseAll :: CaseTransformer #

Lowercase everything.

withCapitalizeWords :: CaseTransformer #

Capitalize all words.

withCapitalizeFirst :: CaseTransformer #

Capitalize first letter.

withSentenceCase :: CaseTransformer #

Capitalize first letter of each sentence.

withTitleCase :: CaseTransformer #

Use title case.