From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Tyree Subject: Re: Re: ePub and Org mode Date: Sun, 20 Feb 2011 20:54:09 +1100 Message-ID: References: <20110219202502.decc3e3e.alantyree@gmail.com> <4D603A1A.9020601@christianmoe.com> <87aahrxhu4.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0124135825==" Return-path: Received: from [140.186.70.92] (port=43230 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr5za-0005MD-S3 for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 04:54:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pr5zY-0007jd-I2 for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 04:54:14 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:34998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pr5zY-0007jN-Ey for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 04:54:12 -0500 Received: by vxc38 with SMTP id 38so194694vxc.0 for ; Sun, 20 Feb 2011 01:54:11 -0800 (PST) In-Reply-To: <87aahrxhu4.fsf@Rainer.invalid> 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: Achim Gratz Cc: emacs-orgmode@gnu.org --===============0124135825== Content-Type: multipart/alternative; boundary=90e6ba53ac32913a4e049cb3bab2 --90e6ba53ac32913a4e049cb3bab2 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 20, 2011 at 6:53 PM, Achim Gratz wrote: > Christian Moe writes: > > 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 > [...] > > That sort of already exists, I've been using that to some good > effect... from the documentation: > > --8<---------------cut here---------------start------------->8--- > When exporting only a single subtree by selecting it with `C-c @' > before calling an export command, the subtree can overrule some of the > file's export settings with properties `EXPORT_FILE_NAME', > `EXPORT_TITLE', `EXPORT_TEXT', `EXPORT_AUTHOR', `EXPORT_DATE', and > `EXPORT_OPTIONS'. > --8<---------------cut here---------------end--------------->8--- > > The only thing missing is a function to export all (not excluded) > subtrees one by one and honor the properties slapped onto each subtree. > > True. I also use the subtree export function often. I is easy to define a keyboard macro to deal with the problem. If I had to do it more than once, I'm sure that it is not too hard to write an elisp function to do it. I think that Christian is proably right: for ePub generation, there are other tools that do the job. Two ways that are easy: org -> html -> tidy -m -asxhtml -> (calibre || sigil) I have had trouble getting the calibre ePub to validate, but it is more straightforward than Sigil. On the other hand, Sigil is easier to use to add editing to the basic text and always seems to pass the validation tests. To get proper validation, I have found that the "tidy" step is necessary. Not sure why - tidy always replaces lots of characters, but I haven't had the time to work out what is going on. Cheers, Alan > > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > SD adaptation for Waldorf microQ V2.22R2: > http://Synth.Stromeko.net/Downloads.html#WaldorfSDada > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 --90e6ba53ac32913a4e049cb3bab2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Feb 20, 2011 at 6:53 PM, Achim G= ratz <Stromeko@ne= xgo.de> wrote:
Christian Moe <mail@christianmoe.com> writes:
> I agree exporting 'chapters' in a single Org document to separ= ate html
> files would be a nice option to have.
>
> Pending someone writing an export function for this, you could
[...]

That sort of already exists, I've been using that to some good
effect... from the documentation:

--8<---------------cut here---------------start------------->8---
=A0 When exporting only a single subtree by selecting it with `C-c @'<= br> before calling an export command, the subtree can overrule some of the
file's export settings with properties `EXPORT_FILE_NAME',
`EXPORT_TITLE', `EXPORT_TEXT', `EXPORT_AUTHOR', `EXPORT_DATE= 9;, and
`EXPORT_OPTIONS'.
--8<---------------cut here---------------end--------------->8---

The only thing missing is a function to export all (not excluded)
subtrees one by one and honor the properties slapped onto each subtree.

True. I also use the subtree export function often. I= is easy to define a keyboard macro to deal with the problem. If I had to d= o it more than once, I'm sure that it is not too hard to write an elisp= function to do it.

I think that Christian is proably right: for ePub generation, there are= other tools that do the job. Two ways that are easy:

org -> html= -> tidy -m -asxhtml -> (calibre || sigil)

I have had trouble = getting the calibre ePub to validate, but it is more straightforward than S= igil. On the other hand, Sigil is easier to use to add editing to the basic= text and always seems to pass the validation tests.

To get proper validation, I have found that the "tidy" step i= s necessary. Not sure why - tidy always replaces lots of characters, but I = haven't had the time to work out what is going on.

Cheers,
Alan
=A0

Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+<= br>
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Alan L Tyree=A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 h= ttp://www2.austlii.edu.au/~alan
Tel:=A0 04 2748 6206

--90e6ba53ac32913a4e049cb3bab2-- --===============0124135825== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0124135825==--