From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: [Feature Request] - Furigana - Yomigana - Ruby Date: Wed, 29 May 2013 09:30:01 +0200 Message-ID: <20130529073001.GB12397@kuru.dyndns-at-home.com> References: <51A3E117.3000900@gmail.com> <20130528150156.GA19186@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhapm-00028J-S4 for emacs-orgmode@gnu.org; Wed, 29 May 2013 03:30:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uhapi-0003jA-B1 for emacs-orgmode@gnu.org; Wed, 29 May 2013 03:30:10 -0400 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:50486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhapi-0003hv-4y for emacs-orgmode@gnu.org; Wed, 29 May 2013 03:30:06 -0400 Received: by mail-ea0-f170.google.com with SMTP id f15so5203994eak.29 for ; Wed, 29 May 2013 00:30:05 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Christian Moe Cc: emacs-orgmode@gnu.org On Wed, May 29, 2013 at 09:20:52AM +0200, Christian Moe wrote: > > Suvayu Ali writes: > > > Maybe we could allow backend specific macro expansion definitions. > > Something like: > > > > #+HTML_MACRO: ruby $1 ($2) <\ruby> > > #+LATEX_MACRO: ruby \ruby{$1}{$2} > > > > Then {{{ruby(東,ひがし)}}} will be expanded appropriately for > > different backends. > > > > What do you think? > > Existing (8.0) syntax already offers a way to achieve this using export > snippets, which now allow and require you to specify backends. To > recast your example: > > #+macro: ruby @@html: $1($2) @@@@latex:\ruby{$1}{$2}@@ > > Then {{{ruby(東,ひがし)}}} will be expanded appropriately for > different backends. > You are right! I had completely forgotten about snippets. -- Suvayu Open source is the future. It sets us free.