BibParser handles the actual source parsing, but Bibliography.jl exposes the same functionality through read_bibliography and write_bibliography.
This page is intentionally short because the package is meant to feel like a single entry point rather than a parser zoo.
BibParser.BibParser — Module
BibParser converts bibliography source formats into BibInternal data.
The package focuses on parsing only. Use parse_entry and parse_file for the legacy entry dictionary workflow, or parse_bibliography when you want a lossless BibInternal.BibliographyDocument.
BibParser.detect_format — Method
detect_format(input)Best-effort format detection used by parse_bibliography when format = :auto.
BibParser.detect_xml_format — Method
detect_xml_format(content::AbstractString)Heuristic XML format detection used by the parser extensions.
BibParser.is_zero — Method
is_zero(t::Tuple)Extends iszero as is_zero to Tuple types. Return true iff all elements of t are equal to zero.
BibParser.name_to_string — Method
name_to_string(name::BibInternal.Name)Convert a name in an Entry to a string.
BibParser.occurs_in — Method
occurs_in(re, char::Char)Extends occursin as occurs_in to test if a regular expression re is a match with a Char.
BibParser.parse_bibliography — Method
parse_bibliography(input; format::Symbol = :auto, check = :error)Parse a bibliography and return a BibInternal.BibliographyDocument preserving raw source blocks where the parser supports lossless mode.
BibParser.parse_entry — Method
parse_entry(entry::String; parser::Symbol = :BibTeX, check = :error)Parse a single BibTeX entry string using the legacy parser.
For bibliography formats with validation rules, the check keyword argument can be set to :none, nothing, :warn, or :error.
BibParser.parse_file — Method
parse_file(path::String, parser::Symbol = :BibTeX; check=:error)Parse a bibliography file and return the legacy entry representation.
The default parser is :BibTeX. Use :BibLaTeX or :RIS directly in the core package, and install the relevant extensions to enable the other formats. For bibliography formats with validation rules, check can be :none, nothing, :warn, or :error.
BibParser.parse_string — Method
parse_string(input::String; format::Symbol = :BibTeX, check = :error)Parse bibliography content from a string and return entries in the legacy format. Prefer parse_bibliography when source preservation and diagnostics are needed.