From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: [RFC] New "kbd" macro? Date: Wed, 13 Sep 2017 14:05:41 +0000 Message-ID: References: <87377qpwc7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114d725c53b48c055912a82e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ds8Ib-00025y-TB for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 10:05:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ds8Ia-0002n9-Nv for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 10:05:53 -0400 Received: from mail-yw0-x22f.google.com ([2607:f8b0:4002:c05::22f]:46756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ds8Ia-0002mR-IB for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 10:05:52 -0400 Received: by mail-yw0-x22f.google.com with SMTP id v72so758422ywa.3 for ; Wed, 13 Sep 2017 07:05:52 -0700 (PDT) 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" To: Nicolas Goaziou , Org Mode List Cc: Oleh Krehel --001a114d725c53b48c055912a82e Content-Type: text/plain; charset="UTF-8" Oh, and the reference to [1] that I forgot to paste.. [1]: https://github.com/kaushalmodi/ox-hugo/blob/a486141e4e2c3f9f67e799e20af150611d77f850/ox-hugo.el#L535-L542 On Wed, Sep 13, 2017 at 10:03 AM Kaushal Modi wrote: > On Wed, Sep 13, 2017 at 9:23 AM Nicolas Goaziou > wrote: > >> >> The "kbd" macro focuses on normalizing keybinding during export. For >> example, during Texinfo export, {{{kbd(v SPC)}}} becomes >> >> @kbd{v @key{SPC}} >> >> whereas in another back-end, it becomes >> >> v >> > > Can we have {{{kbd(v SPC)}}} export to below for HTML? > > v SPC > > It will be tremendously useful for blog posts. At the moment, I use this > hack[1] in ox-hugo.el. > -- Kaushal Modi --001a114d725c53b48c055912a82e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oh, and the reference to [1] that I forgot to paste..
=

On Wed, Sep 13, 2017 at 10:03 AM Kaushal Modi <kaushal.modi@gmail.com> wrote= :
On Wed, Sep 13, 2017 at 9:23 AM Nicolas Goaziou= <mail@nicol= asgoaziou.fr> wrote:

The "kbd" macro focuses on normalizing keyb= inding during export. For
example, during Texinfo export, {{{kbd(v SPC)}}} becomes

=C2=A0 @kbd{v @key{SPC}}

whereas in another back-end, it becomes

=C2=A0 v <SPC>

Can we have {{{kbd(v SPC)}}} export t= o below for HTML?

<kbd>v <span class=3D&q= uot;key">SPC</span></kbd>

It w= ill be tremendously useful for blog posts. At the moment, I use this hack[1= ] in ox-hugo.el.
--

Ka= ushal Modi

--001a114d725c53b48c055912a82e--