|
Text.CSL.Style | Portability | unportable | Stability | unstable | Maintainer | Andrea Rossato <andrea.rossato@unitn.it> |
|
|
|
Description |
The Style types
|
|
Synopsis |
|
data Style = Style {} | | data Locale = Locale {} | | mergeLocales :: String -> Locale -> [Locale] -> [Locale] | | type TermMap = ((String, Form), (String, String)) | | type MacroMap = (String, [Element]) | | data Citation = Citation {} | | data Bibliography = Bibliography {} | | type Option = (String, String) | | mergeOptions :: [Option] -> [Option] -> [Option] | | data Layout = Layout {} | | | | data IfThen = IfThen Condition Match [Element] | | data Condition = Condition {} | | type Delimiter = String | | | | match :: Match -> [Bool] -> Bool | | data DatePart = DatePart {} | | defaultDate :: [DatePart] | | | | | | compare' :: String -> String -> Ordering | | | | | | | | | | | | type NameAttrs = [(String, String)] | | data NamePart = NamePart String Formatting | | isName :: Name -> Bool | | isNames :: Element -> Bool | | hasEtAl :: [Name] -> Bool | | data Formatting = Formatting {} | | emptyFormatting :: Formatting | | unsetAffixes :: Formatting -> Formatting | | mergeFM :: Formatting -> Formatting -> Formatting | | data CSInfo = CSInfo {} | | data CSAuthor = CSAuthor String String String | | data CSCategory = CSCategory String String String | | | | | | | | type Citations = [[Cite]] | | data Cite = Cite {} | | emptyAffix :: Affix | | emptyCite :: Cite | | data CitationGroup = CG [(Cite, Output)] Formatting Delimiter [(Cite, Output)] | | data BiblioData = BD {} | | data CiteData = CD {} | | data NameData = ND {} | | formatOutputList :: [Output] -> [FormattedOutput] | | formatOutput :: Output -> FormattedOutput | | mapGroupOutput :: (Output -> [a]) -> CitationGroup -> [a] | | proc :: (Typeable a, Data b) => (a -> a) -> b -> b | | proc' :: (Typeable a, Data b) => (a -> a) -> b -> b | | query :: (Typeable a, Data b) => (a -> [c]) -> b -> [c] | | rmGivenNames :: Output -> Output | | rmNameHash :: Output -> Output | | rmContribs :: Output -> Output | | addGivenNames :: [Output] -> [Output] | | addYearSuffix :: Output -> Output | | hasYear :: Output -> Bool | | hasYearSuf :: Output -> Bool | | betterThen :: Eq a => [a] -> [a] -> [a] |
|
|
Documentation |
|
|
The representation of a parsed CSL style.
| Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
With the defaultLocale, the locales-xx-XX.xml loaded file and
the parsed Style cs:locale elements, produce the final Locale
as the only element of a list, taking into account CSL locale
prioritization.
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
Constructors | Long | | Short | | Count | | Verb | | VerbShort | | Symbol | | NotSet | |
| Instances | |
|
|
|
Constructors | Numeric | | Ordinal | | Roman | | LongOrdinal | |
| Instances | |
|
|
|
Constructors | TextDate | | NumericDate | | NoFormDate | |
| Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
The formatted output, produced after post-processing the
evaluated citations.
| Constructors | | Instances | |
|
|
|
The Output generated by the evaluation of a style. Must be
further processed for disambiguation and collapsing.
| Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
A citation group: a list of evaluated citations, the Formatting
to be applied to them, and the Delimiter between individual
citations.
| Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
A record with all the data to produce the FormattedOutput of a
citation: the citation key, the part of the citation that may be
colliding with other citations (the list of contributors for the
same year), the data to disambiguate it (all possible contributors
and all possible given names), and the disambiguated citation and
its year.
| Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
Convert evaluated Output into FormattedOutput, ready for the
output filters.
|
|
|
Map the evaluated output of a citation group.
|
|
|
A generic processing function.
|
|
|
A generic processing function: process a data structure in
top-down manner.
|
|
|
A generic query function.
|
|
|
Removes all given names form a OName element with proc.
|
|
|
|
|
Removes all contributors' names.
|
|
|
Add, with proc, a give name to the family name. Needed for
disambiguation.
|
|
|
Add the year suffix to the year. Needed for disambiguation.
|
|
|
|
|
|
betterThen :: Eq a => [a] -> [a] -> [a] | Source |
|
|
Produced by Haddock version 2.6.1 |