From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YJxHIEjZ/GX4cgAA62LTzQ:P1 (envelope-from ) for ; Fri, 22 Mar 2024 02:05:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YJxHIEjZ/GX4cgAA62LTzQ (envelope-from ) for ; Fri, 22 Mar 2024 02:05:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="g/THpjX2"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711069512; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jTfWPvMCsDKX7msG6Js5tfysImBJvEk4WUO8NV1HyD4=; b=Vsm65T5oNRFxV8XR+LTCNnMkcFJVkCodrknwhq4Cx0FmOJbPJ2LOFRRIaJoqPpzE3ChjiA TrHxqHXqEwuo/5usULgVP1jPtYycfXm2WT3N+63QLTdKv3q9Ycc7JR0VddGZiuYZyH5U4u kIRg7yhKJdeT7iFSdmi1SBdK+AwLHhcrRbJFxdgWDEpDQS0koEZ0vW9qUi+SQidKQMaHfu mGT5in5strXItKDQ0wEXifXISjexBZPX/PIiBUNjj236A1Ii0eacW2xTP5N1OFzA3Ltx96 BGAjU+tG49wGe0MDoVe6KAICeiHfqHAbwh4vhONN3FsD2qxRfedAAoUHjEEYPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="g/THpjX2"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711069512; a=rsa-sha256; cv=none; b=U/TjGcxlUjfRtrmlJNhfY0E/etuLh8Q9dzR+M+UZdZQND7UX7XBDM+nY8RL2I3zbkuIdM2 VlaXRfjK4giTdFpGa0TzoJVMAEL3ucMlpRBBG/YwpnCAoiIglHUaSNeR9sBXeDk9eq0xQ9 qCUdz1nBUlSltXDvxfd+9tYbUiMACbOpBLR8nQX92/KEIuzVlCgzi4bAdW9zEADv48q1hV aC1vLYEMiWVk6PHkq549nONybmvL+hGR81YwRp3mNnU1iHZXxvfM87EvTrppFRHKZDEsuv O16HwBXF1EjE/tA0YoJWGlrSRHdaEfDDM10l/upAGAk0e7qFW3nn3QWzK5I7Bg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 127CE11DC1 for ; Fri, 22 Mar 2024 02:05:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnTKa-0006pF-2Q; Thu, 21 Mar 2024 21:04:24 -0400 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 1rnTKY-0006oy-Rj for emacs-orgmode@gnu.org; Thu, 21 Mar 2024 21:04:22 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnTKW-0004L9-5I for emacs-orgmode@gnu.org; Thu, 21 Mar 2024 21:04:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DF216240101 for ; Fri, 22 Mar 2024 02:04:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711069457; bh=T0EdAWIbR03F5BMJRfhMIzxXv+FCs3tEU6FqBiUJSGU=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=g/THpjX2aY1YBL8pEHCaFjFY4sRF4XlpIIltVn04zvWmha3GTH8Qw+IdN54mFIcb6 WP1RvVn2dLNqtn2mYfwHkdcMW8kLsFRRgW3z1ORlBT9YuFBDL/6tLXrJyNHpB6N/dn 5esE9aDhRq2f19sk6UCDuAggmczMqlBBsUCJ27IF7TRhmbKNT2gGDsg/XqwPU/7KLS DLjentea8av148qNPinpWOKRjWYaX27dN/WhLeeln3lLw2Ls5YJWHje70UjA2b4pyt kZgG/CZUD+emJFvRgVBSFjeb0sQNVAvs7DXA8iooiSR6XXmfa+8VjNP3FEtfYU8ZMm GapUEwP1nEbXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V13xs24Vbz9rxB for ; Fri, 22 Mar 2024 02:04:17 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: [bug] Smart quotes: confusion of apostrophe with second level quotes Date: Fri, 22 Mar 2024 01:04:14 +0000 Message-ID: <875xxfqdpt.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.03 X-Spam-Score: -7.03 X-Migadu-Queue-Id: 127CE11DC1 X-Migadu-Scanner: mx12.migadu.com X-TUID: 6q0D6tq4QoQz Hi, I don't know if this is a known issue, but I haven't been able to find any mention of it. I think this is partly because in English it can go perfectly unnoticed, since for English the values of secondary-closing and apostrophe are identical: (secondary-closing :utf-8 "=E2=80=99" :html "’" :latex "'" :texinfo= "'") (apostrophe :utf-8 "=E2=80=99" :html "’") However, consider the following example: =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81= =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94= =81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81= =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81 #+OPTIONS: ':t #+language:es "my friends' party and the students' papers" =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81= =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94= =81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81= =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81 the above produces in LaTeX: \guillemotleft{}my friends'' party and the students'' papers\guillemotrig= ht{} In Spanish, as in other similar cases, the issue is easier to reproduce because: (secondary-closing :utf-8 "=E2=80=9D" :html "”" :latex "''" :texinf= o "''") (apostrophe :utf-8 "=E2=80=99" :html "’") I don't know whether to consider this a bug or a limitation in the current implementation, originating from how Org interprets an apostrophe. Although I suspect it has a difficult solution: how to differentiate an apostrophe from a second-level quote in certain scenarios, when the approach seems to be essentially heuristic? Let us also consider cases in which the apostrophe can be placed at the beginning of a word, as in Greek: "=CE=BD=CE=B1 '=CF=81=CE=B8=CF=8E =CF=84=CE=BF =CE=B2=CF=81=CE=AC=CE=B4= =CF=85" (Org would confuse the apostrophe in the word '=CF=81=CE=B8=CF=8E with seco= nd-level opening quotes) Perhaps a possible solution would be to allow the use of a specific, customizable character, other than an apostrophe, for second-level quotes. Or at least add some brief warning in the manual: in certain contexts it is safer to use a explicit Unicode character for the apostrophe. Best regards, Juan Manuel -- Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa