GetRD / academic-file-converter

📚 Import Bibtex publications and Jupyter Notebook blog posts into your Markdown website or book. 将Bibtex转换为Markdown网站

Home Page:https://docs.hugoblox.com/reference/content-types/#automatically-import-publications-from-bibtex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import --bibtex creates strange filenames for *.bib files

andreas-h opened this issue · comments

I just installed using pip install academic; academic -h tells me I'm using version v0.3.0.

When I run academic import --normalize --bibtex publications.bib, the *.bib files which are created all have the filename {slugify(entry['ID'])}.bib. In my site, when clicking on the download link in the cite popup, I do get prompted for the download, and the download works okay, but the filename is again {slugify(entry['ID'])}.bib, which is ugly and confusing.

Just noticed that in the cite popup, there is the message Error: 0 error written in red next to the download button, but the download still works.

commented

There is only one form of ID available to us per Bibtex entry. The folder name created by this tool is the Bibtex ID which many reference managers give you the freedom to define. The rest of the algo is just converting it to a web-safe name. I have opened #30 to propose our own ID generation scheme - feel free to contribute.