Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Andrea Rossato <andrea.rossato@unitn.it> |
Safe Haskell | None |
This module provides functions for processing the evaluated
Output
for citation collapsing.
- collapseCitGroups :: Style -> [CitationGroup] -> [CitationGroup]
- getCollapseOptions :: Style -> [String]
- collapseNumber :: CitationGroup -> CitationGroup
- groupCites :: [(Cite, Output)] -> [(Cite, Output)]
- getYearAndSuf :: Output -> Output
- collapseYear :: Style -> String -> CitationGroup -> CitationGroup
- collapseYearSuf :: Bool -> String -> [(Cite, Output)] -> [Output]
- collapseYearSufRanged :: [Output] -> [Output]
- addCiteAffixes :: Cite -> Output -> Output
- isNumStyle :: [Output] -> Bool
- groupConsec :: [Int] -> [[Int]]
Documentation
collapseCitGroups :: Style -> [CitationGroup] -> [CitationGroup]Source
Collapse citations according to the style options.
getCollapseOptions :: Style -> [String]Source
Get the collapse option set in the Style
for citations.
getYearAndSuf :: Output -> OutputSource
collapseYear :: Style -> String -> CitationGroup -> CitationGroupSource
collapseYearSufRanged :: [Output] -> [Output]Source
addCiteAffixes :: Cite -> Output -> OutputSource
isNumStyle :: [Output] -> BoolSource
groupConsec :: [Int] -> [[Int]]Source
Group consecutive integers:
groupConsec [1,2,3,5,6,8,9] == [[1,2,3],[5,6],[8,9]]