public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* epub and external links (to Dropbox)
@ 2015-10-12 23:37 Federico Bruni
       [not found] ` <9bfbe401-688f-4aaf-bf96-ad4138998aef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Bruni @ 2015-10-12 23:37 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1707 bytes --]

Hi all

I'm creating a book in epub format and I need to link to **external audio 
files**.
Using local files is not an option, because I want to keep the epub small 
and easy to share.

After a few tests I see that the external link is correct when using the 
HTML output.
When I use epub, however, the terminal output says that it could not find 
media and skipped it. I extracted the XHTML file in the epub and it 
contains a not existent file path:

<audio controls>
<source type="audio/mpeg" src="media/file0.mp3">
</audio>

Please note that the file I'm testing is on Dropbox and doesn't have a 
"regular" URL. As explained in the Dropbox help pages¹, you must add ?dl=0 
to cause the browser to donwload the file instead of viewing the Dropbox 
web page. As I said, this link works fine in HTML but it doesn't in the 
EPUB format.

I could find only this previous discussion² and it doesn't help.

Thanks in advance
Federico

¹ https://www.dropbox.com/help/201
² 
https://groups.google.com/forum/#!searchin/pandoc-discuss/epub$20external$20files/pandoc-discuss/DY4StO5j6o4/ZofZX8eYeM8J

-- 
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/9bfbe401-688f-4aaf-bf96-ad4138998aef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2203 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found] ` <9bfbe401-688f-4aaf-bf96-ad4138998aef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-10-13  3:13   ` John MacFarlane
       [not found]     ` <20151013031334.GA18263-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: John MacFarlane @ 2015-10-13  3:13 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Try adding the ?dl=0 to the url in the markdown file before
converting to epub.

+++ Federico Bruni [Oct 12 15 16:37 ]:
>   Hi all
>   I'm creating a book in epub format and I need to link to **external
>   audio files**.
>   Using local files is not an option, because I want to keep the epub
>   small and easy to share.
>   After a few tests I see that the external link is correct when using
>   the HTML output.
>   When I use epub, however, the terminal output says that it could not
>   find media and skipped it. I extracted the XHTML file in the epub and
>   it contains a not existent file path:
>   <audio controls>
>   <source type="audio/mpeg" src="media/file0.mp3">
>   </audio>
>   Please note that the file I'm testing is on Dropbox and doesn't have a
>   "regular" URL. As explained in the Dropbox help pages¹, you must add
>   ?dl=0 to cause the browser to donwload the file instead of viewing the
>   Dropbox web page. As I said, this link works fine in HTML but it
>   doesn't in the EPUB format.
>   I could find only this previous discussion² and it doesn't help.
>   Thanks in advance
>   Federico
>   ¹ https://www.dropbox.com/help/201
>   ²
>   https://groups.google.com/forum/#!searchin/pandoc-discuss/epub$20extern
>   al$20files/pandoc-discuss/DY4StO5j6o4/ZofZX8eYeM8J
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/9bfbe401-688f-4aaf-
>   bf96-ad4138998aef%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/9bfbe401-688f-4aaf-bf96-ad4138998aef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout

