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.
Case: I want to print the symbol for TM (trade mark) but I don't know the keys to get it.
Kind regards, Stefan
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
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 :)
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...
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
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
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...
On Tuesday 10 May 2022 09:56:14 am Dr. Nikolaus Klepp wrote:
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
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 :)
You can also use something like OO or LO (LibreOffice). Menu > Insert > Special Character. LO also has a search in that popup to make it easier to find things.
™
Bonus Question!:
Does *nix have a variant of the ALT codes that IBM and Microsoft do? Those were really useful for symbols you used alot.
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
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...
Am Freitag, 13. Mai 2022 schrieb Dr. Nikolaus Klepp:
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> --> ™
:)
Yes, great. That's what I was looking for. Thanks also for the explanation.
Cheers, Stefan
My 2 ¢ on the trademark symbol and other similar stuff:
For accented letters and characters like ©®™ I use the compose key. It's quite handy and the mnemonics are easy to remember:
© [Compose] + o + c ™ [Compose] + t + m ô [Compose] + o + ^
You can enable it via the TDE keyboard settings and set it to the key you want (Right Alt suits me just fine).
-- Philippe
Am Dienstag, 10. Mai 2022 schrieb Mavridis Philippe:
My 2 ¢ on the trademark symbol and other similar stuff:
For accented letters and characters like ©®™ I use the compose key. It's quite handy and the mnemonics are easy to remember:
© [Compose] + o + c ™ [Compose] + t + m ô [Compose] + o + ^
Thanks, Philippe, that kind of key combination was what I was looking for, and still am, cause these don't work on my system/configuration.
I'm looking for a general way to find out the key comination for a specific symbol/character.
You can enable it via the TDE keyboard settings and set it to the key you want (Right Alt suits me just fine).
You mean the [compose]-key, no? I have it on Ctrl right but as I said I don't know the key combination for my keyboard layout/config or if it is possible at all.
Kind regards, Stefan
On Tue, May 10, 2022 at 04:19:59PM +0200, Stefan Krusche wrote:
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.
Does TDE support the KCharSelect application?
Back in KDE 3, I would use:
Start menu > Utilities > More Applications > KCharSelect
and then copy the characters I needed.
Admittedly it was a bit lacking in features, more modern key caps apps allow you to search for the name of a character, but for my needs it worked well.
Case: I want to print the symbol for TM (trade mark) but I don't know the keys to get it.
I presume you know that googing for the name often allows you to copy the needed character?
https://www.startpage.com/sp/search?query=trade+mark+character
gives me ™ and leads me to the Wikipedia page, which tells me that it is the Unicode code point U+2122 and that on Linux you can type Compose-TM to get it. Now if only I knew what the compose key on my keyboard is :-(
https://en.wikipedia.org/wiki/Trademark_symbol#Keyboard_entry
Am Mittwoch, 11. Mai 2022 schrieb Steven D'Aprano:
gives me ™ and leads me to the Wikipedia page, which tells me that it is the Unicode code point U+2122
Yes. With the hints Nik provided I found it, too:
$ grep -i trade /usr/include/X11/keysymdef.h #define XK_trademark 0x0ac9 /* U+2122 TRADE MARK SIGN */ #define XK_trademarkincircle 0x0acb
Now you can feed "2122" into kcharselect's input field for "Unicode Code Point" and find that "™" is in the table. I wouldn't find it visually grepping the table.
and that on Linux you can type Compose-TM to get it. Now if only I knew what the compose key on my keyboard is :-(
Now if I only knew what the "TM" key on my keyboard is! ;-))
I know the compose key here but not the rest of the key combination to directly print "™" with the keys only.
Thanks!
With kind regards, Stefan
On Fri, May 13, 2022 at 02:54:29PM +0200, Stefan Krusche wrote:
and that on Linux you can type Compose-TM to get it. Now if only I knew what the compose key on my keyboard is :-(
Now if I only knew what the "TM" key on my keyboard is! ;-))
Its a T and an M.
I know the compose key here but not the rest of the key combination to directly print "™" with the keys only.
I believe that is
- hold down compose key - type T - type M - release compose key
Am Samstag, 14. Mai 2022 schrieb Steven D'Aprano:
On Fri, May 13, 2022 at 02:54:29PM +0200, Stefan Krusche wrote:
and that on Linux you can type Compose-TM to get it. Now if only I knew what the compose key on my keyboard is :-(
Now if I only knew what the "TM" key on my keyboard is! ;-))
Its a T and an M.
I know the compose key here but not the rest of the key combination to directly print "™" with the keys only.
I believe that is
- hold down compose key
- type T
- type M
- release compose key
Yes, that's what also Philippe suggested but it doesn't work here. Maybe because I have a german keyboard layout.
On my system the combination of keys to get "™" is this:
<AltGr> + <Shift> + <8> --> ™
which I know now since Nik in his other message kindly revealed the mystery of how to find it.
https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
Thank you and everyone else!
Kind regards, Stefan