From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13780 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: epub and external links (to Dropbox) Date: Fri, 23 Oct 2015 09:54:52 -0700 Message-ID: <20151023165451.GC97395@MacBook-Air.local> 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: text/plain; charset=UTF-8; format=flowed X-Trace: ger.gmane.org 1445619340 30439 80.91.229.3 (23 Oct 2015 16:55:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 16:55:40 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB2WMVGYQKGQE77GQDLA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 23 18:55:26 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f64.google.com ([209.85.213.64]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpfcW-00035h-IW for gtp-pandoc-discuss@m.gmane.org; Fri, 23 Oct 2015 18:55:12 +0200 Original-Received: by vkgy127 with SMTP id y127sf25078184vkg.0 for ; Fri, 23 Oct 2015 09:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:date:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :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=WT/pDmwCH6BwqxvPfJNZFyqH/AMg3ngavZgKPQr37TY=; b=D+pxUTxtmckTetET08CQLObqw6RA3RbCnRNEy0FFf1Gf8PcmxKDEOT+VEuGsnnju/J rkqDBFlHiQBTlviAO7wW+UMTlsF8x6P8OcB9J4Wv5Ayk5Z9vHMYPwU0iqZbJvWgxk/pS LIgdPBxl2XpviL68KDZzOZ7L/7lvoA9FLG6ZCUXNQ3cTy45tLya6GsBuZ79ZPufomCEb /lZaooxHHjPFZ5ToXwEGWiTA7pTFX420Z1dHtPesYDIggyYe7DroFM88DekmLd4zR0OH keG+nynvLRjwf47m9e2Az4G27GvCtAk846OI18CuRZmSr8rdZgp92zum1zohshuQVesZ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent: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=WT/pDmwCH6BwqxvPfJNZFyqH/AMg3ngavZgKPQr37TY=; b=Bvgc8hvuLdjs4x3zWMKYZ+E1v16ZjcM0LLY8lcEMG3QV3dwRlK5for1xhxx/pjtJFJ FgoTJf529AHavagV1LRn4W8u2zQf/y6/BuAkT8MwAvcicT9V3ceO6rb/hfXfcLQhS7uW 4jwr27SKnG0Io+Qj2YT5eC2uDEHGG5uAk05V+1OWfcB2v82Y1e92nZPRrtc2xMDLQmqN ncKyjiGqhisWjV4QlFTxCIWpOPGOmwSJIp/NNP9X0C7Fv7aLhPa5NEr1nWO/BLdlA4Uz tuMXxgU6OE7NsaOjUlJ1D1kDPlgSCdp5pXKSnJDzedqqxF X-Received: by 10.140.85.242 with SMTP id n105mr429744qgd.8.1445619306899; Fri, 23 Oct 2015 09:55:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.104.103 with SMTP id z94ls2287977qge.18.gmail; Fri, 23 Oct 2015 09:55:06 -0700 (PDT) X-Received: by 10.31.108.23 with SMTP id h23mr18087583vkc.4.1445619306037; Fri, 23 Oct 2015 09:55:06 -0700 (PDT) Original-Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com. [209.85.220.41]) by gmr-mx.google.com with ESMTPS id pe1si2322668pac.2.2015.10.23.09.55.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 09:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Original-Received: by pasz6 with SMTP id z6so122855532pas.2 for ; Fri, 23 Oct 2015 09:55:05 -0700 (PDT) X-Gm-Message-State: ALoCoQnigjVm6TBv3Ou3nuhGgXUQYWFuKu91tT2qcURkrmQMZCzYfiVtw6Cm/L3DhQ4FtiZ9mOo3 X-Received: by 10.66.186.141 with SMTP id fk13mr25119068pac.7.1445619305842; Fri, 23 Oct 2015 09:55:05 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id iy1sm19868565pbb.85.2015.10.23.09.55.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 09:55:04 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 5E8BDA312; Fri, 23 Oct 2015 12:54:53 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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-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:13780 Archived-At: +++ Federico Bruni [Oct 15 15 06:51 ]: > 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 [2]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? Design decision. The idea is that EPUBs should be self-contained electronic books that can be read on your device even when you don't have an internet connection. We treat PDFs, docx, odt similarly -- all necessary resources are downloaded and included. In principle we could change this behavior, but a change in the default here might break existing workflows. One possibility would be to make this behavior sensitive to some kind of flag. For example, if the `data-external` attribute is set on `` element, don't include in the EPUB.