Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support for more citation formats (such as CSL) #42

Open
AlexanderPuckhaber opened this issue Feb 17, 2021 · 2 comments

Comments

@AlexanderPuckhaber
Copy link

Hi, just found your browser extension. It's pretty easy and seamless to use on many websites!

However, it would be nice if more citation formats were supported. I've been looking at how other plugins (such as MyBib) are able to have so many citation styles to choose from, including some really obscure formats.

It looks like MyBib uses a JavaScript processor for CSL templates (of which there are thousands) called citeproc-js. Bascially, a standard format like BibTeX and a CSL template goes in to citeproc-js, and a citation comes out.

Also, another project called Citation.js uses citeproc-js. The documentation shows how it loads the CML templates into the processor. I haven't tried it; just mentioning it because it looks interesting.

Anyway, just thought I would suggest citeproc-js because it could potentially add 2000+ citation formats. Although I understand if you want to keep your plugin as lightweight as possible.

@Langenscheiss
Copy link
Owner

Hi.
Thanks for the suggestion. Indeed I was planning to add CSL support in the future. My main work at the moment, however, is writing research papers, so BibItNow has a lower priority right now. But the good news is that I now need to add references to my paper, and since I am also using BibItNow for that, there is a good chance I will check in some smaller updates. For example, I fixed the scrolling bug for auto-selected citation text on Firefox.

@Langenscheiss
Copy link
Owner

Hi.

I have started working on an importer for CSL files. Not sure how long it will take, but it is in active development now. At the moment, I am thinking about how to translate the CSL flow control to BibItNow format array flow control. Once that is solved, the basic task will be how to account for the various options in CSL regarding prefixes, suffixes, truncation of lists, etc.. I am not sure how to deal with the fact that CSL always defines both inline citations and bibliography styles. Perhaps, an import will generate both. In any case, since bibitnow only outputs a single citation at a time, all rules regarding sorting and formatting of several items within a larger bibliography will be ignored. Furthermore ignored will, of course, be all the citation types and bibfields which are not supported by BibItNow.

Hope to be able to give an update soon.

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

No branches or pull requests

2 participants