From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32682 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Gdoc to md Date: Mon, 22 May 2023 17:40:52 +0200 Message-ID: References: <8A9C0319-D2C4-4A77-B50E-02B2FCC050AD@edison.tech> <948f1dc9-3efb-4b0c-b6b8-d72b446999adn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000009b7bd05fc4a19d4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30574"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBDU2V2RQMGQEFW2VHLQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 22 17:41:06 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q17ej-0007ns-KH for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 22 May 2023 17:41:05 +0200 Original-Received: by mail-ot1-f62.google.com with SMTP id 46e09a7af769-6af89ffa570sf145613a34.1 for ; Mon, 22 May 2023 08:41:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684770064; cv=pass; d=google.com; s=arc-20160816; b=MxTwM8VODNDNYkV/1mrIqdrP86LKbx27+BbAY/uB89KHY0PP2s8N/rr004M2u7Vl3+ TIh3olF9yxCPQWrs071P/1XalKksC3K8OGzNEKyONIOF6jDWI2+QL40ahyNydjoc3SEJ mukV884o+RyzQFO0A0FRGJ1qwnam1uRkeo+BUtY2SEOiEF+bKZNyDs3U+sE2hiMINs4p sqtsxg1qvwxyw+K+lQuirrMwa56LIScB5uuQLxbbfPTyNfS5EEeP5Z9nlXhiz426a6qW EUNxIftD47yRcU+o+iRZ9dPY7OI3Oq1YEtNXdUvJ+lPFNPUxI1qkCnK8bZd010Sw6emF 6Mhw== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=pXGkUIzoELGGxIqeNaYoPBHZyq3KLfc+A7dbUzt3WsI=; b=JSauKfs5Buz25QXwfqmC/aOAC5+QDZI1O3VxtvrsMm4pdmXtuIjRfHY4Jz939cD41u gOuPpxblyVDYN1UkUphoZKGqzf0MswNm9KFOTHDwIYhQCfK4jR/VGQHu5g5/AqHf+Gkz IuNLysKSSWSAiU2DbKUmZEXVroYcArJxAMeYwaC7f6WLMoPDuqVwfhPE9/q7PH1hgRg9 qj+hDhuBGceo164kfHebqCIfp7xQLnKRZ3dXm/gGbE5zrz3O1NJlcYNheMGDN5ICVVsj ezzW6qshrpmdLq6tUR1L5xt9EDA5YG4iU3VCxyPj8fg3kSd05uU/3ZTgSC5wnS87Gr+Z d1ng== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.171 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684770064; x=1687362064; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=pXGkUIzoELGGxIqeNaYoPBHZyq3KLfc+A7dbUzt3WsI=; b=S2Uh8sOgrON6uFOiSp1GI1dRXsaknn2Kr28B3hO9YFesK1MdDbbOKXI1znVn2VrWTu bmw2bmyFgqq6fo43spnd8YuC+b2PzXcR9Zaj8HTPUdzumeFphyhYyW1GrB/672sXIbNW m4VmS7aRQJm2phK6z9Bj0Y1KqZigN1SW1iNQCkvm0+PZYx6unaymL97QlEBVUoeNnyNS hni9uxufdj2AYglwKVL7bdK/iJS1GdN+MbninO+BMASRHjbKOc58ImPV6ihF8SwGHzAg mYmBSTcWBWX9j0NvvGehXtn7DNe0QGekpB2clVnu3gKco3bSxBCQb1AekWlsL8tKEGtp X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684770064; x=1687362064; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=pXGkUIzoELGGxIqeNaYoPBHZyq3KLfc+A7dbUzt3WsI=; b=GzT/I3TZGmYPfeVd86OMK5aQ+4Vk5pDwbg0Ip/aPCzInVRX8Hhs2vdlA4fVbqUCYNR y53Iq7wefwKmyD1Y6NNoakNC/g4wXzLKnptYKZhJx6CR8fzfJ8tWb5UbD7HiMxKIyD10 BzbU3bNCIkuvJoGP7u7ILxnRTz8aFxEhnMnUNiiHfhhz+Rd2GAdpcv8AIar9H8gskrBU zyUoF518MVQhpnvoE81CevyCJV0c/Gl9kE4g2xekOMklcTMabqEnsZNjxKcJsePVUZZg rG+yXJ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyoXQ7ncgslecc8wL0auTzMQBjcLbNOBl0NXTy0gaKqNIYpSvAE gM8IWj/6bzLmwONnVsT+7r0= X-Google-Smtp-Source: ACHHUZ4hXnWf7T2RnSsa7v97hK2OYVXa7R7wt+/Cz9uykIvXLBmN6k2v2lVLObbSxaaNfTEv9DmaEg== X-Received: by 2002:a05:6830:378a:b0:6aa:fa0b:cad4 with SMTP id bi10-20020a056830378a00b006aafa0bcad4mr5062358otb.2.1684770064421; Mon, 22 May 2023 08:41:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:d043:0:b0:54f:f848:3950 with SMTP id x3-20020a4ad043000000b0054ff8483950ls698793oor.0.-pod-prod-03-us; Mon, 22 May 2023 08:41:02 -0700 (PDT) X-Received: by 2002:aca:1107:0:b0:397:fb63:73b2 with SMTP id 7-20020aca1107000000b00397fb6373b2mr2233467oir.36.1684770062149; Mon, 22 May 2023 08:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684770062; cv=none; d=google.com; s=arc-20160816; b=ku1xAN8zhRKU/PwQMU8jL11nkczBWiMXSqHkwt2vZFKIARpRpoquOQ2BchQWfocYCz q9PJvN0BMfvN3gr2pU1t7JFWKN/bl5nZnzUx7Ew2GWtaoxWXjUntMhOQ3z8Fquoh/BUI kOJNvZeFYpGNYd3kFYwKCsd/7i4g0XfrqIBy2HqVOuTJqlEsDXqf2sDXlNib/a1A6CWo Q7p3FrGd36gq88rLYwKygxqlMRs70SKjYXLZ1BZvk6QqTVzdEEQUq1OU1x167UR1+cEK MD+5c6aaDR2S3lb+2PFPfWkBmDhfe+dHd7WlXpDPKiAReJToTiXR7cSeRaxk/QmPA3w8 DNhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=ya5K5hMfqHLOJYb7RXgubTf5tcQdvE48pW9zYIUv8GY=; b=g15mqBtWJJiQTUL1OHEGXG+e2ztVAzxu6LeTgNnae8W5Q8yp/gGVR/N36/8jFOvop7 fXLS3+AWp5XtcUJYhHg8/LnmZwtULMX+8pROxUpemlWflV9AS1IuiwXRKNZzwRImbkap hGEMM3D48RkZk4fWQHjtfWy7mV9sZwh+0Dm7j+jNtsV4syCBRSNkvQefenJ84wueQgEs 2cSfSgkAcoE/eikIGgxzRiWaD7nPDzTTXeaCkTrSDIJeitg097Q0sfz6sVG2rFTK6/So EKewErdoWWtRBwIE0RoxW81Q22S7r/+tsRykHZNYhDjm2jfzvJokNkwWzasefDSmNwVS Tylg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.171 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by gmr-mx.google.com with ESMTPS id 126-20020aca0584000000b003925998258asi715271oif.5.2023.05.22.08.41.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 08:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.171 as permitted sender) client-ip=209.85.219.171; Original-Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-ba80dc46972so9010430276.2 for ; Mon, 22 May 2023 08:41:02 -0700 (PDT) X-Received: by 2002:a25:50ca:0:b0:ba8:6c1f:f5ad with SMTP id e193-20020a2550ca000000b00ba86c1ff5admr11163806ybb.29.1684770061398; Mon, 22 May 2023 08:41:01 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.219.171 as permitted sender) smtp.mailfrom=melroch-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:32682 Archived-At: --00000000000009b7bd05fc4a19d4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://www.computerworld.com/article/2835663/easily-convert-google-drive-f= iles-to-microsoft-office-in-one-big-batch.html Den m=C3=A5n 22 maj 2023 15:06Mark Pinsley skrev: > Thank you. > > Background: I have several hundred gdocs that I want to convert to > markdown. I will then clean up the documents in markdown and convert from > md to HTML. > > What I have been trying to **avoid** is having to open all of the gdocs > one by one and then have to save them as a docx one by one. I am trying t= o > get from gdoc -> markdown as easily as possible > > THX! > > On Mon, May 22, 2023 at 3:20=E2=80=AFAM ThomasH wrote: > >> What do you want to batch process? The downloading or the translation >> with pandoc? >> >> For batch translation you can use something like this: >> >> find -name "*.docx" -exec sh -c 'f=3D`printf "%q" \{}`; pandoc >> --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. >>> Is there someway to batch process this as there are a lot of files >>> >>> Thx >>> Mark >>> >>> >>> >>> On May 21, 2023 at 3:35 AM, wrote: >>> >>> Just download them as DOCX (the gdoc download mechanism 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). Uploading DOCX to gdoc is also a >>> 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 >>>> the time being, I have a lot more than that, but in one directory ther= e are >>>> 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 every google doc and save as, and then convert >>>> >>>> Lastly, what tools are you using to collaborate in MD. are you putting >>>> things 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. >>>> >>>> Thanks >>>> >>>> -- >>>> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/pandoc-discuss/b3abcff6-701d-4a64-b5= b0-9faee1b2b1a4n%40googlegroups.com >>>> >>>> . >>>> >>> -- >>> >>> You received this message because you are subscribed to a topic in the >>> Google Groups "pandoc-discuss" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/pandoc-discuss/B4Jq1uKSe0I/unsubscrib= e >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhA7A1QLd5SMqkvxs= %2BNCCSxSap-NBVzG1-XW1wf8zjdxwg%40mail.gmail.com >>> >>> . >>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/pandoc-discuss/B4Jq1uKSe0I/unsubscribe= . >> To unsubscribe from this group and all its topics, 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/948f1dc9-3efb-4b0c-b6b8= -d72b446999adn%40googlegroups.com >> >> . >> > -- > 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/CAOtJyj6a2TLz9fUC%2Bf0Rc= HXCy3a%3Dn%2BWaaE%3DzskP3_tsDnPrCLA%40mail.gmail.com > > . > --=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/CADAJKhBnEqDvSh6EEm56zah-%2BTt0hYwnQUbm3fjQqzcbvWh7Aw%40mail= .gmail.com. --00000000000009b7bd05fc4a19d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<= div dir=3D"ltr">Thank you.=C2=A0

