From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qDDhCdvG+2GmMAAAgWs5BA (envelope-from ) for ; Thu, 03 Feb 2022 13:13:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wF1TB9vG+2Ff9gAA9RJhRA (envelope-from ) for ; Thu, 03 Feb 2022 13:13:15 +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 9DDC627BD9 for ; Thu, 3 Feb 2022 13:13:14 +0100 (CET) Received: from localhost ([::1]:37510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFazB-0004uE-Sa for larch@yhetil.org; Thu, 03 Feb 2022 07:13:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFax6-00046C-27 for emacs-orgmode@gnu.org; Thu, 03 Feb 2022 07:11:11 -0500 Received: from ciao.gmane.io ([116.202.254.214]:47550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFawc-0003q0-6I for emacs-orgmode@gnu.org; Thu, 03 Feb 2022 07:10:41 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nFawX-0003je-2E for emacs-orgmode@gnu.org; Thu, 03 Feb 2022 13:10:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Org-syntax: Intra-word markup Date: Thu, 3 Feb 2022 19:10:19 +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> <878rx2bzhw.fsf@nicolasgoaziou.fr> <9525e029-a590-3f48-df64-ffb9176075d9@mailbox.org> <87v904nq6t.fsf@gmail.com> <868df76e-69e0-1d14-ae8a-13b746982fcf@gmail.com> <87zgnfgros.fsf@localhost> <871r0q8zg6.fsf@posteo.net> <87k0edqbqa.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:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: <87k0edqbqa.fsf@posteo.net> 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: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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=1643890394; 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=UnrjNTNUEW1pY6LQp+/OG/XJz+PF9bSBni6/2SoRvdQ=; b=BRs7ydiNbXbhlBA7YbSgbqz0zEtUXALkhVbTkf5na6nu6AKEuhk5fg68nTD4JEeAQPiuLC y8vR8a4kdaT490YsTz+diz64K8OsSt0TjioRYJL3EcElLSi90vFUePfRZsgX1po+Wwhd7g hjlHnDWtPSpS7U9FMk1EecgKB6AiqOYVjU3Fx+EpvwXVdFfRm4HcskxdU3n+PciHYus7U8 jFDdqxHcv4yfEflff6Ad0+cboTWAKswlabBRnHgXX2J6W7iUEE/O0k9TNKnlR/E2g6RYLZ /BchNP68Smls9QHiEdiElPF0q7N0nr02vM0wAio4RiR/CamCPUIo22QwumG3sA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643890394; a=rsa-sha256; cv=none; b=cFEdOJU7Uk7yuZs+ZU9lqfFdKSTLk+Xoc7Re8S1HE1mLvLYm/DnfQIAEduSlPgw3Z/gfbp 5ukvrCPkMqFEo7e763XyrDkYddZ1OoQ0d/iKlilQTFVzBBzwJ+pS4fBhv19Lm0XixZH6lp qPrqO8O0DjwRkw9yBIP6Shf84mNsNAAg0SMKfJ9kwf4AA9yzEeiepMzm3P8/LoRFxNr7Zm dnxppi0OB5I7xllXIhOG9surZHnRMh4P4JQmr7QQi9TUjkMCoHdQOX9FJmUVQzeO+8oCpn meSbDttC1Z7+0g9UjeMf+UIvi7UIlPXVNlPBv2K3bsFVBRhrhj7F578yUIOFhw== 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: -3.03 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: 9DDC627BD9 X-Spam-Score: -3.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: ODt8UnP/EDBQ On 03/02/2022 03:01, Juan Manuel MacĂ­as wrote: > Max Nikulin writes: > >> ATTR_X attributes are supported for links as well, see >> info "(org) Links in HTML export" >> https://orgmode.org/manual/Links-in-HTML-export.html >> However it is rather verbose, may have problems with LaTeX, and I am >> unsure if they can be accessed from export link handlers > > Yes, I know. I use a lot in my blogs constructions of this type: > > #+ATTR_HTML: :target _blank > some link... I just have realized that example in the manual does not work. I will start a new thread. Attributes are assigned to paragraph, not to the link: #+ATTR_HTML: :title The Org mode homepage :style color:red; [[https://orgmode.org]]

https://orgmode.org

> But, as far as I know, its use is line-oriented. I mean, you can't use > multiple ATTR_X constructs inside a paragraph and for different links > inside the paragraph. Thank you, I confused issues related to export when keywords and export blocks are used. For some reason I believed that affiliated keywords have a dedicated section in https://orgmode.org/worg/dev/org-syntax.html because they can be applied to inline objects, but you are right, they set property for next block-level element. Attributes from several lines are combined however. The following snippets illustrates bugs in LaTeX exporter that I remember from an earlier discussion: ---- >8 ---- This is a single paragraph in LaTeX export, but 3 HTML paragraphs. First link (with =rel= attribute) is to #+attr_html: :rel nofollow :title Org Mode web site [[https://orgmode.org/][Org Mode]]. Another one is to #+attr_html: :rel noopener #+attr_html: :title GNU web site [[https://www.gnu.org/][GNU]]. Both links have =title= HTML attributes. This is single paragraph in HTML @@odt:@@ but 2 paragraphs in LaTeX. ---- 8< ---- This is a single paragraph in \LaTeX{} export, but 3 HTML paragraphs. First link (with \texttt{rel} attribute) is to \href{https://orgmode.org/}{Org Mode}. Another one is to \href{https://www.gnu.org/}{GNU}. Both links have \texttt{title} HTML attributes. This is single paragraph in HTML but 2 paragraphs in \LaTeX{}. ---- >8 ----

This is a single paragraph in LaTeX export, but 3 HTML paragraphs. First link (with rel attribute) is to

Org Mode. Another one is to

GNU. Both links have title HTML attributes.

This is single paragraph in HTML but 2 paragraphs in LaTeX.