smallcaps-0.4.1.3: Flatten camel case text in LaTeX files

PortabilityGHC
Stabilityunstable
Maintainerstefan.berthold@gmx.net
Safe HaskellNone

Text.SmallCaps.Config

Contents

Description

This module specifies the default configuration values for SmallCaps.

Synopsis

Subparser data type

Parser user state

data ParserState Source

Constructors

ParserState 

Fields

config :: Config

configuration

inputs :: Map FilePath (FilePath, LaTeX)

additional input files

profile :: Map Text Config

configuration preset list

stop :: StopState

stop state

ignore :: Bool

skip on/off

Instances

Configuration data type

data Config Source

Constructors

Config 

Fields

periodChars :: [Char]

signs recognised as periods

search :: LaTeXElement -> Bool

search blockmacroenvironment for caps

isolate :: LaTeXElement -> Maybe Text

open an isolated state for a blockmacroenvironment; returns config name

skip :: LaTeXElement -> Bool

skip searching for the rest of the block etc.

unskip :: LaTeXElement -> Bool

undo skip, e.g., at normalsize when skipping small

eos :: LaTeXElement -> Bool

end of sentence, start with new one

replace :: Text -> Text

formatting for small caps

inlineConfig :: Bool

dynamic reconfiguration in LaTeX comments

Instances

Configuration presets

(&&&) :: (LaTeXElement -> Bool) -> (LaTeXElement -> Bool) -> LaTeXElement -> BoolSource

combinator for plugin construction

clean :: ConfigSource

clean configuration, all substitutions off

conservative :: ConfigSource

conservative configuration

busy :: ConfigSource

busy configuration

small :: ConfigSource

abstract/small font configuration

Stop state

data StopState Source

Constructors

None

within a sentence

NewLine

one newline read

Stop

stop character read

NewSentence

begin of a new sentence