From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31913 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leonard Rosenthol Newsgroups: gmane.text.pandoc Subject: Re: Easy tool for quick conversions? Date: Thu, 22 Dec 2022 19:19:44 -0500 Message-ID: References: <3f9886ae-c6f3-3843-d921-058592f28994@usa.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c9404305f073bea7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3586"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCDIL7E46MGBBL7ISOOQMGQEWNQG6OQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Dec 23 01:20:05 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f192.google.com ([209.85.214.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p8Vn9-0000hy-Jf for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 23 Dec 2022 01:20:03 +0100 Original-Received: by mail-pl1-f192.google.com with SMTP id z3-20020a170903018300b0018fb8ca1688sf2334039plg.5 for ; Thu, 22 Dec 2022 16:20:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671754802; cv=pass; d=google.com; s=arc-20160816; b=I3wkdtWdnG+c3939iRAhoSAJ5hscBDFY0OpHrtOVzI/5wI9HxUwohsu99CAZZs6VFu 4/3NkkHsiyKWRVrn9hkKG4kdr/4WZ34P6yWLYz7lkE54ac0QsFV+KTA+ISBUsNMgKvQC 7KulrQUO9T8tCZWNsGqv0hsU9tR57AbSSwbRrBHGqqy52ixiXjnrERilAyU8Xc+ULy3m 1Vn6TyCDGXjuJcKqJDNTnYaHZe6fAcN9ZVVCTxfavEOIvE9GH/+x2BhnAGawRAGkDS+o 7nwYKYGpvtPtlhfCBn6349PLMib6lHAkwB9XSrt/hOssC8zyyd3kX3iuhUv29t43C1NV O9lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=sDXMmXvp+7NC1/5quTzYRyBvToQohI0bInPNYnfU1jI=; b=DgjKHggRCbJYe4trN6Q2exXEohv50qH/ZXSk753WLe0MLa0Df/QUNV/pdc3p2oJFGS fzXixEIT6/I97eTLY4j+MfDIY49SSytuBuMdKcd0tDpbKf8x9D2+S+3J2cNJI2spoS7o 2+EgEYaKvEqfiNPHLP37aPnCPBmc2hwzIoh5OGiTmEbVqkxQH/W8BHENhaEzmLk97psw w5lU7HdRUM23EciGxR+HmQmPQIlJnaF9ebE+RhKmX4W2e6/bjHSVnAEtarXdTHewyRHv 0ltOw0tmfA4PKlEmZRB5WcrNIPWSSC1tEzVmQ4z+F5w6V1M0CB/ISlWxYLQFmc5IkPa1 hgug== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@lazerware-com.20210112.gappssmtp.com header.s=20210112 header.b=bh+zpdyu; spf=neutral (google.com: 2607:f8b0:4864:20::b34 is neither permitted nor denied by best guess record for domain of leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org) smtp.mailfrom=leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=sDXMmXvp+7NC1/5quTzYRyBvToQohI0bInPNYnfU1jI=; b=PKoLLk02HPjPo8zlWT05HzbavB/8/Szo50JDatM9kdjamtqztJi6G5JrE0winegup6 r8mifgidF7reozBSvInOcq6tTVJ7PNszOzTHreH8SbwhE0uN6EGR/BRr6hYZvTLwg2Rl ZwbTTL0uc9y9qw5zYkqsTzqU+3uvxeEfnXUB2T7utgP182CHeL3ubgCIbs9c5plLmr18 AzjtTvuxCYFnloGHAZq99fPpyzOowgb8gtZXOnewx4V8NRoiNSenwcxhfnoHYubBNtAl u5vH0ZNYT1s93sS4YADagnQkfhYFGnrLAS4K+Qds+j/IXuXSh7+mTWGKeANkmDOzUlpz cttw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=sDXMmXvp+7NC1/5quTzYRyBvToQohI0bInPNYnfU1jI=; b=2dAjgEAret/Gko4yyfOv7C8P5j+Bu9RHA4rdokgnHk5LeYbCDs8wYSWxqh6Su5yzBO gAPmciKo+HMwz2LwJn6t4JcbVYKBr1TAGw/IV2hVySvrEP+1EzLy7pzyXByjPldXvBRS FuRAYIjvZt5nfblrY6BBiwFN1EU9jOSsdawHZUdFYsQdzIWby/tP1sK7dCMD64HFrXp7 EkkUH3h0fHFOtXmRob9YUFNhhTICqUIzPci0v2EYc3F96NQSVl2MxbFxwKhz427+t9oV I1F1V2zt+ACs/FiSkXuPVB4A5H9PmSS3wFYpwiE/8T62xT Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2krOtYRXNcv8kEVf7h8PAb/6B/JJdnbuGp9rLlvvSZxbPqra+y8Q HDAGbqgAighiGxTaniTzNJU= X-Google-Smtp-Source: AMrXdXtdwwsQLFybEE1MPEjAHQSHc/14GzJysUgXsVLFQo1aa7Lbr2U3Z3ntunB14tekZ+e889kUpQ== X-Received: by 2002:a63:6684:0:b0:492:ca92:78c0 with SMTP id a126-20020a636684000000b00492ca9278c0mr379705pgc.21.1671754802164; Thu, 22 Dec 2022 16:20:02 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:f14c:b0:187:488a:58c8 with SMTP id d12-20020a170902f14c00b00187488a58c8ls3755152plb.9.-pod-prod-gmail; Thu, 22 Dec 2022 16:19:58 -0800 (PST) X-Received: by 2002:a17:903:3311:b0:189:6522:7cc0 with SMTP id jk17-20020a170903331100b0018965227cc0mr8193410plb.50.1671754798201; Thu, 22 Dec 2022 16:19:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671754798; cv=none; d=google.com; s=arc-20160816; b=opJI3dbq2THb70dJDguIdyEvcA4b2X1NttECm3LMYpBf+mPjwx3UCRu/iKIAkvz54A 43nwpjBo+r5VeEcTGPtT85VUUFMmiH8GpyQ2Izu8Vkmr7HLVBxrYkyQ4Yjfsg5TRUBlj tvZhoX44mAplD9tftQQYDQTO4kjMgObAD3XKcmTQckB4ZLOKOWlzmP58kVctWkMa7u53 PvMV+yDDz7fT2u/g7kZ8ejMVUsKd1EAWlnIhYmgTJAzfOeBZdcMWdcePIPMBxr7WtL6o Dv+4Q6hoS8avhiCdhumHHRecBCXGy9wcnMfihMDDx+NsDAQJ39bP/Nk0990SE4wYDEqk vzkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jHdNxAKWk5WjYeX3YTdDQvnGQTP4dgRSPMYwCM8iXUk=; b=euhRMRNGiEsu7JL2fct5ba9v3Wi1w+RsZAoAJes7pYPO0w4NUsqwP84cdvqR4JnLqT 0IiN578M+9EVRRJ/r+AB3MkFy/1oSeRrbiXjNynfzM4yZwbC+cihoJ0vjoJdQ3mhvNNX xmHi4OzeJdxzdG6m0+ge/7rGU/1M8ZvQsbeWUGYzBwrx/v9rpchOAptMB4BBngDMe9zK dOxrP8+PkNHGvtJSv7YEQhpDZD3MRU45wjlPJdGpj5iaea6zaZMGE9BnQ/Qzefw9DzX5 4ZS5cPRW2K06ySr8hQ1saCOvqay0z1psBDk/wgLuT6xdIP6B6daoKCzaBFT+h81nhniG WXDw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@lazerware-com.20210112.gappssmtp.com header.s=20210112 header.b=bh+zpdyu; spf=neutral (google.com: 2607:f8b0:4864:20::b34 is neither permitted nor denied by best guess record for domain of leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org) smtp.mailfrom=leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org Original-Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com. [2607:f8b0:4864:20::b34]) by gmr-mx.google.com with ESMTPS id c1-20020a170902d48100b00188a88cc62fsi140943plg.12.2022.12.22.16.19.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Dec 2022 16:19:57 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:4864:20::b34 is neither permitted nor denied by best guess record for domain of leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org) client-ip=2607:f8b0:4864:20::b34; Original-Received: by mail-yb1-xb34.google.com with SMTP id j206so3786169ybj.1 for ; Thu, 22 Dec 2022 16:19:57 -0800 (PST) X-Received: by 2002:a05:6902:1817:b0:723:be61:1a2c with SMTP id cf23-20020a056902181700b00723be611a2cmr854767ybb.130.1671754796311; Thu, 22 Dec 2022 16:19:56 -0800 (PST) In-Reply-To: <3f9886ae-c6f3-3843-d921-058592f28994-Jdbf3xiKgS8@public.gmane.org> X-Original-Sender: leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@lazerware-com.20210112.gappssmtp.com header.s=20210112 header.b=bh+zpdyu; spf=neutral (google.com: 2607:f8b0:4864:20::b34 is neither permitted nor denied by best guess record for domain of leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org) smtp.mailfrom=leonardr-bM6h3K5UM15l57MIdRCFDg@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31913 Archived-At: --000000000000c9404305f073bea7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I do exactly this with the Alfred workflow tool - https://www.alfredapp.com/. I have a variety of workflows setup for various conversions. Here's one for markdown->RTF, for pasting rich text into Office. pbpaste | pandoc --standalone --from=3Dmarkdown --to=3Drtf --output=3D- | p= bcopy Leonard On Thu, Dec 22, 2022 at 7:14 PM Daniel Staal wrote: > On 12/22/22 5:13 PM, Joseph Reagle wrote: > > I sometimes want to quickly convert one format to another within my > > clipboard manager. For example, Wikimedia Commons can give you the HTML > > or BBCode to embed an image, but I prefer markdown. > > For this, I usually go to , but I don't see > > support for parameters in its URL. (If it did, I could define some > > clipboard manager shortcuts to invoke common conversions via the web.) > > Or I sometimes want to convert from reference links to inline links or > > the reverse. > > > > I could write a script, making use of pbcopy/pbpaste, but was wondering > > what others do for these use cases? > > > > =E2=80=94Joseph > > > > As a Mac user, I use BBEdit. Paste in, and then feed to a short script > that reads the source language from the BBEdit lang. > > I have several different scripts in the BBEdit scripts folder that I can > apply, with different options. > > Daniel T. Staal > > -- > --------------------------------------------------------------- > This email copyright the author. Unless otherwise noted, you > are expressly allowed to retransmit, quote, or otherwise use > the contents for non-commercial purposes. This copyright will > expire 5 years after the author's death, or in 30 years, > whichever is longer, unless such a period is in excess of > local copyright law. > --------------------------------------------------------------- > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/3f9886ae-c6f3-3843-d921-= 058592f28994%40usa.net > . > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CALu%3Dv3%2B_5%3DGYfG7DzfgKgOKOcfRPftwrHpbQd6uZPqiZyfmgDQ%40= mail.gmail.com. --000000000000c9404305f073bea7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I do exactly this with the Alfred workflow tool=C2=A0 -=C2= =A0https://www.alfredapp.com/.
I have a variety of workflows setup for various conversio= ns.=C2=A0 Here's one for markdown->RTF, for pasting rich text into O= ffice.

