From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QNygKSOqsWF/UgEAgWs5BA (envelope-from ) for ; Thu, 09 Dec 2021 08:02:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AKU/JSOqsWFtRwAAbx9fmQ (envelope-from ) for ; Thu, 09 Dec 2021 07:02:59 +0000 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 F29362ABFE for ; Thu, 9 Dec 2021 08:02:58 +0100 (CET) Received: from localhost ([::1]:39462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvDSD-0003go-Vs for larch@yhetil.org; Thu, 09 Dec 2021 02:02:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvDRN-0003f8-48 for emacs-orgmode@gnu.org; Thu, 09 Dec 2021 02:02:05 -0500 Received: from mout01.posteo.de ([185.67.36.65]:35183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvDRK-0005Sw-GV for emacs-orgmode@gnu.org; Thu, 09 Dec 2021 02:02:04 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 43EA0240026 for ; Thu, 9 Dec 2021 08:02:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1639033320; bh=ZWfO5yiODQR+BsJXJgZPhX2oIjUOEpFl6pEdtQ0Jc88=; h=From:To:Cc:Subject:Date:From; b=L/U1xO4SOo7YqradoUKzSPR/uFRuGLKn+8ss80wg2kM9RYIYpN8/r7j9QFvHcqlL5 v6w0Y4zLYcSCTIvTQRw32jf2gIB0j3pphMnei3W0HrAY7Zx3vJAb9uXMkq1uEeB4BE B0dqm20nfbN9Dhu0xz576TZ9BN+iADaI79fA18wnEQShWg+VHziQN9bKfHblNhbeTu 4I0eTIUrBQcCElrSs+zWxztRPIKc8i5UBbU6SKFOSANPiVINwNT8tgAMFudenqBi6v 3I485pHvEwaejoQnzF7gR/U/WZPBSvcPcbkNYRSEgeIk8V/K9xfy3pibPehL7BFeA0 fTgSegzwkQsng== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J8lMV5zClz6tmB; Thu, 9 Dec 2021 08:01:58 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: John Kitchin Subject: Re: Raw Org AST snippets for "impossible" markup References: <4897bc60-b74f-ccfd-e13e-9b89a1194fdf@mailbox.org> <87fsrbp673.fsf@gmail.com> <1ef0e093-c165-2a5f-954d-6a33b64c8ee9@mailbox.org> <87r1avgnpi.fsf@localhost> <878rx2bzhw.fsf@nicolasgoaziou.fr> <9525e029-a590-3f48-df64-ffb9176075d9@mailbox.org> <87k0gh68ke.fsf@posteo.net> <8735n2hehj.fsf@posteo.net> Date: Thu, 09 Dec 2021 07:01:56 +0000 In-Reply-To: (John Kitchin's message of "Wed, 8 Dec 2021 18:35:37 -0500") Message-ID: <87lf0u8dnf.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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_H2=-0.001, 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: , Cc: Maxim Nikulin , orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639033379; 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=uXIYWinwxiNCsk0jHwaJ+gA9J26q9QRkbYkMMzMURhw=; b=j8PZKTyU2Sv++ZAoTDTFjnqSllJ7AESX5Onu4JYpUEpOgj+ntfknsrJaT0ahiqbFxSTH4i tBQqu1v5G4Dc7rOA9YV78E6xjLmwNIBrdGuuDGB4qU65IFOF6o8TNFUe9v8NYp7j3Kl6/U slnDuWgacVMVh0bIjJxlSP4sgKdh8NUtMXWDOvyTibm9rBhjl8eAI8mm6A3gm26Seg16lh Pg7Y9vQoK1aeHFoKXFG9Qu6f+UhEg72lfG6wL2TP6jHnDAvZoCMh2eMgPHIX2aIEcGgUGp CQcpy+ZGuRde8Aip77LY9xCoOJioAPm7/lOt4KoDvB0daymMMnKaktlkcWX2Bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639033379; a=rsa-sha256; cv=none; b=niSnyJoXbP4SD2SmS1lcCGuRmy5AE/A8+Ae4pADmJAUTTGLXkYS4xlSVcdrwkjw/sWaSt3 8oGHf1X7FKzGGnYvDyKtAJ5me94Y+wDVSrRDfyZCkCj/R0O/HVP40LHxm5I1jfs70S4bKn ZatSdNPXtQuNuEXN9pOjZLi9tk8j1H3P1i5QNzOXSSQsLfA6tXjpm8gJXPOqNowAHpWUcb fy0Pi5b5oQi1mqPqRkZlLKd+yLelpOLoPWRPH7XrrhVbvyQYZ2sH74SWJoHZ8yeAOeBZQk K4QX6Acyo96nR/wZzYr6qt4bRBLQ93wFmF4YZxzG7rDZtQBG1vdDQglI/BqUqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="L/U1xO4S"; dmarc=pass (policy=none) header.from=posteo.net; 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: -4.35 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="L/U1xO4S"; dmarc=pass (policy=none) header.from=posteo.net; 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: F29362ABFE X-Spam-Score: -4.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: uLukv+10YtdB John Kitchin writes: > Have you seen > https://github.com/tj64/org-dp? It seems to do a lot with creating and > manipulating org elements. It might either be handy or lead to some > inspiration. Interesting package. Thanks for sharing. It gave me an idea, also borrowing part of Maxim's code, but evaluating in this case the path. To continue playing with links... The goal is to obtain a link with this structure `[[quote-lang:lang][quote]]': #+BEGIN_SRC emacs-lisp :results silent (org-link-set-parameters "quote-lang" :display 'full :export (lambda (path desc bck) (let* ((bck org-export-current-backend) (attr (list (format ":environment foreigndisplayquote :options {%s}" path))) (info (org-export-get-environment bck nil nil))) (org-no-properties (org-export-data-with-backend `(quote-block (:attr_latex ,attr) ,desc) bck info))))) #+END_SRC #+begin_src emacs-lisp (setq backends '(latex html odt)) (setq results nil) (mapc (lambda (backend) (add-to-list 'results (org-export-string-as "[[quote-lang:spanish][Publicamos nuestro libros para librarnos de ellos, para no pasar el resto de nuestras vidas corrigiendo borradores.]]" backend t) t)) backends) (mapconcat 'identity results "\n") #+end_src #+RESULTS: #+begin_example \begin{foreigndisplayquote}{spanish} Publicamos nuestro libros para librarnos de ellos, para no pasar el resto de nuestras vidas corrigiendo borradores. \end{foreigndisplayquote}

Publicamos nuestro libros para librarnos de ellos, para no pasar el resto de nuestras vidas corrigiendo borradores.

Publicamos nuestro libros para librarnos de ellos, para no pasar el resto de nuestras vidas corrigiendo borradores. #+end_example