From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yODPLA/e/mWiOAEAqHPOHw:P1 (envelope-from ) for ; Sat, 23 Mar 2024 14:50:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yODPLA/e/mWiOAEAqHPOHw (envelope-from ) for ; Sat, 23 Mar 2024 14:50:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mgl6AAvd; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711201807; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QdcwyxzhioPsB8v/ZM1zQ6yQuCM3eiTMHYAEGeQfEKY=; b=qp/3OFqxVlYoRL8Fzh1vZYCl519ar6AH6q7nw/LzFZZahhwEwRHoc6Dvmm9vtQLOgbguaA xxtc++PPafx1Op80LuJ0Lh8hnX9nURMk0nXvXPu3ekrTqLatVCnU/izRqEk9JJVMOao5CS N0wcPAeSiUY6yNU/iepHgjSel9Kwze+ZaCewz18+7GvQgZc05Bg5npW9j6q+B5XAf4QS3x qRWNjSUkXkI9kJq9+y7yRQshfMeKzLtWxs/XpdtHpm0P2/WX6z3IZZoLIwcEP0IKbrWZqG oBiSES1oR+KeoycyqrYsgXvMr4Wv/c1NTYtisNCIaN2HJ2oP7Y1/McgsyPPbRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mgl6AAvd; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711201807; a=rsa-sha256; cv=none; b=SHSx7iM+FAJlV22dhRkM4IPjs5uZEQnMwg0iBbamiDzK99bjttqtA66bbh6PlexJ3u+1ix jayLyqHUt8TXXzoPcn21lvogFk1iSRfd5FXqyUKxumtQYY4xQT0GC7w3eSPrJSuJWctS3H 81cQ4WsKXj8MLFYCblHsGT1xdp04/xMWqBf+SVunRgerSqwlwMuQmZT4H+kFkV1kKPOVm9 NX4nhjQSWe4M4+79N+nZBuwteHpwR5TZeAdS2TNS6NapRv9scuym/f0RAHPP0bvmozRYDw TYq031zsdXhj92uZFp/mCjU8fVtlYotc2OjYEw/6GAALBEkec7W95qmE42Ch+A== 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 7C927E9A0 for ; Sat, 23 Mar 2024 14:50:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ro1kG-0003TS-Km; Sat, 23 Mar 2024 09:49:12 -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 1ro1kF-0003TK-MA for emacs-orgmode@gnu.org; Sat, 23 Mar 2024 09:49:11 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ro1kD-0003Hh-7M for emacs-orgmode@gnu.org; Sat, 23 Mar 2024 09:49:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DC99A240028 for ; Sat, 23 Mar 2024 14:49:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711201745; bh=QdcwyxzhioPsB8v/ZM1zQ6yQuCM3eiTMHYAEGeQfEKY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=mgl6AAvdYEs6n3VoWJ8ZkquqzBg0WN0b41Nb61gQwvHRO1Qjy7K90NcB7LTzBFRlq P4J8kbRpQO4iYtMj8CebQTg5QgJ42flknrWL3EKy4EwURi4XsUUKtvgTaIv8tUyPFU m7n93u91hhu756Gr3lqRG6j5aaZLkhi7NnBaew+8D3Lcewv9e+DpMdK5Q/i1dgBDM9 5D88mHyZ75fDZo1rhZg3VNNsIueZbKJF2B2M8QVGvjR4y/NFADVjk3ogNnBgVjpCXG IK4TUD666oJUE3O+ebATKPNtJrOlW8XoTYCkAQLhKaWsYwd9/XedSV6TnzyyA755Gk csjldyiplMQ7A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V20ss2VFjz6tvt; Sat, 23 Mar 2024 14:49:05 +0100 (CET) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: [bug] Smart quotes: confusion of apostrophe with second level quotes In-Reply-To: <87r0g13w1a.fsf@posteo.net> References: <875xxfqdpt.fsf@posteo.net> <874jcxtbxt.fsf@localhost> <87r0g13w1a.fsf@posteo.net> Date: Sat, 23 Mar 2024 13:49:03 +0000 Message-ID: <87a5mp6ots.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H3=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-Queue-Id: 7C927E9A0 X-Spam-Score: -6.68 X-Migadu-Spam-Score: -6.68 X-Migadu-Scanner: mx10.migadu.com X-TUID: p0eZC1lKnn/V Juan Manuel Mac=C3=ADas writes: > The patch works fine, and I think it can prevent a lot of cases. But > false positives can still appear. Consider (second level quotes open > after the colon): > > "two articles: 'my friends' party' and 'the students' papers'" > > "A Greek folk song says: '=CE=BD=CE=B1 '=CF=81=CE=B8=CF=8E =CF=84=CE=BF = =CE=B2=CF=81=CE=AC=CE=B4=CF=85'" > > =3D=3D> > > \guillemotleft{}two articles: ``my friends'' party' and ``the students'' = papers'\guillemotright{} > > \guillemotleft{}A Greek folk song says: '=CE=BD=CE=B1 ``=CF=81=CE=B8=CF= =8E =CF=84=CE=BF =CE=B2=CF=81=CE=AC=CE=B4=CF=85''\guillemotright{} These are not false-positives, but ambiguity. There is no deterministic way in this scenario to distinguish between apostrophe and smart quotes. > I think the only solution here would be to introduce a Unicode > apostrophe (=E2=80=99). Or allow an optional, alternative character for > second-level quotes: > > "... `my friends' party` ..." We may introduce \apostrophe entity. "two articles: 'my friends\apostrophe party' and 'the students\apostrophe p= apers'" "A Greek folk song says: \apostrophe{}=CE=BD=CE=B1 \apostrophe{}=CF=81=CE= =B8=CF=8E =CF=84=CE=BF =CE=B2=CF=81=CE=AC=CE=B4=CF=85'" --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at