unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Roland Winkler <winkler@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Gustavo Barros <gusbrs.2016@gmail.com>, 64972@debbugs.gnu.org
Subject: bug#64972: bibtex-autokey-get-year does not recognize biblatex date ranges
Date: Tue, 22 Aug 2023 19:09:31 -0500	[thread overview]
Message-ID: <87lee2ty9w.fsf@gnu.org> (raw)
In-Reply-To: <837cq9u9e0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 05 Aug 2023 12:27:19 +0300")

On Sat, Aug 05 2023, Eli Zaretskii wrote:
>>       date         = {2020-10/2020-12},
>> 
>> Results in user-error "Year or date field ‘2020-10/2020-12’ invalid".
>> 
>> The "date" field, however, is valid `biblatex' syntax for a date
>> range, according to the section "2.3.8 Date and Time Specifications"
>> of `biblatex's manual.
>
> Roland, any comments?

biblatex permits dates and date ranges according to ISO 8601.

The problem in bibtex-autokey-get-year arises because iso8601-valid-p
believes that the string "2020-10/2020-12" is not valid according to
ISO 8601, though iso8601-parse-interval parses that string correctly.

So it seems to me that this problem requires, first of all, some changes
in iso8601.el.  Who is familiar with this code and can possibly make
suggestions?

Roland





  parent reply	other threads:[~2023-08-23  0:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-31 12:53 bug#64972: bibtex-autokey-get-year does not recognize biblatex date ranges Gustavo Barros
2023-08-05  9:27 ` Eli Zaretskii
2023-08-06 16:09   ` Roland Winkler
2023-08-23  0:09   ` Roland Winkler [this message]
2023-08-23 11:30     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lee2ty9w.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=64972@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=gusbrs.2016@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).