From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uNmcA2G3fWXjAQAAkFu2QA (envelope-from ) for ; Sat, 16 Dec 2023 15:42:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +DWQAGG3fWWLIwEAqHPOHw (envelope-from ) for ; Sat, 16 Dec 2023 15:42:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QsP7sFJ6; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702737760; 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=eKgqLBrt3jnyquidOa47YzfbCplVcFp5IadknPGuntM=; b=dQB62OI3M41PdetY+Yx66tobW10YYNMJfLalcupb7+6Xhu32omY32tHRqdzM/OQcA8Z+eH UWYKkM9YvWfZnerlly9yO8Y6MwcinrvrGFBswjfomGFTpF5mlDpbJY2LKh6N40at/wjbNH SmmucG5oyPdyAL97eOMc3ELjh1zLlChgIUUOwpRj7n+bPs8bceh9IUpnESS7fKxdfOeWlQ pSknU3Iby4idbtYNXXqBW+VrWSg5RwSD3cRChwYYO+zsgUzZtynAU8EmkQPBHXq7ehRZwt lY06BCzLOsaESa7ME3P5szT7dFu0fjXtdcDTz59OlgKgMDJnZKX/DBzYzw/amg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QsP7sFJ6; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702737760; a=rsa-sha256; cv=none; b=GW6WppxIUxW/weUm/bSTPjfuHSSi0VO41tol+yboo90f0IbzrXciMtCvrVYSXMp840yv5z z3Erx6VncDzi1bABUa083DHj4tSrLtQeUdeOGzW1dqFnASaBV6Otq4vEsv0hu76uaw0HOP iuQbVsZ4HfuB8IH/ZV/zikyFA5gAOBVYAhyBY11uyM9N2owLfLKKwNHSawkt+fp8LwsaFa pfcY/v6Rmxg75Z5va0p7JOU47qd+rtTQiV2Zuqzy03zLdrypYZLeAihQeGOMejMJ2n9TUT OFR/1Iuhnq/RZf6nEkmPj04cEQ/xX6KyQ+/Tt9QOBr3y78596tXWehdeqsG52g== 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 548B9148B0 for ; Sat, 16 Dec 2023 15:42:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEVrF-0004HU-SY; Sat, 16 Dec 2023 09:41:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEVrE-0004HG-71 for emacs-orgmode@gnu.org; Sat, 16 Dec 2023 09:41:36 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEVrB-0005oV-Mq for emacs-orgmode@gnu.org; Sat, 16 Dec 2023 09:41:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4C436240031 for ; Sat, 16 Dec 2023 15:41:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702737689; bh=eKgqLBrt3jnyquidOa47YzfbCplVcFp5IadknPGuntM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=QsP7sFJ6cELMKdzS8iCG5GmqOcENtJi92rZRh9dnMwXFR/nntyN6m2YBZfmGWidwE tXj/KathzoPWmcTA46w9do86+QkYe62oQO4s55aWLAbD+yYl80I5+aldaYt9CK7Uk1 wmN/82i/f2XjEP09E4uelbiUjH1q6lanB9LxsZAN/5A0uz6OGQ2riznK343vhhqsAK 3hB/bgPy9mG2X6uxwEMXdVYxO5oDGef8swxVBiq9QQ4OaddiI9O+s7ax9vBDSWDtl4 HOB5bmh/4XoMwbIL20NBzCa+5PuQilDAm8ZiLl+0VXTOICqvfI8Qfa2Lo1HwPsX+ld dvDtIo8KxsGDg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SspgX4PyRz9rxF; Sat, 16 Dec 2023 15:41:28 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Links & images with different attributes in the same paragraph In-Reply-To: References: <87lea8vk1i.fsf@localhost> <871qbr7e5s.fsf@localhost> <878r5wq03g.fsf@localhost> Date: Sat, 16 Dec 2023 14:44:38 +0000 Message-ID: <878r5ucill.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.28 X-Spam-Score: -4.28 X-Migadu-Queue-Id: 548B9148B0 X-TUID: rT4nOKvmbwdF Max Nikulin writes: >> @wrap{{outer wrap; @wrap{{inner wrap allowing } as well}}; back}}. > > Are you assuming invisible zero-width space as a way to escape literal=20 > {{ or }}? I would prefer some visible characters. No, not zero-width space. Literally, {{...}}. The idea is to define delimiters as "[{]+" the matching number of "}". This way, we do not need to worry about escaping "}" inside and can get nested markup for free. It is more or less how Org parser works for special block: the opening delimiter is #+begin_whatever is matched against #+end_. Also, see https://list.orgmode.org/orgmode/87mtaez8do.fsf@localhost/ with my original proposal and some discussion that followed up. >> What about @wrap[#+attr_html: :alt "Text"]{[[/path/to/image]]}? > > Leaving aside precise syntax (that perhaps should be discussed in=20 > another thread), it solves the issue. > > Do you have any idea how to address the following complain? > > https://list.orgmode.org/orgmode/875ykwvmz7.fsf@posteo.net > Juan Manuel Mac=C3=ADas. Re: About 'inline special blocks' Sun, 19 Jun 20= 22=20 > 12:47:40 +0000 >> Bringing that into the paragraph is >> unnecessarily overloading the paragraph and breaking the social contract >> of lightweight markup, where paragraphs should still look like >> paragraphs. > > I consider it as a valid point, so I tried to take advantage of noweb=20 > features. I am in doubts concerning *evaluation* of expressions in=20 > addition to just substitutions. It allows to implement another kind of=20 > #+link: macro, but it gives too much power to my taste. I am pretty sure that I replied to that concern raised in a parallel thread. My idea was to allow macro replacement inside attributes: #+macro: alt #+attr_html :alt $1 What about @wrap[<<>>]{[[/path/to/image]]} Or even inline definition like #+@macro: alt @wrap[@+attr_html :alt $1] What about @alt[Text]{[[/path/to/image]]} --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at