pbpaste | pandoc --standalone= --from=3Dmarkdown --to=3Drtf --output=3D- | pbcopy=C2=A0

Leonard

On Thu, Dec 22, 2022 at= 7:14 PM Daniel Staal <DStaal-Jdbf3xiKgS8@public.gmane.org<= /a>> wrote:
O= n 12/22/22 5:13 PM, Joseph Reagle wrote:
> I sometimes want to quickly convert one format to another within my > clipboard manager. For example, Wikimedia Commons can give you the HTM= L
> or BBCode to embed an image, but I prefer markdown.
> For this, I usually go to <
https://pandoc.org/try/>, but I do= n't see
> support for parameters in its URL. (If it did, I could define some > clipboard manager shortcuts to invoke common conversions via the web.)= =C2=A0
> Or I sometimes want to convert from reference links to inline links or=
> the reverse.
>
> I could write a script, making use of pbcopy/pbpaste, but was wonderin= g
> what others do for these use cases?
>
> =E2=80=94Joseph
>

As a Mac user, I use BBEdit.=C2=A0 Paste in, and then feed to a short scrip= t
that reads the source language from the BBEdit lang.

I have several different scripts in the BBEdit scripts folder that I can apply, with different options.

Daniel T. Staal

--
---------------------------------------------------------------
This email copyright the author.=C2=A0 Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.=C2=A0 This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pando= c-discuss/3f9886ae-c6f3-3843-d921-058592f28994%40usa.net.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://g= roups.google.com/d/msgid/pandoc-discuss/CALu%3Dv3%2B_5%3DGYfG7DzfgKgOKOcfRP= ftwrHpbQd6uZPqiZyfmgDQ%40mail.gmail.com.
--000000000000c9404305f073bea7--