gtk/gtk/compose
Matthias Clasen a1c5a806b3 Convert headers to #pragma once
The conversion was done by guard2one.
2023-03-31 15:11:10 -04:00
..
chars Regenerate builtin sequences 2022-09-12 22:30:47 -04:00
compose-parse.c compose: Document how to get compose-parse input from libX11 source 2021-08-30 13:09:05 +01:00
gtkcomposedata.h Convert headers to #pragma once 2023-03-31 15:11:10 -04:00
meson.build composetable: Drop GtkComposeTableCompact 2021-07-13 22:03:23 -04:00
README.md Add a README in gtk/compose 2021-09-02 20:10:19 -04:00
sequences-big-endian Regenerate builtin sequences 2022-09-12 22:30:47 -04:00
sequences-little-endian Regenerate builtin sequences 2022-09-12 22:30:47 -04:00

Compose data

GTK includes a copy of the X11 Compose file in a compact, precompiled form (the same format is used for caching custom Compose files in the users home directory).

The X11 Compose file can be found here:

https://gitlab.freedesktop.org/xorg/lib/libx11/-/raw/master/nls/en_US.UTF-8/Compose.pre

The tool to convert the data is build during the GTK build, from compose-parse.c in this directory. You run it like this:

cpp -DXCOMM='#' Compose.pre | sed -e 's/^ *#/#/' > Compose compose-parse Compose sequences-little-endian sequences-big-endian chars gtkcomposedata.h

The GTK build expects the resulting files to be in the source tree, in the gtk/cmompose directory.