Replies: 2 comments 2 replies
-
Ensuing discussion on Slack: @pratikunterwegs Perhaps an automated workflow that converts Bibtex to CSL-JSON using pandoc? Could even be a pre-commit hook @sbfnk @pratikunterwegs I see - is there an example I could look at to check for possible solutions? I think our approach is to manage the references using Zotero @sbfnk currently trying to write a vignette for bpmodels adding to references here @sbfnk I think our approach is to manage the references using Zotero @pratikunterwegs Well, I maintain a ‘collection’ on Zotero to which I add references, and export the ones we need (ideally from a sub-collection) to the references.json file @pratikunterwegs There is an ROpenSci page on reference manager R packages, still looking to see whether something might work in this case, mostly relates to reading and exporting CSL-JSON @pratikunterwegs @jamesmbaazam Another solution would be to add the bibtex file in a subfolder in @TimTaylor Can you just include .bib files generally (irrespective of location) within linguist-documentation? @TimTaylor FWIW - I definitely prefer this approach of ignoring .bib files as opposed to forcing the use of csl-json which does seem to add friction @pratikunterwegs @jamesmbaazam I think I did have a strong preference for ignoring .bibtex files as it won't be immediately clear to a future maintainer the reason why we use yaml instead of .bib. (edited for GitHub) @TimTaylor Out of curiosity - what's the actual problem if linguist misidentifies the "main" language. Would using the r and rstats topics be better in this case anyway. The default's for linguist seem fine and the way they currently handle stat exclusions seems appropriate. Basically my question is - "why worry about this at all?"
It started with me being annoyed by {bpmodels} being categorised as being majorly written in .tex 😅 (edited) @TimTaylor Yeah so that's why I think it's not an issue. If anything, to me it's a GitHub UX issue. It reduces the repository overview to one language as opposed to the within repository percentage breakdown. If you moved to a more barebones git hosting service it wouldn't be there anyway. Repos can still be tagged with topics which are more relevant for discoverability (I'd have thought??) |
Beta Was this translation helpful? Give feedback.
-
It does impact discoverability as a repo associated with the wrong language cannot be found via GitHub search with So I do believe we should care. But I don't have a strong opinion on CSL vs linguist ignoring bibtex files (as long as we are specific in our filters to only impact bibtex files). |
Beta Was this translation helpful? Give feedback.
-
Is anyone else finding working with CSL-JSON a pain or am I the only one? All my tooling is set up for bibtex so I end up inefficiently converting reference files back and forth a lot (or avoiding references altogether). And most journals don’t offer CSL-JSON export whereas they pretty much all offer bib export. Is there no other way to get around the language identification issue, or am I the only one who struggles with this?
Beta Was this translation helpful? Give feedback.
All reactions