From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6Hi+JoBoq2FEjQAAgWs5BA (envelope-from ) for ; Sat, 04 Dec 2021 14:09:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +HR1IoBoq2GmJAAA1q6Kng (envelope-from ) for ; Sat, 04 Dec 2021 13:09:20 +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 49EAD3394B for ; Sat, 4 Dec 2021 14:09:20 +0100 (CET) Received: from localhost ([::1]:49414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtUn1-000142-Dh for larch@yhetil.org; Sat, 04 Dec 2021 08:09:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtUll-00013Q-P7 for emacs-orgmode@gnu.org; Sat, 04 Dec 2021 08:08:01 -0500 Received: from ciao.gmane.io ([116.202.254.214]:34324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtUlk-0004vk-Bp for emacs-orgmode@gnu.org; Sat, 04 Dec 2021 08:08:01 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mtUlh-0004SH-Qz for emacs-orgmode@gnu.org; Sat, 04 Dec 2021 14:07:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Org-syntax: emphasis and not English punctuation Date: Sat, 4 Dec 2021 20:07:49 +0700 Message-ID: References: <4897bc60-b74f-ccfd-e13e-9b89a1194fdf@mailbox.org> <87fsrbp673.fsf@gmail.com> <1ef0e093-c165-2a5f-954d-6a33b64c8ee9@mailbox.org> <87r1avgnpi.fsf@localhost> <87czmekem4.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <87czmekem4.fsf@posteo.net> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 18 X-Spam_score: 1.8 X-Spam_bar: + X-Spam_report: (1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-1.011, NML_ADSP_CUSTOM_MED=0.9, 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=1638623360; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=JWobhNGIRD287i6umFrCEj/lWrH9o9GC7du1UenWVu0=; b=B6AueKNoEgjb8Ln2bp/qkxcKIwEmPLkqtqFEiOtHMhjO1Vk53zGods9s29amH1nYqE1ZAD 01bjF+giNBuZhUKeooEQLaw+YzwyS2pYED+H0yYVkjiunpqIEvYcyI7DRH95JWgaHwRpgW dG3eF9VBt8FbYUSUYHgcLV/vquB+vCOaRSBdyukCxLjLjOYxkmMGyX1X4Mm//ustrs/PEY aNWp4Avp3P/+b5XK8a4pevlmuUzXVZ8KU/Wf3uF9Ymu58H4yxc6qg5MavE/pJuqqKRN3ce 7N9+yIxI9KHOAE5oIRRICaoz9ozeklPAqAoHFFwSp7XJawRsZxIk2rLNVQ7P+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638623360; a=rsa-sha256; cv=none; b=AjWhiP/xPI81XGMjHRCNPSrY2lF/rRCddVW/gfsh8/ejAa8uypkKVJNru3PrsV37Dn3V4e z8YfRbLQs/8EnVrIQNFEM9Q/Gd0Ahv8bY7XIDTZHo0DD32D34/FfvSZ5uUjaJAd3IbDmn8 5qIv3+Pa5C9dfpYbO5X505qmjVup7KiZ0K7pqmhzE16serEcQmJRxeHUgbKGb2MRpGdTtO xmXWnXEPSq1FZx52j0OVibtCl0BuoxXs5bYZyb/bA0NkUGXXlvdqSdA+8TYNoVwx/fbh29 KfZVA7J8nGmGO6IqFbR6xq6GgPwtY7aJgT82AH5c+6/Jy/MdnbFos3rBOxdK+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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.33 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: 49EAD3394B X-Spam-Score: -2.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: BDJs+reSDtDs On 03/12/2021 02:09, Juan Manuel Macías wrote: > > I believe, that emphasis marks are a part of Org that can be very > shocking to new users. I mean, there is a series of behaviors that seem > obvious and trivial in the emphasized text, but that in Org are not > possible out of the box, unless you configure > `org-emphasis-regexp-components'. Three quick examples. This in Org is > not possible out of the box: > > #+begin_example > [/emphasis/] > ¡/emphasis/! > ¿/Emphasis/? > #+end_example Maybe this issue should be considered independently of itra-word emphasis. Second and third examples looks like they should be supported. Ihor mentioned treating punctuation in a more general way. It requires rich test set to estimate changes in heuristics. I suspect some problems since start and end patterns are not symmetric and I have not found a way to specify in regexp only punctuation marks that normally appears in front of words. Square brackets likely should be excluded somehow as well since they are part of Org syntax. I am unsure if it is possible to use just regexp without additional checks of candidates. Ihor Radchenko. [PATCH] Re: c47b535bb origin/main org-element: Remove dependency on ‘org-emphasis-regexp-components’ Sun, 21 Nov 2021 17:28:57 +0800. https://list.orgmode.org/87v90lzwkm.fsf@localhost