From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31394 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sukil Etxenike arizaleta Newsgroups: gmane.text.pandoc Subject: Re: multiple html files Date: Wed, 14 Sep 2022 13:53:20 +0200 Message-ID: References: <1dd12510-187f-429c-b976-1220427aa2ben@googlegroups.com> <1d652de4-3624-46a1-a671-cc73ce6417d4n@googlegroups.com> <82a6de71-9993-e2f4-1de8-b6f8a8ab8496@gmail.com> <4af1b08a-856b-43de-b473-476680e4236dn@googlegroups.com> <7e388223-7e02-419c-960d-429c29287cb6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------kqgLgP9v0F2tUmpJ62UpuP5C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15778"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIN5YV3SMDBBM4BQ6MQMGQEBBHZVBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 14 13:53:29 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f60.google.com ([209.85.208.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oYQxL-0003uv-W6 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 14 Sep 2022 13:53:28 +0200 Original-Received: by mail-ed1-f60.google.com with SMTP id t13-20020a056402524d00b00452c6289448sf1154116edd.17 for ; Wed, 14 Sep 2022 04:53:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663156407; cv=pass; d=google.com; s=arc-20160816; b=trCqXU1T4CBwzW4ueiBylCbrlOd42iPsDcy1xy6Bk8znZdTFBg13T+DP9ptAqJPYQq LXpKJ5fNaI9CmrTWzYudSvs1po366tBTpXCLhTPBxdMpVUffTZ+kkygiICwUDo+pCsn3 6UF8ebdoJRJECFJGCXU2aqlw30YX/z0ycbyDp/po4vDWQj8r69rWpk/kmgdKohZW0mJt rgWtTRAnMTs3T8CnQoTvp62q7tHe+SDKlHD3u9FXKLlTajYEsrJndEHJfUWCE5jdrGVD fEmEkGh6DfcTNP0if7spXLeYn03UalnLfi9q3F5L1PU+L01yIdr71CWXrq7eUUWrBZu3 bC5g== 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:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:sender:dkim-signature:dkim-signature; bh=opWUNcoSk0Xp1DheOk6RVj/cPpg8Br26mDtfWld4SQc=; b=euJ/UNFtXQsQ/knPcKrHPrF3tekYaO9zfi0Tg3SgxRXQzP5Kc0/33JAMZDiAFm0s2u cDHoMm9KatLJSJwzHnD0doHPoCLTWf6ut7tDBhShr2k4YtpIZ1ZYdPCzkNCCfPrf47Pv 49kH2CHwcQUUOklA1P7eLvKlPaSvswTz9nQvcgkXs2JhxZlxrEoueCK7YtHF/b/IaDAK R2cKkPVl+2naPFVgKYTlNHRBOhiOsVkC2w6qLSjbszhNcJOgIFrikuuITR3lTum2FXYg rVhmx7n2BabZ5pP3dkT6q0SswXb9tQjIVKFnkZuhrj0dG8/cJKpDst47Oji5pIcLBgbp Cebw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Jg5JTSAS; spf=pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:in-reply-to :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date; bh=opWUNcoSk0Xp1DheOk6RVj/cPpg8Br26mDtfWld4SQc=; b=blo4BYKJ8AogQlj2elPMbzCB5fH0ksDMO0DiP2nAjyjLsRwC4gPpmi417qd/F6I728 KrM/sZjiMDjdRFEex1G6MvN4c7ND5O/1K/1cnPdb4ZwxPb35Nn4hgbksezL/JgHF9pUt fQqiIKZpqn0C0iQImVRZrMhopwop+SOiAtyYBSDORzCzc6FKV8n0uNQBgTkQj+GFaOfL HNOJtu+Sol/EkiLt67n1MXMA9jO4N2KppJqKXNI1T88FnY7VN9tcy3x1TreFOdbnSMAE ujRURm2m+SRkzqJxyDbLTUt/YgPT9c1DcVVc17HzdV4YZUEnJtoKhes+62gbV8SMtcN+ Bqrw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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:in-reply-to :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date; bh=opWUNcoSk0Xp1DheOk6RVj/cPpg8Br26mDtfWld4SQc=; b=gSebzjp8TNUYs+0y6ht/wu2KKnj4jcz11HYbOwhcCX+QHCwepNcU6idgxG6Aw6ZFAc p1+qePm/dBs/L0PuT3lnfJzF+Vfa0I3faad4lw/c0RXf+gzyFOVJMk/4PMmMEqf/3se3 g3TSZdXR52zn7qu5LbPkEILaouyF52q7I/Jcp6ObySWmr9ODTseciave+jhHlm+KCruK gmIuZPhd9cYsiG6XVf5UktEX4TZ1T2bYHz69KjIhB3eTiy3JdnQ4r1jXJ421oIxQb6wS HsYb8sUeRb3iVOaq13uWXgCLBwf/W0yQq8GmE9MugeZx2PCGlImnxU+2aZtLrrMj4YHM adjw== 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:in-reply-to :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:x-gm-message-state:sender:from:to:cc:subject:date; bh=opWUNcoSk0Xp1DheOk6RVj/cPpg8Br26mDtfWld4SQc=; b=qpV6WfAJmqgwvmgxC8gC8Pl+E8sgL3FZLmtfcEBSXDO7RvcOBMMpoaJ4ehYpu9Gzlf XQpo2PTACRpQ/Zd0wmM2u1MKneMUibbQG97mSjYBESw7u58k0mNeJOsmJQm2bMFiVkJm 5eLb5MNaadBK4dEWko5o34p0J0b2U2aLf8EdBey2pNY7e1LuVD/9tPxSRlfNPccvcFUh vUN4YBugabPjvntCs9m/JSUESfMATA1RJ55JvHLNxsZsjNxh+QprsoyI5tfry5+A3/NY 2K1RQTqhtQ1Sn2ejkWWIa9x+v47QDPOqsPzT59f3fqHPICKa Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo3HWsLxAyXiU6DbCgy9wk1OdyGioqkaWWZRrsynxTO2CuDakfGe 5J6N2n8SqXDCftjxo7ihqgs= X-Google-Smtp-Source: AA6agR4otcB/mJBqaRLMycWk3iSYoc9pKBX30uhAm9kSyTD9TNHwyc3cIOL7wx1GHQpS8hbyOHh0vw== X-Received: by 2002:a17:907:9714:b0:77b:e7a8:2f66 with SMTP id jg20-20020a170907971400b0077be7a82f66mr13122713ejc.107.1663156407348; Wed, 14 Sep 2022 04:53:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:7d09:b0:778:a07:caab with SMTP id u9-20020a1709067d0900b007780a07caabls773361ejo.5.-pod-prod-gmail; Wed, 14 Sep 2022 04:53:23 -0700 (PDT) X-Received: by 2002:a17:906:cc13:b0:77d:46c2:f37c with SMTP id ml19-20020a170906cc1300b0077d46c2f37cmr10450489ejb.45.1663156402854; Wed, 14 Sep 2022 04:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663156402; cv=none; d=google.com; s=arc-20160816; b=lkoVmckipSJeTcRoEpcfxQ2js9q0RQzAu8e6pL//5BLZCeNN/qcwOTOX6+GbNTlKli 15aoVBFhIUN+qiX2tm0CQUINwFrpDHw0Ob/xLUcKQnc4fwVe7NwC4jKLuZjTjWxtgTX+ dXz72yyXU2lvvjkEvpL8brJ+CL0vSwCF0J+c1EAwv3na95+FqSh7AsmRORmEQSMPF9ct Jn+wWvWqiii8W5UH1fwuIZN1CU4UjeLe2Q7awSFNhE0wyDtdk1UNnz9fVo5BBq3yIEFk lCtz+x2qdfsXe4kwwLw8J10/EcGZL2nppS40D/M9H12t6XurCwkPbFLpyGwgzn+aPpui ovjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=ZKFvtrVKC99o8DsNLRf5u1imjD/os5q6pyGv7LxTRDg=; b=Zcp7PWCuxjEz6A9y2HgL5gsV8koqWBwxm1QbY4/PQW2N2ibTiseEuQr+EqjnWG8Y9c nYSrm3UAnexAqEiqouHZPANa8Mo+MwDhKCga0FnWN0h4xulN02q7DUyXmJ3U4mad/yk6 CHqlTYF1sAsWPNWVWBCA3gx3nr4uV9o60L5ny2VG6WUYO63bkiGRT0I8Zod6gSe4WqGq xPsaSejGN3JknZ3ftCIlVsDCDRVFMcpbwvP9fYiykKe3HDJOXotJfMcsfTrv/XmBIRVC JlxtFmB/H6kAMnbDqA+6Ilyy+NHTPNj1512bewnAs1961NcZgVCYQuTveGkYu5oi3YVa dVyA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Jg5JTSAS; spf=pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com. [2a00:1450:4864:20::42e]) by gmr-mx.google.com with ESMTPS id v21-20020aa7d9d5000000b0044db0bb77bdsi476137eds.5.2022.09.14.04.53.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Sep 2022 04:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) client-ip=2a00:1450:4864:20::42e; Original-Received: by mail-wr1-x42e.google.com with SMTP id b5so25259640wrr.5 for ; Wed, 14 Sep 2022 04:53:22 -0700 (PDT) X-Received: by 2002:a05:6000:1888:b0:22a:4868:6048 with SMTP id a8-20020a056000188800b0022a48686048mr13426007wri.32.1663156402273; Wed, 14 Sep 2022 04:53:22 -0700 (PDT) Original-Received: from [192.168.1.23] (212.red-2-141-201.dynamicip.rima-tde.net. [2.141.201.212]) by smtp.gmail.com with ESMTPSA id l128-20020a1c2586000000b003b340f00f10sm17307481wml.31.2022.09.14.04.53.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Sep 2022 04:53:21 -0700 (PDT) Content-Language: es-ES In-Reply-To: <7e388223-7e02-419c-960d-429c29287cb6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: Sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Jg5JTSAS; spf=pass (google.com: domain of sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:31394 Archived-At: This is a multi-part message in MIME format. --------------kqgLgP9v0F2tUmpJ62UpuP5C Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Hi, OK, this should work, I tested it and the command is correctly=20 constructed. (Plus, no `list.txt` is required). Save this to=20 `convert.bat`, and run it. ``` @ECHO OFF SETLOCAL EnableDelayedExpansion for %%D in (*.html) do ( set "FILES=3D!FILES! %%D" ) pandoc -o mi.epub %FILES% ``` The issue was that I didn't remember Pandoc has no option to get files=20 from stdin, it interprts its stdin always as file contents. Hth, Sukil El 14/09/2022 a las 11:27, mr vicky escribi=C3=B3: > can you please write here exact command which i will past in cmd ? > i am trying to past your given command without reffer list.txt and i=20 > am getting error > > On Wednesday, September 14, 2022 at 1:05:52 PM UTC+5 suki...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org=20 > wrote: > > First, delete that `list.txt`, and then: either paste the commands > directly in cmd (right click the cmd window to paste directly or > open a menu depending on your settings); or save it to > `convert.bat`, replacing `%` with `%%` (so `%D` becomes `%%D`, > then run `convert.bat`. > > > (Also, I think you know this, but just in case: the file doesn't > have any `, I use them to mark codeblocks as in Markdown). > > Hth, > > Sukil > > > El 14/09/2022 a las 9:32, mr vicky escribi=C3=B3: >> well i save it in text file in same directory where the html >> files are and then i ran command >> but its making epub of text file not html files >> here you can see attached files >> >> On Wednesday, September 14, 2022 at 1:32:40 AM UTC+5 >> suki...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: >> >> If powershell doesn't work, you could do: >> >> 1. Type: >> >> ``` >> >> for %D in (*.html) do ( >> >> echo %D >> list.txt >> >> ) >> >> pandoc -o mi.epub < list.txt >> >> ``` >> >> >> I haven't tested this, but I think it should work. If it only >> takes one file, replace the newlines in list.txt with spaces. >> >> Hth, >> >> Sukil >> >> >> >> >> >> El 13/09/2022 a las 22:21, BPJ escribi=C3=B3: >>> That's some cmd.exe dumbness I guess. I'm afraid I haven't >>> used Windows for over a decade. >>> >>> Does anyone else know? >>> >>> Den tis 13 sep. 2022 18:21mr vicky skrev: >>> >>> i am using this command >>> pandoc -o my.epub *.html >>> here is result >>> pandoc.exe: *.html: openBinaryFile: invalid argument >>> (Invalid argument) >>> >>> >>> On Tuesday, September 13, 2022 at 7:06:38 PM UTC+5 mr >>> vicky wrote: >>> >>> ok thank you very much :) >>> >>> On Tuesday, September 13, 2022 at 6:02:54 PM UTC+5 >>> BP wrote: >>> >>> Attached. You will need perl >=3D 5.14. See the >>> README.md file! >>> >>> Den m=C3=A5n 12 sep. 2022 20:51mr vicky >>> skrev: >>> >>> will you tell me which rename script you are >>> using? >>> may be it will be more easy for me . >>> Thank you very much for your help :) >>> >>> On Mon, 12 Sep 2022 at 11:40 pm, BPJ >>> wrote: >>> >>> That's right. You don't need to prefix >>> anything to 100 and up since you have >>> less than 1000 files. >>> >>> Den m=C3=A5n 12 sep. 2022 19:33mr vicky >>> skrev: >>> >>> you means i rename like this >>> 001.html >>> 002.htnl >>> 003.html >>> 004.html >>> 005.html >>> 006.html >>> 007.html >>> 008.html >>> 009.html >>> 010.html >>> >>> check this 10th number is right ? >>> and what about when i reach 100 >>> number of file and then 200 number >>> of file >>> because my files are more than 400 >>> >>> On Mon, 12 Sep 2022 at 10:09 pm, BPJ >>> wrote: >>> >>> just type *.html (star included) >>> and it will be as if you had >>> listed all the .html files in >>> the current directory in >>> alphabetical order. >>> It doesn't have to be the >>> current directory: if the files >>> are in a subdirectory html then >>> html/*.html will work. >>> >>> Note that you shouldn't just >>> prepend a zero to all file >>> names: you should prepend two >>> zeroes to files 0.html through >>> 9.html and one zero to files >>> 10.html through 99.html; the >>> goal is for all file names to >>> start in the same number of digits. >>> >>> Den m=C3=A5n 12 sep. 2022 18:56mr >>> vicky skrev: >>> >>> i can use also >>> i have software which will >>> rename all files and ad 0 >>> before numbers but tell me >>> will i write all files name >>> in command or just from file >>> one to last number file ? >>> >>> On Mon, 12 Sep 2022 at 9:52 >>> pm, BPJ wrote= : >>> >>> I would use a script to >>> change the names to >>> zero-padded format and >>> then glob them. >>> >>> Den m=C3=A5n 12 sep. 2022 >>> 16:49mr vicky >>> skrev: >>> >>> i have more than 100 >>> html files evan more >>> than 400 html files >>> and my all files >>> name are like this >>> 1.html, 2.html >>> 3.html 4.html >>> so i can convert >>> them all in single >>> epub ? >>> and i need to write >>> all file names in >>> command ? >>> On Friday, September >>> 9, 2022 at 6:01:30 >>> PM UTC+5 BPJ wrote: >>> >>> Generally you >>> can just list >>> them on the >>> command line and >>> pandoc will >>> concatenate them: >>> >>> ``````shell >>> pandoc -o >>> all.pdf -f html >>> html1 html2 html3 >>> `````` >>> >>> Globbing might work >>> >>> ``````shell >>> pandoc -o >>> all.pdf -f html >>> html* >>> `````` >>> >>> but note that >>> the shell sorts >>> "alphabetically" >>> so html10 sorts >>> before html2! >>> You might want >>> to zero-pad the >>> numbers in the >>> file names: >>> >>> html00, html01 >>> .. html09, >>> html10 .. html99 >>> >>> so that there >>> are two (or >>> three) digits in >>> every filename. >>> I usually name >>> my files using >>> three digits >>> with "gaps" >>> *before* the >>> actual name: >>> >>> 000-frontmatter.md >>> 010-preface.md >>> 020-introduction.md >>> 030-preliminaries.m= d >>> 040-advanced.md >>> >>> so that if I >>> later want to >>> insert a chapter >>> between say the >>> third and fourth >>> chapter I can >>> number it >>> 035-something.md >>> and if I want to >>> insert a chapter >>> before that I >>> can call it >>> 033-whatever.md >>> so that I don't >>> need to renumber >>> several files >>> and globbing >>> >>> ``````shell >>> pandoc -o >>> all.pdf *.md >>> `````` >>> >>> will still give >>> me all the files >>> in correct order. >>> >>> /bpj >>> >>> Den fre 9 sep. >>> 2022 12:31mr >>> vicky >>> >>> skrev: >>> >>> hello >>> i want to >>> create pdf >>> file from >>> multiple >>> html file. >>> And the >>> files name >>> are like this >>> html1 >>> html2 >>> html3 >>> >>> i want to >>> convert them >>> in single >>> pdf or epub fil= e >>> please can >>> you explain >>> me command >>> and way of >>> doing this ? >>> >>> Thank you >>> >>> --=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 >>> email to >>> pandoc-discus..= .@googlegroups.com. >>> To view this >>> discussion >>> on the web >>> visit >>> https://groups.= google.com/d/msgid/pandoc-discuss/caf40fb8-07cf-44a4-b0b6-732e8b5e9a5fn%40g= ooglegroups.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 >>> email to >>> pandoc-discus...@google= groups.com. >>> To view this >>> discussion on the >>> web visit >>> https://groups.google.c= om/d/msgid/pandoc-discuss/2ec806d1-af88-4023-9d8b-fb2852935dfen%40googlegro= ups.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 >>> email to >>> pandoc-discus...@googlegrou= ps.com. >>> To view this discussion >>> on the web visit >>> https://groups.google.com/d= /msgid/pandoc-discuss/CADAJKhD84_%3DTbfO2hSQHpAnF3mbdTYc2fEG2CyumCPw9qC9Rsw= %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 >>> email to >>> pandoc-discus...@googlegroups.c= om. >>> >>> To view this discussion on >>> the web visit >>> https://groups.google.com/d/msg= id/pandoc-discuss/CAH8MJH_e67u4YMwCEYpeBfDY09jDCvfduubLkRdRKRLqh8hbAg%40mai= l.gmail.com >>> . >>> >>> >>> --=20 >>> 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/p= andoc-discuss/x3cVQPV2MWs/unsubscribe. >>> 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/p= andoc-discuss/CADAJKhBme1EvsD6Lb0wYmBwx47AsPhpvu1Xp-ic12pnB_qM0GQ%40mail.gm= ail.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 email to >>> pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> >>> To view this discussion on the web >>> visit >>> https://groups.google.com/d/msgid/pando= c-discuss/CAH8MJH9mZCoj2gkgBSfO-PAc4ptwjBPj%2BnuHxVppG%3DRC7jGi9g%40mail.gm= ail.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 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-di= scuss/CADAJKhDaM033xRTbA%3DQ_TGHnOhCpS2-o0Fck8sDYZr3CfKSPhQ%40mail.gmail.co= m >>> . >>> >>> --=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 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-discus= s/CAH8MJH8Kwyj4wa-%2Bfn8wN-H5%3DE%2B6Ut7UROiMWvu%3DpfhepTgAGQ%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 email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org= . >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/1d652de4-3= 624-46a1-a671-cc73ce6417d4n%40googlegroups.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 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/CADAJKhA1fgDgm= VUVoAkzQDSqKm8e2Ytd%3DgNku%2B3tL8KXwTBtyA%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 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/4af1b08a-856b-43de-= b473-476680e4236dn%40googlegroups.com >> . > > --=20 > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send=20 > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/7e388223-7e02-419c-960d-= 429c29287cb6n%40googlegroups.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/f561266f-ad25-857c-73d0-f437df280970%40gmail.com. --------------kqgLgP9v0F2tUmpJ62UpuP5C Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi,

