Copyright | (c) Andrea Rossato |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Andrea Rossato <andrea.rossato@unitn.it> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides functions for processing the evaluated
Output
for disambiguation and citation collapsing.
Synopsis
- data ProcOpts = ProcOpts {
- bibOpts :: BibOpts
- linkCitations :: Bool
- data BibOpts
- newtype FieldVal = FieldVal {
- unFieldVal :: (Text, Text)
- procOpts :: ProcOpts
- processCitations :: ProcOpts -> Style -> [Reference] -> Citations -> [Formatted]
- processBibliography :: ProcOpts -> Style -> [Reference] -> [Formatted]
- citeproc :: ProcOpts -> Style -> [Reference] -> Citations -> BiblioData
- procRefs :: Style -> [Reference] -> [Reference]
- sortItems :: Show a => [(a, [Sorting])] -> [a]
- procBiblio :: BibOpts -> Style -> [Reference] -> [[Output]]
- subsequentAuthorSubstitute :: Bibliography -> [[Output]] -> [[Output]]
- filterRefs :: BibOpts -> [Reference] -> [Reference]
- procGroup :: Style -> [(Cite, Maybe Reference)] -> CitationGroup
- formatBiblioLayout :: Formatting -> Delimiter -> [Output] -> [Output]
- formatCitLayout :: Style -> CitationGroup -> Formatted
- addAffixes :: Formatting -> [Output] -> [Output]
- localModifiers :: Style -> Bool -> Cite -> Output -> Output
- contribOnly :: Style -> Output -> Output
Documentation
ProcOpts | |
|
Select [(Text, Text)] [(Text, Text)] | |
Include [(Text, Text)] [(Text, Text)] | |
Exclude [(Text, Text)] [(Text, Text)] |
FieldVal | |
|
subsequentAuthorSubstitute :: Bibliography -> [[Output]] -> [[Output]] Source #
procGroup :: Style -> [(Cite, Maybe Reference)] -> CitationGroup Source #
Given the CSL Style
and the list of Cite
s coupled with their
Reference
s, generate a CitationGroup
. The citations are sorted
according to the Style
.
formatBiblioLayout :: Formatting -> Delimiter -> [Output] -> [Output] Source #
formatCitLayout :: Style -> CitationGroup -> Formatted Source #
addAffixes :: Formatting -> [Output] -> [Output] Source #