From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aIYYCP2nsGJKNAEAbAwnHQ (envelope-from ) for ; Mon, 20 Jun 2022 19:01:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YJQICP2nsGKjfQAAauVa8A (envelope-from ) for ; Mon, 20 Jun 2022 19:01:49 +0200 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 CA05C2CA38 for ; Mon, 20 Jun 2022 19:01:48 +0200 (CEST) Received: from localhost ([::1]:60976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3KF3-00047P-29 for larch@yhetil.org; Mon, 20 Jun 2022 12:27:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3KDe-000453-JX for emacs-orgmode@gnu.org; Mon, 20 Jun 2022 12:25:42 -0400 Received: from ciao.gmane.io ([116.202.254.214]:55638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3KDc-0004xs-Qy for emacs-orgmode@gnu.org; Mon, 20 Jun 2022 12:25:42 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1o3KDa-00069l-Hf for emacs-orgmode@gnu.org; Mon, 20 Jun 2022 18:25:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: [BUG] manual: confusing example of adding attributes to a link (affiliated keywords) Date: Mon, 20 Jun 2022 23:25:29 +0700 Message-ID: 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.9.1 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: 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.249, 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655744508; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=qBOfhxBtqcdjYO+OA/zBAD6RPHUrt2tGYckOTQmPthg=; b=YNY0kyjB3OIpMmnvdPj5sS2192n+/DsYzKr6gWMxYMvVhsORv/u0/iBGW2hvTCjLDzUo6h 1ddJmkSGnfsEj7ROQSbAAdR9HjRjQpZ0yFUqrvZekPhRjQj7GlSFU9Vk/rs97SfIsp+HtY Ce8+92OWSSrDnbd6LM/8LOtxOtN9uszNRQ8dg4qfj2Tvw3WxEOawFaLMKmog+7h0z5mqP6 6NS57zwv47rvroaKDVRq+QmbFGZAyaX6AZEdRmzQu8uV3rR++o/eG/8dARonwKtB7CLSCh T0yd/jnQSRP93OdcKf75+zB2ZZ4SUpHHjGwYBVqw91uit5mCG1wBbVRqEHNpGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655744508; a=rsa-sha256; cv=none; b=VHFN8BojNQ/lRzZFmMhZD41Kv5EdMNI00lrZteAsKWykD0nCaIb5k2hSRowxHrNwmkJddW lxfnGqNTPvMM4kI84yKT6FmOobbQHWIojk3cqrsbcbm3E94IHomftH7pQM/Wyk1b9OJ3ye SD4tPGCGY93qUtwXOuMs9GY+KwNvuxHpno2JR3WVDQ66lw+wN46tMywLAhNs/pYZRK4OOK 92sD49kw/SVDWWxFV1G4yKD/NwRE6BcMQUFMz9allKoL67pT4v2wHjXQDBCO+qGt1nlwZr M6NogIlOh3DBgPvSOsUSmZvXJgRZqxRXBWQjOeOq26VopMKlfd6CEO+QIABXww== 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: 5.93 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: CA05C2CA38 X-Spam-Score: 5.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6dplw0cYK7sZ Hi, Org Manual in info "(org) Links in HTML export" https://orgmode.org/manual/Links-in-HTML-export.html has the following example: > Org files can also have special directives to the HTML export > back-end. For example, by using ‘#+ATTR_HTML’ lines to specify new > format attributes to or tags. This example shows changing > the link’s title and style: > > #+ATTR_HTML: :title The Org mode homepage :style color:red; > [[https://orgmode.org]] Likely I have seen similar suggestions in this list as well. Actually it assigns attribute to paragraphs in addition to links. That is why, I think, this fragment should be removed from manual as a confusing one since it gives impression of support of per-link attributes. Attributes assigned through affiliated keywords belongs to paragraph (block-level element), not to link (inline object). Actual result of export:

https://orgmode.org

If it were possible to set attributes to links, the result should be

https://orgmode.org

The reason of my expectation is that a paragraph may have more than one link with different titles. I am unsure if formal bug report will help. I promised it in the following discussion: Max Nikulin to emacs-orgmode. Re: Org-syntax: Intra-word markup. Thu, 3 Feb 2022 19:10:19 +0700. https://list.orgmode.org/stggnf$d8g$1@ciao.gmane.io A similar complain: Anton Linevych. How to add extra attributes to link in Org-mode? 2017-06-21 https://linevi.ch/en/org-link-extra-attrs.html The reason why I have decided to post this bug report now is the following message: Juan Manuel Macías to emacs-orgmode. Re: About 'inline special blocks' Sun, 19 Jun 2022 12:47:40 +0000. https://list.orgmode.org/875ykwvmz7.fsf@posteo.net It states that styles and similar stuff may solve the issue with attributes for inline objects. From my point of view it is wrong and in some cases per-object attributes are necessary. While or may be added through style, attributes like "alt" for images, "title", "lang", etc. for links are individual. I am aware of the following post: J. Kitchin. Extending the org-mode link syntax with attributes. 2015-02-05 http://kitchingroup.cheme.cmu.edu/blog/2015/02/05/Extending-the-org-mode-link-syntax-with-attributes/ The recipe solves the problem, but this time the topic of inline special blocks has been risen in the context of limitations in Org markup making it inappropriate tool for GNU manuals in general and the Org manual in particular. So some more general solution is required than local customization. So as outcome for this bug report I expect that either caveats related to affiliated keywords are clearly stated in the manual or some "official" way to assign attributes for specific inline objects is introduced.