From 2baa12b6fd78972b187e6178decd821f192bc4aa Mon Sep 17 00:00:00 2001 From: "J. Elfring (i)" Date: Tue, 29 Sep 2020 12:19:01 +0200 Subject: [PATCH] Remove more international keys As the most interesting thing about the multikey is the ability to generate international characters with ansi keys, this commit removes several combinations that require international keys to be pressed. --- dbFactory.sh | 7 +++++-- lib/README.txt | 10 ++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dbFactory.sh b/dbFactory.sh index cf7292a..203f785 100644 --- a/dbFactory.sh +++ b/dbFactory.sh @@ -12,8 +12,11 @@ fi target=$1 cat lib/Compose.pre \ - | grep -i '^' \ + | grep -v '' \ | grep -v '' \ | sed --regexp-extended 's/(.*>)\s*:\s\"(.*)\"\s*(\S*)\s*#\s*(.*)/\1+\2+\3+\L\4/' \ diff --git a/lib/README.txt b/lib/README.txt index 698882c..5f6af81 100644 --- a/lib/README.txt +++ b/lib/README.txt @@ -3,22 +3,20 @@ How to get the list of usable key-sequences? Download the X11 compose-sequences for en_US.UTF-8¹ and get rid of some things: - Comments (XCOMM) - Sequences not started my Multi_key -- Sequences containing non-standard characters +- Sequences containing non-standard characters (U.... and U.....) +- Sequences containing non-international keys (cyrillic, greek, kana) - Sequences containing other dead keys +This is done by grep in dbFactory.sh ¹) en_US.UTF-8 seems to be quite complete and also available on other locales. -$ wget https://cgit.freedesktop.org/xorg/lib/libX11/plain/nls/en_US.UTF-8/Compose.pre -$ grep -i '^' | grep -v '' > Compose.usable - Convert to psv -------------- - Plus-separated-values because + is not used elsewhere in the file. - Regex to extract the fields into psv. - The second description is all-uppper, we'll convert it to all lower. - -$ sed --regexp-extended 's/(.*>)\s*:\s\"(.*)\"\s*(\S*)\s*#\s*(.*)/\1+\2+\3+\L\4/' Compose.usable > Compose.psv +This is done by sed in dbFactory.sh Load into SQLite ----------------