Anno domini 2022 Fri, 13 May 14:19:11 +0200 Stefan Krusche scripsit:
Am Dienstag, 10. Mai 2022 schrieb Dr. Nikolaus Klepp:
oops ... correction: Anno domini 2022 Tue, 10 May 16:53:16 +0200
Dr. Nikolaus Klepp scripsit:
Anno domini 2022 Tue, 10 May 16:19:59 +0200
Stefan Krusche scripsit:
Good Day Everyone!
I wonder how I can find out which key combination prints a specific character, generally, I mean when the character is not printed on the keyboard itself.
$ xmodmap -pk | grep -i A_SYMBOL_NAME
$ xmodmap -pk | grep -i trade 17 0x0038 (8) 0x0028 (parenleft) 0x0038 (8) 0x0028 (parenleft) 0x005b (bracketleft) 0x0ac9 (trademark) 0x005b (bracketleft)
So it seems the symbol is there in the used code page that is "de" in TDE Control Center.
When I switch to "en" its not there anymore.
$ xmodmap -pk | grep -i trade $ echo $? 1
You find the key symbols in /usr/include/X11/XF86keysym.h - but not all UTF-8 chyracters are denined.
Case: I want to print the symbol for TM (trade mark) but I don't know the keys to get it.
™ - but it's not in /usr/include/X11/XF86keysym.h. I usually pick things like this from a UFT-8 table and past it over :)
it's in /usr/include/X11/keysymdef.h and it's named XK_trademark :) Nik
Thanks, Nik. I hadn't had that file on my system. Its in package x11proto-dev which I installed and there it is:
$ cat /usr/include/X11/keysymdef.h | grep -i trade #define XK_trademark 0x0ac9 /* U+2122 TRADE MARK SIGN */ #define XK_trademarkincircle 0x0acb
Now, the question remains, how do I know the keys to invoke/print/type that (or any) symbol on a given keyboard configuration…
Look at https://wiki.archlinux.org/title/Xmodmap : 0. column is just a line number, 1. Column "0x0038 (8)" is the unmodified key, in this case "8", 7. column is "ISO_Level3_Shift+Shift+Key" which translates to:
<AltGr> + <Shift> + <8> --> ™
:)
Nik
Kind regards, Stefan ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...