scholdoc-citeproc-0.6: Scholdoc fork of pandoc-citeproc

Copyright(c) Andrea Rossato
LicenseBSD-style (see LICENSE)
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

Text.CSL.Style

Description

The Style types

Synopsis

Documentation

mergeLocales :: String -> Locale -> [Locale] -> [Locale] Source

With the defaultLocale, the locales-xx-XX.xml loaded file and the parsed Style cs:locale elements, produce the final Locale as the only element of a list, taking into account CSL locale prioritization.

data Match Source

Constructors

Any 
All 
None 

data Output Source

The Output generated by the evaluation of a style. Must be further processed for disambiguation and collapsing.

Constructors

ONull 
OSpace 
OPan [Inline] 
ODel String

A delimiter string.

OStr String Formatting

A simple String

OErr CiteprocError

Warning message

OLabel String Formatting

A label used for roles

ONum Int Formatting

A number (used to count contributors)

OCitNum Int Formatting

The citation number

ODate [Output]

A (possibly) ranged date

OYear String String Formatting

The year and the citeId

OYearSuf String String [Output] Formatting

The year suffix, the citeId and a holder for collision data

OName Agent [Output] [[Output]] Formatting

A (family) name with the list of given names.

OContrib String String [Output] [Output] [[Output]]

The citation key, the role (author, editor, etc.), the contributor(s), the output needed for year suf. disambiguation, and everything used for name disambiguation.

OLoc [Output] Formatting

The citation's locator

Output [Output] Formatting

Some nested Output

type Citations = [[Cite]] Source

data CitationGroup Source

A citation group: the first list has a single member when the citation group starts with an "author-in-text" cite, the Formatting to be applied, the Delimiter between individual citations and the list of evaluated citations.

Constructors

CG [(Cite, Output)] Formatting Delimiter [(Cite, Output)] 

data CiteData Source

A record with all the data to produce the Formatted of a citation: the citation key, the part of the formatted citation that may be colliding with other citations, the form of the citation when a year suffix is used for disambiguation , the data to disambiguate it (all possible contributors and all possible given names), and, after processing, the disambiguated citation and its year, initially empty.

Constructors

CD