From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13745 Path: news.gmane.org!not-for-mail From: Federico Bruni Newsgroups: gmane.text.pandoc Subject: Re: epub and external links (to Dropbox) Date: Thu, 15 Oct 2015 06:51:34 +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/mixed; boundary=001a1130cfa2ff81d505221d6ef2 X-Trace: ger.gmane.org 1444884705 14813 80.91.229.3 (15 Oct 2015 04:51:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 04:51:45 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCBO3M7CXIBRBV7B7SYAKGQE6QO4TOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 15 06:51:39 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-lb0-f185.google.com ([209.85.217.185]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmaVs-0003Hc-Nl for gtp-pandoc-discuss@m.gmane.org; Thu, 15 Oct 2015 06:51:36 +0200 Original-Received: by lbbpc3 with SMTP id pc3sf27353401lbb.0 for ; Wed, 14 Oct 2015 21:51:36 -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=/uZdYsyAOKBJH+678zY5jhk8U8P2H67ujO21dTRpMNU=; b=IU4IPdoX9UHeDeUsUXYQhursQ/D/9bpudlVeh+x+AkxARL8XT1B0j/8XvrpRtNhjW1 SFkv9S1TecDjy+KtqZXZ83K7AgsATuwICmJjqNgSB9olarbvfJtjYixQLpllF4NnPD70 n7AJ9O5NVLYOOlrHoEpTTR2k3szKUikWeji8NOUA/TpQrJHQZNPNmSaY6bNop+pD4eAA 6Mlv+azXz34l2yLHx1h/MZnUkjCu10mhy7gMMTipo/m2Dau7znLLOHEuePD1mlwp/wP2 jDYEd88lp/OmEiAmRFwrMNf0uNdDZ0Ar+CxhWHG8w/GKOQbjwWdz9Gls9l020jHIc0NG F61w== X-Received: by 10.25.24.168 with SMTP id 40mr76263lfy.20.1444884696376; Wed, 14 Oct 2015 21:51:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.159.212 with SMTP id i203ls117984lfe.61.gmail; Wed, 14 Oct 2015 21:51:35 -0700 (PDT) X-Received: by 10.112.130.41 with SMTP id ob9mr1589429lbb.17.1444884695341; Wed, 14 Oct 2015 21:51:35 -0700 (PDT) Original-Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com. [2a00:1450:400c:c05::22d]) by gmr-mx.google.com with ESMTPS id bh7si49283wib.1.2015.10.14.21.51.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Oct 2015 21:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c05::22d as permitted sender) client-ip=2a00:1450:400c:c05::22d; Original-Received: by mail-wi0-x22d.google.com with SMTP id q8so111186081wij.0 for ; Wed, 14 Oct 2015 21:51:35 -0700 (PDT) X-Received: by 10.194.111.198 with SMTP id ik6mr8730051wjb.96.1444884695158; Wed, 14 Oct 2015 21:51:35 -0700 (PDT) Original-Received: by 10.28.24.69 with HTTP; Wed, 14 Oct 2015 21:51:34 -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::22d 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:13745 Archived-At: --001a1130cfa2ff81d505221d6ef2 Content-Type: multipart/alternative; boundary=001a1130cfa2ff81d005221d6ef0 --001a1130cfa2ff81d005221d6ef0 Content-Type: text/plain; charset=UTF-8 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/CAPjDBprFp0gWZxu5qf%2Bpj7Z7kTpOYHefrTu-5TjGAO4dmJab2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --001a1130cfa2ff81d005221d6ef0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2015= -10-15 6:04 GMT+02:00 Federico Bruni <fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:<= br>
Perhaps it dep= ends on the version of pandoc?
I'm = using the package in fedora 22:

$ pandoc --version
pandoc 1.13.2<= br>
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=3D1. Unf= ortunately, 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 wo= uld save time and use local files. I'm using external files because I w= ant to stream the audio and keep the epub file size small.

Now, I need to understand if the streaming doesn= 9;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. Wh= y?
HTML output does not include externa= l resources by default and you can include them with option --self-containe= d. IMO epub output should work the same. Is it a bug or a design decision?<= br>
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/CAPjDBprFp0gWZxu5qf%2Bpj7Z7kTpOYHefrTu-= 5TjGAO4dmJab2g%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--001a1130cfa2ff81d005221d6ef0-- --001a1130cfa2ff81d505221d6ef2 Content-Type: text/x-markdown; charset=US-ASCII; name="pandoc-server.md" Content-Disposition: attachment; filename="pandoc-server.md" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ifrqigvw0 IyBUZXN0CgpUZXN0aW5nIHRoZSBhdWRpbyBlbGVtZW50IGZyb20gYW4gZXh0ZXJuYWwgbGluazoK CjxhdWRpbyBjb250cm9scz4KIDxzb3VyY2Ugc3JjPSJodHRwOi8vd3d3LnNpeGJhcnNqYWlsLml0 L3RtcC9iYWNoX3RvY2NhdGEubXAzIiB0eXBlPSJhdWRpby9tcGVnIj4KPC9hdWRpbz4K --001a1130cfa2ff81d505221d6ef2--