From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8xBDGIBBsWF5hwAAgWs5BA (envelope-from ) for ; Thu, 09 Dec 2021 00:36:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wGIfE4BBsWFDHgAAbx9fmQ (envelope-from ) for ; Wed, 08 Dec 2021 23:36:32 +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 D4EBE170C1 for ; Thu, 9 Dec 2021 00:36:30 +0100 (CET) Received: from localhost ([::1]:60718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv6U8-00076e-Ka for larch@yhetil.org; Wed, 08 Dec 2021 18:36:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv6TZ-00076U-3Y for emacs-orgmode@gnu.org; Wed, 08 Dec 2021 18:35:53 -0500 Received: from [2a00:1450:4864:20::42e] (port=38454 helo=mail-wr1-x42e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv6TW-00063D-Mq for emacs-orgmode@gnu.org; Wed, 08 Dec 2021 18:35:52 -0500 Received: by mail-wr1-x42e.google.com with SMTP id q3so6821359wru.5 for ; Wed, 08 Dec 2021 15:35:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I3I8kzDvBBu4IQfn4yple0I76k7+dekWoWcVtNkfrVk=; b=Eh4eHAt/O1C9G6fV+imHJKRcP+XPw2IlK+0LQYHjssRbnxnvxYIVD+urJdwTjvv6jE r0CyngNH+SDc7osZzJ6L+NTn/1kKkegjYJu2fSMM0o5B0tXyyuDfodx+7NZvL96icmDi ua0ke4jhWLyvNV2R1kcPCorTlB9nXg9/637585BShcKtooR/b85JRpqjim3fyXNmLXIH 8PCeaodSdkQ8HaIWzEapi6aDz0PLk7L7dGhjR++DpEsVfpbU+CrNTHAvT8Mh6NsqB1mM oWwcHQS3H2ECAtKJJk3U/JExeKvHVtsoF5VjAFJFMFzzeNHuARNgYiO7+V6v1OVxnbSR cwBQ== 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; bh=I3I8kzDvBBu4IQfn4yple0I76k7+dekWoWcVtNkfrVk=; b=JUfhj9LdmefBsEuyryh4ijyndUJTbSb8G8PUWZeYzwHTFQOYTJDydhfKyqkiDzXyIs Sza6gGNZwjy4Y8Bhmu3VXW1pPNOiCsdzm1momH7bLk/4dV60ubwHIQV6+yoQpshGifmF PRWQSzNQd6cU7jvke3siYAPn2Suae/jUXXgNYkTd9wn+//Jo8o24eSFtU9inFK0Sf3yH NxyhbCeaHEWK+SVvmacZ3PTMryhKHcE7pY4RbQWsi+IvYzpiIV+EB/O0AIgLRCNrT9tc DWMPW1Xnkdy6BjORIrnFjjr/DxrSVE4m5y4mZvcmAx2zOgdbTaes02MgkL7kVBKQLmOP tWeQ== X-Gm-Message-State: AOAM532WbbuUYa1lefqnee6/I6+A2n8LJw5pgxFEJ2/Oi2HgkLO5NSI8 K1gQfDdMpBdXu33qE4x7TExNGuG/plzyGPIOkY4= X-Google-Smtp-Source: ABdhPJyLNoS5E2fYvL7dXeD0Um3WTrwV4JRZWBlpAf6qV1LXh6VCExgPtacK+3ubW6zT0dvHfVLwsZRtqKNQRP3JpDw= X-Received: by 2002:a5d:588b:: with SMTP id n11mr2085045wrf.344.1639006548404; Wed, 08 Dec 2021 15:35:48 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <8735n2hehj.fsf@posteo.net> From: John Kitchin Date: Wed, 8 Dec 2021 18:35:37 -0500 Message-ID: Subject: Re: Raw Org AST snippets for "impossible" markup To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Content-Type: multipart/alternative; boundary="0000000000001a2b9805d2aaf3e3" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Cc: Max 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=1639006592; 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=I3I8kzDvBBu4IQfn4yple0I76k7+dekWoWcVtNkfrVk=; b=TqLC3oP4xtzhQl3o+eqo/iiZGFvUlNPeylVwpNgu7/af/JWDMWTLbrjaFinpRo/FPogPtf wu1LcBxoxPKSsbcHxDpUZJT1DgXLcJAIdymc951Qa2i8BjwmHPj6Ucy9A/KEL6O1LnBrVO r06x6/y+pW1b2hdLjaP1RkpGmdoL+VY7CQ9wAY2N+md3lxgkBdc9VRQv/7hUfvzDkLY5MU qOdaDN5o9UPjzHscTGRhb1zvWV721GBsFE1m/JeqkXlEGShQ8IqU2BDOCejtA1Q4mZThtN NgcChWJQkFgbYImjZvpLpAQYs5giGpQMwFS6sbs/pNOa/YbGN3Lc8UHG1mW5kw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639006592; a=rsa-sha256; cv=none; b=dDbZC+t57Cij954fP/UzGF2N+rt9fSSXO9tIy5qG5UFcS9vLUQyz+TFylVbH5iSyXgFE2N n61QCwQQ3HHmY7g7JS0cPbizQJvTkitrPPhBFESdlY4FF1zGK0GGSNhOxQmExEeGj7Go0h /JAecjBBnkBValb5+TTE9OAv1ZGcSPgSS6EZseVKCkmcxas0bOrAOgJBOEOZmo49P20nx2 lqK1dvnuKFsWaUzFEnTuumzLPN02Kryn2PktWPvDyagRVlM/wkVIe9n6MhU6sJ+pqWz52a rR0Y+NupK60PJWO6ykEcqfAz6VIDn5CAwX6tGkQefN6nzpOtepotFhKRK8HBTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b="Eh4eHAt/"; dmarc=pass (policy=none) header.from=andrew.cmu.edu; 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: -5.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b="Eh4eHAt/"; dmarc=pass (policy=none) header.from=andrew.cmu.edu; 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: D4EBE170C1 X-Spam-Score: -5.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: Yb2Lw+5nOToP --0000000000001a2b9805d2aaf3e3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. On Wed, Dec 8, 2021 at 6:20 PM Juan Manuel Mac=C3=ADas wrote: > Max Nikulin writes: > > > As you have guessed, It is not my choice, it is interface of ox.el and > > org-element.el. > > Indeed. Sorry for my haste: it's the consequences of not read the code > carefully :-) > > Of course, your orgia-link-procedure could be extended to more org > elements. > I can't think of what kind of scenario that might fit in, but as a proof > of concept I find it really stimulating. E.g: > > #+begin_src elisp > (org-export-string-as " \"Lorem\\nipsum\\ndolor\")>" 'html t) > #+end_src > > #+RESULTS: > :

> :

> : Lorem
> : ipsum
> : dolor

> :

> > #+begin_src elisp > (org-export-string-as " (\":environment foreigndisplayquote :options {greek}\")) > \"=CE=94=CE=B1=CF=81=CE=B5=E1=BD=B7=CE=BF=CF=85 =CE=BA=CE=B1=E1= =BD=B6 =CE=A0=CE=B1=CF=81=CF=85=CF=83=E1=BD=B1=CF=84=CE=B9=CE=B4=CE=BF=CF= =82 =CE=B3=E1=BD=B7=CE=B3=CE=BD=CE=BF=CE=BD=CF=84=CE=B1=CE=B9 =CF=80=CE=B1= =E1=BF=96=CE=B4=CE=B5=CF=82 =CE=B4=E1=BD=BB=CE=BF, =CF=80=CF=81=CE=B5=CF=83= =CE=B2=E1=BD=BB=CF=84=CE=B5=CF=81=CE=BF=CF=82 =CE=BC=E1=BD=B2=CE=BD > =E1=BC=88=CF=81=CF=84=CE=B1=CE=BE=E1=BD=B3=CF=81=CE=BE=CE=B7=CF= =82, =CE=BD=CE=B5=E1=BD=BD=CF=84=CE=B5=CF=81=CE=BF=CF=82 =CE=B4=E1=BD=B2 = =CE=9A=E1=BF=A6=CF=81=CE=BF=CF=82=CE=87\")>" 'latex t) > #+end_src > > #+RESULTS: > : \begin{foreigndisplayquote}{greek} > : =CE=94=CE=B1=CF=81=CE=B5=E1=BD=B7=CE=BF=CF=85 =CE=BA=CE=B1=E1=BD=B6 =CE= =A0=CE=B1=CF=81=CF=85=CF=83=E1=BD=B1=CF=84=CE=B9=CE=B4=CE=BF=CF=82 =CE=B3= =E1=BD=B7=CE=B3=CE=BD=CE=BF=CE=BD=CF=84=CE=B1=CE=B9 =CF=80=CE=B1=E1=BF=96= =CE=B4=CE=B5=CF=82 =CE=B4=E1=BD=BB=CE=BF, =CF=80=CF=81=CE=B5=CF=83=CE=B2=E1= =BD=BB=CF=84=CE=B5=CF=81=CE=BF=CF=82 =CE=BC=E1=BD=B2=CE=BD=E1=BC=88=CF=81= =CF=84=CE=B1=CE=BE=E1=BD=B3=CF=81=CE=BE=CE=B7=CF=82, > =CE=BD=CE=B5=E1=BD=BD=CF=84=CE=B5=CF=81=CE=BF=CF=82 =CE=B4=E1=BD=B2 =CE= =9A=E1=BF=A6=CF=81=CE=BF=CF=82=CE=87 > : \end{foreigndisplayquote} > > > > However if you strongly want to use proper terminology in markup, you > > may try to trade it for +your soul+ compatibility and portability > > issues. The following almost works: > > Interesting, thank you. > > Yes, it is strange the new line added in `evilatex-emph' ... I have no > idea why that happens. > > Best regards, > > Juan Manuel > --=20 John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --0000000000001a2b9805d2aaf3e3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Have you seen=C2=A0
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.=C2=A0

On Wed, Dec 8, 2021 at 6:20 PM= Juan Manuel Mac=C3=ADas <maci= aschain@posteo.net> wrote:
Max Nikulin wri= tes:

> As you have guessed, It is not my choice, it is interface of ox.el and=
> org-element.el.

Indeed. Sorry for my haste: it's the consequences of not read the code<= br> carefully :-)

Of course, your orgia-link-procedure could be extended to more org elements= .
I can't think of what kind of scenario that might fit in, but as a proo= f
of concept I find it really stimulating. E.g:

#+begin_src elisp
=C2=A0 (org-export-string-as "<orgia:(verse-block () \"Lorem\\= nipsum\\ndolor\")>" 'html t)
#+end_src

#+RESULTS:
: <p>
: <p class=3D"verse">
: Lorem<br />
: ipsum<br />
: dolor</p>
: </p>

#+begin_src elisp
=C2=A0 (org-export-string-as "<orgia:(quote-block (:attr_latex
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(\":environment foreigndisplayquote = :options {greek}\"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\"=CE=94=CE=B1=CF=81=CE=B5=E1=BD=B7= =CE=BF=CF=85 =CE=BA=CE=B1=E1=BD=B6 =CE=A0=CE=B1=CF=81=CF=85=CF=83=E1=BD=B1= =CF=84=CE=B9=CE=B4=CE=BF=CF=82 =CE=B3=E1=BD=B7=CE=B3=CE=BD=CE=BF=CE=BD=CF= =84=CE=B1=CE=B9 =CF=80=CE=B1=E1=BF=96=CE=B4=CE=B5=CF=82 =CE=B4=E1=BD=BB=CE= =BF, =CF=80=CF=81=CE=B5=CF=83=CE=B2=E1=BD=BB=CF=84=CE=B5=CF=81=CE=BF=CF=82 = =CE=BC=E1=BD=B2=CE=BD
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=E1=BC=88=CF=81=CF=84=CE=B1=CE=BE=E1=BD= =B3=CF=81=CE=BE=CE=B7=CF=82, =CE=BD=CE=B5=E1=BD=BD=CF=84=CE=B5=CF=81=CE=BF= =CF=82 =CE=B4=E1=BD=B2 =CE=9A=E1=BF=A6=CF=81=CE=BF=CF=82=CE=87\")>&= quot; 'latex t)
#+end_src

#+RESULTS:
: \begin{foreigndisplayquote}{greek}
: =CE=94=CE=B1=CF=81=CE=B5=E1=BD=B7=CE=BF=CF=85 =CE=BA=CE=B1=E1=BD=B6 =CE= =A0=CE=B1=CF=81=CF=85=CF=83=E1=BD=B1=CF=84=CE=B9=CE=B4=CE=BF=CF=82 =CE=B3= =E1=BD=B7=CE=B3=CE=BD=CE=BF=CE=BD=CF=84=CE=B1=CE=B9 =CF=80=CE=B1=E1=BF=96= =CE=B4=CE=B5=CF=82 =CE=B4=E1=BD=BB=CE=BF, =CF=80=CF=81=CE=B5=CF=83=CE=B2=E1= =BD=BB=CF=84=CE=B5=CF=81=CE=BF=CF=82 =CE=BC=E1=BD=B2=CE=BD=E1=BC=88=CF=81= =CF=84=CE=B1=CE=BE=E1=BD=B3=CF=81=CE=BE=CE=B7=CF=82, =CE=BD=CE=B5=E1=BD=BD= =CF=84=CE=B5=CF=81=CE=BF=CF=82 =CE=B4=E1=BD=B2 =CE=9A=E1=BF=A6=CF=81=CE=BF= =CF=82=CE=87
: \end{foreigndisplayquote}


> However if you strongly want to use proper terminology in markup, you =
> may try to trade it for +your soul+ compatibility and portability
> issues. The following almost works:

Interesting, thank you.

Yes, it is strange the new line added in `evilatex-emph' ... I have no<= br> idea why that happens.

Best regards,

Juan Manuel
--
J= ohn

-----------------------------------
Professor John Kitchin (h= e/him/his)
Doherty Hall A207F
Department of Chemical Engineering
C= arnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

=
--0000000000001a2b9805d2aaf3e3--