Expand description
Template value resolution and formatting helpers. Value extraction for template components.
This module provides the logic to extract formatted values from references based on template component specifications.
Re-exports§
pub use contributor::format_contributors_short;pub use date::int_to_letter;
Modules§
- contributor
- Contributor extraction and name-formatting helpers. Rendering logic for contributors (authors, editors, translators).
- date
- Date extraction and date-formatting helpers. Rendering logic for date fields with locale-aware formatting.
- list
- List-component value extraction helpers. Rendering logic for list components with configurable delimiters.
- locator
- Locator rendering logic. Locator rendering logic for citations.
- number
- Numeric variable extraction and page-range helpers. Rendering logic for numeric variables (volume, issue, pages, citation numbers, etc.).
- range
- Shared helpers for collapsing consecutive numeric or ordinal numbering. Shared helpers for collapsing ordered consecutive numbering into spans.
- term
- Locale term resolution helpers. Rendering logic for localized term components.
- text_
case - Title text-case transform functions. Title text-case transforms.
- title
- Title extraction and title-formatting helpers. Rendering logic for title fields with smartening, form selection, and text-case transforms.
- variable
- Generic variable extraction helpers. Rendering logic for simple variables (DOI, URL, ISBN, etc.).
Structs§
- Proc
Hints - Processing hints computed before rendering a reference or citation item.
- Proc
Values - Processed values ready for rendering.
- Render
Options - Options for rendering.
Enums§
- Render
Context - Context for rendering (citation vs bibliography).
Traits§
- Component
Values - Trait for extracting values from template components.
Functions§
- apply_
abbreviation - Apply abbreviation substitution if the map contains an entry for
value. - effective_
component_ language - Resolve the effective language for the specific template component being rendered.
- effective_
field_ language - Resolve the effective language for one logical field scope on a reference.
- effective_
item_ language - Resolve the effective language for the primary title of a reference.
- resolve_
effective_ url - Resolve the effective URL for a component, checking local links then falling back to global config.
- resolve_
multilingual_ name - Resolve a multilingual contributor name based on style configuration.
- resolve_
multilingual_ string - Resolve a multilingual string based on style configuration.
- resolve_
url - Resolve the URL for a component based on its links configuration and the reference data.
- should_
strip_ periods - Check if periods should be stripped based on three-tier precedence.
- strip_
trailing_ periods - Strip trailing periods from a string.