OK, this should work, I tested it and the command is correctly constructed. (Plus, no `list.txt` is required). Save this to `convert.bat`, and run it.

```

@ECHO OFF
SETLOCAL EnableDelayedExpansion
for %%D in (*.html) do (
set "FILES=3D!FILES! %%D"
)
pandoc -o mi.epub %FILES%
```

The issue was that I didn't remember Pandoc has no option to get files from stdin, it interprts its stdin always as file contents.

Hth,

Sukil


El 14/09/2022 a las 11:27, mr vicky escribi=C3=B3:
can you please write here exact command which i will past in cmd ?
i am trying to past your given command without reffer list.txt and i am getting error

On Wednesday, September 14, 2022 at 1:05:52 PM UTC+5 suki...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:

First, delete that `list.txt`, and then: either paste the commands directly in cmd (right click the cmd window to paste directly or open a menu depending on your settings); or save it to `convert.bat`, replacing `%` with `%%` (so `%D` becomes `%%D`, then run `convert.bat`.


(Also, I think you know this, but just in case: the file doesn't have any `, I use them to mark codeblocks as in Markdown).

Hth,

Sukil


El 14/09/2022 a las 9:32, mr vicky escribi=C3=B3:
well i save it in text file in same directory where the html files are and then i ran command=C2= =A0
but its making epub of text file not html files=C2=A0
here you can see attached files

On Wednesday, September 14, 2022 at 1:32:40 AM UTC+5 suki...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:

If powershell doesn't work, you could do:

1. Type:

```

for %D in (*.html) do (

echo %D >> list.txt

)

pandoc -o mi.epub < list.txt

```


I haven't tested this, but I think it should work. If it only takes one file, replace the newlines in list.txt with spaces.

Hth,

Sukil





El 13/09/2022 a las 22:21, BPJ escribi=C3=B3:
That's some cmd.exe dumbness I guess. I'm afraid I haven't used Windows for over a decade.

Does anyone else know?

Den tis 13 sep. 2022 18:21mr vicky <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= > skrev:
i am using this command=C2=A0
pandoc -o my.epub *.html
here is result
pandoc.exe: *.html: openBinaryFile: invalid argument (Invalid argument)


On Tuesday, September 13, 2022 at 7:06:38 PM UTC+5 mr vicky wrote:
ok thank you very much :)

On Tuesday, September 13, 2022 at 6:02:54 PM UTC+5 BP wrote:
Attached. You will need perl >=3D 5.14. See the README.md file!

D= en m=C3=A5n 12 sep. 2022 20:51mr vicky <v.lon...@g= mail.com> skrev:
will you tell me which rename script you are using?=C2=A0
may be it will be more easy for me .
Thank you very much for your help :)

