From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13778 Path: news.gmane.org!not-for-mail From: Federico Bruni Newsgroups: gmane.text.pandoc Subject: Re: epub and external links (to Dropbox) Date: Fri, 23 Oct 2015 18:20:02 +0200 Message-ID: References: <9bfbe401-688f-4aaf-bf96-ad4138998aef@googlegroups.com> <20151013031334.GA18263@MacBook-Air.local> <3ef60d71-e14b-4cbb-8d99-4e5f103642b3@googlegroups.com> <20151013181032.GC6891@D25Q40BGFY13.Berkeley.EDU> <20151014191810.GA54012@D25Q40BGFY13.Berkeley.EDU> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec53f34ebdcdf530522c7fb8c X-Trace: ger.gmane.org 1445617225 28058 80.91.229.3 (23 Oct 2015 16:20:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 16:20:25 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCBO3M7CXIBRBM54VGYQKGQENP2WRPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 23 18:20:19 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-lf0-f55.google.com ([209.85.215.55]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zpf4W-0006dm-Gp for gtp-pandoc-discuss@m.gmane.org; Fri, 23 Oct 2015 18:20:04 +0200 Original-Received: by lffv3 with SMTP id v3sf34573591lff.1 for ; Fri, 23 Oct 2015 09:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=vrNfotrXQhf6KT2+PFVoexiD88qfr7ayAl3pdmAYqVM=; b=DjsEgUInQzMk4CMmlDCxE8senblraAC9vX3dXGpMLk71/6ie1kzKbDDx7dINEXJQYq jm7POwPymny5HBPxLHqN5BVkoZJvSYbXeiiAZUUojfTu+DwDEIrYRmrqd1Lo4/7++40K T7wKOIbij/m/9tP00GFHiVR2mzMdGlAbyZ8y9lDzhoRF5GunvLS0PFF4Ib7RR333eHYU fTwOJuOY7CBE1bHBzfuljg6Kb8FJy96C2Qg97wVOAvep5hkKoqj0AfBIFLb3vke4zsTd 1XXRD5qh/SPHU2eV0A1MqtaZqjBJm9j5WqhlE/btEcQgkiFORNe6KJegg45ouMm6Bwt5 RMvg== X-Received: by 10.180.109.17 with SMTP id ho17mr40328wib.9.1445617204286; Fri, 23 Oct 2015 09:20:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.180.82.73 with SMTP id g9ls164743wiy.30.gmail; Fri, 23 Oct 2015 09:20:03 -0700 (PDT) X-Received: by 10.181.11.195 with SMTP id ek3mr1072964wid.7.1445617203049; Fri, 23 Oct 2015 09:20:03 -0700 (PDT) Original-Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com. [2a00:1450:400c:c05::233]) by gmr-mx.google.com with ESMTPS id en3si56289wib.3.2015.10.23.09.20.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 09:20:03 -0700 (PDT) Received-SPF: pass (google.com: domain of fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c05::233 as permitted sender) client-ip=2a00:1450:400c:c05::233; Original-Received: by mail-wi0-x233.google.com with SMTP id p11so84529905wij.0 for ; Fri, 23 Oct 2015 09:20:03 -0700 (PDT) X-Received: by 10.180.20.46 with SMTP id k14mr5237178wie.89.1445617202943; Fri, 23 Oct 2015 09:20:02 -0700 (PDT) Original-Received: by 10.28.88.142 with HTTP; Fri, 23 Oct 2015 09:20:02 -0700 (PDT) In-Reply-To: X-Original-Sender: fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c05::233 as permitted sender) smtp.mailfrom=fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE 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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:13778 Archived-At: --bcaec53f34ebdcdf530522c7fb8c Content-Type: text/plain; charset=UTF-8 I've added an issue: https://github.com/jgm/pandoc/issues/2473 2015-10-15 6:51 GMT+02:00 Federico Bruni : > 2015-10-15 6:04 GMT+02:00 Federico Bruni : > >> Perhaps it depends on the version of pandoc? >> I'm using the package in fedora 22: >> >> $ pandoc --version >> pandoc 1.13.2 >> >> I'll try the latest release (1.15.0.6) and let you know >> > > Yes, with version 1.15 it works but only when using ?dl=1. Unfortunately, > this way the file is downloaded and saved inside the epub file, which is > what I do not want. If I wanted to include files in the epub I would save > time and use local files. I'm using external files because I want to stream > the audio and keep the epub file size small. > > Now, I need to understand if the streaming doesn't work because of pandoc > or because of dropbox. > Let's try a regular path file on a server, see file attached: > > pandoc -o pandoc-server.epub pandoc-server.md > > pandoc downloads the file and includes it in the epub. Why? > HTML output does not include external resources by default and you can > include them with option --self-contained. IMO epub output should work the > same. Is it a bug or a design decision? > > Thanks > Federico > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAPjDBprcxNBrjRTLS8k0FdiJ6-R5qf73fmvZOyTukceSuurV%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --bcaec53f34ebdcdf530522c7fb8c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've added an issue:
https://github.com/jgm/pandoc/issues/2473

2015-10-15 6:= 51 GMT+02:00 Federico Bruni <fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
2015-10-15 6:04 GMT+02:00 Federico Br= uni <fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Perhaps it depends on the version of pandoc?
I'm using the package in fedora 22:
$ pandoc --version
pandoc 1.13.2

I'll try the latest release (1.15.0.6) and let you know

Yes, with versi= on 1.15 it works but only when using ?dl=3D1. Unfortunately, this way the f= ile is downloaded and saved inside the epub file, which is what I do not wa= nt. If I wanted to include files in the epub I would save time and use loca= l files. I'm using external files because I want to stream the audio an= d keep the epub file size small.

No= w, I need to understand if the streaming doesn't work because of pandoc= or because of dropbox.
Let's try a= regular path file on a server, see file attached:

pandoc -o pandoc-server.epub pandoc-server.md

pandoc downloads the file and includes it in the epub. Why?
<= /div>
HTML output does not include external resou= rces by default and you can include them with option --self-contained. IMO = epub output should work the same. Is it a bug or a design decision?

=
Thanks
Federico


--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAPjDBprcxNBrjRTLS8k0FdiJ6-R5qf73fmvZOy= TukceSuurV%3Dg%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--bcaec53f34ebdcdf530522c7fb8c--