This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] keycap proposal
- From: Bob Stayton <bobs at sco dot com>
- To: docbook at lists dot oasis-open dot org
- Date: Fri, 20 Jun 2003 09:36:55 -0700
- Subject: [docbook] keycap proposal
I'm following up on one of my action items from
the DocBook Technical Committee, this one
to develop a concrete proposal for semantic keycaps,
in response to RFE 697374 [1].
The RFE pointed out that while a keycap
element can contain text that indicates the marks
on the top of a key, there are some keys that
are special because they perform a function, such
as Ctrl, Shift, Alt, etc. It would be better to capture
the semantic function of such special keys, so that they
can be rendered by a stylesheet in an appropriate manner
or language. Examples: Ctrl-H, C-h (Emacs), Strg-H (German).
The simplest solution is to add a 'function' attribute
with enumerated values to the keycap element. The keycap
element content could then be empty, or could contain
a default text string. The most common keys would be
enumerated, as shown below. But it is not possible to
list all possible function keys for all keyboards. So one
of the enumerated values would be 'other', which would
indicate that another CDATA attribute 'otherfunction'
should be used. This is similar to the 'action' and
'otheraction' attributes of the keycombo element.
So the proposed new attributes for keycap are:
function (alt
|control
|shift
|meta
|escape
|enter
|tab
|backspace
|command
|option
|space
|delete
|insert
|up
|down
|left
|right
|home
|end
|pageup
|pagedown
|other) #IMPLIED
otherfunction CDATA #IMPLIED
Are there any comments on this proposal?
[1] https://sourceforge.net/tracker/index.php?func=detail&aid=697374&group_id=21935&atid=384107
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org