From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32684 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 18:23:21 +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="000000000000febd6005fc4ab0e8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5652"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: bpj Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBBFOV2RQMGQESXLTBKY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 22 18:23:39 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f183.google.com ([209.85.210.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q18Ju-0001He-WD for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 22 May 2023 18:23:39 +0200 Original-Received: by mail-pf1-f183.google.com with SMTP id d2e1a72fcca58-64d1cbfb240sf2837918b3a.0 for ; Mon, 22 May 2023 09:23:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684772617; cv=pass; d=google.com; s=arc-20160816; b=n1obP4c7fTW7ToP3QT2IPjLBU1xksk0fteTyt3sCIIhoS8vlJaX3kZ6FbGd07prdU3 GxL4HsxndndVb6vmC9X8Jn0Kso8/umkKXi3QYyG9EO97ZH0P5tzBvfq1rK8Bf2A2yNbI QNmWxXaJ19qyIPuggufeb/ywlzx/af0BlT1ceoIeOZfhOT/J3N5MJlCtj8kC9oMzc4I5 cLvDTCV6vdPRXoWrQ7G0AblPuZZXtsguNMIUpZoOhacar/h5bM8lPUoDOFci6mSprV7z fedO3EU/wvvKzFTcRJZ71HSednlmX99ZrZI+KuxnbETQvIxzeiyrCkC4K52SKseQalIY LIfA== 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:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=VtSyW9Nn0CztfuzTEtBOdeziwob634f4288KJ3Aho9A=; b=MoHnLq8CQIzt30Azh/YsYypbAUaDqawLQ3X17I9ByMSCq0T834+oiz0EI+oGUS11Ml RMQ+sUE5fEXKoLhefVr/t6IS8HdyMMzWR+RvoGsXkIkh/Y4FqW1GuZoO9YG7gAMDb+np IZHfReO1XGdbFrfCIQW9u3AvuZ1Qm+5N36GE9RtqA6hJRGN72kGjTn0mmCrto9caze6B JjtTC6RIUPEpEBY1X2ivZ7TxAvbMzql6SxX5ie1FutXhbDg3UYKAE9WD5porkBGfI683 NzDIYWqwbqVgGZlgjtSJFiFMRV9qBY2WZY9nrfLN8EqmYWwZTrKcZwbF2RMpAKchZmZD mZaw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.128.175 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=1684772617; x=1687364617; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc: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=VtSyW9Nn0CztfuzTEtBOdeziwob634f4288KJ3Aho9A=; b=BupFOF33BjpX9dksdzd+PTb82n/yYc7MS9h5bj/c0XRmOzCBPZJbnh9g/ivxLuGJiK XoXKvndo5vG7/MehK/XRT5PkaFD37cTEP3oa5EInTFWtiQDPdgDE2+ASffnH0EET52Q4 rQKjAH+z3NkdzHYBIh32zaMMT72zuqtnPJpiL96TESVJL3oG8+5Kc+1K1V+UGBJD9BWb wgBx5RSRiRm/4L2bhMhc5Wyo5+tXMYQuvxYruCBEI/sb2JIJ+JrZZippBbQZc7xuDpAp +Mj5FccPr0CEkHg8E/teX5ZhRK7FKunkBT8eOOoO4diNeM9LpuzRh1tLL+ipKRTLZs8c X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684772617; x=1687364617; 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:cc: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=VtSyW9Nn0CztfuzTEtBOdeziwob634f4288KJ3Aho9A=; b=OU6aQZ0QyKFCAM82o8rcfGDGZGbYeuOpUUEPkk+aScWWYhAsUCGoOFC5kPU5ZIelRl sz2E6wuXoYVPxiQWMPwSTdhZOxyKLHvS/aFwYCgrf4wmMJpdpn/C0TC9MmykShXw7lU7 uUZIhZUwjeoytbbAU/OZEY2K4FPsCuMua7g0ZeNxfa8PRuAe0fM95ejlngB8ZVmnPWK8 dkTiI093pODh7kfWFbm+GW1Bgzixej/K3SYzvyhIvwGyAs251AOMVo1vwsSqzagr4pip Egh Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyu+mo0VQRjmixqWmN8jk/yeq2cU68TG2ZdWkfzjI5pp0d8lpQI sl++vPE3YBMuljvTzVYltq4= X-Google-Smtp-Source: ACHHUZ43UjS7V4dWmL6Q4F4AMzswKIF5/R28Ws0d8m9h6eq42DdORsftN8JHDPXOtl2PDdteIs02xw== X-Received: by 2002:a05:6a00:2d90:b0:643:8cc5:48be with SMTP id fb16-20020a056a002d9000b006438cc548bemr4780482pfb.2.1684772617535; Mon, 22 May 2023 09:23:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:cd85:0:b0:64d:6575:dc3f with SMTP id o127-20020a62cd85000000b0064d6575dc3fls1846683pfg.0.-pod-prod-08-us; Mon, 22 May 2023 09:23:32 -0700 (PDT) X-Received: by 2002:a05:6a00:14c4:b0:643:9ca:3c7d with SMTP id w4-20020a056a0014c400b0064309ca3c7dmr14297306pfu.4.1684772611898; Mon, 22 May 2023 09:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684772611; cv=none; d=google.com; s=arc-20160816; b=Fp+dh2CuZCCUP0nGx1Lkix+8pPeVcHGudIKWOKRpQNDxvrHj7G8yVGbWMf8qyQmUf6 Ebzpt7qJgqA94HHmsykL9mysbOwD+j65u8/nJcIW8pVrVxJ1nYMNiEmlakkUTobhGRMs gB3RItK5bu51pd2paPxDh8W7ThZ6Q3QvgGYS/nhJ1edZEHiaMOpKWkFJqd4gqkbujoTm IhahgP7Gtw0Dd6Br52uHQ2Tim4k9X7xQ2sVrYGTG1BQhQ+SvYnS/zr39f9Rd4FcHRMA6 FbioEOQ4m6GqVQdw/j3LpFBNo+bF4JvHpJtbPycA/X7u9T0o0ra+FVme3facTBkDoyb8 WZVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=YvVCvhUaCAsicj5tbGj/nYwthpwU1FlHeGvwOw5HTZQ=; b=LxJ1ECICo9ihXB9Qu6C6UZT0958kaB0WdBMdewhfvV/288r54+G1Q8ktkcftrwSYBH KVFhMiy1n8pABbW45SWRkeIaH1WiPFA2LYf8jLxJnjVDjB2LbO3xpISM6MKuu2j4vXLE RJlTW4weAzLtE9Kf/mqHJC6THMp8pQAKlZ1lcENNyPpc7w7ZfVMV3xNbBly6NbV4OkJo aW/FkNtijrX8OuvUp23FFnhWdYeNt/tKX4/Mb5arLT+lBPuP020Pqr8RxlbzC10Y12vc LTFa7euYjTuEXjJOVayH+TLSqTANby3/pHWqNhx/P8KCUOoYjstIRyvpwveloJxYUZ/w WL/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.128.175 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by gmr-mx.google.com with ESMTPS id dw10-20020a056a00368a00b0064d71940f98si367831pfb.5.2023.05.22.09.23.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 09:23:31 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.128.175 as permitted sender) client-ip=209.85.128.175; Original-Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-562191bcfb9so34450327b3.3 for ; Mon, 22 May 2023 09:23:31 -0700 (PDT) X-Received: by 2002:a81:8746:0:b0:55a:574f:327c with SMTP id x67-20020a818746000000b0055a574f327cmr12116763ywf.13.1684772610815; Mon, 22 May 2023 09:23:30 -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.128.175 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:32684 Archived-At: --000000000000febd6005fc4ab0e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://rclone.org/drive/#import-export-of-google-documents Den m=C3=A5n 22 maj 2023 17:57BPJ skrev: > Also rclone fetches docs from drive as docx > > https://rclone.org/ > > Den m=C3=A5n 22 maj 2023 17:40BPJ skrev: > >> >> https://www.computerworld.com/article/2835663/easily-convert-google-driv= e-files-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 fr= om >>> 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= to >>> get from gdoc -> markdown as easily as possible >>> >>> THX! >>> >>> On Mon, May 22, 2023 at 3:20=E2=80=AFAM ThomasH wrot= e: >>> >>>> 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" \{}`; pand= oc >>>> --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 fo= r >>>>>> the time being, I have a lot more than that, but in one directory th= ere 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 i= s 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-= b5b0-9faee1b2b1a4n%40googlegroups.com >>>>>> >>>>>> . >>>>>> >>>>> -- >>>>> >>>>> You received this message because you are subscribed to a topic in th= e >>>>> Google Groups "pandoc-discuss" group. >>>>> To unsubscribe from this topic, visit >>>>> https://groups.google.com/d/topic/pandoc-discuss/B4Jq1uKSe0I/unsubscr= ibe >>>>> . >>>>> 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/CADAJKhA7A1QLd5SMqkv= xs%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/unsubscri= be >>>> . >>>> 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-b6= b8-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%2Bf0= RcHXCy3a%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/CADAJKhDdiyiPq82uCqAA5EhkS2-9NT5rdaqOMVEthrE3cyb6sw%40mail.g= mail.com. --000000000000febd6005fc4ab0e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also rclone fetches docs from drive as docx
<= br>

Den m=C3=A5n 22 maj = 2023 17:40BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> skrev:

Den m=C3=A5n 22 maj 2023 15:06Mark Pins= ley <mark-NHpudssogepBDgjK7y7TUQ@public.gmane.org> skrev:
Thank you.=C2=A0

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.=C2=A0

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

THX!

<= img width=3D"0" height=3D"0" alt=3D"" style=3D"display:flex" src=3D"https:/= /mailtrack.io/trace/mail/9d0f777d28fd3c41a2e1695f247186f51dffe5f5.png?u=3D8= 226678">
On= Mon, May 22, 2023 at 3:20=E2=80=AFAM ThomasH <therc= h@gmail.com> wrote:
What do you want to batch process? The downloading or the t= ranslation 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&#= 39; \; -print

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

Thx
Mark



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

Just download them as DOCX (the gdoc downlo= ad 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 <ma...@pins= ley.com> skrev:
I have a whole bunch of google docs in a folder. Let say 20 files fo= r the time being, I have a lot more than that, but in one directory there a= re twenty files.

I want to convert all of these files fr= om .gdoc to .md

1. I didn't see any way for pa= ndoc to do this, is there a way?
2. Is there a way to batch proce= ss 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 usi= ng the Github editor or another editor. I was using StackEdit, but it doesn= 't look like it is being supported.=C2=A0

Than= ks

--
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 pan= doc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.goog= le.com/d/msgid/pandoc-discuss/b3abcff6-701d-4a64-b5b0-9faee1b2b1a4n%40googl= egroups.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/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discus...@googlegroup= s.com.
To view this discussion on the web visit https://groups.g= oogle.com/d/msgid/pandoc-discuss/CADAJKhA7A1QLd5SMqkvxs%2BNCCSxSap-NBVzG1-X= W1wf8zjdxwg%40mail.gmail.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-di= scuss/B4Jq1uKSe0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe@googlegr= oups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pando= c-discuss/948f1dc9-3efb-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+unsu= bscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.goog= le.com/d/msgid/pandoc-discuss/CAOtJyj6a2TLz9fUC%2Bf0RcHXCy3a%3Dn%2BWaaE%3Dz= skP3_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://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhDdiyiPq82uCqAA5EhkS2-9NT5rdaqOMVEt= hrE3cyb6sw%40mail.gmail.com.
--000000000000febd6005fc4ab0e8--