From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan L Tyree Subject: Re: ePub and Org mode Date: Sun, 20 Feb 2011 09:15:58 +1100 Message-ID: <20110220091558.2cdbabfb.alantyree@gmail.com> References: <20110219202502.decc3e3e.alantyree@gmail.com> <4D603A1A.9020601@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pqv5y-0000kN-82 for emacs-orgmode@gnu.org; Sat, 19 Feb 2011 17:16:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pqv5w-0001Ji-Gq for emacs-orgmode@gnu.org; Sat, 19 Feb 2011 17:16:06 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:35220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pqv5w-0001Ja-Ah for emacs-orgmode@gnu.org; Sat, 19 Feb 2011 17:16:04 -0500 Received: by iwl42 with SMTP id 42so1557530iwl.0 for ; Sat, 19 Feb 2011 14:16:03 -0800 (PST) In-Reply-To: <4D603A1A.9020601@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Sat, 19 Feb 2011 22:46:02 +0100 Christian Moe wrote: > Hi, > > I agree exporting 'chapters' in a single Org document to separate > html files would be a nice option to have. > > Pending someone writing an export function for this, you could > > - post-process the HTML with one of the scripts out there for > splitting up web pages, like htsplit available on CPAN; > > - or go the Org -> DocBook -> `chunked' HTML route? Good idea. In fact, I just did a simple keyboard macro to go through the file and export subtrees. Only 12 chapters, so not much of a call for anything more difficult. > > But just out of curiosity, why would you like this for the purpose of > making an ePub book? Are you using a tool that requires it? (Unlike, > e.g., Calibre, which takes a single HTML file as input, with TOC > built from e.g. H2 as chapter headings.) Fair question. Using something like Calibre is what I would normally do. I have also used Sigil to build ePub books from a single html file. It is good since you can add some final editing touches. I got started on it because I was having a look at pandoc which purports to build ePub directly. But it doesn't split the files. Anyway, the (dumb) answer is that I was just fooling around looking at the internals of ePub structure. Trying to avoid real work :-). Alan > > Yours, > Christian > > > On 2/19/11 10:25 AM, Alan L Tyree wrote: > > Greetings from Down Under, > > I am constructing an ePub formatted book. It came to me in plain > > text and I have formatted in org-mode. > > > > It is easy to export to XHTML, the first step in ePub construction, > > but I would like every chapter to be a separate file. It is easy > > enough to do this with a macro or a simple function (even though I > > am no elisp guru). Is there an export function that does this? I > > didn't see it in the docs and I don't see anything about it doing a > > Google search. > > > > What would really be nice, is a single command to create the ePub > > file. > > > > Any help appreciated. > > > > Cheers, > > Alan > > > -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206