emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [Feature Request] - Furigana - Yomigana - Ruby


From: Suvayu Ali
Subject: Re: [O] [Feature Request] - Furigana - Yomigana - Ruby
Date: Wed, 29 May 2013 09:30:01 +0200
User-agent: Mutt/1.5.21 (2012-12-30)

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 <ruby> $1 <rp>(</rp><rt>$2</rt><rp>)</rp> <\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:<ruby> $1<rp>(</rp><rt>$2</rt><rp>)</rp> 
> </ruby>@@@@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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]