Re: Find key combination for specific character under a giving keyboard layout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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…

Kind regards,
Stefan
____________________________________________________
tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx




[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux