From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29928 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: Spaces in image filenames Date: Sat, 8 Jan 2022 09:59:51 -0800 (PST) Message-ID: <1b058ce9-9019-471d-8470-8fe229dbc988n@googlegroups.com> References: <33416aa7-4f25-41a4-b216-763cd799a90fn@googlegroups.com> <1c8dd209-5629-4681-a5c3-9d030d99a553n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2030_471968387.1641664791921" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="448"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCX7HCFDXYLRBGFC46HAMGQECABKMZA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jan 08 18:59:56 2022 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 1n6G0R-000AV2-4m for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 08 Jan 2022 18:59:55 +0100 Original-Received: by mail-oo1-f60.google.com with SMTP id j11-20020a056820022b00b002c6b134233fsf6439616oob.6 for ; Sat, 08 Jan 2022 09:59:55 -0800 (PST) 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=WFseobvJQJJsAnwHpjOiRzIUbs5Rcnt2QTayda+x89w=; b=ohXnak8IF5oU8h7bMGaVcT8Juwx/LnI2N2KKXVCN3Jsp8pUbmIFL8paaTgpdFgljib B+DIUxINw7E8FkDKe6dFvtOy2OJnSGyrn8ifc93ze4CNUNiIMzln9CMrD1FU88sOSnMu o9UNhA96FrAVT9MVhoBZHl+VV0c8VxNKbH2O6E/b8SmgIAxgL4SUEPh1P/RmqSktrYsR BlOh/kq09dqoaTTOno/nx8LOiJ8MrbLk5OrJOcKrLSYu8WU0QtPqNvQBAW57f43FTNgh zaTWevvKR5BeQJuAkqUvIRlSTvdloCeBKf+BSug7kxlI5ol1C0ZMVY15gNRa8ntjMhjZ /oyA== 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=WFseobvJQJJsAnwHpjOiRzIUbs5Rcnt2QTayda+x89w=; b=jsZ5z7J3O612Wz9xDa+OHwHglDVQ/GI3Hc+C++h4wWfjix9EdOKWXW2sLW3tKgNHNv C6IqDKQ53I3P7FzzvN8Vu+jRYWyMAMcevCP02iLdCt7/UqaHmJ3mqDAdm/FKaROgMxB0 SNdwPWYOl/x9hht8sgxfvYkqQwZhwvUE+vqb8hqLH/zibEwcE960sq9G0QxhzM3s+6bm kfJxEyZs5UDKqgymMsaD25m8d3mv2tqT59eVEuSvfvWumvqB1KRNxfliS3/qGczLmZmN D2mQZ/y/9DmiBqOEB+q78sYYzA/ccmD9t1o9yxDjF7vxfmB3i8qwmmG6YPc1XwPNCc7F /KWA== 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=WFseobvJQJJsAnwHpjOiRzIUbs5Rcnt2QTayda+x89w=; b=sDn+HnLh3mfX1EDSb8o7EkRI1x5agdSFWEhyZMB442M0xRE7pIIdZztp+TXLtWwp2m ACdBls7ZxTI3iFagWZg7ON2pkM5kBPBT+IrXdjDnPFEqCMcXbvJuA9+quuo28uHhmvoP 3YSyRP+iHdiDRCA3cs3N5MW/48z27iisKDeXMexjcrSgvp8xysjAcVIaQiUNp97U2FTM Q0Edci/MBYKYlVF/e/Ux/zB33qn/vuruKEGbggpGEDfiNxzWa7WTPcnwPIV1N0CDpkhL AwN3abhI5ecA2V+tbbYHTmW2Ik8L/1REUudJfse9hKBJ2joDURRpGlG2dsRuKTzqeo9i uqGg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531Vf79wRdOnsMfocojDLDQdYz3SHsjfI0TVuHE4Q8V/5uFMebu2 6D34B7hlBNUWgRtSnysKlBo= X-Google-Smtp-Source: ABdhPJwrauli65vRtb08SVDWDDfLRAICr9qEaFazxqIdOIMdeu+TS5LoWLLMmb9PVDZGcFqn5p+ACg== X-Received: by 2002:a05:6830:47:: with SMTP id d7mr10735694otp.53.1641664793835; Sat, 08 Jan 2022 09:59:53 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:2b22:: with SMTP id l34ls1344993otv.6.gmail; Sat, 08 Jan 2022 09:59:52 -0800 (PST) X-Received: by 2002:a05:6830:25d6:: with SMTP id d22mr199671otu.103.1641664792502; Sat, 08 Jan 2022 09:59:52 -0800 (PST) In-Reply-To: X-Original-Sender: jmuccigr-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:29928 Archived-At: ------=_Part_2030_471968387.1641664791921 Content-Type: multipart/alternative; boundary="----=_Part_2031_1434776840.1641664791921" ------=_Part_2031_1434776840.1641664791921 Content-Type: text/plain; charset="UTF-8" Filed an issue on GitHub. On Friday, 7 January 2022 at 15:00:52 UTC-5 John MacFarlane wrote: > > I don't know, actually. This should be an issue on the tracker, > if there isn't one already. > > "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > > > I can see that, but I'm not sure why giving the entire path removes the > > problem. > > > > If it helps, I don't think this was a problem before (though I couldn't > say > > for sure or which what version). > > > > On Thursday, 6 January 2022 at 19:02:16 UTC-5 John MacFarlane wrote: > > > >> > >> Here's the root of the issue: > >> > >> % pandoc -t native > >> ![moon](La Lune.jpg) > >> [ Para > >> [ Image > >> ( "" , [] , [] ) [ Str "moon" ] ( "La%20Lune.jpg" , "fig:" ) > >> ] > >> ] > >> > >> As you see, the markdown reader converts the space to %20 in the > >> image path. This is fine for HTML but when pandoc tries to > >> create a PDF, it causes problems. I need to explore further, > >> but I'm convinced that's it, because if you try `-f native` > >> with the above, it fails, but replacing %20 with a space, > >> it then succeeds. > >> > >> > >> "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > >> > >> > Here's an example: > >> > > >> > ``` > >> > ~/Pictures/ > pandoc -o Downloads/test.pdf -f markdown > >> > ![one](file name.jpg) > >> > Error producing PDF. > >> > ! Package pdftex.def Error: File > >> > `/private/var/folders/yl/xd3tsv2x1959s23ts4k1q > >> > t9m0000gr/T/tex2pdf.-a4cc305331e7cf2c/file name.jpg' not found: using > >> draft > >> > set > >> > ting. > >> > > >> > See the pdftex.def package documentation for explanation. > >> > Type H for immediate help. > >> > ... > >> > > >> > l.70 ...T/tex2pdf.-a4cc305331e7cf2c/file name.jpg} > >> > ``` > >> > > >> > If I use the full path to the file, it works fine. > >> > On Thursday, 6 January 2022 at 18:13:33 UTC-5 John MacFarlane wrote: > >> > > >> >> > >> >> What exactly do you mean when you say "generate errors"? > >> >> > >> >> "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > >> >> > >> >> > I feel like I'm missing something obvious, but I've just noticed > the > >> >> spaces > >> >> > in image filenames generate errors unless they occur with a full > >> path. > >> >> For > >> >> > example: > >> >> > > >> >> > This works: > >> >> > > >> >> > `![One image](/Users/username/Pictures/file name.jpg)` > >> >> > > >> >> > This doesn't: > >> >> > > >> >> > `![Another image](file name.jpg)` > >> >> > > >> >> > Nor does: > >> >> > > >> >> > `![A third image](./file name.jpg)` > >> >> > > >> >> > I've tried quoting the filename, too. > >> >> > > >> >> > The command I'm using is the following from the directory where > the > >> >> files > >> >> > live: > >> >> > > >> >> > `pandoc -o test.pdf test.md -f markdown` > >> >> > > >> >> > -- > >> >> > 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/33416aa7-4f25-41a4-b216-763cd799a90fn%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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To view this discussion on the web visit > >> > https://groups.google.com/d/msgid/pandoc-discuss/e06ad7a4-019a-4ab7-8224-3b61ea32a07bn%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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/1c8dd209-5629-4681-a5c3-9d030d99a553n%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/1b058ce9-9019-471d-8470-8fe229dbc988n%40googlegroups.com. ------=_Part_2031_1434776840.1641664791921 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Filed an issue on GitHub.

On Friday, 7 January 2022 at 15:00:52 UTC-5 John Ma= cFarlane wrote:

I don't know, actually. This should be an issue on the tracker,
if there isn't one already.

"jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org&= quot; <jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org&= gt; writes:

> I can see that, but I'm not sure why giving the entire path re= moves the=20
> problem.
>
> If it helps, I don't think this was a problem before (though I= couldn't say=20
> for sure or which what version).
>
> On Thursday, 6 January 2022 at 19:02:16 UTC-5 John MacFarlane wrot= e:
>
>>
>> Here's the root of the issue:
>>
>> % pandoc -t native
>> ![moon](La Lune.jpg)
>> [ Para
>> [ Image
>> ( "" , [] , [] ) [ Str "moon" ] ( "La= %20Lune.jpg" , "fig:" )
>> ]
>> ]
>>
>> As you see, the markdown reader converts the space to %20 in t= he
>> image path. This is fine for HTML but when pandoc tries to
>> create a PDF, it causes problems. I need to explore further,
>> but I'm convinced that's it, because if you try `-f na= tive`
>> with the above, it fails, but replacing %20 with a space,
>> it then succeeds.
>>
>>
>> "jmuc...@gmail= .com" <jmuc...@gmail= .com> writes:
>>
>> > Here's an example:
>> >
>> > ```
>> > ~/Pictures/ > pandoc -o Downloads/test.pdf -f markdown
>> > ![one](file name.jpg)
>> > Error producing PDF.
>> > ! Package pdftex.def Error: File=20
>> > `/private/var/folders/yl/xd3tsv2x1959s23ts4k1q
>> > t9m0000gr/T/tex2pdf.-a4cc305331e7cf2c/file name.jpg' = not found: using=20
>> draft=20
>> > set
>> > ting.
>> >
>> > See the pdftex.def package documentation for explanation.
>> > Type H <return> for immediate help.
>> > ...
>> >
>> > l.70 ...T/tex2pdf.-a4cc305331e7cf2c/file name.jpg}
>> > ```
>> >
>> > If I use the full path to the file, it works fine.
>> > On Thursday, 6 January 2022 at 18:13:33 UTC-5 John MacFar= lane wrote:
>> >
>> >>
>> >> What exactly do you mean when you say "generate = errors"?
>> >>
>> >> "jmuc= ...@gmail.com" <jmuc= ...@gmail.com> writes:
>> >>
>> >> > I feel like I'm missing something obvious, b= ut I've just noticed the=20
>> >> spaces=20
>> >> > in image filenames generate errors unless they o= ccur with a full=20
>> path.=20
>> >> For=20
>> >> > example:
>> >> >
>> >> > This works:
>> >> >
>> >> > `![One image](/Users/username/Pictures/file name= .jpg)`
>> >> >
>> >> > This doesn't:
>> >> >
>> >> > `![Another image](file name.jpg)`
>> >> >
>> >> > Nor does:
>> >> >
>> >> > `![A third image](./file name.jpg)`
>> >> >
>> >> > I've tried quoting the filename, too.
>> >> >
>> >> > The command I'm using is the following from = the directory where the=20
>> >> files=20
>> >> > live:
>> >> >
>> >> > `pandoc -o test.pdf test.md -f markdown`
>> >> >
>> >> > --=20
>> >> > You received this message because you are subscr= ibed to the Google=20
>> >> Groups "pandoc-discuss" group.
>> >> > To unsubscribe from this group and stop receivin= g emails from it,=20
>> send=20
>> >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> >> > To view this discussion on the web visit=20
>> >>=20
>> https://groups= .google.com/d/msgid/pandoc-discuss/33416aa7-4f25-41a4-b216-763cd799a90fn%40= googlegroups.com
>> >> .
>> >>
>> >
>> > --=20
>> > You received this message because you are subscribed to t= he Google=20
>> Groups "pandoc-discuss" group.
>> > To unsubscribe from this group and stop receiving emails = from it, send=20
>> an email to pandoc-= discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> > To view this discussion on the web visit=20
>> https://groups= .google.com/d/msgid/pandoc-discuss/e06ad7a4-019a-4ab7-8224-3b61ea32a07bn%40= googlegroups.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.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1= c8dd209-5629-4681-a5c3-9d030d99a553n%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/1b058ce9-9019-471d-8470-8fe229dbc988n%40googlegroups.= com.
------=_Part_2031_1434776840.1641664791921-- ------=_Part_2030_471968387.1641664791921--