BibTexImport.h header
#include <ew/app/BibTexImport.h>
Namespace ew::app
Functions
std::vector< std::unique_ptr< ew::core::Source > > ew::app::importBibTex(const QString &text)
Parses BibTeX text into Source objects – one per @entry – each with a freshly generated id. The entry's cite key becomes the source's citation key, its @type maps to a SourceType, its title field becomes the source title, and its remaining fields map to CSL variable names (journal/booktitle -> container-title, year -> issued, number -> issue, pages -> page, address -> publisher-place, and so on; unrecognized fields are kept under their lowercased BibTeX name so nothing is lost). Brace- and quote-delimited values are supported, including nested braces; @comment/@string/@preamble blocks and malformed entries are skipped. Sources are returned by pointer because a content object is non-copyable.