From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28039 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: CR Newsgroups: gmane.text.pandoc Subject: Re: Request: Have Pandoc stop making EPUB at line N of source file Date: Mon, 29 Mar 2021 06:11:28 -0700 (PDT) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4062_183505056.1617023488395" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4840"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDKK5MOEYANBBANEQ6BQMGQE23GU7KI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 29 15:11:32 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lQrg4-0001A0-2t for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 29 Mar 2021 15:11:32 +0200 Original-Received: by mail-ot1-f61.google.com with SMTP id p8sf9632028oto.9 for ; Mon, 29 Mar 2021 06:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=/qh8Z1dIt6uTl5t6+27CXXmPLrCslhQ/t0HQplZCbnA=; b=SMUSquwiGNbdlgxoetPUhKegaO72MukSG+zZ+AGwrkLvUUfP6t04XYFaXsLsI/hbOl ZPpVqlmsPJdgFe+NVU6xw/Jfaexf6Tsi45KBKDm3E22C9mkT8GBfBWDBLPIdBOVB4gfU OGhAJ66x8rt5M2sOLNLItuU8moDegSa88EEhS+xnQPAwT7HLWnEuJCtHlKBR/l1GH47x ZYCpSVFYk6HRm0XT5mYmWdD6BY0LrSm7Z2Gf4t+QIR8xes3lLldPPavrk0Ee3TEbE+2O yJFeIMaX1YpFopOqrVAUur8UZvB2sQ5y2vMxG8IHyEc8BNzM5CmOkZrG/hspHZ3Gn4zD 9NLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=/qh8Z1dIt6uTl5t6+27CXXmPLrCslhQ/t0HQplZCbnA=; b=V9CfndAhlopXyFXzjaRMMERO1VlmlsfdJZCNHCbH5/c2ndnj5zJCLpMEPOoSjVGbLj RyMxsrQJCNpxXdQpmFxVarTDQmNsXIZPCDKEjlrRO4gmV0Kjpr6JzE4FuBGwT5cqaOzt MiyD+Sl4PLCYqvdUWyxac/fyRYBn8Sq6LJHStYZUEM2p1ctCm2Kv7UyURz6ojTCI9uMX v5ORFGcPJvBYJ3kshZb9yw9UWyt1+YZHKcSYGNSue9TP7uI3OXi1kZmoLVhZ6fGp438W MHwVkAKnJYIB/J7q7obGKacYroAkwD9eR0yuctB4yt91KMD2fjCWfm1SrmmZb8ke0Zue sCKA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532ww3OAexDDJm9L63NSo2UM0L6ECDLRcoYK7Xz9nzsCcY3Lsz1z 5ati2gxIhKlEYgF7I+rZopE= X-Google-Smtp-Source: ABdhPJzE9cOXX9oWJd52s9WNYrCS6FFtFVKnxs3tpn2ytrHSvBC/N3tqDN6Jsplk7zbRWdk3/GzYXw== X-Received: by 2002:aca:4c0f:: with SMTP id z15mr18989507oia.44.1617023491082; Mon, 29 Mar 2021 06:11:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5c5:: with SMTP id 188ls3749436oif.6.gmail; Mon, 29 Mar 2021 06:11:29 -0700 (PDT) X-Received: by 2002:aca:7c4:: with SMTP id 187mr17981911oih.47.1617023489122; Mon, 29 Mar 2021 06:11:29 -0700 (PDT) In-Reply-To: X-Original-Sender: chuckr69-Wuw85uim5zDR7s880joybQ@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:28039 Archived-At: ------=_Part_4062_183505056.1617023488395 Content-Type: multipart/alternative; boundary="----=_Part_4063_1950837108.1617023488395" ------=_Part_4063_1950837108.1617023488395 Content-Type: text/plain; charset="UTF-8" I don't have Unix. On Monday, March 29, 2021 at 8:55:18 AM UTC-4 Jeremy Theler wrote: > What about some UNIX philosophy here and do one thing well at a time? > > head -n1455 input.md | pandoc > > > > On Mon, 2021-03-29 at 05:10 -0700, CR wrote: > > I use Pandoc 2.7.2 on Windows 10 in a command window. I make EPUB > > books from markdown files mainly. I'm getting out of memory errors > > form this one large .md file that is 1.3MB in size and I'm having a > > hard time finding out which line is giving me problems. The exact > > error is: > > > > pandoc.exe: getMBlocks: VirtualAlloc MEM_COMMIT failed: The paging > > file is too small for this operation to complete. > > ERROR from pandoc. > > > > My source files are on a flash drive with about 1.6GB of free space > > left. Is the default paging file on the same drive as the source > > file? That may be my problem. > > > > Can we have an option in Pandoc to stop processing a source file at a > > certain line? Like: > > -stopline:1455 > > > > is where Pandoc would stop reading the source file at line 1455. What > > this means is this would only work for the first source file in a > > list of files on the command line. I mainly use single source files > > when making an EPUB file. > > > > One option when multiple input files are specified would be to > > specify the input file and line like this on the command line: > > -stopline:file2.md:1455 > > > > This means Pandoc would read file1.md, and only read up to line 1455 > > in file2.md and then close the EPUB normally to make a valid EPUB > > file. > > > > Thanks! > > > > p.s. I have already removed all asterisks from my source file > > thinking Pandoc does not look for an even number of asterisks in a > > "paragraph" before it processes it and I still have problems. > > > > -- > > 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/f73de601-a3be-4ba8-80ce-60ea859eb401n%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/a7c5963e-462e-484a-b4af-ab745fec1750n%40googlegroups.com. ------=_Part_4063_1950837108.1617023488395 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I don't have Unix.