On Mon, 12 Sep 2022 at 11:40 pm, BPJ <mel.= ..@gmail.com> wrote:
That's right. You don't need to prefix anything to 100 and up since you have less than 1000 files.

Den m=C3=A5n 12 sep. 2022 19:33= mr vicky <= v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
you means i rename like this
001.html<= /div>
002.htnl<= /div>
003.html<= /div>
004.html<= /div>
005.html<= /div>
006.html<= /div>
007.html<= /div>
008.html<= /div>
009.html<= /div>
010.html<= /div>

check this 10th number is right ?
and what about when i reach 100 number of file and then 200 number of file
because my files are more than 400=C2=A0

= On Mon, 12 Sep 2022 at 10:09 pm, BPJ <b...-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> wrote:
jus= t type *.html (star included) and it will be as if you had listed all the .html files in the current directory in alphabetical order.
I= t doesn't have to be the current directory: if the files are in a subdirectory html then html/*.html will work.
<= br>
N= ote that you shouldn't just prepend a zero to all file names: you should prepend two zeroes to files 0.html through 9.html and one zero to files 10.html through 99.html; the goal is for all file names to start in the same number of digits.

Den m=C3=A5n 12 sep. 2022 18:56mr vicky <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
i can use also=C2= =A0
i have software which will rename all files and ad 0 before numbers but tell me will i write all files name in command or just from file one to last number file ?

