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 ms0.migadu.com with LMTPS
id gDEXAFebFWJUZgAAgWs5BA
(envelope-from )
for ; Wed, 23 Feb 2022 03:26:31 +0100
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 UERROFabFWJCwwAAauVa8A
(envelope-from )
for ; Wed, 23 Feb 2022 03:26:30 +0100
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 B0E0C3D66A
for ; Wed, 23 Feb 2022 03:26:29 +0100 (CET)
Received: from localhost ([::1]:51146 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1nMhMK-0001gD-Az
for larch@yhetil.org; Tue, 22 Feb 2022 21:26:28 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50528)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1nMhLf-0001dV-EV
for emacs-orgmode@gnu.org; Tue, 22 Feb 2022 21:25:47 -0500
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:59359)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1nMhLc-0005zr-FZ
for emacs-orgmode@gnu.org; Tue, 22 Feb 2022 21:25:47 -0500
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
by mailout.west.internal (Postfix) with ESMTP id 8B9003201D2D
for ; Tue, 22 Feb 2022 21:25:41 -0500 (EST)
Received: from imap49 ([10.202.2.99])
by compute2.internal (MEProxy); Tue, 22 Feb 2022 21:25:41 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
cc:content-type:date:date:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:sender:subject
:subject:to:to; s=fm2; bh=5GiirY6c/+8mkPM6g8iG6QROWQId7IqZg8MmIf
9cNDo=; b=mtgyJ2EWOUZgOsxoOHUAD5gzKvDI5Ghhd0f5Uj9p9wkne+/miNRszA
ysiH/+34bM9L9DHBElDhfIyohNcykmo7jIgk7sgNIFgMlcaUORSmTnDXDsHSwGxP
7PMUewT7XJ1sDeEQU1NLB3pC12/GP+7AqntBQ/qa0jm2jHYqny3b04zKQxE+1LQp
jKaa7oieGWS2HSXqiFq4G0A7B2h86rdc3ZVF1TepdpYfylBJzL0e77bGknG/BjT/
JGjgidNFx2omgLrl9UleVd3KJk6QcmCpU1++nloQngAbxKks+ien50g8CLzTgSdt
jc+Pqnytfvd1SwBCPqRH4DaIyKPIz3JQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:content-type:date:date:from:from
:in-reply-to:in-reply-to:message-id:mime-version:references
:reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy
:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5GiirY6c/+8mkPM6g
8iG6QROWQId7IqZg8MmIf9cNDo=; b=MyrK6g432SVk++lf47AZdS6C6SBDdMeMQ
Ai0YNQ5TGlLy/2KpHcUQajPp3WpchkHeXJEwoep/vhThERC+2Q8AZl/y9pVlw1i5
WXUp7jkQaQtYQUVgg7wML5wqB1FwA8DnFIA2jtgXI8Pf+xR/aOn/U1JkASF0u/kg
1xKC84nrG4LHbvYjMO/XLBKNKwY7Lh5ehrveowHsRzHP0xaLPd8ciEMwMxRarFq3
QJDGEsO+lOs/f+L1I0bVn4INH7DExp85mOf179ks3kgixC0td4H2xZrG45fs2i90
iS0jrKIeznOmPbC1UeedcNHDUjZbcKZwCVV+NsHA6+StQl2lo7hiw==
X-ME-Sender:
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkeelgdeghecutefuodetggdotefrodftvf
curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre
erreerjeenucfhrhhomhepfdfurghmuhgvlhcuuegrnhihrgdfuceoshgsrghnhigrsehf
rghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepuefhjefgieehleegvdffke
ehffeuhefhgfekveeludegheehgfdtgeehtdfgheeknecuffhomhgrihhnpehsrghmsggr
nhihrgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh
hrohhmpehssggrnhihrgesfhgrshhtmhgrihhlrdgtohhm
X-ME-Proxy:
Received: by mailuser.nyi.internal (Postfix, from userid 501)
id F2CEDF6007E; Tue, 22 Feb 2022 21:25:40 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-4778-g14fba9972e-fm-20220217.001-g14fba997
Mime-Version: 1.0
Message-Id: <00855af6-edb5-4705-9222-dba6503e1861@www.fastmail.com>
In-Reply-To: <8bb3b1e9-ff36-45a6-9eb2-811b38d5aea8@www.fastmail.com>
References: <086129c3-de30-4e0b-a0b7-6b1c9b0578b6@www.fastmail.com>
<871r01i1pm.fsf@posteo.net>
<45e958d4-9c0c-4ea6-90b7-433ed9f38d44@www.fastmail.com>
<875ypbap18.fsf@posteo.net> <871qzzaofq.fsf@posteo.net>
<9c3009fc-3d69-41dc-ae61-0d60e10f1598@www.fastmail.com>
<87r17zb3db.fsf@posteo.net> <87mtinb2vq.fsf@posteo.net>
<8bb3b1e9-ff36-45a6-9eb2-811b38d5aea8@www.fastmail.com>
Date: Tue, 22 Feb 2022 21:25:20 -0500
From: "Samuel Banya"
To: "Charles Berry"
Subject: Re: Question Regarding Creating HTML Style Buttons With Org Mode
Content-Type: multipart/alternative; boundary=f2d1af019f424c7dbf19274f2151e085
Received-SPF: pass client-ip=64.147.123.19; envelope-from=sbanya@fastmail.com;
helo=wout3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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-Country: US
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
s=key1; t=1645583190;
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:in-reply-to:in-reply-to:
references:references:list-id:list-help:list-unsubscribe:
list-subscribe:list-post:dkim-signature;
bh=5GiirY6c/+8mkPM6g8iG6QROWQId7IqZg8MmIf9cNDo=;
b=JuQNz8G+bRQg5wZS8tPZhp9viKlMvRM7G90PrvOhu6elbYE0pv7JNjQsppw8rvIyQf9aIH
kJIV5/9D+x6Yc/+WW3p4Z7nM9SaC1ONu0juSkDw9RS+6lmw+S/D6hGdPE5O8cImMrvgPRx
RtMhzaJRgJ2N5PvXiWVdOA2lSyXUNhTEcB0x8ZurTWY5MF5n9+EYmxcq/YitxpbZfs08i3
oNhjZ81mOcVfSYqKsgkb7CXLNNt/z3yFlOLCkxQlbAF1HLZCBcZr06+DCOeVqrJ5cPVVv8
ANZ6t6iheu4/21TbBUpbuoMQXnRnLmjV58vYTFFaDbN66PITO78Z4EH+AXLxtw==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645583190; a=rsa-sha256; cv=none;
b=UcuQMKNinBDxiOEV6tydOxeSJbrAXJyRotGvEGG8DtQsM9LJNuoqoWO+YlYL9NuEgMdgcV
B5z8eKVprbtS1tmzaf1jAm+wrB6EhGDKDp4qy+PiE1dH2svwiLmBuFxXd1Awod3IBVfXaF
/pCsM0RmE/mO5X0QW+5k+gln8vKNwnMBCWXgcy1tjIYdyFLWI62yZWLt7X6ABEPThj/Ove
S6TE2rSRCczjv0xcTLpjxbNSaneQC2yO/PxZLFfDjWZoxW6Ys+tyz4T0+NPAWBypjyrNK6
yUr3n+yuJE2xg60vLwIIMZtbjTg/D6XxLLTod1hFpHpYKAqksTsjDPChd97Lvg==
ARC-Authentication-Results: i=1;
aspmx1.migadu.com;
dkim=fail ("headers rsa verify failed") header.d=fastmail.com header.s=fm2 header.b=mtgyJ2EW;
dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=MyrK6g43;
dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.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: -0.12
Authentication-Results: aspmx1.migadu.com;
dkim=fail ("headers rsa verify failed") header.d=fastmail.com header.s=fm2 header.b=mtgyJ2EW;
dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=MyrK6g43;
dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.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: B0E0C3D66A
X-Spam-Score: -0.12
X-Migadu-Scanner: scn0.migadu.com
X-TUID: SZNXMFFJrfCf
--f2d1af019f424c7dbf19274f2151e085
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hey Juan,
Just wanted to let you know that this works beautifully!
I wish I was as good at Elisp to make this in the first place, but this =
really helps since I wanted to have some minimum overhead for 2 separate=
websites to be able to just write in Org Mode but include ideas for but=
tons, with classes and ID values.
This helps a ton, thanks so much as it totally worked! :)
Sincerely,
Sam
On Sun, Feb 20, 2022, at 7:38 PM, Samuel Banya wrote:
> Thanks for this, will try this for my Emacs config.
>=20
> On Sat, Feb 19, 2022, at 4:51 AM, Juan Manuel Mac=C3=ADas wrote:
>> Juan Manuel Mac=C3=ADas writes:
>>=20
>> > If you want to pass the class or id 'manually' to each link, and th=
us
>> > have more control, you can evaluate this other version, where the c=
lass
>> > or id would be added at the end of the link description, after (for
>> > example) "!style":
>>=20
>> PS: Sorry, this is the correct code:
>>=20
>> (org-link-set-parameters "button"
>> :face '(:foreground "green4" :underline t)
>> :follow (lambda (path) (browse-url path))
>> :export (lambda (path desc backend)
>> (when (eq backend 'html)
>> (let ((style (if (string-match "\\(!style\\)\\(.+\\)" desc)
>> (match-string 2 desc)
>> ""))
>> (desc (replace-regexp-in-string "\\(!style .+\\)" "" desc)))
>> (format "" style
>> path desc)))))
>>=20
>>=20
>> Example:
>>=20
>> [[button:http://www.sambanya.com/artgallery.html][Art Gallery Page Li=
nk !style class=3D"mybutton"]]
>>=20
>> =3D=3D HTML =3D=3D>
>>=20
>>
>>
>>
>>=20
>>=20
>=20
--f2d1af019f424c7dbf19274f2151e085
Content-Type: text/html;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hey Juan,<=
br>
Just wanted to let you know that this works=
beautifully!
I wish I was as good at Elisp=
to make this in the first place, but this really helps since I wanted t=
o have some minimum overhead for 2 separate websites to be able to just =
write in Org Mode but include ideas for buttons, with classes and ID val=
ues.
This helps a ton, thanks so much as it=
totally worked! :)
Sincerely,
Sam
On Sun, Feb 20, 2022, =
at 7:38 PM, Samuel Banya wrote:
Thanks for this, will try this for my Emacs config.=
On Sat, Feb 19, 2022, at 4:51 AM, Juan Man=
uel Mac=C3=ADas wrote:
Juan Manuel Mac=C3=ADas writes:
<=
div>> If you want to pass the class or id 'manually' to each link, an=
d thus
> have more control, you can evaluate this other=
version, where the class
> or id would be added at the=
end of the link description, after (for
> example) "!s=
tyle":
PS: Sorry, this is the correct code:=
(org-link-set-parameters "button"
:face '(:foreground "green4" :underline t)
=
:follow (lambda (path) (browse-url path))
:export (lambda (path desc backend)
&=
nbsp; (when (eq backend 'html)
&nb=
sp; (let ((style (if (string-match "\\(!style\\)=
\\(.+\\)" desc)
(match-string 2 desc)
=
""))
&nbs=
p; (desc (replace-regexp-in-string "\\(!style .+\\)" "" desc)))
(format "<form><button %s
 =
; formaction=3D\"%s\">%s</button></form>" style
=
path desc)))))
=
Example:
=3D=3D HTML =3D=3D>
<=
;p>
</p>
=
--f2d1af019f424c7dbf19274f2151e085--