From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: Tweaking the export (was: Re: [ANN] ASCII back-end for new export engine) Date: Thu, 26 Jan 2012 15:49:29 +0900 Message-ID: <4F20F779.2060803@gmail.com> References: <87pqec4xua.fsf@gmail.com> <87obtvk6j0.fsf@gmail.com> <87obtrel2z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqJ9M-0000FI-Pn for emacs-orgmode@gnu.org; Thu, 26 Jan 2012 01:49:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqJ9L-0006NW-LQ for emacs-orgmode@gnu.org; Thu, 26 Jan 2012 01:49:36 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:61149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqJ9L-0006NQ-Fu for emacs-orgmode@gnu.org; Thu, 26 Jan 2012 01:49:35 -0500 Received: by pbaa12 with SMTP id a12so483995pba.0 for ; Wed, 25 Jan 2012 22:49:34 -0800 (PST) In-Reply-To: <87obtrel2z.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Nicolas, hello everybody, I am extremely excited about this new export engine; it seems to fill a need I have felt for quite a while now. What I need it for is the following: For the last couple of years, I have used org-mode more and more for working with and translating texts from classical Chinese. Over time, some special conventions have crept in, like the fact that I like (for the draft translation) to work in a way that has a short chunk of Chinese text on the left and, separated by a character, the translation of that piece following on the same line (there are other special conventions like specialized drawers etc., but I don't need to discuss these here now.) While this is setup is extremely pleasant to work with, at some point I need to separate these two parts in separate texts; the stuff to the left of the has to go into one file, the stuff to the right to some other file, while at the same time merging the chunks of texts into paragraphs. Now for quite some while if have thought about how to automate that, but until now, I have usually done it by hand with a couple of regex search-and-replace. Now, with the new export engine, it looks like all I would need to do would be to tweak the way paragraphs are handled, while leaving the rest intact, some kind of org to org transform that simply tweaks one single aspect of the text. However, I am a bit baffled on where to start with this. I would be glad if you or somebody else could give me some pointers at how to tackle this problem. (And please be kind, since my elisp fu is pretty insignificant:-( ) All the best, Christian Wittern, Kyoto