From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IGTpHkMRmmFsEAEAgWs5BA (envelope-from ) for ; Sun, 21 Nov 2021 10:28:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4GeTGkMRmmEBSwAAB5/wlQ (envelope-from ) for ; Sun, 21 Nov 2021 09:28:35 +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 E5D252C108 for ; Sun, 21 Nov 2021 10:28:34 +0100 (CET) Received: from localhost ([::1]:39032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moj9F-0007J5-8W for larch@yhetil.org; Sun, 21 Nov 2021 04:28:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moj8K-0007It-IF for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 04:27:36 -0500 Received: from [2a00:1450:4864:20::12d] (port=33524 helo=mail-lf1-x12d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moj8I-0003Wd-T2 for emacs-orgmode@gnu.org; Sun, 21 Nov 2021 04:27:36 -0500 Received: by mail-lf1-x12d.google.com with SMTP id bu18so65840612lfb.0 for ; Sun, 21 Nov 2021 01:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=cZABJmeSmXF+yGAO2twhk++Bqc5HeOpFsFhqotE0XwQ=; b=ZcasIg6BYjl+Aj06MpbYwQ5jgD5V9Gh22FSEdLmGdQyk6LaWyzLz5FBNqPv7CCrbEE kXt71vZKlJpqcHBxf4F91QhdaLZQTtKO50JNLdUXvN5+Q3WdDZe5+46AqLicL/9h26MQ n920tHScCzRXa72zKqdEYGi3SZ+xMEwALWS6LfUdAp03oIbn3QWK4wiFJ/GQhEMhAZUQ h3Epycq6kLjq6gMWC7zGkS+Ya9u87Oe3B8HWm/dQPh8AprYACOkSdBQu+2WMitkVErd1 8nlomsYEBXKTkaPlQOlh5kwbeCR4ZY4V8PskVQ7zAoLewFU6Jmf7q8rBEhig7+RTC7Fj Ipaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=cZABJmeSmXF+yGAO2twhk++Bqc5HeOpFsFhqotE0XwQ=; b=yFLZ8kdP6HpzQITMf3CzzIBcXhzoCq3tfPC/sMtf3q/73JaWND5oHsJNxbged5Adu4 Q9uif+CGPuEi6GKyRMol/nPBEC1H8RsXa1qoy0hNgwIvWuGJZrTOUHvkYdO09kTOVqMQ 9Bue1TqTivso9rGjcKaHxZ8MIlnKf9KTVMZlzresw9xhpUI3eaBMHewzwFOnQfXWHXKM Op+uHwmd8lyeGbqiHwgLkyqTk/7NyYKYFGoepJKbwVUyABvNXKBK1fRzLX1kGHvFW4Yv xEdmtRXIrZorNtitpBGSNU4JLSRkvc1cNSnA/+WWxNDt2PjvdPF+tEb0sjYE0LZUAFED SAOA== X-Gm-Message-State: AOAM532pC+DcxcF6REiu8g8pp9ltxU2eyDgKDFPiLMbBWXqMdEB8jPmk b+qUuSdkMaQowErSF8OAHc8= X-Google-Smtp-Source: ABdhPJw7qTORbPGeWpm7Oh6qaNWByGN0ZG45Pz5a7H26VBkHQWyDoc8plfn2335lDa94bRJ/jAlAgQ== X-Received: by 2002:ac2:54b7:: with SMTP id w23mr49103707lfk.163.1637486852923; Sun, 21 Nov 2021 01:27:32 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id w17sm493246ljh.15.2021.11.21.01.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 01:27:32 -0800 (PST) From: Ihor Radchenko To: Nicolas Goaziou Subject: Re: [PATCH] Re: c47b535bb origin/main org-element: Remove dependency on =?utf-8?Q?=E2=80=98org-emphasis-regexp-components=E2=80=99?= In-Reply-To: <874k86y997.fsf@nicolasgoaziou.fr> References: <87o86mw86r.fsf@localhost> <87fsrxkahq.fsf@nicolasgoaziou.fr> <87fsrxa1j5.fsf@localhost> <878rxoa6lk.fsf@localhost> <87tug93b2a.fsf@localhost> <87y25l8wvs.fsf@nicolasgoaziou.fr> <87r1bd39ny.fsf@localhost> <8735nsv9qo.fsf@nicolasgoaziou.fr> <87mtm09xzf.fsf@localhost> <87zgq02ueq.fsf@nicolasgoaziou.fr> <87h7c89rqr.fsf@localhost> <874k86y997.fsf@nicolasgoaziou.fr> Date: Sun, 21 Nov 2021 17:28:57 +0800 Message-ID: <87v90lzwkm.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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_ENVFROM_END_DIGIT=0.25, 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: , Cc: Max Nikulin , emacs-orgmode@gnu.org 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=1637486915; 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=cZABJmeSmXF+yGAO2twhk++Bqc5HeOpFsFhqotE0XwQ=; b=Fx7trpO1ZwOJDGazjvneZEtaPxDAhqzlHI8Cg7kcvsosydAkqAS2kZDJPPlD/g9kS9lRB1 X5Ih6VnZoj2yGbHojXCZpn6XnBi3a5yjL6hljlSpFY7DLUdHPKo8K8Ao/HB5E2heSoWKPP zUQmDmFTtPc7l0qpy93tk3bhRakRWEq6oZnTaAW16/WOUu0w5sPgKlNhGAJLrDNkrErmxS uy81oxP9QMKqoBi/90jQ/YPOsjDxyNISqvogNep/pvIgFalHYqgO9jZIqxDWLEakjp/bCR pGrUxX0bF2WnxJbcyhpUZq6cMN/cjciOM6Nmf/rMNrsZK09dFCf8UbzBrFgk+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637486915; a=rsa-sha256; cv=none; b=RX1Ukji7+++ZRSdLobr+a4rY1Ph+00WQYqX7a+Z+qkxfcxPLJ0lQFKWz5dlj/KXWuwkbqk sSICzXdYQCaeVr8/FY8FQPH3oVOwyHVNnvdfVFOL0Rg2GE0O0wEoJGgASpeBQHvQLFQwdt gITl+M0h1uaWfSSzWL0iNLEpcOdqBFZlfYe34VxD/QHwF7ZIEGTwngu978riCrzuRUH66k FNdA0IU4snZxW16gflwFdwgYVOszUkQTqIPq5GPpSD9Jh764swP4j8TGmJnoglmhz/oG2j ogAzpm78kbh1PLrDXZ4utFbt2bjVibngLu30etDJ59cSo+0auXEm+/lXYnjRmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZcasIg6B; 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: -3.58 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZcasIg6B; 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: E5D252C108 X-Spam-Score: -3.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: V4UOVLyvXUU7 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Thanks for the update, and apologies in advance for being bold, as > I have some additional comments about it. Constructive critics and suggestions are always welcome. And we do not have pressing deadlines here :) >> * doc/org-manual.org (Emphasis and Monospace): Advice users to insert >> zero width space when Org does not parse emphasized text correctly. > > Org _does_ parse emphasized text correctly. It may be seen as > unintuitive, but it's really a fontification problem. Anyway, this is > just a commit message=E2=80=A6 Agree. It just that the example in the patch _feels_ wrong considering intuitive definition of verbatim borrowed from LaTeX. Commit messages are also important, especially years later. I updated the commit message in the attached new version of the patch. > Thinking about it a bit more, you might be right: we may slightly change > the closing part of the emphasis regexp, e.g.: > > (seq > (not space) > (group ,mark) > (or (any space ?- ?') > (and (any ?. ?, ?\; ?: ?! ?? ?\" ?\) ?\} ?\\ ?\[) (or space line-e= nd)) > line-end)) > > The logic behind this is that in regular text, we assume usual > punctuation rules apply. This will fail for "*Bold*?!" or "/Italics/!!!" Also, is there any reason why we are not simply using punctuation character class instead of listing punctuation chars explicitly (and only for English)? What about "_=E4=BD=A0=E5=8F=AB=E4=BB=80=E4=B9=88=E5=90= =8D=E5=AD=97_=EF=BC=9F" Maybe just (seq (not space) (group ,mark) (0+ (in punctuation)) (or space line-end)) > My concern is that the more complicated is the rule, the more difficult > it is to predict. Also, we introduce new corner case, e.g., > > Woot! I just released Org *10*.0! > > So, I'm not totally convinced it is worth the trouble. I am not sure if "Org *10*.0" is a good general example. It is probably one of those cases when users want fine control over emphasis and must use zero width space. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org-manual.org-Clarify-how-to-handle-markup-ambiguit.patch >From 9ad522e8d1f1184ef097611fc30b326b08d5b432 Mon Sep 17 00:00:00 2001 Message-Id: <9ad522e8d1f1184ef097611fc30b326b08d5b432.1637486504.git.yantar92@gmail.com> From: Ihor Radchenko Date: Fri, 19 Nov 2021 19:27:56 +0800 Subject: [PATCH] org-manual.org: Clarify how to handle markup ambiguity * doc/org-manual.org (Emphasis and Monospace): Advice users to insert zero width space to force Org ignore emphasis markers. --- doc/org-manual.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/org-manual.org b/doc/org-manual.org index 1d0213934..19f42fc77 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -10818,6 +10818,18 @@ ** Emphasis and Monospace ~org-fontify-emphasized-text~ to ~nil~. To narrow down the list of available markup syntax, you can customize ~org-emphasis-alist~. +Sometimes, when marked text also contains the marker character itself, +the result may be unsettling. For example, + +#+begin_example +/One may expect this whole sentence to be italicized, but the +following ~user/?variable~ contains =/= character, which effectively +stops emphasis there./ +#+end_example + +You can use zero width space to help Org sorting out the ambiguity. +See [[*Escape Character]] for more details. + ** Subscripts and Superscripts :PROPERTIES: :DESCRIPTION: Simple syntax for raising/lowering text. -- 2.32.0 --=-=-=--