Background: I have seve= ral hundred gdocs that I want to convert to markdown. I will then clean up = the documents in markdown and convert from md to HTML.=C2=A0

=
What I have been trying to **avoid** is having to open all of th= e gdocs one by one and then have to save them as a docx one by=C2=A0one. I = am trying to get from gdoc -> markdown=C2=A0 as easily as possible
=

THX!

=3D""
On Mon, May 22, 2023 at 3:20=E2=80= =AFAM ThomasH <therch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
What do you want to batch process? Th= e downloading or the translation with pandoc?

For = batch translation you can use something 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 so= meway to batch process this as there are a lot of files=C2=A0
Thx
Mark


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

<= /div>
Just download them as DOCX (the gdoc download = mechanism has an option for that) and convert those DOCX files. I do it &qu= ot;all the time" (I don't use gdoc myself but my collaborators do)= . Uploading DOCX to gdoc is also a breeze.

Den fre 19 maj 2023 23:50Mark Pin= sley <ma...-NHpudssogepBDgjK7y7TUQ@public.gmane.org> skrev:
I have a whole bun= ch of google docs in a folder. Let say 20 files for the time being, I have = a lot more than that, but in one directory there are 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 every google doc and save as, and then convert

Lastly, what tools are you using to collaborate in MD. are= you putting things into github? If so are you using the Github editor or a= nother editor. I was using StackEdit, but it doesn't look like it is be= ing 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...@googlegr= oups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-= discuss/b3abcff6-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/B4Jq1uK= Se0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pand= oc-discuss/CADAJKhA7A1QLd5SMqkvxs%2BNCCSxSap-NBVzG1-XW1wf8zjdxwg%40mail.gma= il.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/unsu= bscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/948f1dc9-3= efb-4b0c-b6b8-d72b446999adn%40googlegroups.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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-= discuss/CAOtJyj6a2TLz9fUC%2Bf0RcHXCy3a%3Dn%2BWaaE%3DzskP3_tsDnPrCLA%40mail.= 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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhBnEqDvSh6EEm56zah-%2BTt0hYwnQUbm= 3fjQqzcbvWh7Aw%40mail.gmail.com.
--00000000000009b7bd05fc4a19d4--