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:

guibutton

Text on a GUI button:

<guibutton>Abbruch</guibutton>

guiicon

Graphic and/or text displayed as an icon:

<para>Drücken Sie <guiicon>OK</guiicon>, um ...</para>

guilabel

Generic label in a GUI.

guimenu

The name of a menu item; see the example below.

guimenuitem

The name of a menu item that exits the application:

<para>Klicken Sie <guimenuitem>Verlassen</guimenuitem>, um die Anwendung zu schließen.</para>

guisubmenu

The name of a submenu; see the following example.

menuchoice

A 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.

mousebutton

A conventional mouse button name:

<para>Drücken Sie die <mousebutton>linke</mousebutton> Maustaste, um ...</para>

  

back to top