-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
How to determine if a date is uncertain? #61
Comments
The CSL specification is currently agnostic about how metadata is fed to the CSL processor, but citeproc-js has established itself as the reference in this regard, upon we based our CSL JSON schema. https://github.com/citation-style-language/schema/blob/f01ba9c5ec2055e381a38598919a379255c496c5/csl-data.json#L221 shows the "circa" field for date variables in CSL JSON, which indicates whether a date is uncertain. You'd have to check the citeproc-js source code to see what values it uses for this field, as the schema is rather permissive here (presumably a true/false boolean, but I'm not sure). |
Actually, it looks like citeproc-js uses |
I see. So if I understand you correctly, the Is it fair to assume that:
Since |
Are you generating CSL JSON or writing a CSL processor? I would use 3 for now, but we should make the schema more strict to clarify exactly what values are allowed.
Yes, certainly. We just never came around doing so, but the plan is to move from a descriptive JSON schema (that describes what citeproc-js does) to a prescriptive one (that specifies what CSL processors in general should expect as input data). We're also hoping to add some continuous integration to integrate the schema with the CSL test suite (https://github.com/citation-style-language/test-suite/). At that point we can start referring to it more in the CSL specification. |
Make that 3 and 4. Based on the test suite, I'm pretty sure most CSL processors that test against the test suite will be compatible with this use of "circa". |
I'm writing a new JavaScript CSL processor indeed.
That'd be extremely useful!
Do you have some details about it? I may be able to help. Thanks a lot, that clarified a few things. |
I took the liberty to raise this issue just to not forget about it. Hope that's ok. |
The documentation for approximate dates says:
However when looking at the relevant section in Choose, we can see:
Which links back to where we just came from, so it's unclear how one can determine when a date is uncertain.
Could you explain how uncertain dates are determined please?
The text was updated successfully, but these errors were encountered: