From 18d6aebec003c2de7957f3c94fdc24edf533d084 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 11 Dec 2017 22:41:55 +0200 Subject: keysym: add xkb_keysym_to_{lower,upper} to public API These can be useful in some odd cases. There is already an implementation (+ tests) for internal use, so all that's needed is to export them. If xkbcommon were to provide a way to convert a Unicode codepoint to a keysym, this could have been implemented externally as follows: uint32_t codepoint = xkb_keysym_to_utf32(keysym); uint32_t upper_codepoint = my_unicode_library_to_upper(codepoint); xkb_keysym_t upper_keysym = theoretical_xkb_keysym_from_utf32(upper_codepoint); However keysym -> codepoint is not injective so such a function is not possible strictly speaking. Signed-off-by: Ran Benita --- xkbcommon.map | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xkbcommon.map') diff --git a/xkbcommon.map b/xkbcommon.map index cc468c6..f28f68f 100644 --- a/xkbcommon.map +++ b/xkbcommon.map @@ -97,3 +97,9 @@ global: xkb_state_key_get_consumed_mods2; xkb_state_mod_index_is_consumed2; } V_0.6.0; + +V_0.8.0 { +global: + xkb_keysym_to_lower; + xkb_keysym_to_upper; +} V_0.7.0; -- cgit v1.2.1