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

feat(processor): add abbreviation support #5

Open
2 tasks
lewisacidic opened this issue Jan 22, 2019 · 0 comments
Open
2 tasks

feat(processor): add abbreviation support #5

lewisacidic opened this issue Jan 22, 2019 · 0 comments

Comments

@lewisacidic
Copy link
Owner

citeproc-js has abbreviation support built in by supplying additional methods on the sys object: getAbbreviation.

Journal abbreviations are available here. We could extract the relevant fields into JSON and optionally load them in simple-cite so that styles that prefer short form i.e. J. Chem. Inf. Model. can set it even if the item only has the full journal name (i.e. Journal of Chemical Information and Modelling).

  • make package "journal-abbreviations" which can autoupdate according to the link, maybe using a scheduled CircleCI workflow.
  • support a new option to Processor, abbreviations, which takes a cache object, shaped as so:
exports.default = {
  default: {
    "container-title": {
      "Journal of Chemical Information and Modelling": "J. Chem. Inf. Model.",
      ...
    }
  }
}
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

1 participant