-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support more citation styles #64
Comments
For a more in-depth discussion of popular citation styles that make sense here I would ping @adam3smith, @zuphilip, or @AbeJellinek. |
I think the list above in general is good and captures the most important styles and types of styles, though I don't much care for "Harvard" which is just a label of any author-date style. Maybe go with "Harvard - Cite them Right", the most commonly used such style in the UK (and one of the most downloaded styles at Zotero when they last provided some data on this). |
Hi @mfenner and all. I think it would be great to add more citation styles - and the more we can do with existing gems the better. I wonder if we should add these sorts of things in such a way that they can be optional. The reason for this is that (in my conversations with GitHub folks so far) we'd like to keep the number of extra dependencies down as low as possible. GitHub is already fairly complex I would imagine! (That said, I have just managed to reduce the current number of dependencies of So I think this would be a good conversation to have with @arfon when he's back from leave. Any help with the development of this tool would be appreciated! |
For me citationstyles.org and the various processors such as Happy to hear @arfon on this, and I can write a pull request until next Monday to more clearly see how this would change the code. |
Thanks @adam3smith. |
Yes, I absolutely agree. I have an idea of how to reduce the current gem dependencies of |
If we support a fixed list of citation styles, we can specifically import them instead of importing all 1000s of styles as a submodule. |
Yes. I also had a thought about generalizing the supported styles within |
I think the current design will probably support 2-3 more without having to do some kind of reworking of the UI, so I'd encourage us to initially keep this list shorter initially rather than introducing a new dependency on the GitHub design team. That said, I agree ultimately we should be trying to use the existing libraries out there for CSL logic (e.g.,
I'm assuming this would still introduce a new gem dependency here? As @hainesr alluded to, adding new dependencies to GitHub core is taken pretty seriously, and takes time for things such as security reviews. |
Thanks @arfon. Two additional styles should work with the current UI (three with small adjustments to the tab width), and I would suggest to add these two:
They are both popular, cover different style classes (numeric and author-date, respectively), and either are used mainly in engineering or are generic (APA comes from the psychology field). I have made good progress with my PR, and I can add the two styles directly, so no need to use the
|
I'd be more than happy to help land support for CSL via |
Thank you @inukshuk. I am working on a pull request for a first |
Now that I have Citeproc/CSL working locally, I noticed a few issues with the built-in APA formatting, thanks to the nice test coverage. I opened a separate issue at #66. |
I have a pull request that addresses what is discussed in this issue. More cleanup and testing is needed, but the basic functionality of supporting three popular citation styles via @hainesr @arfon if this goes in the right direction, I can polish this in the next few days. Let me know whether this should be an optional dependency or become the new default, e.g. to address #66. @inukshuk almost everything interesting regarding |
CFF supports person names with |
This sounds good, and there is more work to do on my side in mapping CFF to Citeproc. Currently my mapping in |
@sdruskat yes, at this granularity there will be no need for name parsing and making @mfenner the 'processor' interface is intended mainly for managing citations (e.g., creating cites in specific orders, tracking stuff like 'ibid' and similar details) and later generating references of all cited works; if I understand this correctly, we're going to be interested only in generating one-off reference strings for a given citation data. In this case it will be best to use the 'renderer' interface directly, similar to how it's done in jekyll-scholar for example. For performance reasons it will almost certainly be desirable to parse the styles only once, especially if there are only a handful of vetted styles which are going to be used. It also might be useful to reuse the renderer instance, though that should have less of an impact than parsing the CSL styles. |
Thanks @inukshuk. What is the general direction you want to go, optimize the use of |
I'm happy to make changes to
This way, Applications like GitHub, using We could also attempt to make these decisions in |
I suggest to support more citation styles, I think Crossref and DataCite (search.crossref.org and search.datacite.org) have a reasonable list of common citation styles plus bibtex (and RIS) that can be displayed in the UI without too much extra effort:
For this work I would use the
citeproc-ruby
gem and citationstyles.org citation style files. I am happy to do a pull request if that is the directionruby-cff
wants to go.The text was updated successfully, but these errors were encountered: