From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YE4xEWO8OWMQXwAAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 18:29:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gJtGEWO8OWPhbgAAauVa8A (envelope-from ) for ; Sun, 02 Oct 2022 18:29:23 +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 CD4B61C037 for ; Sun, 2 Oct 2022 18:29:22 +0200 (CEST) Received: from localhost ([::1]:35748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of1qE-0004aN-16 for larch@yhetil.org; Sun, 02 Oct 2022 12:29:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of1pD-00043r-S1 for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 12:28:20 -0400 Received: from ciao.gmane.io ([116.202.254.214]:40398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of1pB-0005hs-LS for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 12:28:19 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1of1p8-00035i-JC for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 18:28:14 +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: Sun, 2 Oct 2022 23:28:05 +0700 Message-ID: References: <87bkqx4jyg.fsf@localhost> <878rm02pc1.fsf@localhost> <87ill3st88.fsf@localhost> <87h70m252s.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: <87h70m252s.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: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 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.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-1.086, 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=1664728163; 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=bEXzeFNqF2WbIOkKNNF1uMGRyxjE37BsRQ+h4FH3fiU=; b=SgDxnVczZwJ7zzaaGrhOKhm5TAQY8z1Gu6mx6yisSLyjUJkEr9tld+w4SdmherZNnH3nB1 J7eLOlAnYoVB0Z103ld8uMzU7fpRUkpiRB4yibwPIyHpLBSEJPpG5AxyjnDM12DePGe3fH byc1QfsxFdAzkASjdIE+xhSJdNuocdhKBL4DjaHC2XPSWNeBRF7vd6Au8+VY7QWdDLcVuM rRShPJWgle0vQdJSE8g+yb0qOkXIQuI3rEFsFVN9GBIjtLTMbYnBgFOZ2hWnYNb7vOMWlM m/xQz/NkscmFRaixmpo3vYf7I2DcRzFipSGt31H8Qk+2fzabUJEXXLvxZ2CPuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664728163; a=rsa-sha256; cv=none; b=jZTgVrWokXJ2DSFpz3EsooXMAyAF3kMqCqqvfroYyzsEnrN1sj/vBe/dqUaALJR+W0WCLu ZL4E2Ava6Qt6xvpiIt5nVVB02bC2QLg5SL7+VOVTZJujbUhLcupzPqbUK0WcUoHB0jnFtn /pq1XqnQkqzW/obEhyuCibPClQJ1/Ru8c/L3fO01AqZckQiXC1dFY1I/QhNBnSiFMZ/ULu PkVBoXM38yHe20ZMt/GOGSTTNswIE3PlO9him6VZ6uKdgtMZOG6HYjuUx8lDEgAH9geYVT z91xOPiipPNGbKJwPieUnJEnDk2R3aP3jlL/ne6tY34BWT9FWSbRwYZBbHTUpw== 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: 3.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: CD4B61C037 X-Spam-Score: 3.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: yfXpLovF+Ijw On 02/10/2022 11:59, Ihor Radchenko wrote: > Max Nikulin writes: > >>> 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. > > I am not sure if I understand the details of what you are referring to. > > Can you please illustrate how to use the described AST markup for the > following Texinfo snippet: > > By convention, the dynamic library for @var{language} is > @code{libtree-@{sitter@}-@var{"language"}.@var{ext}}, where @var{ext} is the > system-specific extension for dynamic libraries. If you are asking how to represent such construct without introducing custom elements then (it may be e.g. :type, not :class) parsed AST should be like (code nil ("libtree-{sitter}-" (code (:class var) "\"language\"") "." (code (:class var) "ext"))) If there was some syntax for object attributes then simple cases would be like [[attr:(:class var)]]~language~ I have no idea concerning particular markup that can be used inside source blocks. It might be LaTeX-like commands as discussed in the sibling subthread or HTML (XML) based syntax that is more verbose than TeX-like notation. By convention, the dynamic library for src_alt{\code[class=var]{language}} is src_alt{\code{libtree-\{sitter\}-\code[class=var]{"language"}.\code[class=var]{ext}}}, where src_alt{\code[class=var]{ext}} is the system-specific extension for dynamic libraries. or By convention, the dynamic library for src_alt{language} is src_alt{libtree-{sitter}-"language".ext}, where src_alt{ext} is the system-specific extension for dynamic libraries. Hypothetical "alt" babel language has default :results ast :export results header arguments to inject AST bypassing Org markup stage.