From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8OjcNYimi2K/MgEAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 17:21:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QELFNYimi2LOPwAA9RJhRA (envelope-from ) for ; Mon, 23 May 2022 17:21:44 +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 70114125C8 for ; Mon, 23 May 2022 17:21:44 +0200 (CEST) Received: from localhost ([::1]:32996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nt9sN-0007Gi-LX for larch@yhetil.org; Mon, 23 May 2022 11:21:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nt9rU-0007Ez-Q4 for emacs-orgmode@gnu.org; Mon, 23 May 2022 11:20:50 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:45628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nt9rS-0002FC-Jb for emacs-orgmode@gnu.org; Mon, 23 May 2022 11:20:47 -0400 Received: by mail-pf1-x430.google.com with SMTP id b135so2256339pfb.12 for ; Mon, 23 May 2022 08:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VVTNGPrOPkj2XifdmuXxUlUo0vH//yV0SzkbwUHc+7I=; b=NhJIEa9DNk3wiIGZBqWpI1wfEn/uoz50x3+9rhA5EUhegdcOwLgfghGCjdO5X7cPA9 Uv/UvUV7yhavEPG3JzcKDpGWZMvotjqd9p2LiGVgSfRusGsZZDAPj2k1bSpIY1ycw65I pXy1dDJMWdoM3IEDa2706QbLu4LSnv5ZGEUpI8gOI8YvDJrmyl0ksv9yQnZxDJPzeGN5 Q2zCCM8sz/UBshSInszCiJDL8W3gvHbcxg53JTnjHq9M0FHa8nBn74YArhfbLtwFPncf 61ZalYQlwqs/FjGFtOd9gfwREeROA2uQCLQsGmobOCo9sD+F/WkeLXeVPIBnozKwfazR 2n5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VVTNGPrOPkj2XifdmuXxUlUo0vH//yV0SzkbwUHc+7I=; b=JdLbP9HgSidecYQcv4bs+Uen+pECMck7smsM1hq8qnVkYMwF9QOL7ptrUp2uNB1Jwk qE0Q+YiziC3zEMYgEMMvet56CLCbGZ5Bu5urIaD83hJZWOohA7AKBZH+G0selckkx1Jh QHfy1TDoRGrtO95m9M6J56r+WdNFuRrp8lrlesTn2Nn/Q57p6IKxBNoeaMCu9CbyJEpP IxpLSX8P48IT7KFrd39SnfhvggqfCqJiGz9yT4H7x2cJfemNdR67I3RVfpOyZSEC0xKf fMveln6J9ZyH45zaz7bDGq1s/TnxPbfYeoHxnDmQTHEsiA7lhGXHo0yytVtzwBVEwh13 Fe7g== X-Gm-Message-State: AOAM532CEAtT4nwrg5QB5eQh675h4ststzIiWU84FHMss60dLTLXouH9 UbuGX43yKcBak9kbCN/wKiHpSCLGd81Xs1gbplw= X-Google-Smtp-Source: ABdhPJyhR3PcXsPL0V/7n9Uto4T+Duts651WIxjBCXsWy4AyFouqxhNjwFl4uGNuLqNCxTV1uVrAzPeC1Ed2fWKGM3o= X-Received: by 2002:a63:531c:0:b0:3fa:5856:2fa2 with SMTP id h28-20020a63531c000000b003fa58562fa2mr4531435pgb.198.1653319244548; Mon, 23 May 2022 08:20:44 -0700 (PDT) MIME-Version: 1.0 References: <87a6b8pbhg.fsf@posteo.net> In-Reply-To: <87a6b8pbhg.fsf@posteo.net> From: Kaushal Modi Date: Mon, 23 May 2022 11:20:08 -0400 Message-ID: Subject: Re: About 'inline special blocks' To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Cc: orgmode Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=kaushal.modi@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" 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=1653319304; 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=VVTNGPrOPkj2XifdmuXxUlUo0vH//yV0SzkbwUHc+7I=; b=QW7mJxOzlp6oDFMZKBnV5umJTpE513ZeGnsLAd0j0qTgKSJHGPCginT+bx4EDrrRb1Z8tw wM6j00oyz4fe2YomKLL8P7ZM3zku4rd+t+f3BWp2AIBUy51RS/RbpxSAbqNnroFsG8xtCx /hani3mwk62vO6rpvYMnwXuqW1DhMT8j44qZOoY8fXy96xzKZhLAmr7SJFMcCCEN1L3Bl7 VZO1VgECHEGJkSSKnd5pT4e8fXtAGFo4FckuBW1zF0156AUvjGvKJbF/iT94D9N+0Q11lv aTd2IK+Gt/ln5VX+k8oNlr3rWHK6tXEVsAidq7Z9hrNefFXDydF0mZxcJOcaQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653319304; a=rsa-sha256; cv=none; b=Z6nTiXzF0cW+Fdw6MvUTM55p+SGkzw0G/tlM8TxQe+wkJvZtG0XfWqsqeYkfFFvL91wGwZ kBs+1l9vB8SQWVgRhntVN2EUh3mo59YV0VkCdOHbhrVuofabr+lG/mKQUGENj0p7ffQsBp 3HugqbPB5Rtmdlw0b2Z4VVq+niaICkcs1hreVkM51f9OzqbmooFkcRE9lqWuCGzI08vT7z yho7rHJmim82U5+GFe77ZjGs5V7no4zbhovGHqZJdb+JJI4oVzKSDH8nIQLAUK50FHvSro z/dd1sPIdywpEAu9USi8wwct4FRCKeVrCBATiMQ1Js7LWLHXu6HhLiskXfBndw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NhJIEa9D; dmarc=pass (policy=none) header.from=gmail.com; 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: -9.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NhJIEa9D; dmarc=pass (policy=none) header.from=gmail.com; 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: 70114125C8 X-Spam-Score: -9.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: lmvKSz0jULjS On Mon, May 23, 2022 at 10:33 AM Juan Manuel Mac=C3=ADas wrote: > I think this idea was suggested by Ihor in a thread from a few months > ago (I don't remember which one), but since other topics were discussed, > the idea remained a bit in limbo. I still find the idea very > interesting, and I think it would be very productive for Org to have a > multipurpose inline container, so it occurred to me to open this thread > to invite a possible discussion on the subject. Thanks for doing this. I missed that thread. I would welcome this feature addition too. If I understand correctly, this will mean adding a new element type that all the Org exporters can then support. Right? > The question is: Does Org Mode need inline special blocks? Yes. > On the one hand, it seems that we can live without them. Not quite. I developed few hacks in ox-hugo to make regular special blocks act like special inline blocks :D Example: =3D=3D=3D=3D=3D More than the visual inaccuracy of seeing curved quoted where straight quotes should be, #+begin_mark if someone copies that code to try it out, it will not work #+end_mark ! =3D=3D=3D=3D=3D Another example: =3D=3D=3D=3D=3D By the way, I submitted a patch for fixing the escaping of straight quotes in ~shortdoc-add-function~ documentation string #+begin_sidenote I planned to fix just this straight quote escaping issue, but then I also ended up slightly improving the documentation of the ~(FUNC :eval EVAL)~ and other forms used for adding a function's documentation to ~shortdoc~. #+end_sidenote in .. =3D=3D=3D=3D=3D ox-hugo does the job of deleting the newlines and white-space (leaving just 1) before and after few "special" special Org blocks. > Therefore, I think that inline special blocks would fill an important > gap. They could be translated into HTML as a container; +1 > Perhaps the syntax could be a continuation of that of inline code > blocks. Something like: > > _[options]{text} The challenging part will be deciding the syntax so that there are no false matches. May be reserve "inline_" for inline blocks? e.g. inline_[options]{text} ? Using my example above, if I want the elements in HTML, I would do abc inline_mark{some text} def and that would export to below for an HTML based exporter: abc some text def