bibtex

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package bibtex converts a single BibTeX entry into a coldp.Reference. Deliberately small: single-entry parse with the common fields and entry types; no @string macros, no preamble handling, no multi- entry-file processing (paste one citation at a time).

LIFT-TO-SFLIB CANDIDATE. Same rationale as the openalex and bhlnames clients — every SFBorg tool that ingests references benefits from this. Written self-contained so migration is easy.

Index

Constants

This section is empty.

Variables

View Source
var ErrParse = errors.New("bibtex: parse error")

ErrParse wraps parser failures. Callers can errors.Is-check it to render "malformed BibTeX" without leaking internal messages.

Functions

func Parse

func Parse(input string) (*coldp.Reference, error)

Parse converts a BibTeX entry string into a coldp.Reference. If the input contains multiple entries the first one wins — the modal's paste-in-one-at-a-time convention.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL