From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#69266: 30.0.50; bibtex-parse-entry misreads escaped \} Date: Mon, 26 Feb 2024 17:08:31 +0000 Message-ID: <87v86bb1bk.fsf@localhost> References: <87cysshl3j.fsf@localhost> <87a5nr9p8f.fsf@gnu.org> <8734tixdf9.fsf@localhost> <877cit26g8.fsf@gnu.org> <87edd0xd4r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28063"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Arash Esbati , 69266@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 26 18:12:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1reeWe-00070o-CR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Feb 2024 18:12:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reeV9-0005Ij-1W; Mon, 26 Feb 2024 12:10:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reeUv-0004yi-Td for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 12:10:38 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reeUv-0002KC-LW for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 12:10:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reeVK-0001lA-WC for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 12:11:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Feb 2024 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69266 X-GNU-PR-Package: emacs Original-Received: via spool by 69266-submit@debbugs.gnu.org id=B69266.17089674196614 (code B ref 69266); Mon, 26 Feb 2024 17:11:02 +0000 Original-Received: (at 69266) by debbugs.gnu.org; 26 Feb 2024 17:10:19 +0000 Original-Received: from localhost ([127.0.0.1]:50075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reeUc-0001iT-2q for submit@debbugs.gnu.org; Mon, 26 Feb 2024 12:10:19 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:54031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reePj-0001Tl-IZ for 69266@debbugs.gnu.org; Mon, 26 Feb 2024 12:05:16 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7E022240104 for <69266@debbugs.gnu.org>; Mon, 26 Feb 2024 18:04:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708967084; bh=TR2GibRsGteZnz75Bjh+7gNc/8KcKZDycnbisgJjXD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=BLfyWV/ZipjAiCBdZb2az7Yd6l/BfS9cRnShA9AZAv/CGdyb7ueB76PZL29wZVj6/ dqnpQi0Y4iyZ8gVS6EnJLuP3sfWqNet5r2Sb96sXPzmeC89v3Obw3njv2bPZ6AsQqG SYbBOgOP/v2Xy0PIylb5ifb7Q6agEtKhDbzZrBfcQ5FQkiwmDk2tsYQuxMVOfbKi4K Zn+tRwnu9CZiY/Y0/I9MAjNmiTnQwo/d7B7+QEszpjzFgu0RB/DkN+5dAy5/Xr+PkE jeL+j4+qXEMFMsqv8rYQ82NsVUciXv1P6LINL/c06rXl7brw9W+Rk/3GKyxifHmend ZHY4xRdE5eWBQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tk6Rb481Yz6twv; Mon, 26 Feb 2024 18:04:43 +0100 (CET) In-Reply-To: <87edd0xd4r.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280689 Archived-At: Roland Winkler writes: >> Would you reconsider this if Biber handles \} correctly? I didn't >> test it, though. > > I am happy to take advice from more advanced biber / biblatex users. > For the fun of it, I just created my first LaTeX document using biber / > biblatex. That worked fine with balanced braces. But it choked with a > biber error message when a biblatex field contained a single "\{". > > Biber uses btparse to parse BibTeX files. The BibTeX data language, as > recognized by btparse is explained here > > https://metacpan.org/dist/Text-BibTeX/view/btparse/doc/bt_language.pod > > My reading of this document is that btparse does no take steps to deal > with "escaped braces" inside a field. Well. btparse does not really try to implement bibtex syntax accurately. The docs just say that there is no formal description other than the code and give up, pointing that some more accurate parsers do exist, but btparse is not one of these more accurate parsers. That said, since bibtex itself chokes on \}, this bug report is notabug. Also, talking about biblatex, I do note that https://ctan.org/pkg/biblatex has a more detailed description of the syntax with notable differences from bibtex. For example, biblatex allows "crossref" field that defines entry inheritance; field aliases; and special key-value format like AUTHOR = {given=Hans, family=Harman and given=Simon, prefix=de, family=Beumont} See https://ctan.org/pkg/biblatex It would be nice to have those supported. I may open another bug report if you think that this idea is worth tracking. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at