From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GABYDaX9G2b4+AAA62LTzQ:P1 (envelope-from ) for ; Sun, 14 Apr 2024 18:00:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GABYDaX9G2b4+AAA62LTzQ (envelope-from ) for ; Sun, 14 Apr 2024 18:00:37 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ricklupton.name header.s=fm1 header.b="O XB7Lfd"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=CgA31eGy; dmarc=pass (policy=none) header.from=ricklupton.name; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713110437; a=rsa-sha256; cv=none; b=ePgbZQQZjLcx3Is98h3DOGZnAOb8E0KTdaGQTHyXoo1RZoeaggeYOtRctEMvS3GLZ0w88g rICrzX+Ijdx56O/GePj4vV0hyQc0z6wwaG5RR9vvHdndXEMrAjJ9tDk/1drowuO/3XsW+k vdw1YvuBHNSx56mrGsAoq7b5vo4Uu2llVnH7MVVYz8+CTC05q0YubL6bWALmQtvXR/lYRL 2BY4ACkUEEvB7L0I+EbE/lcthBPkwZcdTS77/YDukLRw1j+kFUEn8yPnl7PFjk11J4X/kR OyRfLEE6nTjWn8sTqs2825YWg+oYyFkZgv1ql1MDENt2E5SN5upcc0OGEqAl/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ricklupton.name header.s=fm1 header.b="O XB7Lfd"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=CgA31eGy; dmarc=pass (policy=none) header.from=ricklupton.name; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713110437; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4QkLfu4cMC8ELDePOXjMs8smRoaNVurMTk2LLxS/3uk=; b=K5/TFx+5uc+hrBM+45LrjhgpZmRu2cI0PsZclwP8NPM4Wpk8QGrtcmT2BDOwHNkMMFVlnA Kx00H4MXx5Tv/35R+SN7UuMJp/aCO16wI1ZE6U3oWrpHiBlHW2fKR8kLe5R4nG4Cmyvpvb ObHUehtwsnBYoMeGeZan6zgKcHW2kFbbXn2YLsikNX6oGQ/tPTDYZL5Nit0uDFo9crrimI Sc+r82IsGHn+rvoN0vsTMNcRdMbclQqeWf+J7ndIJBC9htoySmm9rNNb2ZNM+ZmBygfumE OukTVRoKZ0qxn+0spwtuGD2wkROnB6qUuKooXRkyU04rb4xEk15h2pkhLb2cmw== 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 C3E3671487 for ; Sun, 14 Apr 2024 18:00:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw2GY-0004YE-3q; Sun, 14 Apr 2024 11:59:38 -0400 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 1rw2GW-0004Xo-9N for emacs-orgmode@gnu.org; Sun, 14 Apr 2024 11:59:36 -0400 Received: from wfhigh7-smtp.messagingengine.com ([64.147.123.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw2GU-00027S-Id for emacs-orgmode@gnu.org; Sun, 14 Apr 2024 11:59:36 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id D5FDF1800076; Sun, 14 Apr 2024 11:59:30 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute2.internal (MEProxy); Sun, 14 Apr 2024 11:59:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ricklupton.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1713110370; x= 1713196770; bh=4QkLfu4cMC8ELDePOXjMs8smRoaNVurMTk2LLxS/3uk=; b=O XB7LfdwsN4L0FxqarqW/dmrZevyAnRW5h1hMRWVJ1DMa8DYJjntVXquYcHlt0jwg dX6oWC/Z+4FI/8xXd6yARr2E0BXBjvpV4cMYZYmtGGI6g+7syFPaWRslSh9jdBbs 7SnwEGDWRmayXtKdmOd2YKzTbetWT86c509ZDGl6K4Si2xhSd0LW5Y+cr3DEFBgc AQVeC/VqVPB9oVOVrIPOhnsL/rDWUbvSxW3E3xpdRS+lU3kAqbbFz8x1cTb0vJ2c 4D7/mH9Q0xK96Gw9hto7az0zSgKkPvBecpRisM0GMx1ZyyIZeHlEZ8QHvRJpMnAR /9I5TIKR87puVIe+LGP9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1713110370; x=1713196770; bh=4QkLfu4cMC8ELDePOXjMs8smRoaN VurMTk2LLxS/3uk=; b=CgA31eGyh8GXSnCSAKGgUS7uf4RFabnHAx5EfWksCIzG 5WKkbOMzfgg4G355djz5Y2Xgzx8r20wuYs1JwVJC4DztJMyBBw2suxCl6al7rgvZ dJFtHl6T4tZAaddsuYCMQjvxy8M5Brkd18fztoU9eozluu+Dmq/lWR4fUKS/D+Yp 71wcLtfNROMEjNna3aXu7YhQF+uuReN2NW4v52YV6M/vNvXsqQONulOOFFxpunQK pZn9rvqOTnbjje8ZllAB9+vVrAykV+Ae2GT9SNpEfb5elTNeT4/XZq3Q9LL+Gga8 BsmKRPocCMIbgv0M5w8kixn8dDLV4WiexEmBzsNqxg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeiledgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftfhi tghkucfnuhhpthhonhdfuceomhgrihhlsehrihgtkhhluhhpthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeffvefhhfdvueeuueeuteeugfffjeefgeelteejvdeiueetffej ffekjeevhefgieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehmrghilhesrhhitghklhhuphhtohhnrdhnrghmvg X-ME-Proxy: Feedback-ID: i0143436f:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1B17C1700093; Sun, 14 Apr 2024 11:59:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 MIME-Version: 1.0 Message-Id: In-Reply-To: <875xwqj4tl.fsf@localhost> References: <87wmql6690.fsf@posteo.net> <875xwqj4tl.fsf@localhost> Date: Sun, 14 Apr 2024 16:59:09 +0100 From: "Rick Lupton" To: "Ihor Radchenko" , =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Cc: "Y. E." Subject: Attributes on images (was:: Experimental public branch for inline special blocks) Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.158; envelope-from=mail@ricklupton.name; helo=wfhigh7-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.98 X-Migadu-Queue-Id: C3E3671487 X-Migadu-Spam-Score: -6.98 X-Migadu-Scanner: mx10.migadu.com X-TUID: 8GaFLiE0JB/g Thanks for taking the time to comment thoroughly on this which seems generally like it would be a good improvement. On Tue, 9 Apr 2024, at 9:52 AM, Ihor Radchenko wrote: > 2. Allow attaching auxiliary attributes to the on object level, as an > equivalent of affiliated keywords on element level > > - For example, we should allow assigning height per-link without the > awkward kludge we have with special handling of > > #+attr_html: :height 300 > [[file:image.png]] has a height of 300, but what if we want a > different height in [[file:another-image.png]]? > > We can thus do > > #+attr_html: :height 300 > [[file:image.png]] has a height of 300, but what if we want a > different height in @@[:html-height 300]{[[file:another-image.png]]}? > > Note how @@{...} markup assigns attributes to objects inside - the > attributes should be somehow inherited. This way of assigning a height to the image seems odd to me. Mostly, the attributes specified by the inline block apply to the block, not the contents, so wouldn't this case be potentially surprising? Both of these examples mean different things in HTML, and it seems like you might want to create either -- how would you control which was produced using the "@@[:html-height 300]{[[file:another-image.png]]}" syntax? Instead, I wonder if the problem is that the way of inserting an image using a link itself. If you need more control, could there be a special "img" inline special block which can handle additional attributes? For example: @img[:height 300]{image.png} has a height of 300, and we can also have images with different heights and attributes like @img[:height 400 :alt "An image"]{another-image.png}. Or, if using the original syntax, perhaps the attribute should be explicitly :img-attr or :img-height to resolve the ambiguity about which element is being targetted? Rick