2014-03-23 07:04:51 -06:00
|
|
|
# libxkbcommon
|
|
|
|
|
2014-10-18 05:29:37 -06:00
|
|
|
libxkbcommon is a keyboard keymap compiler and support library which
|
|
|
|
processes a reduced subset of keymaps as defined by the XKB (X Keyboard
|
|
|
|
Extension) specification. It also contains a module for handling Compose
|
|
|
|
and dead keys.
|
2014-03-23 07:04:51 -06:00
|
|
|
|
|
|
|
## Quick Guide
|
|
|
|
|
|
|
|
See [Quick Guide](doc/quick-guide.md).
|
|
|
|
|
2016-09-15 15:31:55 -06:00
|
|
|
## Building
|
|
|
|
|
2017-07-25 12:57:42 -06:00
|
|
|
libxkbcommon is built with [Meson](http://mesonbuild.com/):
|
2016-09-15 15:31:55 -06:00
|
|
|
|
2017-12-15 07:17:45 -07:00
|
|
|
meson setup build
|
2017-07-25 12:57:42 -06:00
|
|
|
ninja -C build
|
2016-09-15 15:31:55 -06:00
|
|
|
|
|
|
|
To build for use with Wayland, you can disable X11 support while still
|
|
|
|
using the X11 keyboard configuration resource files thusly:
|
|
|
|
|
2017-12-15 07:17:45 -07:00
|
|
|
meson setup build \
|
2017-07-25 12:57:42 -06:00
|
|
|
-Denable-x11=false \
|
|
|
|
-Dxkb-config-root=/usr/share/X11/xkb \
|
|
|
|
-Dx-locale-root=/usr/share/X11/locale
|
|
|
|
ninja -C build
|
2016-09-15 15:31:55 -06:00
|
|
|
|
2014-03-23 07:04:51 -06:00
|
|
|
## API
|
|
|
|
|
2014-10-18 04:44:02 -06:00
|
|
|
While libxkbcommon's API is somewhat derived from the classic XKB API as found
|
2014-03-23 07:04:51 -06:00
|
|
|
in X11/extensions/XKB.h and friends, it has been substantially reworked to
|
2014-10-18 04:44:02 -06:00
|
|
|
expose fewer internal details to clients.
|
|
|
|
|
2017-12-21 05:18:07 -07:00
|
|
|
See the [API Documentation](https://xkbcommon.org/doc/current/modules.html).
|
2014-03-23 07:04:51 -06:00
|
|
|
|
2014-10-18 04:34:15 -06:00
|
|
|
## Dataset
|
|
|
|
|
|
|
|
libxkbcommon does not distribute a keymap dataset itself, other than for
|
|
|
|
testing purposes. The most common dataset is xkeyboard-config, which is used
|
|
|
|
by all current distributions for their X11 XKB data. More information on
|
|
|
|
xkeyboard-config is available here:
|
2017-12-21 05:18:07 -07:00
|
|
|
https://www.freedesktop.org/wiki/Software/XKeyboardConfig
|
2014-10-18 04:34:15 -06:00
|
|
|
|
2014-10-18 05:29:37 -06:00
|
|
|
The dataset for Compose is distributed in libX11, as part of the X locale
|
|
|
|
data.
|
|
|
|
|
2014-03-23 07:04:51 -06:00
|
|
|
## Relation to X11
|
|
|
|
|
2014-10-18 04:50:54 -06:00
|
|
|
See [Compatibility](doc/compat.md) notes.
|
2014-03-23 07:04:51 -06:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
An extremely rudimentary homepage can be found at
|
2017-12-21 05:18:07 -07:00
|
|
|
https://xkbcommon.org
|
2014-03-23 07:04:51 -06:00
|
|
|
|
|
|
|
xkbcommon is maintained in git at
|
|
|
|
https://github.com/xkbcommon/libxkbcommon
|
|
|
|
|
|
|
|
Patches are always welcome, and may be sent to either
|
|
|
|
<xorg-devel@lists.x.org> or <wayland-devel@lists.freedesktop.org>
|
2014-10-18 05:52:54 -06:00
|
|
|
or through github.
|
2014-03-23 07:04:51 -06:00
|
|
|
|
2016-09-15 15:31:54 -06:00
|
|
|
Bug reports are also welcome, and may be filed either at
|
2014-03-23 07:04:51 -06:00
|
|
|
Bugzilla https://bugs.freedesktop.org/describecomponents.cgi?product=libxkbcommon
|
|
|
|
or
|
|
|
|
Github https://github.com/xkbcommon/libxkbcommon/issues
|
|
|
|
|
|
|
|
The maintainers are
|
|
|
|
- Daniel Stone <daniel@fooishbar.org>
|
|
|
|
- Ran Benita <ran234@gmail.com>
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
|
|
|
Many thanks are due to Dan Nicholson for his heroic work in getting xkbcommon
|
|
|
|
off the ground initially.
|