On Mon, 12 Sep 2022 at 9:52 pm, BPJ <b...-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> wrote:
I would use a script to change the names to zero-padded format and then glob them.

Den m=C3=A5n 12 sep. 2022 16:49mr vicky <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
i have more than 100 html files evan more than 400 html files and my all files name are like this 1.html, 2.html 3.html 4.html
so i can convert them all in single epub ?
and i need to write all file names in command ?
On Friday, September 9, 2022 at 6:01:30 PM UTC+5 BPJ wrote:
Gene= rally you can just list them on the command line and pandoc will concatenate them:

````= ``shell
pand= oc -o all.pdf -f html html1 html2 html3
````= ``

Glob= bing might work

````= ``shell
pand= oc -o all.pdf -f html html*
````= ``

but note that the shell sorts "alphabetically" so html10 sorts before html2! You might want to zero-pad the numbers in the file names:

html= 00, html01 .. html09, html10 .. html99

so that there are two (or three) digits in every filename. I usually name my files using three digits with "gaps" *before* the actual name:

000-= frontmatter.md
010-= preface.md
020-= introduction.md
030-= preliminaries.md
040-= advanced.md

so that if I later want to insert a chapter between say the third and fourth chapter I can number it 035-something.md and if I want to insert a chapter before that I can call it 033-whatever.md so that I don't need to renumber several files and globbing

