-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add citekey variable to csl-data.json and csl-variables.rnc #246
Conversation
Do you mean to have this in draft? |
Yes, I was thinking we need to settle this here first:
|
Who do we need input from to answer that question? I'm not sure myself. To make it easier to see the changes, could you please rebase, per here? You want to do |
Question was: do we need to add the citekey variable to |
Yes, but who are we tagging to plea for input? |
@adam3smith @fbennett @dstillman @jgm |
Can you briefly explain this, here, or on the linked issue? |
The idea is basically this: You edit in, say Word, with a regular citation style that gives you formatted citations. At some point you decide to switch to a plain-text system, e.g. pandoc . So, you'll switch to a citation style that renders the citation in pandoc's citation syntax: |
Yes, so for example. I am writing a paper in Word using Zotero. Zotero embeds CSL-JSON into each of its citations. Then, I decide to switch to pandoc. That's currently not easily possible and requires at least a fair number of hacks. What this would let me do is to reformat all of my citations to show the plain-text citation syntax |
Thanks. But couldn't In any case, at this point I'm less worried about this than about my last question on the linked issue; the need for both this and |
citation-label has nothing to do with citekey at all. There is no connection. |
The way I understand Bruce's question is that he's asking: if citation-label can be a customizable, human-readable label for a citation, why couldn't it be customizable to be equal to the citekey and thus satisfy the use case. Am I understanding this correctly? I think that might technically work, but it's conceptually confusing and requires upstream apps to do some very weird gymnastics in generating the citation label. E.g. if you just allow people to manually specify the citation label, this won't work at all. CSL-JSON will include the manually specified citation label, not the otherwise existing citekey. |
Maybe pandoc could do it, but I don't know if that's simple. This would most likely be implemented in the reader. There seems to be a function that performs some sort of normalization for fields. But, of course, it's not only about pandoc. There's org, latex, etc. |
From the standpoint of CSL design history, this is simply not true. As I said in that 2009 thread, we added the "citation-label" to put citekey data in. That's the connection. If you want to say that was a bad decision; that's fine, and in retrospect, I'd agree with you. But we can't ignore that history and legacy.
Basically, yes. But per above, I'm also saying that the input
So I think we all agree the confusion is using But I don't believe anyone has yet to answer why we can't just do this
Then documentation would be something like:
|
That's the proposal on the table no, with the understanding that |
But I thought you said earlier `citation-label` must stay, as is?
#243 (comment)
That's been the remaining thing that's holding this up for me.
Did I misunderstand, or did you change your mind?
And the PR doesn't currently remove it on input.
|
Co-authored-by: Bruce D'Arcus <[email protected]>
Co-authored-by: Bruce D'Arcus <[email protected]>
The question is if |
Concerning:
I wouldn't add it at the moment. In citations I don't really see a need for both. Pandoc or other text-based systems will use |
That's right. As I may have mentioned, the only reason I can see for it is in a GUI app that wants to store the rendered label for some reason. |
We can remove label on input on a separate PR, if needed. |
This adds "citation-key" to csl-data.json and csl-variables.rnc. This should make switching from word-processors to plain text based systems (pandoc, latex) easier. Closes citation-style-language#243
Description
This adds
citekey
to csl-data.json and csl-variables.rnc.This should make switching from word-processors to plain text based systems (pandoc, latex) easier.
Closes #243
Question
Do we need to add this also to csl-citation.json in addition to
id
here.Type of change
Please delete options that are not relevant.
Checklist