From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8JZ7Ar7lzmELPgAAgWs5BA (envelope-from ) for ; Fri, 31 Dec 2021 12:13:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EGRzO73lzmGKQwEA9RJhRA (envelope-from ) for ; Fri, 31 Dec 2021 12:13:01 +0100 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 9DDC12F5EA for ; Fri, 31 Dec 2021 12:13:01 +0100 (CET) Received: from localhost ([::1]:40384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3FqG-0006zJ-Nx for larch@yhetil.org; Fri, 31 Dec 2021 06:13:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3Fpp-0006ys-Pv for emacs-orgmode@gnu.org; Fri, 31 Dec 2021 06:12:33 -0500 Received: from [2a00:1450:4864:20::331] (port=34532 helo=mail-wm1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3Fpo-0004Tf-6l for emacs-orgmode@gnu.org; Fri, 31 Dec 2021 06:12:33 -0500 Received: by mail-wm1-x331.google.com with SMTP id bg19-20020a05600c3c9300b0034565e837b6so8546538wmb.1 for ; Fri, 31 Dec 2021 03:12:31 -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:content-transfer-encoding; bh=Bgd6QRk1giyVSAVbwLNUObtDjyV6PIufZTMMgJvColg=; b=X0usgALYGGTOilZGIKwhs2FVK6VpMegokY2K2cFZ2oyrDiJRFfsetJDyENOCPKPRaQ Z8dBJy/j+7sPjtw7k3DCSYtDNacYJQgo8YTbpDxgBuEBLz6gbD3D29/Juc5UAY543fB0 WVL7AqssstDZOvyDBA6nP1LjP0jUDjnDM7GRXkKzCqr9MdTpLe9MbiHOZI/OmT8JTWfY /Ampb6XzYwqNF0HGAgdlAngPlTDz6wfCh18FaJBfmR8lcg9B91ZpOJ2aXrQ/z0qZ7Z2F KDfKSZPXnfrEx8n9qcz6+rwxQ6+gZTuu2KbqO8KLu0i9LisoQZpW0yTqwOFMpN2HDOT2 J2dQ== 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:content-transfer-encoding; bh=Bgd6QRk1giyVSAVbwLNUObtDjyV6PIufZTMMgJvColg=; b=yOfyeq6manZOzRCyGf9UNZX949vytc9/FAIfsff5qcsDH9Hjf1lbxIzQy9q/9HJoTS y0OyG+4u5pGs91y0PUAExoiwPo01AjF5OyaJzxQrXnXYXtYaYd8eB9tTwX3DJrcvjxPp rqL5nDWWOHxryHMFQS9ToxEbYgUH7ifac+gK1+r89U8A0ejoNrFrZUFbsKq/csO40bJo hU/e4H9LRVK14JXgAbcvXIkPKCGXlCTBsAKdtdDMYRk/1wrfkt7UigLMwrISWOuE2Eem JQW/F0+sS2T5YbfJAAjyYEGfAdlRclLsUNNnAhSTmRAdmWC4sk473enGnDx+QqkQa65L HfqQ== X-Gm-Message-State: AOAM5308FSOUd40TQgh0G07NMctkp1ctO9gCular0mt2vws54ai+j7G+ ttkFTSnSNShDscFSAk/nV5I= X-Google-Smtp-Source: ABdhPJza3tsm/FXnuY58c1JG6bi4dl9QdgooFr845Q6Mf6DiQJMIzlQT04fVsUrKp8KaOEavSyA/dA== X-Received: by 2002:a05:600c:2304:: with SMTP id 4mr29500297wmo.71.1640949150786; Fri, 31 Dec 2021 03:12:30 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id t15sm4019918wrz.82.2021.12.31.03.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Dec 2021 03:12:30 -0800 (PST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: [BUG] Underlined text in parentheses is not exported correctly In-Reply-To: <874k6p3wtq.fsf@posteo.net> References: <874k6p3wtq.fsf@posteo.net> Date: Fri, 31 Dec 2021 19:13:51 +0800 Message-ID: <87czld58nk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::331 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=yantar92@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) 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, 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: orgmode 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=1640949181; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Bgd6QRk1giyVSAVbwLNUObtDjyV6PIufZTMMgJvColg=; b=DgsKJ1eIEmwrVzXnXsm0UcQy9PJRZNH0oK+VRbvwrNMp0Gg/jdNi2Sc0j4UyyFbnXox1j0 Sr3Os/I25/epvG5Zj7uo834eCKBb2wgLGnZp7WAChj1LjmFCX1BB7ylQVndZ/FbGEMj/ds mVCwE6GVD8/1pkdupgxw436QJ8H6y61wgY7uCyGcAsygo6iRWT+C4/wmsNE8ryWlwjWwBW kUX1+X6mDGweJu1u1Ocx48j+WzKmt3LHR3jITwLGXgHtaCi5RAzuI++xXXAvYxOC/a7Z+1 dclO9KB+mTFNOEvYqF7alXs6kDFhT+58iDuPMayXCorOBCEDJH7mZKw1lOyi6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640949181; a=rsa-sha256; cv=none; b=WPOEmQWEkAFqch4dYPfdDIEfgHvV6hW+1q2TXVQfY6S74ZHaRE1QEsPFdJAFc6Lou573ar BhQkYXLRwJwX04Fwp3oh77n83Wx6GQsa4a4DGJATTtmWDTvTMwHJ9qQOIbNzrxR2OHTPZK BuJ5fPksMdz3zi2KQpvlQyZSV2lfWqWhhMf3XOXW6mbzWQVbp0ok9bEnKQcWrlDKrHxPSN 4/4DF+62t60xTqY+PuBhLlDPvxOl1x0BxJv6S1pPm9ARNLCwFgHl/thbdkoEgm/FyGpim1 Ps672YUkpog6nxFO3ivEXuahSTHsW39Z07POeICQfonQ6l0UuV+TV41+ln2jfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=X0usgALY; 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.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=X0usgALY; 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: 9DDC12F5EA X-Spam-Score: -3.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: E3ZffbIX7kXR Juan Manuel Mac=C3=ADas writes: > I don't know if this is a known issue... > > Consider the text: > > (_underline_) I am not sure if it is an actual issue. Note that (_u can be interpreted as a subscript. Org prioritises subscript over underline. Looking at the code: (?_ (or (and (memq 'subscript restriction) (org-element-subscript-parser)) (and (memq 'underline restriction) (org-element-underline-parser)))) The priority appears to be intentional. Unless Nicolas (the author of this code) sees anything wrong here, I recommend you to use zero-width space in front of the first _ to make sure that you obtain underline, not subscripts (see https://orgmode.org/manual/Escape-Character.html#Escape-Character) P.S. Note that the fontification you observe in Org is wrong. It is not how the actual exporter sees the text. I am sorry about this. Fixing the fontification is a work-in-progress. Best, Ihor