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:
parent
42cb2d7f67
commit
2baa12b6fd
2 changed files with 9 additions and 8 deletions
|
@ -12,8 +12,11 @@ fi
|
||||||
target=$1
|
target=$1
|
||||||
|
|
||||||
cat lib/Compose.pre \
|
cat lib/Compose.pre \
|
||||||
| grep -i '^<multi' \
|
| grep '^<Multi_key>' \
|
||||||
| grep -v '<dead' \
|
| grep -v '<dead_' \
|
||||||
|
| grep -v '<Cyrillic_' \
|
||||||
|
| grep -v '<Greek_' \
|
||||||
|
| grep -v '<kana_' \
|
||||||
| grep -v '<U....>' \
|
| grep -v '<U....>' \
|
||||||
| grep -v '<U.....>' \
|
| grep -v '<U.....>' \
|
||||||
| sed --regexp-extended 's/(.*>)\s*:\s\"(.*)\"\s*(\S*)\s*#\s*(.*)/\1+\2+\3+\L\4/' \
|
| sed --regexp-extended 's/(.*>)\s*:\s\"(.*)\"\s*(\S*)\s*#\s*(.*)/\1+\2+\3+\L\4/' \
|
||||||
|
|
|
@ -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:
|
Download the X11 compose-sequences for en_US.UTF-8¹ and get rid of some things:
|
||||||
- Comments (XCOMM)
|
- Comments (XCOMM)
|
||||||
- Sequences not started my Multi_key
|
- 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
|
- 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.
|
¹) 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
|
Convert to psv
|
||||||
--------------
|
--------------
|
||||||
- Plus-separated-values because + is not used elsewhere in the file.
|
- Plus-separated-values because + is not used elsewhere in the file.
|
||||||
- Regex to extract the fields into psv.
|
- Regex to extract the fields into psv.
|
||||||
- The second description is all-uppper, we'll convert it to all lower.
|
- The second description is all-uppper, we'll convert it to all lower.
|
||||||
|
This is done by sed in dbFactory.sh
|
||||||
$ sed --regexp-extended 's/(.*>)\s*:\s\"(.*)\"\s*(\S*)\s*#\s*(.*)/\1+\2+\3+\L\4/' Compose.usable > Compose.psv
|
|
||||||
|
|
||||||
Load into SQLite
|
Load into SQLite
|
||||||
----------------
|
----------------
|
||||||
|
|
Loading…
Reference in a new issue