From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GDd6LLb/32LyAgEAbAwnHQ (envelope-from ) for ; Tue, 26 Jul 2022 16:52:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wCJkLLb/32K1pAAAauVa8A (envelope-from ) for ; Tue, 26 Jul 2022 16:52:38 +0200 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 4B5093AAE5 for ; Tue, 26 Jul 2022 16:52:37 +0200 (CEST) Received: from localhost ([::1]:58426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGLvH-0000DC-NL for larch@yhetil.org; Tue, 26 Jul 2022 10:52:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGLti-0008Mc-Nk for emacs-orgmode@gnu.org; Tue, 26 Jul 2022 10:50:58 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGLtg-0000Hu-8T for emacs-orgmode@gnu.org; Tue, 26 Jul 2022 10:50:58 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 849105C0164; Tue, 26 Jul 2022 10:35:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 26 Jul 2022 10:35:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecosaur.net; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1658846109; x=1658932509; bh=nEdwwqz5RV 9V3BTLQewsVtzmbKwRjpFuJDnPJd7HKcs=; b=M0cidl1uqrsJf/15mb316Gs65Z bXjJ6lvvkazRIkOqb2jdV4U6zavsy1CiLGCkwxan0FLjf2ws3lmSQZGGaYzDM0Rs nKLg+kPH3X6sAF8EgSDM5etf1LrdiwSY3OZMlqrnfnOMFkIyBiRZwjIvDvFE/nAI EAKuOExlkbUslD9IvsVnwOqdDyFBkoX9ctWwBROQpmV1kGtItaLzQrit8XBbwl0X Fsy2oQPy2NMRzmSqIQBSJrAVbvU0c8BaJ5RfDItrrV/rLuSf8UNamuOEFrd5d7Ij 38+mc/Unh248pRUcKN7LT45bU85COgspdxtdiqRsoWwDPLwPgKhKRm0i6Dhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1658846109; x=1658932509; bh=nEdwwqz5RV9V3BTLQewsVtzmbKwR jpFuJDnPJd7HKcs=; b=gJoV92KZjQnhFWIumgmOFdxP22TVnXC5fwqIUPWP6hHr lG5DpEeudQStX9+LLE3MBrGtW8emBkU5XA2TxIb3RVVkHPnvsSkWB9zoF65eIiOa /NzZ+izyTnG7YRlwZlJh5T+sda+pRqoEbBExao6w7lmW3naaj3UvqwaZddehcojq YCsBfqJq2/CpN8uPrAutDcVyIhbIGs5Z2RP8nYeUn6VscgndGPjRBv1S3tJzn8uM kkxotQi5kmNo19C3TkUM+A5+gpeyX1aS3v7VN0kPnmCaNN7l7FlLxKAtbVz06MyX urLc0W89Rnb0NFxPsHrjnjGrFB2zEiClZVJv4zuoJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddutddgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefuffhffggjkfggtgesmhdtreertderjeenucfhrhhomhepvfhimhho thhhhicuoehorhhgmhhouggvsehtvggtrdhtvggtohhsrghurhdrnhgvtheqnecuggftrf grthhtvghrnhepuefguddugfeuteeffeehlefhhfdujedvkeegtefgkeehudfgieekueei hfevleffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epohhrghhmohguvgesthgvtgdrthgvtghoshgruhhrrdhnvght X-ME-Proxy: Feedback-ID: iecf94634:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Jul 2022 10:34:56 -0400 (EDT) From: Timothy To: Ihor Radchenko Cc: K K , Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [PATCH] org-export: Remove zero-width space escapes during export Date: Tue, 26 Jul 2022 22:25:34 +0800 References: <87r128d5pp.fsf@localhost> <80f0990042a564556cc6b047a94f7e9dddf5a280.camel@outlook.com> <87v8rkav2x.fsf@localhost> User-agent: mu4e 1.8.6; emacs 28.1.50 In-reply-to: <87v8rkav2x.fsf@localhost> Message-ID: <87sfmorlh0.fsf@tec.tecosaur.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: none client-ip=66.111.4.27; envelope-from=orgmode@tec.tecosaur.net; helo=out3-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658847158; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nEdwwqz5RV9V3BTLQewsVtzmbKwRjpFuJDnPJd7HKcs=; b=i/W2igi6F4Fc6H3YOjsOWbbvnyN7p5EArWx4MTyMVhnEZH8SK/aarDaYaNVWjHQXTW2OZa 6XxtumM2XtYn0wmgzzmajFlprK8SbF+QfoHR4C0GfF7ib21TZW29FvGnCmfdiV9glf6amU RBAqBQ1oWNO7qUmJFXxpW08m69YESH1tPqoDRyNM3XaLyH9djichrasPy1/U1VxqsydDyR YY5HYjp8tqdJeJuX7b9m95CUwXmWX3lTdPCi9enXwkRKxAXeqT2QPfTuLILEnKXd8ndmQV 9uXWWC/0hJNgSTS1DaZzuWr+zx9Gv0ys1/FwCcMCgdtT3SLt+4Kf6dKrbqprJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658847158; a=rsa-sha256; cv=none; b=LmFKSHKuMJl24AZeZutewZ9ITtahdKW/Zc/YqQ8F4CGsK+3Z6JNOS8LVAxnDDebjOC9Bnt B5tI1eBVN1xGkP3YXFL6la0WUORLIuZor4TtBFGaxhm09IIdRQ5R2maUOV1VjMB0lBW+7C 5muI3MnoZ7pFAKOnFtkRctNDLLZu/nF5fZQMBKLOFumOvEVW7rTIfiZcvfXykOVpg4Raf7 ojOVASxuvbdWzA3coW/GvcCfYBVlV/rFfartnY+iMF+FibUGXkyBRg02wJ+qxj2frGBcyS Hcaz72tN7dGd8LCH/muHPCaSSqTzBP26Ur43m6RNzzxBRg31BXl3I8fecwEL9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.net header.s=fm2 header.b=M0cidl1u; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=gJoV92KZ; dmarc=none; 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" X-Migadu-Spam-Score: 2.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.net header.s=fm2 header.b=M0cidl1u; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=gJoV92KZ; dmarc=none; 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" X-Migadu-Queue-Id: 4B5093AAE5 X-Spam-Score: 2.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: vc1ldaNHb7QU --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ihor, > I am attaching a tentative patch that will make Org export remove > zero-width spaces when those spaces actually separate the object > boundaries. > > Any objections? IMO this is an immanently sensible idea. I added an export filter like this= to my config basically as soon as I found out about zero-width spaces. One minor quibble, I find the name mildly misleading. When you say =E2=80= =9Cescaped=E2=80=9D I think of escaped characters, which isn=E2=80=99t really connected to what t= he zero width does. I=E2=80=99d personally be inclined to call the zero width space an = =E2=80=9Cinvisible semantic separator=E2=80=9D. > +(defun org-export=E2=80=93remove-escaped (data info) > + =E2=80=9CRemove escape symbols from plain-text in DATA. > +DATA is a parse tree or a secondary string. INFO is a plist > +containing export options. It is modified by side effect and > +returned by the function.=E2=80=9D How about: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (defun org-export--remove-semantic-separators (data info) =E2=94=82 "Remove Org-specific semantic separators from plain-text in DAT= A. =E2=94=82 DATA is a parse tree or a secondary string. INFO is a plist =E2=94=82 containing export options. It is modified by side effect and =E2=94=82 returned by the function." =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 All the best, Timothy --=-=-=--