From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: annotations (not the remember kind) Date: Wed, 11 Jun 2008 11:57:33 +0100 Message-ID: <20080611105733.GB19396@atlantic.linksys.moosehall> References: <20080530213105.GB16661@atlantic.linksys.moosehall> <9592BB6CDB1CEB48826BE86ACD71FA996ABF8B@kwik.ic.uva.nl> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6O1J-000254-MO for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 06:57:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6O1I-00024p-Ch for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 06:57:36 -0400 Received: from [199.232.76.173] (port=43161 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6O1I-00024m-5m for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 06:57:36 -0400 Received: from mail.beimborn.com ([70.84.38.100]:54374) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K6O1H-0001gQ-N7 for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 06:57:35 -0400 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id m5BAvYEB006138 for ; Wed, 11 Jun 2008 05:57:34 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id m5BAvYOW006133 for emacs-orgmode@gnu.org; Wed, 11 Jun 2008 11:57:34 +0100 Content-Disposition: inline In-Reply-To: <9592BB6CDB1CEB48826BE86ACD71FA996ABF8B@kwik.ic.uva.nl> 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: org-mode mailing list On Wed, Jun 11, 2008 at 07:36:43AM +0200, Dominik, C. wrote: > Hi Adam. > > hmm, I can see nothing that would help you directly with this. > > However, there is org-export-preprocess-hook. > > This hook runs before the export conversion of a buffer is attempted. > If you add a function to this hook it will be called in a temporary > buffer containing the entire file or section to be exported. > There will be a variable `htmlp' telling you if export > is to HTML, and similarly variables `latexp' and `asciip'. > > Your function could go through the buffer, find sections with > the ANNOTATION keyword and/or tags, and convert them to raw > HTML, surrounded by #+BEGIN_HTML ... #+END_HTML Yes, that would do perfectly ... if only I had a headline iteration API to make it easy to go through the buffer looking for ANNOTATION keywords ;-)