Custom .XCompose

Ralf Mardorf silver.bullet at zoho.com
Sun Nov 12 11:50:14 UTC 2017


On Sun, 12 Nov 2017 12:18:20 +0100, Liam Proven wrote:
>you have to memorise large parts of the ANSI character set, by number!

I assigned a shortcut to a script:

$ cat /usr/local/bin/schar 
#!/bin/dash
# /usr/local/bin/schar Ralf Mardorf 2017-03-21

special_characters() {
cat<<EOF
Use Shift+Ctrl+U or copy and paste
                        0 	1 	2 	3 	4 	5 	6 	7 	8 	9 	A 	B 	C 	D 	E 	F
U+1F60x 	๐Ÿ˜€ 	๐Ÿ˜ 	๐Ÿ˜‚ 	๐Ÿ˜ƒ 	๐Ÿ˜„ 	๐Ÿ˜… 	๐Ÿ˜† 	๐Ÿ˜‡ 	๐Ÿ˜ˆ 	๐Ÿ˜‰ 	๐Ÿ˜Š 	๐Ÿ˜‹ 	๐Ÿ˜Œ 	๐Ÿ˜ 	๐Ÿ˜Ž 	๐Ÿ˜
U+1F61x 	๐Ÿ˜ 	๐Ÿ˜‘ 	๐Ÿ˜’ 	๐Ÿ˜“ 	๐Ÿ˜” 	๐Ÿ˜• 	๐Ÿ˜– 	๐Ÿ˜— 	๐Ÿ˜˜ 	๐Ÿ˜™ 	๐Ÿ˜š 	๐Ÿ˜› 	๐Ÿ˜œ 	๐Ÿ˜ 	๐Ÿ˜ž 	๐Ÿ˜Ÿ
U+1F62x 	๐Ÿ˜  	๐Ÿ˜ก 	๐Ÿ˜ข 	๐Ÿ˜ฃ 	๐Ÿ˜ค 	๐Ÿ˜ฅ 	๐Ÿ˜ฆ 	๐Ÿ˜ง 	๐Ÿ˜จ 	๐Ÿ˜ฉ 	๐Ÿ˜ช 	๐Ÿ˜ซ 	๐Ÿ˜ฌ 	๐Ÿ˜ญ 	๐Ÿ˜ฎ 	๐Ÿ˜ฏ
U+1F63x 	๐Ÿ˜ฐ 	๐Ÿ˜ฑ 	๐Ÿ˜ฒ 	๐Ÿ˜ณ 	๐Ÿ˜ด ๐Ÿ˜ต 	๐Ÿ˜ถ 	๐Ÿ˜ท 	๐Ÿ˜ธ 	๐Ÿ˜น 	๐Ÿ˜บ 	๐Ÿ˜ป 	๐Ÿ˜ผ 	๐Ÿ˜ฝ 	๐Ÿ˜พ 	๐Ÿ˜ฟ
U+1F64x 	๐Ÿ™€ 	๐Ÿ™ 	๐Ÿ™‚ 	๐Ÿ™ƒ 	๐Ÿ™„ 	๐Ÿ™… 	๐Ÿ™† 	๐Ÿ™‡ 	๐Ÿ™ˆ 	๐Ÿ™‰ 	๐Ÿ™Š 	๐Ÿ™‹ 	๐Ÿ™Œ 	๐Ÿ™ 	๐Ÿ™Ž 	๐Ÿ™
EOF
}

zenity --warning --title="special characters" --width=800 --height=100 --no-wrap --text="$(special_characters)"

exit

I don't need this script, I wrote it to help somebody from another mailing list.

Fortunately it's easy to remember how to use a German keyboard with
the default us layout, if the de keyboard layout should be missing. The
German keyboard by default provides (depending on selecting dead keys
or not for the config)

^ + a = รข, ยด + c = ฤ‡, right Alt-key, aka Alt Gr + 2 = ยฒ, right alt key
+ 5 = ยฝ

A drawback might be to get the at-sign, it's required to push right Alt
+ q to get @ or it's the same effort to get ' as it is to get " and
since Germans are used to " for quoting, this is noticeable in
scripts, as long as the difference between ' and " doesn't matter.





More information about the ubuntu-users mailing list