````= ``shell
pand= oc -o all.pdf *.md
````= ``

will still give me all the files in correct order.

/bpj=

Den fre 9 sep. 2022 12:31mr vicky <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
hello
i want to create pdf file from multiple html file. And the files name are like this
html1
html2
html3

i want to convert them in single pdf or epub file
please can you explain me command and way of doing this ?

Thank you
--
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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c= af40fb8-07cf-44a4-b0b6-732e8b5e9a5fn%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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2= ec806d1-af88-4023-9d8b-fb2852935dfen%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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/C= ADAJKhD84_%3DTbfO2hSQHpAnF3mbdTYc2fEG2CyumCPw9qC9Rsw%40mail.gmail.com.<= br>
--
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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

--
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.goo= gle.com/d/topic/pandoc-discuss/x3cVQPV2MWs/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/pandoc-discuss/C= ADAJKhBme1EvsD6Lb0wYmBwx47AsPhpvu1Xp-ic12pnB_qM0GQ%40mail.gmail.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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
--
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 pand= oc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit http= s://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDaM033xRTbA%3DQ_TGHnOhC= pS2-o0Fck8sDYZr3CfKSPhQ%40mail.gmail.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-dis= cus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
--
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...@googl= egroups.com.
To view this discussion on the web visit https://groups.google.= com/d/msgid/pandoc-discuss/1d652de4-3624-46a1-a671-cc73ce6417d4n%40googlegr= oups.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-di= scus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
--
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...@= googlegroups.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-dis= cuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/7e388223-7e02-419c-960d-429c29287cb6n%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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/f561266f-ad25-857c-73d0-f437df280970%40gmail.com.
--------------kqgLgP9v0F2tUmpJ62UpuP5C--