citeformer.render.styles¶
Style-name resolution.
Since the home-grown-formatter rewrite (see
docs/decisions/004-citeproc-rewrite.md), “style loading” is just a
formatter lookup — no more CSL XML parsing. This module stays as the
integration point if we later add a user-supplied-CSL code path.
Module Contents¶
Functions¶
Return the canonical list of bundled style identifiers. |
|
Classify a bundled style as |
API¶
- citeformer.render.styles.bundled_style_names() list[str]¶
Return the canonical list of bundled style identifiers.
Aliases (
"apa"→"apa-7", etc.) are omitted. Any name in this list — or an alias — works withrender_referencesandget_formatter.
- citeformer.render.styles.style_citation_format(name: str) str¶
Classify a bundled style as
"author-date"/"author"/"numeric".Useful for downstream tooling that wants to know what kind of inline marker a style produces without actually rendering.
Args: name: Bundled style identifier (canonical or alias).
Returns: The
citation_formatclass attribute of the resolved formatter.