1XKBCOMP(1)                  General Commands Manual                 XKBCOMP(1)
2
3
4

NAME

6       xkbcomp - compile XKB keyboard description
7

SYNOPSIS

9       xkbcomp [option] source [ destination ]
10

DESCRIPTION

12       The  xkbcomp  keymap  compiler  converts a description of an XKB keymap
13       into one of several output formats.   The most common use  for  xkbcomp
14       is  to create a compiled keymap file (.xkm extension) which can be read
15       directly by XKB-capable X servers or utilities.   The  keymap  compiler
16       can  also  produce  C  header  files or XKB source files.  The C header
17       files produced by xkbcomp can be included by  X  servers  or  utilities
18       that  need a built-in default keymap.  The XKB source files produced by
19       xkbcomp are fully resolved and can be used to  verify  that  the  files
20       which typically make up an XKB keymap are merged correctly or to create
21       a single file which contains a complete description of the keymap.
22
23       The source may specify an X display, or an .xkb or .xkm  file;   unless
24       explicitly  specified,  the format of destination depends on the format
25       of the source.   Compiling a .xkb (keymap source) file generates a .xkm
26       (compiled keymap file) by default.   If the source is a .xkm file or an
27       X display, xkbcomp generates a keymap source file by default.
28
29       If the destination is an X display,  the  keymap  for  the  display  is
30       updated with the compiled keymap.
31
32       The  name  of  the destination is usually computed from the name of the
33       source, with the extension replaced as appropriate.  When  compiling  a
34       single  map from a file which contains several maps, xkbcomp constructs
35       the destination file name by appending an appropriate extension to  the
36       name of the map to be used.
37

OPTIONS

39       -a      Show  all  keyboard  information, reporting implicit or derived
40               information as a comment.  Only affects .xkb format output.
41
42       -C      Produce a C header file as output (.h extension).
43
44       -dflts  Compute defaults for any missing components, such as key names.
45
46       -Idir   Specifies  top-level  directories  to  be  searched  for  files
47               included  by  the  keymap  description.   After all directories
48               specified by -I options have been searched, the current  direc‐
49               tory   and   finally,   the   default  xkb  directory  (usually
50               /usr/lib/X11/xkb) will be searched.
51
52               To prevent the  current  and  default  directories  from  being
53               searched,  use  the -I option alone (i.e. without a directory),
54               before any -I options that specify the directories you do  want
55               searched.
56
57       -i deviceid
58               Specifies device ID (not name) to compile for.
59
60       -l      List  maps  that specify the map pattern in any files listed on
61               the command line (not implemented yet).
62
63       -m name Specifies a map to be  compiled  from  an  file  with  multiple
64               entries.
65
66       -merge  Merge  the  compiled  information  with the map from the server
67               (not implemented yet).
68
69       -o name Specifies a name for the generated output file.  The default is
70               the  name  of the source file with an appropriate extension for
71               the output format.
72
73       -opt parts
74               Specifies a list of optional parts.  Compilation errors in  any
75               optional  parts are not fatal.  Parts may consist of any combi‐
76               nation of the letters c, g,k,s,t which specify the  compatibil‐
77               ity map, geometry, keycodes, symbols and types, respectively.
78
79       -Rdir   Specifies the root directory for relative path names.
80
81       -synch  Force synchronization for X requests.
82
83       -w lvl  Controls the reporting of warnings during compilation.  A warn‐
84               ing level of 0 disables all warnings; a  warning  level  of  10
85               enables them all.
86
87       -xkb    Generate  a  source description of the keyboard as output (.xkb
88               extension).
89
90       -xkm    Generate a compiled keymap file as output (.xkm extension).
91

SEE ALSO

93       X(7)
94
96       Copyright 1994, Silicon Graphics Computer  Systems  and  X  Consortium,
97       Inc.
98       See X(7) for a full statement of rights and permissions.
99

AUTHOR

101       Erik Fortune, Silicon Graphics
102
103
104
105X Version 11                     xkbcomp 1.2.0                      XKBCOMP(1)
Impressum