Re: [O] HTML/images zipped projects

2015-07-07 Thread Eric Abrahamsen
Rasmus writes: > Robert Klein writes: > >> For single file export (cf. the ox-htmlzip example I sent earlier) I >> have some ideas, but haven't implemented them yet (Vaidheeswaran C's >> comment about epub being close to zip hit a nerve, so I'll take a shot >> at extending it to an epub exporter

Re: [O] HTML/images zipped projects

2015-07-07 Thread Rasmus
Robert Klein writes: > For single file export (cf. the ox-htmlzip example I sent earlier) I > have some ideas, but haven't implemented them yet (Vaidheeswaran C's > comment about epub being close to zip hit a nerve, so I'll take a shot > at extending it to an epub exporter.. BTW: do you know tha

[O] HTML/images zipped projects

2015-07-07 Thread Robert Klein
Hello, I looked further into this and now have a way to create archives of projects. I provide two functions for use in projects preparation and completion functions (for a project of component projects the former is to be used in the first projects preparation function and the latter in the last

Re: [O] HTML/images zipped?

2015-06-30 Thread Robert Klein
On Mon, 29 Jun 2015 13:13:19 +0200 Rasmus wrote: Hi Rasmus, > Hi Robert, > > Robert Klein writes: > > > please find an experimental htmlzip exporter attached. > > Cool! > > I don't know if you indent to make this an extension to org or for > this to be a quick hack to solve a particular iss

Re: [O] HTML/images zipped?

2015-06-29 Thread Vaidheeswaran C
On Friday 26 June 2015 06:40 PM, Peter Davis wrote: > Is there any way to export HTML with all references images, > etc. packaged in a ZIP file? This is EPUB format (more or less).

Re: [O] HTML/images zipped?

2015-06-29 Thread Rasmus
Hi Robert, Robert Klein writes: > please find an experimental htmlzip exporter attached. Cool! I don't know if you indent to make this an extension to org or for this to be a quick hack to solve a particular issue. If the former: Shouldn't this rather be something that is configurable from vi

Re: [O] HTML/images zipped?

2015-06-29 Thread Robert Klein
Hello, please find an experimental htmlzip exporter attached. Publishing doesn't work, yet (and would, as I began to write it, export to individual zip files -- one per published org file -- instead of a single zip file). It is a derived HTML exporter. I took a lot of stuff from the correspondi

Re: [O] HTML/images zipped?

2015-06-26 Thread Nick Dokos
John Kitchin writes: > hm... maybe it has been a while since I ran that ;) I pushed some > changes that seem to have it working on a small test file. > Yes, it does not fail any longer. Thanks! > This code is somewhat on the border of a filter/custom export. There are > probably links that will

Re: [O] HTML/images zipped?

2015-06-26 Thread John Kitchin
hm... maybe it has been a while since I ran that ;) I pushed some changes that seem to have it working on a small test file. This code is somewhat on the border of a filter/custom export. There are probably links that will now work with it, I have not tested it super thoroughly. Notably, it does

Re: [O] HTML/images zipped?

2015-06-26 Thread Nick Dokos
John Kitchin writes: > I did something like this for org-files: > https://github.com/jkitchin/jmax/blob/master/ox-archive.el > I tried this on some arbitrary org file (not containing any references) and I got an error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name

Re: [O] HTML/images zipped?

2015-06-26 Thread Peter Davis
Thanks, John. That didn't solve it for me. I'll keep digging when I get a chance. Thank you. -pd John Kitchin writes: > I am not sure. I have this in my init file: > > (require 'ox-org) > > maybe that is required for you too? > > Peter Davis writes: > >> John Kitchin writes: >> >>> I did so

Re: [O] HTML/images zipped?

2015-06-26 Thread John Kitchin
I am not sure. I have this in my init file: (require 'ox-org) maybe that is required for you too? Peter Davis writes: > John Kitchin writes: > >> I did something like this for org-files: >> https://github.com/jkitchin/jmax/blob/master/ox-archive.el >> >> You might use that as a starting point

Re: [O] HTML/images zipped?

2015-06-26 Thread Peter Davis
John Kitchin writes: > I did something like this for org-files: > https://github.com/jkitchin/jmax/blob/master/ox-archive.el > > You might use that as a starting point for html. I'm not lisp-savvy, but I've been experimenting with this. I get an error: Unknown "nil" backend: Aborting export It

Re: [O] HTML/images zipped?

2015-06-26 Thread Peter Davis
Thanks, John. I will take a closer look at both of these. Cheers, -pd On 6/26/15 10:24 AM, John Kitchin wrote: I did something like this for org-files: https://github.com/jkitchin/jmax/blob/master/ox-archive.el You might use that as a starting point for html. Also, my blogofile code (https://

Re: [O] HTML/images zipped?

2015-06-26 Thread John Kitchin
That is a cool idea. Here is some code for data uris that worked on with org-mode earlier this summer. You could definitely hack a filter that embedded the image uri directly into the exported html. http://kitchingroup.cheme.cmu.edu/blog/2015/05/09/Another-approach-to-embedding-org-source-in-html/

Re: [O] HTML/images zipped?

2015-06-26 Thread John Kitchin
I did something like this for org-files: https://github.com/jkitchin/jmax/blob/master/ox-archive.el You might use that as a starting point for html. Also, my blogofile code (https://github.com/jkitchin/jmax/blob/master/user/blogofile.el) does something like this to publish org to blogofile. Ra

Re: [O] HTML/images zipped?

2015-06-26 Thread Peter Davis
phillip.l...@newcastle.ac.uk (Phillip Lord) writes: > data-uri's is probably what you want. There is no standard format for > zipping multiple HTML files together, while including images (or video's > or audio) directly into the HTML works reasonably well. > > I found a snippet to get ox-html to d

Re: [O] HTML/images zipped?

2015-06-26 Thread Peter Davis
Rasmus writes: > Peter Davis writes: > >> Is there any way to export HTML with all references images, >> etc. packaged in a ZIP file? > > My guess is that at the moment your best bet is hacking some together with > ox-publish. See org-publish-project-alist. Thanks, Rasmus. I'll take a look whe

Re: [O] HTML/images zipped?

2015-06-26 Thread Phillip Lord
data-uri's is probably what you want. There is no standard format for zipping multiple HTML files together, while including images (or video's or audio) directly into the HTML works reasonably well. I found a snippet to get ox-html to do this -- it would be a good feature to add properly though!

Re: [O] HTML/images zipped?

2015-06-26 Thread Rasmus
Peter Davis writes: > Is there any way to export HTML with all references images, > etc. packaged in a ZIP file? My guess is that at the moment your best bet is hacking some together with ox-publish. See org-publish-project-alist. Hope it helps, Rasmus PS: On the list, we have talked about a

[O] HTML/images zipped?

2015-06-26 Thread Peter Davis
Is there any way to export HTML with all references images, etc. packaged in a ZIP file? Thank you. -pd