From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KNRbIFYkOGOrOgAAbAwnHQ (envelope-from ) for ; Sat, 01 Oct 2022 13:28:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eFE+IFYkOGMobAEAauVa8A (envelope-from ) for ; Sat, 01 Oct 2022 13:28:22 +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 32ADCE79D for ; Sat, 1 Oct 2022 13:28:22 +0200 (CEST) Received: from localhost ([::1]:54770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeafN-0003KT-EI for larch@yhetil.org; Sat, 01 Oct 2022 07:28:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeaez-0003K5-Qh for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 07:27:57 -0400 Received: from ciao.gmane.io ([116.202.254.214]:44464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeaey-0004SD-5z for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 07:27:57 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oeaev-0007Jm-MI for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 13:27:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [HELP] Fwd: Org format as a new standard source format for GNU manuals Date: Sat, 1 Oct 2022 18:27:45 +0700 Message-ID: References: <87bkqx4jyg.fsf@localhost> <878rm02pc1.fsf@localhost> <87ill3st88.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US In-Reply-To: <87ill3st88.fsf@localhost> 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: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 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.25, NICE_REPLY_A=-2.743, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664623702; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=h1qNOcDR7FsM8Zv5Mhn5fPCfPjiYU8heWR7aChVnJAg=; b=MLrZHzaT2TY6wt//UMEh715idAwEhMmQXRVdBmdyx5F5TDRCwSEKb2YLP3htpUi7LLJ1fT xoxOVnnzejRjXCmiOXVJPCPnJyVoUZz/G3kXHKSbOC34CrqkGSxsUe3lnY/3QWfaEJpHDq m8sdKkxEtwSs7DDpeDQ4wgOQ0wHPpnd8VKVFtbmtZ54XNAi+STWkQd2kP9bd0+jfU4h88P ZukJh2SQWeC755ibN2bkKyM074wiCoiJrey3ENXc4QSu+BiqqYrv0/kB0YyluY9OTkbdeo Kjfvu//M8Ijff0goPJm0kysaSyD9NqL8/AUwi8bJnh8AsQmMn7hpnHF6CEqLrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664623702; a=rsa-sha256; cv=none; b=mjh00F1bm5drsurRBs3+TyZ8VhTUY29HrUyDP5Bb5got7hpmZws6FehSgu619e3nfisrnG SIgdKeO3rKLg0t2vb+HdS40CfOj1cK1RwxFYAIOHcQcX8G6qW/bMhglOhxYOKJjBjjnaQR cROfMx6IoRTn0eGuj8dJ0BGr1Yy51RuYP23rIaQwTF2xvd05V+tTaVQwTZiaLwD6INdr6A 5Na1IvXUd+t4yFLPmlCh3noNKPbjbMgfUHNJOjtfCjxfHJ5vLP3muGXqUf6RExUWyuhfby 4sr77tQ6QMuTCBKFNwPFHobiSRLWu7GCGq5SQM+TvPSiQqYEYKVYznL9vAzW6g== 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: 2.86 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: 32ADCE79D X-Spam-Score: 2.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: nqrVUqJOPL3W On 01/10/2022 18:01, Ihor Radchenko wrote: > Max Nikulin writes: > >> I do not remember if the following idea has been discussed. What about >> extending source blocks and inline source snippets to allow :results ast >> header argument that caused executing during export only and expects >> s-expression with AST branch that is included into parsed tree without >> intermediate Org markup representation? Then a special org-babel backend >> may be created to support new markup type. I am unsure however at which >> stage of export source blocks are executed, maybe too early to implement >> the idea. The advantage is that no extension of Org syntax is necessary. > > This will not help with new extendable markup elements. No new org > element types can be created this way. We still need generalized inline > markup object. > > This can help with escaping syntax and spaces in verbatim. It should be enough to create nested "code" or "verbatim" inline objects with some attribute like :class file, :class var, :class dfn, etc. Export backend may interpret this attribute to create proper texinfo commands or more precisely choose HTML element. > I do recall you mentioned this idea in one of the earlier threads. > https://orgmode.org/list/sokqa3$e8s$1@ciao.gmane.io > Max Nikulin (2021-12-06) > Subject: Raw Org AST snippets for "impossible" markup It was using links, not source blocks. Typing AST directly is a kind of last resort. Now I am writing about some higher level markup with a parser that allows nested element and uses just a few special characters to denote commands. It is a kind of trade-off between brevity of lightweight markup and flexibility of more verbose language with ability to more precisely express intentions.