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.
This commit is contained in:
J. Elfring (i) 2020-09-29 12:19:01 +02:00
parent 42cb2d7f67
commit 2baa12b6fd
2 changed files with 9 additions and 8 deletions

View file

@ -12,8 +12,11 @@ fi
target=$1
cat lib/Compose.pre \
| grep -i '^<multi' \
| grep -v '<dead' \
| grep '^<Multi_key>' \
| grep -v '<dead_' \
| grep -v '<Cyrillic_' \
| grep -v '<Greek_' \
| grep -v '<kana_' \
| grep -v '<U....>' \
| grep -v '<U.....>' \
| sed --regexp-extended 's/(.*>)\s*:\s\"(.*)\"\s*(\S*)\s*#\s*(.*)/\1+\2+\3+\L\4/' \

View file

@ -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 '^<multi' Compose.pre | grep -v '<dead' | grep -v '<U....>' | grep -v '<U.....>' > 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
----------------