From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/13781 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 19:13:17 +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> <20151023165451.GC97395@MacBook-Air.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec53f34eb464ed20522c8ba92 X-Trace: ger.gmane.org 1445620420 15403 80.91.229.3 (23 Oct 2015 17:13:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 17:13:40 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCBO3M7CXIBRBLWVVGYQKGQE2VU4HAQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 23 19:13:35 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-lf0-f60.google.com ([209.85.215.60]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zpfu3-000648-7v for gtp-pandoc-discuss@m.gmane.org; Fri, 23 Oct 2015 19:13:19 +0200 Original-Received: by lfaz124 with SMTP id z124sf35628125lfa.0 for ; Fri, 23 Oct 2015 10:13:18 -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=DB5F7xRbkEus5gX5RDoCPJrlSUgCvwD8g2hHWWKke4w=; b=ndp6eLLqRsFxoBtHJD7SCnd0NljDM65R+MOeGOSJQgvDc6mEaG7k7baTIGZrpW0MJL iS3pq+pbDJMvfc8BiHWn3DkFBWT0GTrMHgYJWmj28AB+QcNhabnMKYgUwEJ5dJXneeDU URfOsDN3wJvrDac2/HmKRwdIgiEjw2iSfXbifKGP3tyK/1w/1GxL5Kf+l0jE8sGNzGYy hi6cdbLM0cLHSRCC26C4PHBO0oEszNDllQzG0GJnhNBCYojGEFLRpYNX45ayeAAJUEWA UiCvf+YCv8DtrLBPepaKxyMKqwtT2gM1Yz+/99oII44ZUwGcqz4vR8jI1fxSn9sAhOuS woxw== X-Received: by 10.25.29.147 with SMTP id d141mr287310lfd.0.1445620398952; Fri, 23 Oct 2015 10:13:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.77.74 with SMTP id a71ls2609lfb.70.gmail; Fri, 23 Oct 2015 10:13:17 -0700 (PDT) X-Received: by 10.112.144.105 with SMTP id sl9mr5158007lbb.3.1445620397719; Fri, 23 Oct 2015 10:13:17 -0700 (PDT) Original-Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com. [2a00:1450:400c:c05::230]) by gmr-mx.google.com with ESMTPS id d7si169287wiy.2.2015.10.23.10.13.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 10:13:17 -0700 (PDT) Received-SPF: pass (google.com: domain of fedelogy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c05::230 as permitted sender) client-ip=2a00:1450:400c:c05::230; Original-Received: by mail-wi0-x230.google.com with SMTP id fx6so39933728wic.1 for ; Fri, 23 Oct 2015 10:13:17 -0700 (PDT) X-Received: by 10.180.20.46 with SMTP id k14mr5494839wie.89.1445620397525; Fri, 23 Oct 2015 10:13:17 -0700 (PDT) Original-Received: by 10.28.88.142 with HTTP; Fri, 23 Oct 2015 10:13:17 -0700 (PDT) In-Reply-To: <20151023165451.GC97395-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org> 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::230 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:13781 Archived-At: --bcaec53f34eb464ed20522c8ba92 Content-Type: text/plain; charset=UTF-8 2015-10-23 18:54 GMT+02:00 John MacFarlane : > 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. > > I see. But while searching the archives of this list I found somebody saying that this behaviour could be outdated now that most of ebook devices have WiFi connection (not to mention the tablets..). > 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. > Yes, this would be nice. It would allow to still have the audio player in the EPUB while keeping the file small. Issue #2473 may be turned into this feature request? In the meanwhile, I guess that I'll use a simple link to the file. 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/CAPjDBprbqgv%3Dc-btE1WTRJFB-gwDDnBqzCjN93HM6Af7c0_etw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --bcaec53f34eb464ed20522c8ba92 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2015= -10-23 18:54 GMT+02:00 John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:
Let's try a regular path file on a server, see file attached:
=
=C2=A0 pandoc -o pandoc-server.epub [2]pandoc-server.md<= br> =C2=A0 pandoc downloads the file and includes it in the epub. Why?
=C2=A0 HTML output does not include external resources by default and you c= an
=C2=A0 include them with option --self-contained. IMO epub output should wo= rk
=C2=A0 the same. Is it a bug or a design decision?

Design decision.=C2=A0 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.


I see. But while searching the archive= s of this list I found somebody saying that this behaviour could be outdate= d now that most of ebook devices have WiFi connection (not to mention the t= ablets..).
=C2=A0
In principle we could change this behavior, but a change in
the default here might break existing workflows.=C2=A0 One
possibility would be to make this behavior sensitive to some
kind of flag.=C2=A0 For example, if the `data-external` attribute
is set on `<source>` element, don't include in the EPUB.

Yes, this wo= uld be nice. It would allow to still have the audio player in the EPUB whil= e keeping the file small. Issue #2473 may be turned into this feature reque= st?

In the meanwhile, I guess that = I'll use a simple link to the file.

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/CAPjDBprbqgv%3Dc-btE1WTRJFB-gwDDnBqzCjN= 93HM6Af7c0_etw%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--bcaec53f34eb464ed20522c8ba92--