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
|
2020-05-11 22:09:50 -06:00
|
|
|
and dead keys and a separate library for listing available keyboard layouts.
|
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
|
2021-12-23 05:58:06 -07:00
|
|
|
ninja -C build test # Run the tests.
|
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>
|
2019-02-26 09:26:01 -07:00
|
|
|
or in a [GitHub](https://github.com/xkbcommon/libxkbcommon) pull request.
|
2014-03-23 07:04:51 -06:00
|
|
|
|
2019-02-26 09:27:53 -07:00
|
|
|
Bug reports (and usage questions) are also welcome, and may be filed at
|
2019-02-26 09:26:01 -07:00
|
|
|
[GitHub](https://github.com/xkbcommon/libxkbcommon/issues).
|
2014-03-23 07:04:51 -06:00
|
|
|
|
|
|
|
The maintainers are
|
|
|
|
- Daniel Stone <daniel@fooishbar.org>
|
2019-10-18 15:55:21 -06:00
|
|
|
- Ran Benita <ran@unusedvar.com>
|
2014-03-23 07:04:51 -06:00
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
|
|
|
Many thanks are due to Dan Nicholson for his heroic work in getting xkbcommon
|
|
|
|
off the ground initially.
|