Skip to content

hickford/xkb_ldml

Repository files navigation

xkb_ldml

LDML keyboard mappings for XKB layouts.

Background

Unicode's Common Locale Data Repository (CLDR) collects locale data for all countries and languages, including keyboard layouts in LDML format. In particular, there are some useful charts. These cover Windows, Mac, Android and Chrome OS layouts, but are missing Linux layouts.

Results

I generated LDML and charts for Linux from xkeyboard-config (commit 297bb515):

Developer instructions

Generate LDML

xkbcli list > xkbcli-list.yaml
python3 xkb_ldml.py

Create charts

Download CLDR data and tools from http://cldr.unicode.org/index/downloads . Extract data.

java -DCLDR_DIR=cldr -DCLDR_TMP_DIR=tmp -jar cldr-tools-40.0.jar showkeyboards