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 YN/xKH0de2V6FAAAkFu2QA (envelope-from ) for ; Thu, 14 Dec 2023 16:21:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id ACbsJH0de2UkFgEAqHPOHw (envelope-from ) for ; Thu, 14 Dec 2023 16:21:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rQaSDGGz; 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=1702567293; 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=8Er4q8KnJCX41+J64BNREqtCbqgc+8s6wOlezoMndaQ=; b=dc9ZUaWRvxWoZMsf6f/UwmZcbx/reqP7ElP0qi4mnMOMXPV5mGMeWj56Ld769Zo5c81pav ECPTcaSXT51IsLz9252iSXcXBiiOcRz7CoPdSYTtmUezaAXZaj5nogTOwRUrtlY/mBSsqZ fao+ejufvrgP76KdZZhBlFXZgvpCU278pv+tjlo1SCj8u3hKbbiLBmnBEkxxqK1aDLg58w C5xzlfi8OvqDts3BLTfgPYRZi4vPG+gM+vEgmcQ5AYY6Ohhi4+EBIFDDvdUcy6l1dm6G2s M3cRs4SkcTsyXxXcYs1gotI1z0eoVaEylcym+n3gLqECeIh0PgfhWGqlotZNVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702567293; a=rsa-sha256; cv=none; b=gHOlFpkMfkyxrO1Tb3lnzkole/LhYzkshkxtG/JXNiXrGEFH43v1Dg/6OVkY8+NHpT6VWX xt2HuBbnPkLavdrnqNeJ8ojJQzilod2jsU0cjRBG/YynonIirlJ5XBrRBqW1rwCE0HJ4yy GYBzrnzqrqrivvxtg4BSmcGdyQMPrG+HP1ovRwDy4PDWaejYTOXrFEnSgWsjCKlFgLG2zl AsyxSrKRMNkFnslWYuGlHINgNQBcYXfjW2RNGl8Qd9Ho15irgubWqDBCGy3tmpE/BkRRx3 vIh/TxLwv5T/3ivtPZEelNOKn0O2pkt5p+m2/JD4efuV5wEk+lA+FEh3/aF9AA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rQaSDGGz; 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 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 5AAC9111EB for ; Thu, 14 Dec 2023 16:21:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDnW3-0002JY-8W; Thu, 14 Dec 2023 10:20:47 -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 1rDnW0-0002Iz-Px for emacs-orgmode@gnu.org; Thu, 14 Dec 2023 10:20:44 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDnVy-0000Qt-UL for emacs-orgmode@gnu.org; Thu, 14 Dec 2023 10:20:44 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DE2B5240101 for ; Thu, 14 Dec 2023 16:20:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702567240; bh=ZVMP+jtuOqgDILQjm5CMfVbJ4a0Ly2+LK+8/lZzlCSM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=rQaSDGGz+tWZQzzil0JypTN7w8Ae7lkxfo4ytlzDUFYuqfqpNe4D+IKycFr3VfPez fdDtIgnWMiVS+8N1V2bJzRUy6CQrMufeDrt17+AnKIrAFX0QgwEcZ/R5VOEOmU4CP+ 4NFcyX6vhHbEsEt9UX5XnUPwQe4A/+8mCLEOAtzk/Jqin708O3wTg5zc6H/29SmTxK 2VdEAkvkKCgNuDJo1Tj6tw7CNbHnlBOD140ehw0mKzceETlPCGwUwX4ETBNjxb/fJU nKpxgxxCulyGkjiLePpSz8jVZ4YN3PwtQoaRZpBkfjepJuqmVjhlD0yvK6Rch1P75X 18T9rj5UlgHKw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Srbdh3kc1z9rxB; Thu, 14 Dec 2023 16:20:40 +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> Date: Thu, 14 Dec 2023 15:23:47 +0000 Message-ID: <878r5wq03g.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.41 X-Spam-Score: -6.41 X-Migadu-Queue-Id: 5AAC9111EB X-Migadu-Scanner: mx12.migadu.com X-TUID: VzRoHULzzIQ/ Max Nikulin writes: >> Nested objects of the same type are not really a limitation of top-down >> parser. It is the syntax of objects that might but does not have to be. >> We might come up with a syntax that allow nesting. > > I would be glad to learn that I am wrong. The current parser picks first > terminating token ignoring other opening tokens in between. The only way > I see is unique identifiers for opening and closing tokens to allow > match them in pairs. It would be tedious to type and to copy fragments > from similar text. Not necessarily. The current parser also allows balanced brackets inside an object. Search for "balanced" in https://orgmode.org/worg/org-syntax.html and you will see many examples. In addition, we can allow multiple forms of tokens. For example, @wrap{simple wrap}; @wrap{{we can have } inside}}; @wrap{outer wrap; @wrap{inner wrap}; back}. @wrap{{outer wrap; @wrap{{inner wrap allowing } as well}}; back}}. > A similar problem is importing and exporting fragments of mail messages > having multilevel quotes. #+begin_quote is not enough, it is necessary > to use something else for inner citations, e.g. #+begin_quote1. As you see, my solution is conceptually similar to #+begin_quote1 idea. > Moreover I would prefer to have links as links even when they need some > special treatment. What about @wrap[#+attr_html: :alt "Text"]{[[/path/to/image]]}? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at