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

Case-insensitive citation abbreviations #45

Closed
xalexalex opened this issue Jan 19, 2021 · 1 comment
Closed

Case-insensitive citation abbreviations #45

xalexalex opened this issue Jan 19, 2021 · 1 comment

Comments

@xalexalex
Copy link

Hey,
this is actually an old issue in pandoc-citeproc.
I checked yesterday and it is indeed still present. Basically, if the abbreviations.json file has "Modern Pathology": "Mod Pathol", but your bibtex entry is journal={Modern pathology} (lowercase P), it won't get abbreviated.

I'm no haskell expert, but if you point me towards the right place in the code, I might try drafting a PR.

Thanks in advance!

@jgm
Copy link
Owner

jgm commented Jan 19, 2021

Sure! I think the best approach would be to replace Text with CI Text in the definition of the Abbreviations newtype in Citeproc.Types. Note that we're not exporting the externals for Abbrevitaions, so this wouldn't be an API change.

@jgm jgm closed this as completed in f9439e0 Apr 17, 2021
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