| citeproc-hs-0.2: A Citation Style Language implementation in Haskell | Source code | Contents | Index

Text.CSL.Proc.Collapse

Portability | unportable
Stability | unstable
Maintainer | Andrea Rossato <andrea.rossato@unitn.it>

Description
This module provides functions for processing the evaluated `Output` for citation collapsing.
Synopsis

collapseCitGroups :: Style -> [CitationGroup] -> [CitationGroup]
getCollapseOptions :: Style -> [String]
collapseNumber :: CitationGroup -> CitationGroup
collapseYear :: CitationGroup -> CitationGroup
collapseYearSuf :: CitationGroup -> CitationGroup
rmFirstDelim :: Output -> Output
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.

collapseNumber :: CitationGroup -> CitationGroup | Source

collapseYear :: CitationGroup -> CitationGroup | Source

collapseYearSuf :: CitationGroup -> CitationGroup | Source

rmFirstDelim :: Output -> Output | Source

groupConsec :: [Int] -> [[Int]] | Source

Group consecutive integers:

     groupConsec [1,2,3,5,6,8,9] == [[1,2,3],[5,6],[8,9]]

Produced by Haddock version 2.4.2