From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30788 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: almaghfuur lahu Newsgroups: gmane.text.pandoc Subject: Re: Got this error on Linux' one Date: Wed, 22 Jun 2022 03:54:25 -0700 (PDT) Message-ID: <684edd1e-9a02-4398-8b7e-deb5659ba060n@googlegroups.com> References: <6a390800-289b-4932-9d26-b6158f76aa11n@googlegroups.com> <4ce1cfe9-8c01-4882-af2d-38ffacb7df3cn@googlegroups.com> <87a6a6nmug.fsf@zeitkraut.de> <0c95c0e6-1558-468b-b224-278d99c31332n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_9338_615846017.1655895265761" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17231"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDCYBCOIWMFRBYXJZOKQMGQE6NEM3XY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 22 12:54:31 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f190.google.com ([209.85.219.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o3y0E-0004KV-Ms for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 22 Jun 2022 12:54:30 +0200 Original-Received: by mail-yb1-f190.google.com with SMTP id g132-20020a25db8a000000b00668a2ef6a95sf14233965ybf.22 for ; Wed, 22 Jun 2022 03:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=M1Zi21yqyS5yw0WPFw6MwZmvXIHPJZZyLdniUy+7f4I=; b=Z+JQdSTp6EzkCVdQmrJ1kBVXDk6sj84v0h6tDBpyq83SpQBjxU0DpfFzSjBSaWo7jk l6uiNlTd3sANPH61//hjGH3obqIVMCkcC4BYb88dQpAs0aDl4W67AeWhdSymvFWYF26S 32REA4uh497IDF/ZKQ022u3yssbwryi2oL70PHdMRUE2XqleGwiE3o2k5zN+O7OA8Lpz vxfudnZDUTDeV1Wh804paVGxgHSiN3EkgWsVTWCNOSeuphpKGaWnSsjJh42G4tps4tyS HJMCG8vbC6rZf/ZaWF3tdlxekXK4n9yS4pPZ14MkmG3/WfinMDQKLL1X+MXgZJG7IfcJ Nh4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=M1Zi21yqyS5yw0WPFw6MwZmvXIHPJZZyLdniUy+7f4I=; b=AOIdAu4eJZKziGQDfIv0phPwKFAqJXKD8g+bVLgaJv6/yT5eGU/vGSfPDKPVNxmZjf KnxiJdNWcFJcugQv+kIN6GeCcvSGkQSZ0qJBlEwgdYI1qYuszWHE5reCxPRHCehQIYBC lBXkFSNMYnr0F3CsO7/yZRzaTnel2igaif2uycRoBT26S2PazaCFB3aB82RPq81tiN58 8n7q7kzZpCW9/p4pX4xTBfho37/hiDZVzaJytiP1T5wD2XC0qrrX7pcRFcwAGBXFFvQj LuQ+fnScrS4J6prp04B3LSzM2fxMxrih/JFdmb0KYllM+2okBgiLrQMcEjPc0hOWK4yT AKrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=M1Zi21yqyS5yw0WPFw6MwZmvXIHPJZZyLdniUy+7f4I=; b=CvrqdJqefRjTdSrRfkyW2MVlQr4EEgUyzfsEdh3nqfz6y+Zqmantpi9avZzWOjx1ra snyZB/YTf+fcKN0GSsgNG2FGtEKin6qP9Cz8/ullIVxenfx2LAMx4oakDxcdd0LiV/cw Ext/YaBlmH/1WzPGQqqrg8m+VYG50AA5xCfalVo7oS9UckhiSU4XmIDYCYGCzIZ0wNWJ 03ORf/fY/TcInMvRbgG2HGIEAKXHL69HEZ3aU7jX1LcjcpsaQWTFEzT/mauCPj8h8Pei 3Qhh7+aFG4PA3GED2pKxJFJNkFwRIo4IJo4X2WhUivRWwRGZWzYf/4pRC2pACOjfyNk3 u7Gg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8vcxmmtOu6UpcmQNl9A+XwZLfRitIGHeatxf+l1rqTuZ1/PNq4 rYVkZswQeqg9ePEIwxNVrUU= X-Google-Smtp-Source: AGRyM1tCAYgWrQuMLT0WzJRq2CYQ0kBy029jnt9/VFuBD/FMoMftaecrbNg4zHLSlwqJr/MYQk8f4Q== X-Received: by 2002:a05:6902:3d1:b0:669:8f1c:7ae4 with SMTP id g17-20020a05690203d100b006698f1c7ae4mr1521605ybs.152.1655895269749; Wed, 22 Jun 2022 03:54:29 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:7385:0:b0:668:f11e:9b82 with SMTP id o127-20020a257385000000b00668f11e9b82ls6497449ybc.8.gmail; Wed, 22 Jun 2022 03:54:26 -0700 (PDT) X-Received: by 2002:a25:744b:0:b0:668:cd4c:39c2 with SMTP id p72-20020a25744b000000b00668cd4c39c2mr3085434ybc.52.1655895266376; Wed, 22 Jun 2022 03:54:26 -0700 (PDT) In-Reply-To: X-Original-Sender: BudiKusasi-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:30788 Archived-At: ------=_Part_9338_615846017.1655895265761 Content-Type: multipart/alternative; boundary="----=_Part_9339_1731015408.1655895265761" ------=_Part_9339_1731015408.1655895265761 Content-Type: text/plain; charset="UTF-8" Work. Solved !!! regex always often is saviour So sorry for inconvenience On Wednesday, 22 June 2022 at 15:50:34 UTC+7 William Lupton wrote: > I created https://github.com/jgm/pandoc/issues/8140 with some suggestions > for documentation improvements. > > On Wed, 22 Jun 2022 at 09:24, William Lupton > wrote: > >> I'm confused. You seem to have taken a step back (the latest error is >> saying that the input file doesn't exist). You started with this: >> >> *$ pandoc GENIe_scripting_reference.md -o GENIe_scripting_reference.pdf* >> *YAML parse exception at line 9, column 9: mapping values are not allowed >> in this context* >> >> Starting with the downloaded file, this worked for me: >> >> >> *$ perl -pe 's/^---$/---\n/igs' GENIe_scripting_reference.md >> >GENIe_scripting_reference.fixed.md >> $ pandoc >> GENIe_scripting_reference.fixed.md >> -o >> GENIe_scripting_reference.pdf* >> >> Note that Albert's suggestion (i.e., ensure that "---" lines are always >> followed by a blank line) is much better than mine. My suggestion caused >> problems with unintentional tables (due, I suppose, to "- - -" lines not >> being followed by blank lines). >> >> William >> >> On Wed, 22 Jun 2022 at 00:43, almaghfuur lahu wrote: >> >>> I forgot i'd better believe i put wrong command. Here'd be the valid one: >>> >>> >>> *$ pandoc -f markdown -t pdf GENIe_scripting_reference.md -o >>> GENIe_scripting_reference.pdfpandoc: GENIe_scripting_reference.md: >>> openBinaryFile: does not exist (No such file or directory)* >>> >>> as i'm noob in mark up/down file processing, still have no idea how to >>> solve it >>> On Tuesday, 21 June 2022 at 22:03:02 UTC+7 William Lupton wrote: >>> >>>> Thanks. Is that documented? From a quick scan I didn't see it at >>>> https://pandoc.org/MANUAL.html#extension-yaml_metadata_block (but >>>> maybe I missed it). >>>> >>>> On Tue, 21 Jun 2022 at 14:54, Albert Krewinkel >>>> wrote: >>>> >>>>> >>>>> William Lupton writes: >>>>> >>>>> > Perhaps there are some heuristics that control whether pandoc decides >>>>> > that a given block is YAML. Maybe lines like this one are being taken >>>>> > to be YAML? >>>>> >>>>> The heuristic applied by pandoc is "if there's a line containing the >>>>> string `---`, and if that line is not followed by a blank line, and if >>>>> there's a closing `---` later in the text, then treat it as a YAML >>>>> block. >>>>> >>>>> So adding a blank line after `---` should fix this as well. >>>>> >>>>> >>>>> -- >>>>> Albert Krewinkel >>>>> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >>>>> >>>>> -- >>>>> 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/87a6a6nmug.fsf%40zeitkraut.de >>>>> . >>>>> >>>> -- >>> 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/0c95c0e6-1558-468b-b224-278d99c31332n%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/684edd1e-9a02-4398-8b7e-deb5659ba060n%40googlegroups.com. ------=_Part_9339_1731015408.1655895265761 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Work. Solved !!!
regex always often is saviour

So sorry for inconvenience

On Wednesday, 22 June 2022 at 15:50:34 UTC+= 7 William Lupton wrote:

I'm confused. You seem to hav= e taken a step back (the latest error is saying that the input file doesn&#= 39;t exist). You started with this:

$ pandoc GENIe_scripting_reference.md -o GENIe_scripting_reference.= pdf
YAML parse exception at line= 9, column 9: mapping values are not allowed in this context

Starting with the downloaded file, this worked = for me:

$ perl -pe = 9;s/^---$/---\n/igs' GENIe_scripting_reference.md >GENIe_scripting_reference.fixe= d.md
$ pandoc GENIe_scripting_reference.fixed.md -o GENIe_scripting_reference= .pdf


Note that Albert's suggest= ion (i.e., ensure that "---" lines are always followed by a blank= line) is much better than mine. My suggestion caused problems with uninten= tional tables (due, I suppose, to "- - -" lines not being followe= d by blank lines).

William

On Wed, 22 Jun 202= 2 at 00:43, almaghfuur lahu <= budik...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I forgot i'd better believe i put wrong command. Here= 'd be the valid one:

$ pandoc -f markdown -t pdf= =C2=A0 GENIe_scripting_reference.md -o GENIe_scripting_reference.pdf
pan= doc: GENIe_scripting_reference.md: openBinaryFile: does not exist (No such = file or directory)


as i'm noob in mark up/down fi= le processing, still have no idea how to solve it
On Tuesday, 21 June 2022 at 2= 2:03:02 UTC+7 William Lupton wrote:
Thanks. Is that documented? From a qui= ck scan I didn't see it at=C2=A0https://pand= oc.org/MANUAL.html#extension-yaml_metadata_block (but maybe I missed it= ).

On Tue, 21 Jun 2022 at 14:54, Albert Kre= winkel <albert...-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> wrote:

William Lupton <wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> w= rites:

> Perhaps there are some heuristics that control whether pandoc decides<= br> > that a given block is YAML. Maybe lines like this one are being taken<= br> > to be YAML?

The heuristic applied by pandoc is "if there's a line containing t= he
string `---`, and if that line is not followed by a blank line, and if
there's a closing `---` later in the text, then treat it as a YAML
block.

So adding a blank line after `---` should fix this as well.


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124

--
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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

--
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...@googleg= roups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0c95c0e= 6-1558-468b-b224-278d99c31332n%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/pandoc-discuss/684edd1e-9a02-4398-8b7e-deb5659ba060n%40googlegroups.= com.
------=_Part_9339_1731015408.1655895265761-- ------=_Part_9338_615846017.1655895265761--