from

fun from(cslStyleName: String, source: String, filename: String, locale: Locale? = null): CslBibliographyStyle

Reads a bibliography source and creates a CslBibliographyStyle. Supports BibTeX (.bib), CSL JSON, YAML, EndNote, and RIS formats.

Return

a new CslBibliographyStyle

Parameters

cslStyleName

the CSL style name, from the bibliographer's style catalog

source

the content of the bibliography source

filename

the filename hint for format detection

locale

optional Locale for localized terms (e.g. "and"/"und", month names). When null, the style's default locale is used

Throws

if the style name is not in the catalog, or the bibliography source cannot be loaded