-- 
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/20151013031334.GA18263%40MacBook-Air.local.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]     ` <20151013031334.GA18263-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org>
@ 2015-10-13  5:11       ` Federico Bruni
       [not found]         ` <3ef60d71-e14b-4cbb-8d99-4e5f103642b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Bruni @ 2015-10-13  5:11 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 3372 bytes --]

Same result unfortunately. Other ideas?

If anybody has experience on making it work with either dropbox or google 
drive I'd be happy to hear their solutions.
Thanks

Il giorno martedì 13 ottobre 2015 05:13:50 UTC+2, John MacFarlane ha 
scritto:
>
> Try adding the ?dl=0 to the url in the markdown file before 
> converting to epub. 
>
> +++ Federico Bruni [Oct 12 15 16:37 ]: 
> >   Hi all 
> >   I'm creating a book in epub format and I need to link to **external 
> >   audio files**. 
> >   Using local files is not an option, because I want to keep the epub 
> >   small and easy to share. 
> >   After a few tests I see that the external link is correct when using 
> >   the HTML output. 
> >   When I use epub, however, the terminal output says that it could not 
> >   find media and skipped it. I extracted the XHTML file in the epub and 
> >   it contains a not existent file path: 
> >   <audio controls> 
> >   <source type="audio/mpeg" src="media/file0.mp3"> 
> >   </audio> 
> >   Please note that the file I'm testing is on Dropbox and doesn't have a 
> >   "regular" URL. As explained in the Dropbox help pages¹, you must add 
> >   ?dl=0 to cause the browser to donwload the file instead of viewing the 
> >   Dropbox web page. As I said, this link works fine in HTML but it 
> >   doesn't in the EPUB format. 
> >   I could find only this previous discussion² and it doesn't help. 
> >   Thanks in advance 
> >   Federico 
> >   ¹ https://www.dropbox.com/help/201 
> >   ² 
> >   
> https://groups.google.com/forum/#!searchin/pandoc-discuss/epub$20extern 
> >   al$20files/pandoc-discuss/DY4StO5j6o4/ZofZX8eYeM8J 
> > 
> >   -- 
> >   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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To post to this group, send email to 
> >   [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To view this discussion on the web visit 
> >   [3]
> https://groups.google.com/d/msgid/pandoc-discuss/9bfbe401-688f-4aaf- 
> >   bf96-ad4138998aef%40googlegroups.com. 
> >   For more options, visit [4]https://groups.google.com/d/optout. 
> > 
> >References 
> > 
> >   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   3. 
> https://groups.google.com/d/msgid/pandoc-discuss/9bfbe401-688f-4aaf-bf96-ad4138998aef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
> >   4. https://groups.google.com/d/optout 
>
>

-- 
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/3ef60d71-e14b-4cbb-8d99-4e5f103642b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 7614 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]         ` <3ef60d71-e14b-4cbb-8d99-4e5f103642b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-10-13 18:10           ` John MACFARLANE
       [not found]             ` <20151013181032.GC6891-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: John MACFARLANE @ 2015-10-13 18:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Can you link to the epub so we can look at it?
Also the source and the command you used to produce it?

+++ Federico Bruni [Oct 12 15 22:11 ]:
>   Same result unfortunately. Other ideas?
>   If anybody has experience on making it work with either dropbox or
>   google drive I'd be happy to hear their solutions.
>   Thanks
>   Il giorno martedì 13 ottobre 2015 05:13:50 UTC+2, John MacFarlane ha
>   scritto:
>
>     Try adding the ?dl=0 to the url in the markdown file before
>     converting to epub.
>     +++ Federico Bruni [Oct 12 15 16:37 ]:
>     >   Hi all
>     >   I'm creating a book in epub format and I need to link to
>     **external
>     >   audio files**.
>     >   Using local files is not an option, because I want to keep the
>     epub
>     >   small and easy to share.
>     >   After a few tests I see that the external link is correct when
>     using
>     >   the HTML output.
>     >   When I use epub, however, the terminal output says that it could
>     not
>     >   find media and skipped it. I extracted the XHTML file in the
>     epub and
>     >   it contains a not existent file path:
>     >   <audio controls>
>     >   <source type="audio/mpeg" src="media/file0.mp3">
>     >   </audio>
>     >   Please note that the file I'm testing is on Dropbox and doesn't
>     have a
>     >   "regular" URL. As explained in the Dropbox help pages¹, you must
>     add
>     >   ?dl=0 to cause the browser to donwload the file instead of
>     viewing the
>     >   Dropbox web page. As I said, this link works fine in HTML but it
>     >   doesn't in the EPUB format.
>     >   I could find only this previous discussion² and it doesn't help.
>     >   Thanks in advance
>     >   Federico
>     >   ¹ [1]https://www.dropbox.com/help/201
>     >   ²
>     >   [2]https://groups.google.com/forum/#!searchin/pandoc-
>     discuss/epub$20extern
>     >   al$20files/pandoc-discuss/DY4StO5j6o4/ZofZX8eYeM8J
>     >
>     >   --
>     >   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 [1][3]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     >   To post to this group, send email to
>     >   [2][4]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     >   To view this discussion on the web visit
>     >   [3][5]https://groups.google.com/d/msgid/pandoc-discuss/
>     9bfbe401-688f-4aaf-
>     >   bf96-ad4138998aef%[6]40googlegroups.com.
>     >   For more options, visit [4][7]https://groups.google.com/
>     d/optout.
>     >
>     >References
>     >
>     >   1. mailto:[8]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     >   2. mailto:[9]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     >   3. [10]https://groups.google.com/d/
>     msgid/pandoc-discuss/9bfbe401-688f-4aaf-bf96-ad4138998aef@
>     googlegroups.com?utm_medium=email&utm_source=footer
>     >   4. [11]https://groups.google.com/d/optout
>
>   --
>   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 [12]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [13]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [14]https://groups.google.com/d/msgid/pandoc-discuss/3ef60d71-e14b-4cbb
>   -8d99-4e5f103642b3%40googlegroups.com.
>   For more options, visit [15]https://groups.google.com/d/optout.
>
>References
>
>   1. https://www.dropbox.com/help/201
>   2. https://groups.google.com/forum/#!searchin/pandoc-discuss/epub$20extern
>   3. javascript:/
>   4. javascript:/
>   5. https://groups.google.com/d/msgid/pandoc-discuss/9bfbe401-688f-4aaf-
>   6. http://40googlegroups.com/
>   7. https://groups.google.com/d/optout
>   8. javascript:/
>   9. javascript:/
>  10. https://groups.google.com/d/msgid/pandoc-discuss/9bfbe401-688f-4aaf-bf96-ad4138998aef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>  11. https://groups.google.com/d/optout
>  12. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>  13. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>  14. https://groups.google.com/d/msgid/pandoc-discuss/3ef60d71-e14b-4cbb-8d99-4e5f103642b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>  15. https://groups.google.com/d/optout

