From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EMGeEpl+Kl9VQwAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 09:40:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IFFnDpl+Kl96aAAA1q6Kng (envelope-from ) for ; Wed, 05 Aug 2020 09:40:41 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C6E51940291 for ; Wed, 5 Aug 2020 09:40:39 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 714D729A94; Wed, 5 Aug 2020 05:40:32 -0400 (EDT) Received: from meesny.iki.fi (unknown [IPv6:2001:67c:2b0:1c1::201]) by mail.notmuchmail.org (Postfix) with ESMTPS id C06E91FF91 for ; Wed, 5 Aug 2020 05:40:29 -0400 (EDT) Received: from mithlond (mobile-access-6df022-134.dhcp.inet.fi [109.240.34.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by meesny.iki.fi (Postfix) with ESMTPSA id 07E702095F; Wed, 5 Aug 2020 12:40:14 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1596620415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pXI77JSiw4/1iynJxv96xdOO6kT6u3k9LLvQU5aLhug=; b=D4ZdyE18LpG27kjuVIGJMYnAEQprIMPDdAt0Yfxa1U+rmBb/LBW1xS/SaVBHwI1jDfIF81 5+sGa3RbKYLi0Ky86KEKqcOSNsU2oV0wDz6ZwasPo8xpkBPAvNqxyeP3FBd4qX15hU6ipi On4Mz/fQg62P0i3p1rnMF9NyhRLJjSE= From: Teemu Likonen To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH v3] Emacs: Force left-to-right display for message headers In-Reply-To: References: <87y2muvc5j.fsf@iki.fi> <20200804180225.12888-1-tlikonen@iki.fi> Date: Wed, 05 Aug 2020 12:40:06 +0300 Message-ID: <877dudfn2h.fsf@iki.fi> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1596620415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pXI77JSiw4/1iynJxv96xdOO6kT6u3k9LLvQU5aLhug=; b=vdZspVXty+6HeQ5kzkVfcxjWpwTv1RBt2JUTFOtfaqnt4Mlm0x1baYTyrlYC4JpQZaIMps z/1rquDYnIfRzqQzSN3dcU1z6zmTt6k+W6KZk7w63sdPlx3t3sFKnBChnuy3vQrAWSpsoD vxHaA3ok69HLoOykbSTvAsWCRBa9D74= ARC-Seal: i=1; s=meesny; d=iki.fi; t=1596620415; a=rsa-sha256; cv=none; b=gqlUt1fFveLUOpOW88J9HL0rpSJh9l7HXPPU3LtDK8So56CILWlslxNCB8qWAfntfFtsBQ Cb0XGCujZjGs4ybKsFlZNee6RoCz1JVLiv7RGJD2Vkvj0SsekuqQDffBqYCYtGuDHUDis/ NNcqdUFXPXpcEk0MkBBhO4ur3a94yQs= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi Message-ID-Hash: ADUXWN225TCPQHTAVRSVUCN7N6JB7MWR X-Message-ID-Hash: ADUXWN225TCPQHTAVRSVUCN7N6JB7MWR X-MailFrom: tlikonen@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============3044107767842151625==" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=meesny header.b=D4ZdyE18; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: -0.07 X-TUID: YH5oyCPtQ6Di --===============3044107767842151625== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * 2020-08-05 09:45:23+01, David Edmondson wrote: > I've no idea if this is the appropriate approach to addressing this, but > the resulting behaviour is obviously an improvement over what happens > now. I think there are two options: 1. Add a string like "From: " in the beginning of notmuch-show header paragraph so that the paragraph always starts with left-to-right characters (those latin letters "From"). 2. Add invisible characters that force left-to-right text for the paragraph. Character U+200E LEFT-TO-RIGHT MARK is meant for controlling exactly that. My patch implements the option 2 and... > It would make sense to add some commentary to the code as well as the > commit message explaining the reason for inserting the seemingly > arbitrary character. ...it has at least comment ; U+200E LEFT-TO-RIGHT MARK in the code. I think that explains the purpose quite well. More verbose explanation could be something like this: ;; Add invisible U+200E LEFT-TO-RIGHT MARK character to force the ;; header paragraph as left-to-right text even if some header's ;; content is right-to-left. =2D-=20 /// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCXyp+dhAcdGxpa29uZW5A aWtpLmZpAAoJEK2ddavulMJz9LQBAOrltb1yYtJqJrmorllYqIYVeL3gp85qQR+b 5TdIbhACAP4s7GnscjWz1QwRAa5o4mrIRvSFmwHo5JMBXjcLx/9tDw== =hb/L -----END PGP SIGNATURE----- --=-=-=-- --===============3044107767842151625== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3044107767842151625==--