Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Andrea Rossato <andrea.rossato@unitn.it> |
The Style types
- data Style = Style {}
- type TermMap = ((String, Form), (String, String))
- type MacroMap = (String, [Element])
- data Citation = Citation {}
- data Bibliography = Bibliography {}
- type Option = (String, String)
- data Layout = Layout {}
- data Element
- = Choose IfThen [IfThen] [Element]
- | Macro String Form Formatting
- | Const String Formatting
- | PointLocator String Form Formatting
- | Variable [String] Form Formatting Delimiter
- | Term String Form Formatting Bool Bool
- | Label String Form Formatting Bool Bool
- | Number String NumericForm Formatting
- | ShortNames [String] Formatting Delimiter
- | Names [String] [Name] Formatting Delimiter [Element]
- | Substitute [Element]
- | Group Formatting Delimiter String [Element]
- | Date [String] Formatting Delimiter [DatePart]
- data IfThen = IfThen Condition Match [Element]
- data Condition = Condition {}
- type Delimiter = String
- data Match
- match :: Match -> [Bool] -> Bool
- data DatePart = DatePart String String Formatting
- defaultDate :: [DatePart]
- data Sort
- data Sorting
- data Form
- data NumericForm
- data Name
- isName :: Name -> Bool
- data NameFormatting = NameFormatting {}
- defaultNameFormatting :: NameFormatting
- data Formatting = Formatting {
- prefix :: String
- suffix :: String
- fontFamily :: String
- fontStyle :: String
- fontVariant :: String
- fontWeight :: String
- textDecoration :: String
- verticalAlign :: String
- textCase :: String
- display :: String
- quotes :: Bool
- emptyFormatting :: Formatting
- data CSInfo = CSInfo {
- csiTitle :: String
- csiAuthor :: CSAuthor
- csiCategories :: [CSCategory]
- csiId :: String
- csiUpdated :: String
- data CSAuthor = CSAuthor String String String
- data CSCategory = CSCategory String String String
- data FormattedOutput
- data Output
- = OStr String Formatting
- | OName String [String] Formatting
- | OYear String String Formatting
- | OCitNum Int Formatting
- | Output [Output] Formatting
- | OContrib String [Output] [[Output]]
- | ODel String
- data CitationGroup = CG Formatting String [Output]
- data BiblioData = BD {
- citations :: [[FormattedOutput]]
- bibliography :: [[FormattedOutput]]
- data CiteData = CD {}
- formatOutput :: Output -> FormattedOutput
- mapGroupOutput :: (Output -> [a]) -> CitationGroup -> [a]
- proc :: (Typeable a, Data b) => (a -> a) -> b -> b
- query :: (Typeable a, Data b) => (a -> [c]) -> b -> [c]
- rmGivenNames :: Output -> Output
- rmContribs :: Output -> Output
- addGivenNames :: [Output] -> [Output]
- addYearSuffix :: Output -> Output
Documentation
The representation of a parsed CSL style.
data NumericForm Source
data Formatting Source
Formatting | |
|
CSInfo | |
|
data CSCategory Source
data FormattedOutput Source
The formatted output, produced after post-processing the evaluated citations.
The Output
generated by the evaluation of a style. Must be
further processed for disambiguation and collapsing.
OStr String Formatting | A simple |
OName String [String] Formatting | A (family) name with the list of given names. |
OYear String String Formatting | The year and a suffix if needed |
OCitNum Int Formatting | The citation number |
Output [Output] Formatting | Some nested |
OContrib String [Output] [[Output]] | The citation key with the contributor(s), and everything used for disambiguation. |
ODel String | A delimiter string. |
data CitationGroup Source
A citation group: a list of evaluated citations, the Formatting
to be applied to them, and the Delimiter
between individual
citations.
data BiblioData Source
BD | |
|
A record with all the data to produce the FormattedOutput
of a
citation: the citation key, the part of the citation that may be
colliding with other citations (the list of contributors for the
same year), the data to disambiguate it (all possible contributors
and all possible given names), and the disambiguated citation and
its year.
formatOutput :: Output -> FormattedOutputSource
Convert evaluated Output
into FormattedOutput
, ready for the
output filters.
mapGroupOutput :: (Output -> [a]) -> CitationGroup -> [a]Source
Map the evaluated output of a citation group.
rmContribs :: Output -> OutputSource
Removes all contributors' names.
addGivenNames :: [Output] -> [Output]Source
Add, with proc
, a give name to the family name. Needed for
disambiguation.
addYearSuffix :: Output -> OutputSource
Add the year suffix to the year. Needed for disambiguation.