From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: bug#68477: 29.1; bibtex-braced-string-syntax-table should handle non-ASCII parentheses Date: Thu, 02 Jan 2025 13:09:41 -0600 Message-ID: <87o70pf2x6.fsf@gnu.org> References: <86o7dmo7uj.fsf@p200300d62730c892f021caab3c1ebecc.dip0.t-ipconnect.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22111"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68477@debbugs.gnu.org To: Joost Kremers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 20:10:18 2025 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 1tTQaH-0005cy-Mk for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 20:10:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTQa7-0008Bv-MJ; Thu, 02 Jan 2025 14:10:07 -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 1tTQa3-000877-CL for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 14:10:04 -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 1tTQa3-0005bp-3F for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 14:10:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:In-Reply-To:Date:References:From:To:Subject; bh=nzqX7UfiMyA9AMFXZNUem2aHxxPuXP09aBKulU8zeB8=; b=KMdat6tqjmmIiYqvqiHUzsu/RkZ+QCzbnAa9sLBmH9c9mVV24jtI96mAX4/1fCCv+w7nV6mOA6cDf4knuc2wrgycuo8rcm5ekfoGrKuwqVyFtgXKomMnf6hY7TlYAbc3JQT6OioiUjJhohJ9RN8lUU5LziufZNFzi9VUHesw2PycBQDK0YmMCLq8j1nrOPIUqFHXPKSUC2P60odBvo9EnFhXvdgzcjBIDiMwjyGPrtaGyZf/CsO7JIdCu/tW75x5hqycS33t/4ZFmdTGOpGJ2uEkn1s0KFfkUpa7D8iDnBGIMixLstKVeyYsGZ5VeVyc1IOV8yMWYSE0NVRIqu2dRA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTQa1-0001uw-V0 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 14:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68477 X-GNU-PR-Package: emacs Original-Received: via spool by 68477-submit@debbugs.gnu.org id=B68477.17358449927334 (code B ref 68477); Thu, 02 Jan 2025 19:10:01 +0000 Original-Received: (at 68477) by debbugs.gnu.org; 2 Jan 2025 19:09:52 +0000 Original-Received: from localhost ([127.0.0.1]:46697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTQZq-0001u7-UM for submit@debbugs.gnu.org; Thu, 02 Jan 2025 14:09:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44884) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTQZp-0001tk-5T for 68477@debbugs.gnu.org; Thu, 02 Jan 2025 14:09:49 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTQZj-0005Ze-QA; Thu, 02 Jan 2025 14:09:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=nzqX7UfiMyA9AMFXZNUem2aHxxPuXP09aBKulU8zeB8=; b=Mtn3tAgtwNdCUipzerd1 ZW5RFi7azhKvNWe4ePyTFHTqaxNU/DPIVwadfHzIoXHSMqJYIsovAOL6AAC0lWQaCEzrwkzrZPp7a qm2Y9RjEDtTShceP+vRKBqzRPrlq3fRm16J5ndYhSnPBhzW9OQ2MhiRdHRXGJURQANh1oL7OUH/h/ K1JZck1+SAPicK+VIpNjCpuqU5aQWw9M1O4ZkyF7rL4ivnaANax3SSFUaYDbegpARrlhN/rJszFpn pDmh16FHoLgK7tP/Idd7nqm+TqFee9Tj7zAbUufSesOPFb57+S19tTM0wFogckf2p7UsRUXYBe6ox 9JQKjBYeM0rBiw==; In-Reply-To: <86o7dmo7uj.fsf@p200300d62730c892f021caab3c1ebecc.dip0.t-ipconnect.de> (Joost Kremers's message of "Mon, 15 Jan 2024 17:43:50 +0100") 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:298220 Archived-At: On Mon, Jan 15 2024, Joost Kremers wrote: > Consider the following BibTeX entry: > > ``` > @article{Title, > title =3D {{Title}}, > author =3D {Author}, > year =3D 1970, > abstract =3D {=EF=BC=88}, > journal =3D {Journal}, > } > ``` > > Note that the `abstract` field has a single opening FULLWIDTH OPENING > PARENTHESIS (code point #xff08), not the (ASCII) LEFT > PARENTHESIS. bibtex-mode cannot parse this entry correctly. (Do, e.g., > `C-c C-c` on the entry, bound to `bibtex-clean-entry` and you'll get a > user error "Syntactically incorrect BibTeX entry starts here".) > > If the field contains an unmatched LEFT PARENTHESIS (code point #x28), > bibtex-mode has no trouble parsing the entry. > > This is ultimately due to the fact that > `bibtex-braced-string-syntax-table` contains an entry for the ASCII > parentheses, setting them to 'punctuation', but there is no similar > entry for non-ASCII parentheses. I only discovered this bug report now. I believe utf-8 defines lots of pairs of parentheses to which this bug report applies. Is there a generic way to modify the syntax of "all" pairs of parentheses (except the curly brackets "{" and "}") to punctuation so that parsing will ignore such unpaired parentheses? (Though, I do not know how common a problem are such unpaired non-ascii parentheses in BibTeX files.)