citeproc-hs-0.3.2: A Citation Style Language implementation in HaskellSource codeContentsIndex
Text.CSL.Eval.Names
Portabilityunportable
Stabilityunstable
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Description
The CSL implementation
Synopsis
evalNames :: Bool -> [String] -> [Name] -> String -> State EvalState [Output]
formatNames :: Bool -> Delimiter -> String -> String -> [Agent] -> Name -> State EvalState [Output]
isEtAl :: Bool -> [Option] -> String -> [Agent] -> (Bool, Int)
isPlural :: Plural -> Int -> Bool
formatName :: EvalMode -> Bool -> Form -> Formatting -> [Option] -> [NamePart] -> Agent -> [Output]
unwords' :: [String] -> String
formatLabel :: Form -> Formatting -> Bool -> String -> State EvalState [Output]
Documentation
evalNames :: Bool -> [String] -> [Name] -> String -> State EvalState [Output]Source
formatNames :: Bool -> Delimiter -> String -> String -> [Agent] -> Name -> State EvalState [Output]Source
The Bool is True when formatting a name with a final et-al. The first String represents the position and the second the role (e.i. editor, translator, etc.).
isEtAl :: Bool -> [Option] -> String -> [Agent] -> (Bool, Int)Source
The first Bool is True if we are evaluating the bibliography. The String is the cite position. The function also returns the number of contributors to be displayed.
isPlural :: Plural -> Int -> BoolSource
formatName :: EvalMode -> Bool -> Form -> Formatting -> [Option] -> [NamePart] -> Agent -> [Output]Source
Generate the Agents names applying et-al options, with all possible permutations to disambiguate colliding citations. The Bool indicate whether we are formatting the first name or not.
unwords' :: [String] -> StringSource
formatLabel :: Form -> Formatting -> Bool -> String -> State EvalState [Output]Source
Produced by Haddock version 2.6.1