From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32674 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ThomasH Newsgroups: gmane.text.pandoc Subject: Re: Gdoc to md Date: Mon, 22 May 2023 00:20:46 -0700 (PDT) Message-ID: <948f1dc9-3efb-4b0c-b6b8-d72b446999adn@googlegroups.com> References: <8A9C0319-D2C4-4A77-B50E-02B2FCC050AD@edison.tech> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3336_822873623.1684740046051" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13896"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOJJAXZ7EPBBT5PVSRQMGQEI3NUPKQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 22 09:20:51 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f61.google.com ([209.85.160.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q0zqd-0003Pk-99 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 22 May 2023 09:20:51 +0200 Original-Received: by mail-oa1-f61.google.com with SMTP id 586e51a60fabf-19a7cc96585sf411555fac.0 for ; Mon, 22 May 2023 00:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684740050; x=1687332050; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=F5HQZ1GVmJIUQaJXCJW/NAu62vYBVS5V2EX7/LxWlMQ=; b=TGxzzXLYchw3sJzQfbUS71Y4iBnHzlJ/iMIPxdyPwOrfZmgr4P5i2rJqz9S6rYRRVf 9vM+0qa9vEgI3h0/DdLurw/C1EfkxFbTnrN0T4VJ5vHNamR8MW1iwiE12fVyIByfQddr jco7VPDI8w1GxobK+7xqjGuJLV7F+BKbFnZuaPEMm6WQnAngxZu2UcDpyQvaBj3QniUE YAIhMj1Qk1BH3wxmVjK3anLplBvskUjIR8oQFOKkvWOEKg5PEF2RmHZeTFmK2RcmUo2s HvffiYnRoc7ctNYPtG83PKjZcAFoArvGUea5kQGl7+2W1/ScbgfIRZYYP0appxCAHAhF 8QvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684740050; x=1687332050; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=F5HQZ1GVmJIUQaJXCJW/NAu62vYBVS5V2EX7/LxWlMQ=; b=L71ops7qWGceqSmDimfpTESAVwQRcp2jD/VMt6jVK4Mret4mabq5ROd9JElEs3RePc J6+unZNg+SaCgC6VcQpsql3k6jLUd87Is5gL4DrKQOI1z6cKMVvj4l0ozleyK6oMwvp/ jFGUPqNljveG79yE+f9eNfSYfCqWd56YGRORCx81k4AMyBaynvX65RtU746lp5pnkoC6 D1s9dtlIHYyWDJ/+8v98x7mmQih2gU8X4cXSCQ47+Cv0heVyPiHj5MRjClwTkHLXctxk TLvgaK56wu08y1vlopmxfoy0cqW0EMRD2Tk4H1wEphzcwfRIZlh5RrSGFgNtI/u81AHr e1ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684740050; x=1687332050; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=F5HQZ1GVmJIUQaJXCJW/NAu62vYBVS5V2EX7/LxWlMQ=; b=A3Li1wICXb8WU/8EUllwuMAzrKJjNTxekkqE1dGhqYu+USxR5x+MG7iFExkz5hsZQB Z22IMjsKXA70UN109K4IrgQpeQ2dDpDVNeocLR1EjC5D/TWKd/2eSNpg7a4kmGrxhzTX OXlvQwDRazqh+lb2URZDfnwVnEBSfGbtbMCnht2x3i/WycDnhcfq8JLJKUTLG1lThhFA yblSHQKepZI8QohWOiUkhhf4H7GcbNhBWl1+OqT5AKIw4AgLsohx9cqocKLt8TXdeCIo b3eqDUn+NR1Sz9uwlX02/gP4SUgMdsCioDSvfNYuIHgHllsQJb Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDycBcnw55o8NP6MkTZ+YHSfBX2A0S3CFWRJoxHOHbEnY2PRN/5Y JyZts3IXJsp2/Jb8npk7FVM= X-Google-Smtp-Source: ACHHUZ77zLrTVPQM3UxZD9CYASdjULXzZKoqWo6MXxYz7buw1n4dDR7inzTojL0WT1mY/pDeXiHo/g== X-Received: by 2002:a05:6871:a6a8:b0:17e:2e88:40dc with SMTP id wh40-20020a056871a6a800b0017e2e8840dcmr2040565oab.11.1684740050175; Mon, 22 May 2023 00:20:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:6a9d:b0:19a:355a:bf90 with SMTP id zf29-20020a0568716a9d00b0019a355abf90ls409225oab.1.-pod-prod-03-us; Mon, 22 May 2023 00:20:46 -0700 (PDT) X-Received: by 2002:a05:6870:c787:b0:187:d96b:5df3 with SMTP id dy7-20020a056870c78700b00187d96b5df3mr3315514oab.2.1684740046764; Mon, 22 May 2023 00:20:46 -0700 (PDT) In-Reply-To: <8A9C0319-D2C4-4A77-B50E-02B2FCC050AD-85mlybbDJu0gu7xKmIUUUg@public.gmane.org> X-Original-Sender: therch-Re5JQEeQqe8AvxtiuMwx3w@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:32674 Archived-At: ------=_Part_3336_822873623.1684740046051 Content-Type: multipart/alternative; boundary="----=_Part_3337_1858846670.1684740046051" ------=_Part_3337_1858846670.1684740046051 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable What do you want to batch process? The downloading or the translation with= =20 pandoc? For batch translation you can use something like this: find -name "*.docx" -exec sh -c 'f=3D`printf "%q" \{}`; pandoc=20 --from docx --to md --output=3D/${f%.*}.md $f' \; -print On Sunday, May 21, 2023 at 4:47:25=E2=80=AFPM UTC+2 Mark Pinsley wrote: > Thank you.=20 > Is there someway to batch process this as there are a lot of files=20 > > Thx > Mark > > > > On May 21, 2023 at 3:35 AM, wrote: > > Just download them as DOCX (the gdoc download mechanism has an option for= =20 > that) and convert those DOCX files. I do it "all the time" (I don't use= =20 > gdoc myself but my collaborators do). Uploading DOCX to gdoc is also a=20 > breeze. > > Den fre 19 maj 2023 23:50Mark Pinsley skrev: > >> I have a whole bunch of google docs in a folder. Let say 20 files for th= e=20 >> time being, I have a lot more than that, but in one directory there are= =20 >> twenty files. >> >> I want to convert all of these files from .gdoc to .md >> >> 1. I didn't see any way for pandoc to do this, is there a way? >> 2. Is there a way to batch process this? I don't want to have to go into= =20 >> every google doc and save as, and then convert >> >> Lastly, what tools are you using to collaborate in MD. are you putting= =20 >> things into github? If so are you using the Github editor or another=20 >> editor. I was using StackEdit, but it doesn't look like it is being=20 >> supported.=20 >> >> Thanks >> >> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/b3abcff6-701d-4a64-b5b0= -9faee1b2b1a4n%40googlegroups.com=20 >> >> . >> > --=20 > > You received this message because you are subscribed to a topic in the=20 > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit=20 > https://groups.google.com/d/topic/pandoc-discuss/B4Jq1uKSe0I/unsubscribe. > To unsubscribe from this group and all its topics, send an email to=20 > pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhA7A1QLd5SMqkvxs%2= BNCCSxSap-NBVzG1-XW1wf8zjdxwg%40mail.gmail.com=20 > > . > > --=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/948f1dc9-3efb-4b0c-b6b8-d72b446999adn%40googlegroups.com. ------=_Part_3337_1858846670.1684740046051 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
What do you want to batch process? The downloading or the translation = with pandoc?

For batch translation you can use s= omething like this:

find <subdir> -name "*= .docx" -exec sh -c 'f=3D`printf "%q" \{}`;=C2=A0 pandoc --from docx --to md= --output=3D<subdir>/${f%.*}.md $f' \; -print

On Sunday, May 21, = 2023 at 4:47:25=E2=80=AFPM UTC+2 Mark Pinsley wrote:
Thank you.=C2= =A0
Is there someway to batch process this as there are a lot of = files=C2=A0

Thx
Mark

<= /div>


On May 21, 2023 at 3:35 AM, <BPJ> wrote:

=
<= div>
Just download them as DOCX (the gdoc download mechani= sm has an option for that) and convert those DOCX files. I do it "all = the time" (I don't use gdoc myself but my collaborators do). Uploa= ding DOCX to gdoc is also a breeze.

Den fre 19 maj 2023 23:50Mark Pinsley &l= t;ma...-NHpudssogepBDgjK7y7TUQ@public.gmane.org> skre= v:
I have a whole bunch of google d= ocs in a folder. Let say 20 files for the time being, I have a lot more tha= n that, but in one directory there are twenty files.

I w= ant to convert all of these files from .gdoc to .md

1. I didn't see any way for pandoc to do this, is there a way?
<= div>2. Is there a way to batch process this? I don't want to have to go= into every google doc and save as, and then convert

Lastly, what tools are you using to collaborate in MD. are you putting t= hings into github? If so are you using the Github editor or another editor.= I was using StackEdit, but it doesn't look like it is being supported.= =C2=A0

Thanks

--
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-discus= ...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b= 3abcff6-701d-4a64-b5b0-9faee1b2b1a4n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/B4Jq1uKSe0I/unsub= scribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.<= br> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/CADAJKhA7A1QLd5SMqkvxs%2BNCCSxSap-NBVzG1-XW1wf8zjdxwg%40m= ail.gmail.com.

--
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://groups.google.com/d= /msgid/pandoc-discuss/948f1dc9-3efb-4b0c-b6b8-d72b446999adn%40googlegroups.= com.
------=_Part_3337_1858846670.1684740046051-- ------=_Part_3336_822873623.1684740046051--