-- 
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/20151013181032.GC6891%40D25Q40BGFY13.Berkeley.EDU.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]             ` <20151013181032.GC6891-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
@ 2015-10-14  6:23               ` Federico Bruni
       [not found]                 ` <e7659f91-73bf-42f2-b52d-374f1bd9541a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Bruni @ 2015-10-14  6:23 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1074 bytes --]

Il giorno martedì 13 ottobre 2015 20:10:47 UTC+2, John MacFarlane ha 
scritto:
>
> Can you link to the epub so we can look at it? 
> Also the source and the command you used to produce it? 
>

Find attached a minimal example. I launch this command:

$ pandoc pandoc-test.md -o pandoc-test.epub
Fetching https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=0...
pandoc: Could not find media 
`https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=0', 
skipping...

-- 
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/e7659f91-73bf-42f2-b52d-374f1bd9541a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1628 bytes --]

[-- Attachment #2: pandoc-test.md --]
[-- Type: text/x-markdown, Size: 182 bytes --]

# Test

Testing the audio element from an external link:

<audio controls>
 <source src="https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=0" type="audio/mpeg">
</audio>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]                 ` <e7659f91-73bf-42f2-b52d-374f1bd9541a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-10-14 19:18                   ` John MACFARLANE
       [not found]                     ` <20151014191810.GA54012-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: John MACFARLANE @ 2015-10-14 19:18 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Shouldn't it be ?dl=1 to download directly (not =0)?  That worked
for me.

+++ Federico Bruni [Oct 13 15 23:23 ]:
>   Il giorno martedì 13 ottobre 2015 20:10:47 UTC+2, John MacFarlane ha
>   scritto:
>
>     Can you link to the epub so we can look at it?
>     Also the source and the command you used to produce it?
>
>   Find attached a minimal example. I launch this command:
>   $ pandoc pandoc-test.md -o pandoc-test.epub
>   Fetching
>   https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=0...
>   pandoc: Could not find media
>   `https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=0',
>   skipping...
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/e7659f91-73bf-42f2-
>   b52d-374f1bd9541a%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/e7659f91-73bf-42f2-b52d-374f1bd9541a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout

># Test
>
>Testing the audio element from an external link:
>
><audio controls>
> <source src="https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=0" type="audio/mpeg">
></audio>

-- 
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/20151014191810.GA54012%40D25Q40BGFY13.Berkeley.EDU.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]                     ` <20151014191810.GA54012-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
@ 2015-10-15  4:04                       ` Federico Bruni
       [not found]                         ` <CAPjDBppLmpp8zeQfagtOkU0NRmQG798A8ejNMApjgicji-CgeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Bruni @ 2015-10-15  4:04 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

2015-10-14 21:18 GMT+02:00 John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:

> Shouldn't it be ?dl=1 to download directly (not =0)?  That worked
> for me.
>

Even if I use ?dl=1 I get the same error:

$ pandoc -s pandoc-test.md -o pandoc-test.epub
Fetching https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=1...
pandoc: Could not find media `
https://www.dropbox.com/s/xnrx1yrkzczvwk4/bach_toccata.mp3?dl=1',
skipping...

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

