Re: kbd role

David Goodger <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CABiJP=L9E9fSULy6u=n3D13MXrDQLmufcqQ_bJpu9Sa4UPS1Lg@mail.gmail.com>
On Wed, Feb 15, 2017 at 6:33 PM, Alan Isaac <[email protected]> wrote:
> Might consideration be given to adding a `kbd` standard role?

What should :kbd:`text` do?

> I realize I can use a custom role.  But I am encountering the
> need for this so often that I wonder if it other are in the
> same situation, so that there might be support among the
> developers for including this as a standard role.
> (And if not something this specific, perhaps a simple
> `span` role to inherit from?)

What would :span:`text` do?

Simple interpreted text roles are already equivalent to HTML <span>
tags. Why would we add a "span" role?

I'm really just curious here.

> I realize that the multiplication of standard roles is not
> desirable.

True.

You'll need to provide some rationale for development work beyond
simple convenience. Especially when you can just write:

.. role:: kbd

David Goodger
<http://python.net/~goodger>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.