XML technologies / DocBook / Inline elements / GUI-specific elements
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
The functionality of a GUI (Graphical User Interface) can be described with various elements:
guibuttonText on a GUI button:
<guibutton>Abbruch</guibutton>guiiconGraphic and/or text displayed as an icon:
<para>Drücken Sie <guiicon>OK</guiicon>, um ...</para>
guilabelGeneric label in a GUI.
guimenuThe name of a menu item; see the example below.
guimenuitemThe name of a menu item that exits the application:
<para>Klicken Sie <guimenuitem>Verlassen</guimenuitem>, um die Anwendung zu schließen.</para>guisubmenuThe name of a submenu; see the following example.
menuchoiceA selection or sequence of menu items.
Here is an example:
<menuchoice>
<guimenu>Datei</guimenu>
<guisubmenu>Speichern</guisubmenu>
</menuchoice>The result looks like this: Datei → Speichern.
To add a keyboard shortcut, or hotkey, for invoking the menu function, use the element shortcut:
<menuchoice>
<shortcut>
<keycombo>
<keycap>Strg</keycap>
<keycap>S</keycap>
</keycombo>
</shortcut>
<guimenu>Dokument</guimenu>
<guisubmenu>Speichern unter...</guisubmenu>
</menuchoice>The result looks like this: Dokument → Speichern unter…(Strg+S). The key combination in parentheses indicates the hotkey.
mousebuttonA conventional mouse button name:
<para>Drücken Sie die <mousebutton>linke</mousebutton> Maustaste, um ...</para>
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top