From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33369 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Kingett Newsgroups: gmane.text.pandoc Subject: Re: Merging and converting a Windows folder? Date: Wed, 22 Nov 2023 10:09:13 -0800 (PST) Message-ID: <9eba1a7f-1ea4-444d-96c6-8f835ade1915n@googlegroups.com> References: <8da3b66e-f14a-49d3-9b65-826df906073an@googlegroups.com> <477e4f86-2bf8-cffd-1512-05441b8fdb42@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_16890_682649920.1700676553698" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37517"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQNXJVFZIBRBS4H7GVAMGQEJ5YSICI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 22 19:09:19 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f60.google.com ([209.85.161.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r5rf4-0009V0-Tw for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 22 Nov 2023 19:09:18 +0100 Original-Received: by mail-oo1-f60.google.com with SMTP id 006d021491bc7-587a58f3346sf52340eaf.1 for ; Wed, 22 Nov 2023 10:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700676557; x=1701281357; darn=m.gmane-mx.org; 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=6kCiDcMIXcWwdGfyw+z6fReCdx4D93DxS2vYmkPUGvU=; b=MgD48/ww1aB2SWHhEJVjwgq8ApX/0K3u/JP3xLKCwbQuxCjTOZNWV6OX/nWuaV6hvL t7Uy93HLB2K7aUw0/lk7HJDOcpAySGsQyL5nTQTdKkLRrV1XfWkKqCX8mq3JVHrqE6b+ zmcMnLiePrkYLNV3orSVZhb3J7vZWPMAV3gc2LD8NMn84NpLozb9Q0tzY+rvoZd0qNIX P/SG7AeCxNMdoB3wfqvEHP1z+z6deHTKQEvRLHU/h2aZ0fPHBQwNB+FqWUV1DQqwuWOM SEejA0K1rSRL2YFzyhJICQ6xYcljotSbVC3g/1XiOXDecSgABSS3BTJKaAs7xG09jAKD nFxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700676557; x=1701281357; darn=m.gmane-mx.org; 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=6kCiDcMIXcWwdGfyw+z6fReCdx4D93DxS2vYmkPUGvU=; b=f6d2zl+XO71daZuzLjBRaWi3brRXcwqncabaTDCj2x+6ZDcNkvZixjx36wI2Ydf0wj tnpZxeLWsx24p4ehAC3olDeJcyeHY2FhQAClGmZt+ilPslBFcs4I4MCjtNZWDA+rKjPD ms9oS6sGxBbxAZjELPwvaIvyZxkDwuHXCGyNAL69ZE9ZI0MIgoJhgvgY/5XPINGHyeDc MkX7yVbHkTIX/COofz9EjGr14258CRs1GE/TvYWNVocRqEm98BCxySoCU3coBsFrpYPS RjQ8uqI5fydWJlcpAEwrerUuDsqEHC4F1ZVTnDZaK3ZW3cgrC+/O6Kxb71lgIVkp5P6D vUqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700676557; x=1701281357; 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=6kCiDcMIXcWwdGfyw+z6fReCdx4D93DxS2vYmkPUGvU=; b=OhJqkKGrwQLw+u280jmxR8WEY9cjual9aeW8hVla0BACe/pBsyp86QNywx9ulvZHtv arxqa4JDkld1wlakaRNyURem85qxYShNiY00MKyWDDyJ+B8mpZdkHyRe2slfDmvAU1OD x2tbbMqWdnawdMMcP3DNrmnw1KPwLlb6k2fj3sA2TYMN+qZi/YLE3E5Vo2/PMdLIZuiy 8Bc8rvRMU04fSaHh2zZHYz9xs18J3UKFVNh1lqiOowJYVFhZ4O7LbkIvR0HoMj0/Fhch t1fGfVX3x/znatuq5tGF1F13UhBbW1+UiKnNNdvUOAnCB4MJeE Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YztzeyXhs9Lhs2wvxwdM/0mWRLBdhpUTO615hxOhp406o2rRSiN FmLmDBUACviKilKg/oTEWOk= X-Google-Smtp-Source: AGHT+IEgUF7PGMFqyJ+sT1xj69qVdnBrHjvR3Rs0s59BV1/M+XxofAGd/ZX2IgYCGhPNiDkT1IsNag== X-Received: by 2002:a05:6820:222a:b0:582:1477:8362 with SMTP id cj42-20020a056820222a00b0058214778362mr4107513oob.4.1700676557702; Wed, 22 Nov 2023 10:09:17 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:1acb:b0:589:cff6:b9bf with SMTP id bu11-20020a0568201acb00b00589cff6b9bfls42670oob.0.-pod-prod-09-us; Wed, 22 Nov 2023 10:09:14 -0800 (PST) X-Received: by 2002:a05:6820:81f:b0:581:f31d:9664 with SMTP id bg31-20020a056820081f00b00581f31d9664mr267198oob.1.1700676554373; Wed, 22 Nov 2023 10:09:14 -0800 (PST) In-Reply-To: X-Original-Sender: kingettspeaks-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:33369 Archived-At: ------=_Part_16890_682649920.1700676553698 Content-Type: multipart/alternative; boundary="----=_Part_16891_1637131079.1700676553698" ------=_Part_16891_1637131079.1700676553698 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Wanted to bring this up again, I found a really easy way to convert all=20 files in a directory, while merging them as well. The below command should= =20 be used in powershell. pandoc (get-item *.txt).FullName -o final.docx If you wanted to convert a directory of Docx files and merge them all into= =20 one, use the below command. I kept the --wrap=3Dnone in there because your= =20 text will look ghastly otherwise, so it's best to have no wrapping at all= =20 when converting to an MD or TXT file. pandoc (get-item *.docx).FullName --wrap=3Dnone -o final.md On Thursday, January 19, 2023 at 12:18:23=E2=80=AFPM UTC-6 BPJ wrote: > It can be in the first file but I would put it in its own metadata.yaml= =20 > file and include it with the --metadata-file=3DYAMLFILENAME option. That = way=20 > you can convert the files singleton if you wish. > > Den tors 19 jan. 2023 13:16 skrev: > >> It does help! If I have multiple files in a folder the way you outlined,= =20 >> does the YAML have to be in all the chapters or can it just be in 001? >> > --=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/9eba1a7f-1ea4-444d-96c6-8f835ade1915n%40googlegroups.com. ------=_Part_16891_1637131079.1700676553698 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wanted to bring this up again, I found a really easy way to convert al= l files in a directory, while merging them as well. The below command shoul= d be used in powershell.

pandoc (get-item *.txt)= .FullName -o final.docx

If you wanted to convert= a directory of Docx files and merge them all into one, use the below comma= nd. I kept the --wrap=3Dnone in there because your text will look ghastly o= therwise, so it's best to have no wrapping at all when converting to an MD = or TXT file.

pandoc (get-item *.docx).FullName= =C2=A0--wrap=3Dnone -o final.md
On Thursday, January 19, 2023 at 12:18:23=E2=80= =AFPM UTC-6 BPJ wrote:
It can be in the first file but I would put it = in its own metadata.yaml file and include it with the --metadata-file=3DYAM= LFILENAME option. That way you can convert the files singleton if you wish.=

= Den tors 19 jan. 2023 13:16 <= kinget...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
= It does help! If I have multiple files in a folder the way you outlined, do= es the YAML have to be in all the chapters or can it just be in 001?

--
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/9eba1a7f-1ea4-444d-96c6-8f835ade1915n%40googlegroups.= com.
------=_Part_16891_1637131079.1700676553698-- ------=_Part_16890_682649920.1700676553698--