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 citation collapsing.
Synopsis
- collapseCitGroups :: Style -> [CitationGroup] -> [CitationGroup]
- getCollapseOptions :: Style -> [Text]
- collapseNumber :: CitationGroup -> CitationGroup
- groupCites :: [(Cite, Output)] -> [(Cite, Output)]
- getYearAndSuf :: Output -> Output
- collapseYear :: Style -> Text -> CitationGroup -> CitationGroup
- collapseYearSuf :: Bool -> Text -> [(Cite, Output)] -> [Output]
- collapseYearSufRanged :: [Output] -> [Output]
- addCiteAffixes :: Cite -> Output -> Output
- isNumStyle :: [Output] -> Bool
- groupConsec :: [Int] -> [[Int]]
- groupConsecWith :: (a -> Int) -> [a] -> [[a]]
Documentation
collapseCitGroups :: Style -> [CitationGroup] -> [CitationGroup] Source #
Collapse citations according to the style options.
getCollapseOptions :: Style -> [Text] Source #
Get the collapse option set in the Style
for citations.
getYearAndSuf :: Output -> Output Source #
collapseYear :: Style -> Text -> CitationGroup -> CitationGroup Source #
collapseYearSufRanged :: [Output] -> [Output] Source #
isNumStyle :: [Output] -> Bool Source #
groupConsec :: [Int] -> [[Int]] Source #
Group consecutive integers:
groupConsec [1,2,3,5,6,8,9] == [[1,2,3],[5,6],[8,9]]
groupConsecWith :: (a -> Int) -> [a] -> [[a]] Source #