1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | This file is part of DocBook V5.0
|
---|
4 |
|
---|
5 | Copyright 1992-2008 HaL Computer Systems, Inc.,
|
---|
6 | O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
---|
7 | Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
---|
8 | Organization for the Advancement of Structured Information
|
---|
9 | Standards (OASIS).
|
---|
10 |
|
---|
11 | Release: $Id: pool.rnc 7466 2007-09-27 14:03:55Z nwalsh $
|
---|
12 |
|
---|
13 | Permission to use, copy, modify and distribute the DocBook schema
|
---|
14 | and its accompanying documentation for any purpose and without fee
|
---|
15 | is hereby granted in perpetuity, provided that the above copyright
|
---|
16 | notice and this paragraph appear in all copies. The copyright
|
---|
17 | holders make no representation about the suitability of the schema
|
---|
18 | for any purpose. It is provided "as is" without expressed or implied
|
---|
19 | warranty.
|
---|
20 |
|
---|
21 | If you modify the DocBook schema in any way, label your schema as a
|
---|
22 | variant of DocBook. See the reference documentation
|
---|
23 | (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
|
---|
24 | for more information.
|
---|
25 |
|
---|
26 | Please direct all questions, bug reports, or suggestions for changes
|
---|
27 | to the docbook@lists.oasis-open.org mailing list. For more
|
---|
28 | information, see http://www.oasis-open.org/docbook/.
|
---|
29 |
|
---|
30 | ======================================================================
|
---|
31 | -->
|
---|
32 | <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0">
|
---|
33 | <define name="db.domain.inlines" combine="choice">
|
---|
34 | <ref name="db.keyboard.inlines"/>
|
---|
35 | </define>
|
---|
36 | <define name="db.userinput.inlines" combine="choice">
|
---|
37 | <ref name="db.keyboard.inlines"/>
|
---|
38 | </define>
|
---|
39 | <define name="db.keyboard.inlines">
|
---|
40 | <choice>
|
---|
41 | <ref name="db.keycombo"/>
|
---|
42 | <ref name="db.keycap"/>
|
---|
43 | <ref name="db.keycode"/>
|
---|
44 | <ref name="db.keysym"/>
|
---|
45 | <ref name="db.shortcut"/>
|
---|
46 | <ref name="db.accel"/>
|
---|
47 | </choice>
|
---|
48 | </define>
|
---|
49 | <!-- ====================================================================== -->
|
---|
50 | <div>
|
---|
51 | <db:refname>keycap</db:refname>
|
---|
52 | <db:refpurpose>The text printed on a key on a keyboard</db:refpurpose>
|
---|
53 | <ctrl:other-attribute name="db.keycap.function.attrib" enum-name="db.keycap.function-enum.attribute" other-name="db.keycap.function-other.attributes"/>
|
---|
54 | <define name="db.keycap.function.enumeration">
|
---|
55 | <choice>
|
---|
56 | <value>alt</value>
|
---|
57 | <a:documentation>The "Alt" key</a:documentation>
|
---|
58 | <value>backspace</value>
|
---|
59 | <a:documentation>The "Backspace" key</a:documentation>
|
---|
60 | <value>command</value>
|
---|
61 | <a:documentation>The "Command" key</a:documentation>
|
---|
62 | <value>control</value>
|
---|
63 | <a:documentation>The "Control" key</a:documentation>
|
---|
64 | <value>delete</value>
|
---|
65 | <a:documentation>The "Delete" key</a:documentation>
|
---|
66 | <value>down</value>
|
---|
67 | <a:documentation>The down arrow</a:documentation>
|
---|
68 | <value>end</value>
|
---|
69 | <a:documentation>The "End" key</a:documentation>
|
---|
70 | <value>enter</value>
|
---|
71 | <a:documentation>The "Enter" or "Return" key</a:documentation>
|
---|
72 | <value>escape</value>
|
---|
73 | <a:documentation>The "Escape" key</a:documentation>
|
---|
74 | <value>home</value>
|
---|
75 | <a:documentation>The "Home" key</a:documentation>
|
---|
76 | <value>insert</value>
|
---|
77 | <a:documentation>The "Insert" key</a:documentation>
|
---|
78 | <value>left</value>
|
---|
79 | <a:documentation>The left arrow</a:documentation>
|
---|
80 | <value>meta</value>
|
---|
81 | <a:documentation>The "Meta" key</a:documentation>
|
---|
82 | <value>option</value>
|
---|
83 | <a:documentation>The "Option" key</a:documentation>
|
---|
84 | <value>pagedown</value>
|
---|
85 | <a:documentation>The page down key</a:documentation>
|
---|
86 | <value>pageup</value>
|
---|
87 | <a:documentation>The page up key</a:documentation>
|
---|
88 | <value>right</value>
|
---|
89 | <a:documentation>The right arrow</a:documentation>
|
---|
90 | <value>shift</value>
|
---|
91 | <a:documentation>The "Shift" key</a:documentation>
|
---|
92 | <value>space</value>
|
---|
93 | <a:documentation>The spacebar</a:documentation>
|
---|
94 | <value>tab</value>
|
---|
95 | <a:documentation>The "Tab" key</a:documentation>
|
---|
96 | <value>up</value>
|
---|
97 | <a:documentation>The up arrow</a:documentation>
|
---|
98 | </choice>
|
---|
99 | </define>
|
---|
100 | <define name="db.keycap.function-enum.attribute">
|
---|
101 | <optional>
|
---|
102 | <attribute name="function">
|
---|
103 | <db:refpurpose>Identifies the function key</db:refpurpose>
|
---|
104 | <ref name="db.keycap.function.enumeration"/>
|
---|
105 | </attribute>
|
---|
106 | </optional>
|
---|
107 | </define>
|
---|
108 | <define name="db.keycap.function-other.attributes">
|
---|
109 | <optional>
|
---|
110 | <attribute name="function">
|
---|
111 | <db:refpurpose>Identifies the function key</db:refpurpose>
|
---|
112 | <value>other</value>
|
---|
113 | <a:documentation>Indicates a non-standard function key</a:documentation>
|
---|
114 | </attribute>
|
---|
115 | </optional>
|
---|
116 | <attribute name="otherfunction">
|
---|
117 | <db:refpurpose>Specifies a keyword that identifies the non-standard key</db:refpurpose>
|
---|
118 | </attribute>
|
---|
119 | </define>
|
---|
120 | <define name="db.keycap.function.attrib">
|
---|
121 | <choice>
|
---|
122 | <ref name="db.keycap.function-enum.attribute"/>
|
---|
123 | <ref name="db.keycap.function-other.attributes"/>
|
---|
124 | </choice>
|
---|
125 | </define>
|
---|
126 | <define name="db.keycap.role.attribute">
|
---|
127 | <attribute name="role"/>
|
---|
128 | </define>
|
---|
129 | <define name="db.keycap.attlist">
|
---|
130 | <interleave>
|
---|
131 | <optional>
|
---|
132 | <ref name="db.keycap.role.attribute"/>
|
---|
133 | </optional>
|
---|
134 | <ref name="db.common.attributes"/>
|
---|
135 | <ref name="db.common.linking.attributes"/>
|
---|
136 | <ref name="db.keycap.function.attrib"/>
|
---|
137 | </interleave>
|
---|
138 | </define>
|
---|
139 | <define name="db.keycap">
|
---|
140 | <element name="keycap">
|
---|
141 | <ref name="db.keycap.attlist"/>
|
---|
142 | <ref name="db._text"/>
|
---|
143 | </element>
|
---|
144 | </define>
|
---|
145 | </div>
|
---|
146 | <!-- ====================================================================== -->
|
---|
147 | <div>
|
---|
148 | <db:refname>keycode</db:refname>
|
---|
149 | <db:refpurpose>The internal, frequently numeric, identifier for a key on a keyboard</db:refpurpose>
|
---|
150 | <define name="db.keycode.role.attribute">
|
---|
151 | <attribute name="role"/>
|
---|
152 | </define>
|
---|
153 | <define name="db.keycode.attlist">
|
---|
154 | <interleave>
|
---|
155 | <optional>
|
---|
156 | <ref name="db.keycode.role.attribute"/>
|
---|
157 | </optional>
|
---|
158 | <ref name="db.common.attributes"/>
|
---|
159 | <ref name="db.common.linking.attributes"/>
|
---|
160 | </interleave>
|
---|
161 | </define>
|
---|
162 | <define name="db.keycode">
|
---|
163 | <element name="keycode">
|
---|
164 | <ref name="db.keycode.attlist"/>
|
---|
165 | <ref name="db._text"/>
|
---|
166 | </element>
|
---|
167 | </define>
|
---|
168 | </div>
|
---|
169 | <!-- ====================================================================== -->
|
---|
170 | <define name="db.keycombination.contentmodel">
|
---|
171 | <choice>
|
---|
172 | <ref name="db.keycap"/>
|
---|
173 | <ref name="db.keycombo"/>
|
---|
174 | <ref name="db.keysym"/>
|
---|
175 | </choice>
|
---|
176 | </define>
|
---|
177 | <div>
|
---|
178 | <db:refname>keycombo</db:refname>
|
---|
179 | <db:refpurpose>A combination of input actions</db:refpurpose>
|
---|
180 | <ctrl:other-attribute name="db.keycombo.action.attrib" enum-name="db.keycombo.action-enum.attribute" other-name="db.keycombo.action-other.attributes"/>
|
---|
181 | <define name="db.keycombo.action.enumeration">
|
---|
182 | <choice>
|
---|
183 | <value>click</value>
|
---|
184 | <a:documentation>A (single) mouse click.</a:documentation>
|
---|
185 | <value>double-click</value>
|
---|
186 | <a:documentation>A double mouse click.</a:documentation>
|
---|
187 | <value>press</value>
|
---|
188 | <a:documentation>A mouse or key press.</a:documentation>
|
---|
189 | <value>seq</value>
|
---|
190 | <a:documentation>Sequential clicks or presses.</a:documentation>
|
---|
191 | <value>simul</value>
|
---|
192 | <a:documentation>Simultaneous clicks or presses.</a:documentation>
|
---|
193 | </choice>
|
---|
194 | </define>
|
---|
195 | <define name="db.keycombo.action-enum.attribute">
|
---|
196 | <optional>
|
---|
197 | <attribute name="action">
|
---|
198 | <db:refpurpose>Identifies the nature of the action taken. If <db:tag>keycombo</db:tag>
|
---|
199 | contains more than one element, <db:tag class="attvalue">simul</db:tag>
|
---|
200 | is the default, otherwise there is no default.</db:refpurpose>
|
---|
201 | <ref name="db.keycombo.action.enumeration"/>
|
---|
202 | </attribute>
|
---|
203 | </optional>
|
---|
204 | </define>
|
---|
205 | <define name="db.keycombo.action-other.attributes">
|
---|
206 | <optional>
|
---|
207 | <attribute name="action">
|
---|
208 | <db:refpurpose>Identifies the nature of the action taken</db:refpurpose>
|
---|
209 | <value>other</value>
|
---|
210 | <a:documentation>Indicates a non-standard action</a:documentation>
|
---|
211 | </attribute>
|
---|
212 | </optional>
|
---|
213 | <attribute name="otheraction">
|
---|
214 | <db:refpurpose>Identifies the non-standard action in some unspecified way.</db:refpurpose>
|
---|
215 | </attribute>
|
---|
216 | </define>
|
---|
217 | <define name="db.keycombo.action.attrib">
|
---|
218 | <choice>
|
---|
219 | <ref name="db.keycombo.action-enum.attribute"/>
|
---|
220 | <ref name="db.keycombo.action-other.attributes"/>
|
---|
221 | </choice>
|
---|
222 | </define>
|
---|
223 | <define name="db.keycombo.role.attribute">
|
---|
224 | <attribute name="role"/>
|
---|
225 | </define>
|
---|
226 | <define name="db.keycombo.attlist">
|
---|
227 | <interleave>
|
---|
228 | <optional>
|
---|
229 | <ref name="db.keycombo.role.attribute"/>
|
---|
230 | </optional>
|
---|
231 | <ref name="db.common.attributes"/>
|
---|
232 | <ref name="db.common.linking.attributes"/>
|
---|
233 | <ref name="db.keycombo.action.attrib"/>
|
---|
234 | </interleave>
|
---|
235 | </define>
|
---|
236 | <define name="db.keycombo">
|
---|
237 | <element name="keycombo">
|
---|
238 | <ref name="db.keycombo.attlist"/>
|
---|
239 | <oneOrMore>
|
---|
240 | <ref name="db.keycombination.contentmodel"/>
|
---|
241 | </oneOrMore>
|
---|
242 | </element>
|
---|
243 | </define>
|
---|
244 | </div>
|
---|
245 | <!-- ====================================================================== -->
|
---|
246 | <div>
|
---|
247 | <db:refname>keysym</db:refname>
|
---|
248 | <db:refpurpose>The symbolic name of a key on a keyboard</db:refpurpose>
|
---|
249 | <define name="db.keysym.role.attribute">
|
---|
250 | <attribute name="role"/>
|
---|
251 | </define>
|
---|
252 | <define name="db.keysym.attlist">
|
---|
253 | <interleave>
|
---|
254 | <optional>
|
---|
255 | <ref name="db.keysym.role.attribute"/>
|
---|
256 | </optional>
|
---|
257 | <ref name="db.common.attributes"/>
|
---|
258 | <ref name="db.common.linking.attributes"/>
|
---|
259 | </interleave>
|
---|
260 | </define>
|
---|
261 | <define name="db.keysym">
|
---|
262 | <element name="keysym">
|
---|
263 | <ref name="db.keysym.attlist"/>
|
---|
264 | <ref name="db._text"/>
|
---|
265 | </element>
|
---|
266 | </define>
|
---|
267 | </div>
|
---|
268 | <!-- ====================================================================== -->
|
---|
269 | <div>
|
---|
270 | <db:refname>accel</db:refname>
|
---|
271 | <db:refpurpose>A graphical user interface (GUI) keyboard shortcut</db:refpurpose>
|
---|
272 | <define name="db.accel.role.attribute">
|
---|
273 | <attribute name="role"/>
|
---|
274 | </define>
|
---|
275 | <define name="db.accel.attlist">
|
---|
276 | <interleave>
|
---|
277 | <optional>
|
---|
278 | <ref name="db.accel.role.attribute"/>
|
---|
279 | </optional>
|
---|
280 | <ref name="db.common.attributes"/>
|
---|
281 | <ref name="db.common.linking.attributes"/>
|
---|
282 | </interleave>
|
---|
283 | </define>
|
---|
284 | <define name="db.accel">
|
---|
285 | <element name="accel">
|
---|
286 | <ref name="db.accel.attlist"/>
|
---|
287 | <ref name="db._text"/>
|
---|
288 | </element>
|
---|
289 | </define>
|
---|
290 | </div>
|
---|
291 | <!-- ====================================================================== -->
|
---|
292 | <div>
|
---|
293 | <db:refname>shortcut</db:refname>
|
---|
294 | <db:refpurpose>A key combination for an action that is also accessible through a menu</db:refpurpose>
|
---|
295 | <define name="db.shortcut.action.attrib">
|
---|
296 | <ref name="db.keycombo.action.attrib"/>
|
---|
297 | </define>
|
---|
298 | <define name="db.shortcut.role.attribute">
|
---|
299 | <attribute name="role"/>
|
---|
300 | </define>
|
---|
301 | <define name="db.shortcut.attlist">
|
---|
302 | <interleave>
|
---|
303 | <optional>
|
---|
304 | <ref name="db.shortcut.role.attribute"/>
|
---|
305 | </optional>
|
---|
306 | <ref name="db.common.attributes"/>
|
---|
307 | <ref name="db.common.linking.attributes"/>
|
---|
308 | <ref name="db.shortcut.action.attrib"/>
|
---|
309 | </interleave>
|
---|
310 | </define>
|
---|
311 | <define name="db.shortcut">
|
---|
312 | <element name="shortcut">
|
---|
313 | <ref name="db.shortcut.attlist"/>
|
---|
314 | <oneOrMore>
|
---|
315 | <ref name="db.keycombination.contentmodel"/>
|
---|
316 | </oneOrMore>
|
---|
317 | </element>
|
---|
318 | </define>
|
---|
319 | </div>
|
---|
320 | </grammar>
|
---|