Skip to content

Report BibTeX entries from citation files and READMEs - #210

Merged
andrew merged 3 commits into
mainfrom
bibtex-citations
Oct 12, 2026
Merged

andrew merged 3 commits into
mainfrom
bibtex-citations

Conversation

@andrew

@andrew andrew commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Parses CITATION.bib with git-pkgs/bibtex and reports its entries in resources.bibtex. CITATION, CITATION.md and CITATION.txt are also checked for embedded BibTeX, with empty results omitted when there are no diagnostics. BibTeX in the README goes in resources.readme_bibtex. CFF and BibTeX discovery are independent, so CITATION.cff and a sibling CITATION.bib are both reported; resources.citation remains CFF-only.

Entries include type, key, title, authors, year, DOI, URL, version, journal, booktitle, publisher, volume, number, pages, eprint and source line. TeX is converted to plain Unicode. Authors use the CFF author shape, with braced organisation names in name and and others omitted. Parse diagnostics include line and column when available. Read, encoding and limit errors remain in the report even when extraction returns no entries; files over 1 MiB produce limit_exceeded.

Human and Markdown output summarise each source and its first entry; --verbose lists every entry. brief diff retains each block when its source file changed, including extraction errors. brief schema includes the new types.

The BibTeX dependency is pinned to v0.1.0, which fixes Windows-1252 macro decoding, extraction after a UTF-8 BOM and recovery at blockquote code fences.

@andrew
andrew marked this pull request as ready for review October 12, 2026 12:31
Copilot AI balanced review requested due to automatic review settings October 12, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@andrew
andrew merged commit bc60e93 into main Oct 12, 2026
9 checks passed
@andrew
andrew deleted the bibtex-citations branch October 12, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants