-
Notifications
You must be signed in to change notification settings - Fork 37
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
Cannot specify unknown date #260
Comments
It's actually I'm pretty sure this is fairly new behaviour, though, because I've created entries in the past without a year and never encountered this error. So it seems Thanks for bringing this to my attention. I'll need to think a bit about how to handle this best. For your immediate case, you could use either For a more general solution, though, I'll first need to check which errors can happen and if it's possible for Ebib to distinguish them, then figure out how to best handle them. The best way would probably be for Ebib to ignore the problem and generate a key anyway, but I'm not sure that's doable, given that |
Thanks for your quick reply. In case you didn't spot it, I edited my first post shortly before your reply to include some ISO 8601 information relating to unspecified date digits using the character X. So perhaps bibtex.el is not actually fully compliant with the standard. |
You're right, I hadn't noticed. 😄 Such dates don't seem to be part of the base standard, but they are part of an extension, though I'm not sure to what extent it's "standard"... I'll ask on the Emacs mailing list to see how the devs feel about supporting this. |
@joostkremers sure you've thought of this already, but my suggestion would be to add an optional arg to |
@Hugo-Heagren Sure, but it's not my code. 😄 |
When adding a biblatex entry where date / year is a required field, there does not appear to be a way to handle cases where the date / year is unavailable (as is quite common for example with web articles). I've tried leaving the date / year fields blank as well as trying the following values: nodate, n.d., nd, unknown, none, nil, n/a.
This results in e.g. the following message displaying when exiting the entry:
Year or date field 'nodate' is invalid
It also means that the entry does not get an auto-generated key.
I was unable to find anything in the manual which addresses this issue, but perhaps I missed something?
EDIT: I did some Googling and came across section 2.3.8 on page 39 of this which states that "Date fields [...] adhere to ISO8601-2 Extended Format specification level 1". According to this description of the ISO standard, it should be possible to enter an unspecified date (or partially unspecified date) using the character 'X' to replace the unspecified digits e.g.:
XXXX
20XX
2022-07-XX
However, all of the above examples generate the same error as my earlier attempts.
The text was updated successfully, but these errors were encountered: