From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29984 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, 15 Jan 2022 11:29:46 -0800 (PST) Message-ID: <245e71f3-0afc-48d4-8d16-fcbe2e677e2bn@googlegroups.com> References: <33416aa7-4f25-41a4-b216-763cd799a90fn@googlegroups.com> <1c8dd209-5629-4681-a5c3-9d030d99a553n@googlegroups.com> <1b058ce9-9019-471d-8470-8fe229dbc988n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_352_749203486.1642274986372" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26949"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCX7HCFDXYLRBK6BRSHQMGQE7WGDE6Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jan 15 20:29:50 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n8okH-0006pI-G0 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 Jan 2022 20:29:49 +0100 Original-Received: by mail-ot1-f62.google.com with SMTP id h11-20020a056830400b00b00591920a8f96sf2975929ots.1 for ; Sat, 15 Jan 2022 11:29:49 -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=5AU0QI7I/S9e6d/b12Pq+HdTWKcx/nSebaxEtvDxhzs=; b=DqxAd/zw640+RtVgm95/0A+FN/ohpHoVmAb6OPeauZZYwauQ5VuLDJsAGY6tgTThRN 1cWFMzMiYjpyIDXC7ETwJ5dQ0NOhcBZjR8tWnD3v/ZLKfjtyDWxFSeR7Rq84t9slWRg+ n3APCFtuNIkQI2NVVwxZyjHPGnJ8PWdHlvqJWdi6pwEhkihoHMXwc4TmP5djY2HE0gSN 19diiUInbmevBueTcKs+LNjct4kUiIyLEfzhBpEcX9ew4PdZ0dXKqQ5c6TYiGIElo9OC seg3A/SSk/4ajeuYjncEFXo1p89SI0TO74zGPULWHG0hdnnbRljHw/6nxdTlHCz6b3l7 c91g== 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=5AU0QI7I/S9e6d/b12Pq+HdTWKcx/nSebaxEtvDxhzs=; b=AcWJVog9IpuHnSAcJ+vzr2tCH8CJ9ijjxkG3Gdvo8mFXCp8g5WSkJaEiypDwQBW/1F boqowxaT3b8Pm2oS+NHuNFYV+wBluUxnLCRlqtyZPp+0XpkT6BAHBi7bGoS+EqE2bRSr KceDgq70rpU2kpTzsMdjOx7D5xzEaJNkqbKqhQ1k8tqRvg53YMNn95z2qMf5PJia08gp +DJaRgRHiD7JgekChrERtGQRzz5U+w0P85vWeGLB9++V3TxvY9j1uSd/jH/sAb73Qr+P oQb5BOk8eCP2S2zYtQ10RKC/lZPQNwPA2AHl1mPDOdOfWtWhnOgg4rxOAdQaZNkgQr2E 7CUg== 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=5AU0QI7I/S9e6d/b12Pq+HdTWKcx/nSebaxEtvDxhzs=; b=qXDEnXWrKFS5EnKV7u0sFIo7p9iD+a9NMh2KGANtjPUQRR6p7zsvOtPkPxNq5t4CFv 8ZteWKSEwikrCEwWomD/jARNnoQ66gxoiWJtHqnBVufZbl8BSyXycgSCjTcWjjNdoWAC 97DXBqiIEJAmtfiWYr1HfcC/KOvaTL8o3tYnSZyjzAOWNH0e8yu8MYUd63D2+sllZUOb 2Qw1mUrWPPA2D42xSrbLA3LNJYP6fDuUNLguwg0LOHqFIl2zjQoV4anaBcIBiVDpNCrS f8pNiGFdSuQxsOurvMgqxU6BqUCNJ2J5kOldfOwZzQTnxQJGLTEFXgeEcsn2E7gRo7Gr ZCXA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5303x6BD85nqcQpfQFf6Pfa2K2h1CGM9KZAbK0zyObbCps0kyQ8L qkxVGqnYtQI4P6fsd2D/PAU= X-Google-Smtp-Source: ABdhPJztvkKoSWFD/ePWuJvQsNSypGlFxt6gaCpgrRDxe4y+bPCM6W/kPc+p9ZzaiIZCU6GdnIl5jg== X-Received: by 2002:aca:eb52:: with SMTP id j79mr17141256oih.150.1642274988216; Sat, 15 Jan 2022 11:29:48 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:21c4:: with SMTP id u187ls619002oou.2.gmail; Sat, 15 Jan 2022 11:29:47 -0800 (PST) X-Received: by 2002:a4a:4c45:: with SMTP id a66mr10418669oob.97.1642274986863; Sat, 15 Jan 2022 11:29:46 -0800 (PST) In-Reply-To: <1b058ce9-9019-471d-8470-8fe229dbc988n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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:29984 Archived-At: ------=_Part_352_749203486.1642274986372 Content-Type: multipart/alternative; boundary="----=_Part_353_1882153811.1642274986372" ------=_Part_353_1882153811.1642274986372 Content-Type: text/plain; charset="UTF-8" This is now working for me with v. 2.17. Thanks. On Saturday, 8 January 2022 at 12:59:52 UTC-5 jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > 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/245e71f3-0afc-48d4-8d16-fcbe2e677e2bn%40googlegroups.com. ------=_Part_353_1882153811.1642274986372 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is now working for me with v. 2.17. Thanks.

On Saturday, 8 January 2022 = at 12:59:52 UTC-5 jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Filed an issue on GitHub.

On Friday, 7 Januar= y 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" <jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <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=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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"= <jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...@goog= legroups.com.
>> >> > 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...@googlegroups.= com.
>> > 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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> 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/245e71f3-0afc-48d4-8d16-fcbe2e677e2bn%40googlegroups.= com.
------=_Part_353_1882153811.1642274986372-- ------=_Part_352_749203486.1642274986372--