-- 
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/CAPjDBppLmpp8zeQfagtOkU0NRmQG798A8ejNMApjgicji-CgeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 2404 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]                         ` <CAPjDBppLmpp8zeQfagtOkU0NRmQG798A8ejNMApjgicji-CgeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-10-15  4:51                           ` Federico Bruni
       [not found]                             ` <CAPjDBprFp0gWZxu5qf+pj7Z7kTpOYHefrTu-5TjGAO4dmJab2g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Federico Bruni @ 2015-10-15  4:51 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 1681 bytes --]

2015-10-15 6:04 GMT+02:00 Federico Bruni <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 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.

[-- Attachment #1.2: Type: text/html, Size: 2848 bytes --]

[-- Attachment #2: pandoc-server.md --]
[-- Type: text/x-markdown, Size: 165 bytes --]

# Test

Testing the audio element from an external link:

<audio controls>
 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3" type="audio/mpeg">
</audio>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]                             ` <CAPjDBprFp0gWZxu5qf+pj7Z7kTpOYHefrTu-5TjGAO4dmJab2g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-10-23 16:20                               ` Federico Bruni
  2015-10-23 16:54                               ` John MacFarlane
  1 sibling, 0 replies; 11+ messages in thread
From: Federico Bruni @ 2015-10-23 16:20 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

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 Bruni <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 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.

[-- Attachment #2: Type: text/html, Size: 3518 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]                             ` <CAPjDBprFp0gWZxu5qf+pj7Z7kTpOYHefrTu-5TjGAO4dmJab2g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2015-10-23 16:20                               ` Federico Bruni
@ 2015-10-23 16:54                               ` John MacFarlane
       [not found]                                 ` <20151023165451.GC97395-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org>
  1 sibling, 1 reply; 11+ messages in thread
From: John MacFarlane @ 2015-10-23 16:54 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ 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 `<source>` element, don't include in the EPUB.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: epub and external links (to Dropbox)
       [not found]                                 ` <20151023165451.GC97395-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org>
@ 2015-10-23 17:13                                   ` Federico Bruni
  0 siblings, 0 replies; 11+ messages in thread
From: Federico Bruni @ 2015-10-23 17:13 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 2096 bytes --]

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:
>>   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 `<source>` 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.

[-- Attachment #2: Type: text/html, Size: 3445 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-10-23 17:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-12 23:37 epub and external links (to Dropbox) Federico Bruni
     [not found] ` <9bfbe401-688f-4aaf-bf96-ad4138998aef-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-10-13  3:13   ` John MacFarlane
     [not found]     ` <20151013031334.GA18263-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org>
2015-10-13  5:11       ` Federico Bruni
     [not found]         ` <3ef60d71-e14b-4cbb-8d99-4e5f103642b3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-10-13 18:10           ` John MACFARLANE
     [not found]             ` <20151013181032.GC6891-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
2015-10-14  6:23               ` Federico Bruni
     [not found]                 ` <e7659f91-73bf-42f2-b52d-374f1bd9541a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-10-14 19:18                   ` John MACFARLANE
     [not found]                     ` <20151014191810.GA54012-4kKid1p5UN4xFjuZnxJpBp3lxR28IOakuDuwTybUTCk@public.gmane.org>
2015-10-15  4:04                       ` Federico Bruni
     [not found]                         ` <CAPjDBppLmpp8zeQfagtOkU0NRmQG798A8ejNMApjgicji-CgeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-15  4:51                           ` Federico Bruni
     [not found]                             ` <CAPjDBprFp0gWZxu5qf+pj7Z7kTpOYHefrTu-5TjGAO4dmJab2g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-23 16:20                               ` Federico Bruni
2015-10-23 16:54                               ` John MacFarlane
     [not found]                                 ` <20151023165451.GC97395-jF64zX8BO08aTFSqC7bH4WZHpeb/A1Y/@public.gmane.org>
2015-10-23 17:13                                   ` Federico Bruni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).