From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sBvvDbENqWFs0QAAgWs5BA (envelope-from ) for ; Thu, 02 Dec 2021 19:17:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EHCjCbENqWF3AwAAB5/wlQ (envelope-from ) for ; Thu, 02 Dec 2021 18:17:21 +0000 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 8FD3AED98 for ; Thu, 2 Dec 2021 19:17:20 +0100 (CET) Received: from localhost ([::1]:58770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msqdy-0002bo-Nz for larch@yhetil.org; Thu, 02 Dec 2021 13:17:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msqYN-0000cm-9H for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 13:11:31 -0500 Received: from [2a00:1450:4864:20::42b] (port=33314 helo=mail-wr1-x42b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msqYL-0000aL-MN for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 13:11:31 -0500 Received: by mail-wr1-x42b.google.com with SMTP id d24so675007wra.0 for ; Thu, 02 Dec 2021 10:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=zqpp8E47SvGGwkH9TKLzzf3rU1D0kkCiFu22L/PHUIU=; b=N1qlyuXWwvaEMeFmcqUmsfCOEPj+5g/q56eRvpJ5wWnLBj3jbLX1MJUVIqYMwzSu65 okUh/lbShecKYeJgPaVet5Y+05gqosZtruydOcQirWKOJr2jM29zDemcweI3XVVHD3vS hKPgBgfzIwqf5xJzteeM6qEN4IWYj6hkEPJXvQkniHZ2A5gwzY1wH/S9oN9aGXCHvHqp HQBvhMB3d5HLBIbwPKrfHzjeGtduCYHMLEZ9n3A97n3Ks9TweAJA9hT3pnWVPM5nWtky YSEYik/BYe7aUsOTkLTRrCGv6haC4NE6eGUqiANcD8t1QOcyieDIABELZvkhilwAgnE7 4AVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=zqpp8E47SvGGwkH9TKLzzf3rU1D0kkCiFu22L/PHUIU=; b=bYd5541P3H7TKdRNytAynoT+D1+zZzke6SgOVkZ5ZbiRPupctnfPxFtLXR7Tm8vInF Ko7qsMAIKZID9jrBE5+042Ry4DkMze+XqK0Q9Mld66Okbs6vYqGzHI8jdiXZby7iENur 9GxNBLj+PPNJYgQeKT8VoKpgYJDCgIQk8iXSg1UMVVnC2qNPXKoD25zpRpixe1KegYp5 3mnD5BIMMsoqAY0Tf7fsrGrufSHSkbf3i0DWGGUIg7PwNI/2d4xYe93OwFw20EVtb/NH cgARxnoKY/zcKvGW4UTDOHnEQBMgDMOseWAcjxqpnUKFy8xDUfRmH+Eh20mtq0BZved7 D0ng== X-Gm-Message-State: AOAM533fREwBUaTXwrPALm+vBc+ja8/59jaffa6dB1iH/j9uPNJGdTMt FlNBVir2y8TAhb8OScQuBoZ1iH/JeBNaNQAFHTYf692Z X-Google-Smtp-Source: ABdhPJzc/HG3+8K2VlB+f6Wz4M8vbvmeNPnZT6imrP/hnq/tiXp7CdJqEkI/VgXXjMFu/IF2/VW4f9Z+7gsxeekben0= X-Received: by 2002:adf:b18e:: with SMTP id q14mr16980101wra.477.1638468686458; Thu, 02 Dec 2021 10:11:26 -0800 (PST) MIME-Version: 1.0 References: <4897bc60-b74f-ccfd-e13e-9b89a1194fdf@mailbox.org> <87fsrbp673.fsf@gmail.com> <1ef0e093-c165-2a5f-954d-6a33b64c8ee9@mailbox.org> <87r1avgnpi.fsf@localhost> In-Reply-To: From: Tom Gillespie Date: Thu, 2 Dec 2021 10:11:14 -0800 Message-ID: Subject: Re: Org-syntax: Intra-word markup To: emacs-orgmode Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42b (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=tgbugs@gmail.com; helo=mail-wr1-x42b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638469041; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zqpp8E47SvGGwkH9TKLzzf3rU1D0kkCiFu22L/PHUIU=; b=AWulOMjghU2cKIk6Fk07w7r/IAdipEWvTgqWmkw6UzOptFmfn0a8BqCgK77ibAAkbuowqw UEMlTLyeHsdB5J0UBOO0KBmB8vzmKnvqyI3APDISnwpYUFfcuEPbCVk4jbs/zQ0hVH5wV5 cih1M7ned7AEedBb4heE+Fl9byZmfiEji+E3ZbvDtU42QISyKDHxE9CC4tk0y7muMlchHm 9kazNF9h2FEp/GCoFUjHin6INcKLVL3Lx43Mlx4oRAr6MTlGn8Cl0ndfIaVsyS8mgvqA4D kAJSFoRRS3asOnVED4UADWNZl4QKSI2nFlsP6qNO4fCTp+YXyVoT1FgW0iTGRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638469041; a=rsa-sha256; cv=none; b=qCGkV05a62t2KegAogX+TQ97O4b5dXMIBUFr16yZOkxHhLpATH29KYw9+rklycDfSE/S2U OSknVkjFT1IySHRvn55lcIz/sK+IkflCIoBpW/anAP5XSTReBQuz1J9G+IVSpSMBIJRcji JK8DH1KyInhIxjXiYy1ZnHr1yIUe9IT4gAQzcJrZ6rMKGeESWJ65mcnCTtt3T2jZrq7P/t Ex2I042vbG6bmd3ZsZpMmlW/Ev2wCiP1QTKKhfTZfoqlZ9HOAeNeka9eekNYcN8cikcXYN aK2bQLKxHdt6UFW7PdBOPiV3lVwwPNv5Rb6ROAo7mH4+Fkzsbj9E12dFWT6Qww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=N1qlyuXW; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=N1qlyuXW; dmarc=pass (policy=none) header.from=gmail.com; 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: 8FD3AED98 X-Spam-Score: -4.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: h4a8VLD+zJ1/ I don't mean to be a wet blanket, but the edge cases for the current markup syntax are already hard enough to implement correctly, to the point where different parts of Org mode are inconsistent. Intra-word markup isn't viable because there simply isn't any sane way to parse something like *hello world*/hrm/oh no*. The other issue is that this will degrade parsing performance because almost every character could precede the start of a markup section. I recommend anyone suggesting solutions try to implement something that can parse the markup unambiguously with lots of nasty test cases. You will likely find that it is impossible to consistently tokenize markup, and that you have to hand write a whole bunch of heuristics, making Org syntax even harder to implement correctly. Any solution that suggests extending how =/*~+_ can be used gets a hard no from me. I could see teaching other exporters how to interpret \emph{hello}world, but trying for to have any sane behavior for something like why *hello*world oh no a wild askterisk* is not worth it. Best, Tom