On Monday, March 29, 2021 at 8:55:18 AM UTC-4 Jeremy Thele= r wrote:
What= about some UNIX philosophy here and do one thing well at a time?

head -n1455 input.md | pandoc



On Mon, 2021-03-29 at 05:10 -0700, CR wrote:
> I use Pandoc 2.7.2 on Windows 10 in a command window. I make EPUB
> books from markdown files mainly. I'm getting out of memory er= rors
> form this one large .md file that is 1.3MB in size and I'm hav= ing a
> hard time finding out which line is giving me problems. The exact
> error is:=20
>=20
> pandoc.exe: getMBlocks: VirtualAlloc MEM_COMMIT failed: The paging
> file is too small for this operation to complete.
> ERROR from pandoc.
>=20
> My source files are on a flash drive with about 1.6GB of free spac= e
> left. Is the default paging file on the same drive as the source
> file? That may be my problem.
>=20
> Can we have an option in Pandoc to stop processing a source file a= t a
> certain line? Like:=20
> -stopline:1455
>=20
> is where Pandoc would stop reading the source file at line 1455. W= hat
> this means is this would only work for the first source file in a
> list of files on the command line. I mainly use single source file= s
> when making an EPUB file.
>=20
> One option when multiple input files are specified would be to
> specify the input file and line like this on the command line:=20
> -stopline:file2.md:1455
>=20
> This means Pandoc would read file1.md, and only read up to line 14= 55
> in file2.md and then close the EPUB normally to make a valid EPUB
> file.
>=20
> Thanks!
>=20
> p.s. I have already removed all asterisks from my source file
> thinking Pandoc does not look for an even number of asterisks in a
> "paragraph" before it processes it and I still have prob= lems.
>=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 email to pandoc= -discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit=20
> https://groups.goog= le.com/d/msgid/pandoc-discuss/f73de601-a3be-4ba8-80ce-60ea859eb401n%40googl= egroups.com
> .
>=20

--
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/a7c5963e-462e-484a-b4af-ab745fec1750n%40googlegroups.= com.
------=_Part_4063_1950837108.1617023488395-- ------=_Part_4062_183505056.1617023488395--