[opensuse] Dumpkeys, euro vs en_US.UTF-8
Can anyone clue me in as to how to use dumpkeys (or potentially a UTF-8 aware successor) on 12.1 with en_US.UTF-8? Goog. hasn't shown me much help except that the euro is appearently U+20ac, which isn't even listed by dumpkeys. Please note that I'm not using neither gnome nor kde to manage my keyboard (xmodmap). If anyone can point me to a resource which tells me how to create my own compose combinations... :-) Thanks in advance. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Michael Fischer wrote:
Can anyone clue me in as to how to use dumpkeys (or potentially a UTF-8 aware successor) on 12.1 with en_US.UTF-8?
Goog. hasn't shown me much help except that the euro is appearently U+20ac, which isn't even listed by dumpkeys.
Please note that I'm not using neither gnome nor kde to manage my keyboard (xmodmap).
If anyone can point me to a resource which tells me how to create my own compose combinations... :-)
Thanks in advance.
Michael
What is it you're trying to do? You certainly can use many special characters, such as € Ü é å Ç ¥ ß æ and many more, by using the U.S. International layout. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
What is it you're trying to do? You certainly can use many special characters, such as € Ü é å Ç ¥ ß æ and many more, by using the U.S. International layout.
Here's some info on that layout: https://en.wikipedia.org/wiki/Keyboard_layout#US-Internationalhttps://en.wik... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/04/12 20:23, Michael Fischer wrote:
Can anyone clue me in as to how to use dumpkeys (or potentially a UTF-8 aware successor) on 12.1 with en_US.UTF-8?
Goog. hasn't shown me much help except that the euro is appearently U+20ac, which isn't even listed by dumpkeys.
Please note that I'm not using neither gnome nor kde to manage my keyboard (xmodmap).
If anyone can point me to a resource which tells me how to create my own compose combinations... :-)
Thanks in advance.
Michael
I find [Alt Gr] + 4 gives me the € symbol here. Bob -- Bob Williams System: Linux 3.1.9-1.4-desktop Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2 (4.7.2) "release 5" Uptime: 18:00pm up 4 days 0:02, 3 users, load average: 0.75, 0.42, 0.31 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/04/12 21:13, James Knott wrote:
Bob Williams wrote:
I find [Alt Gr] + 4 gives me the € symbol here.
Those keys give me ¤ or ¸<shift> £. € is on 5.
Ah, different hardware. Whatever happened to standards? ;) Bob -- Bob Williams System: Linux 3.1.9-1.4-desktop Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2 (4.7.2) "release 5" Uptime: 18:00pm up 4 days 0:02, 3 users, load average: 0.75, 0.42, 0.31 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bob Williams wrote:
Those keys give me ¤ or ¸<shift> £. € is on 5. Ah, different hardware. Whatever happened to standards?;)
No, different keyboard layouts. I don't know what you're configured for, but I've got U.S. International here. The keyboards are all identical, no matter what's on the key top. Pressing a key generates a number, which is interpreted by the operating system to select the appropriate character. So, by using different layouts, you can support various languages on the same keyboard, even if the key tops don't match the character generated. In KDE4, you can choose the keyboard layout in Personal Settings under Hardware > Input Devices > Layouts. You can even enable multiple layouts and switch among them as needed. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/04/12 22:53, James Knott wrote:
Bob Williams wrote:
Those keys give me ¤ or ¸<shift> £. € is on 5. Ah, different hardware. Whatever happened to standards?;)
No, different keyboard layouts. I don't know what you're configured for, but I've got U.S. International here. The keyboards are all identical, no matter what's on the key top. Pressing a key generates a number, which is interpreted by the operating system to select the appropriate character. So, by using different layouts, you can support various languages on the same keyboard, even if the key tops don't match the character generated. In KDE4, you can choose the keyboard layout in Personal Settings under Hardware > Input Devices > Layouts. You can even enable multiple layouts and switch among them as needed.
Correct. I have English (UK) here. The keyboard is a Microsoft Internet keyboard, which has the € symbol printed on the 4 key. [Shift] + 4 prints $ here Bob -- Bob Williams System: Linux 3.1.9-1.4-desktop Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2 (4.7.2) "release 5" Uptime: 06:00am up 4 days 12:02, 3 users, load average: 0.04, 0.06, 0.05 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Sun, 01 Apr 2012, Michael Fischer wrote:
Can anyone clue me in as to how to use dumpkeys (or potentially a UTF-8 aware successor) on 12.1 with en_US.UTF-8?
xmodmap -pke xev
Goog. hasn't shown me much help except that the euro is appearently U+20ac, which isn't even listed by dumpkeys.
dumpkeys is for the linux console, see 'man loadkeys'.
If anyone can point me to a resource which tells me how to create my own compose combinations... :-)
Here's a snippet from my ~/.Xmodmap: keycode 26 = e E EuroSign eacute ! use both Win-keys as AltGr/Mode_switch/ISO_Level3_Switch: keycode 115 = Mode_switch Mode_switch keycode 116 = Mode_switch Mode_switch You should use 'xev' to check if those are the right keycodes for you. HTH, -dnh -- "Spies hide guns like squirrels hide acorns." -- Burn Notice, 1x12 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Apr 02, David Haller wrote:
Hello,
On Sun, 01 Apr 2012, Michael Fischer wrote:
Can anyone clue me in as to how to use dumpkeys (or potentially a UTF-8 aware successor) on 12.1 with en_US.UTF-8?
xmodmap -pke
That's a good one. Thanks.
xev
Yep, used to that when confirming my ~/.Xmodmap
Here's a snippet from my ~/.Xmodmap:
keycode 26 = e E EuroSign eacute ! use both Win-keys as AltGr/Mode_switch/ISO_Level3_Switch: keycode 115 = Mode_switch Mode_switch keycode 116 = Mode_switch Mode_switch
Hmm. I've got the 'menu' key (between 'win' and right ctrl) mapped thusly: keycode 135 = Multi_key and then I use it for 'compose', e.g. (multi-key and ') _then_ e for é. Not sure how to use this "Mode_switch" thing. I tried ! 35 is the letter 'e' keycode 135 = Mode_switch Mode_switch keycode 35 = e E EuroSign EuroSign $ xmodmap ~/.Xmodmap And tried pressing both 'menu' and 'e' (or Shift-e) together, and in succession. All I got were 'e' and 'E'. What's the right way to do it? BTW, where would I find a list of such values (as xmodmap would accept) like 'EuroSign' and 'eacute', etc.? `man xmodmap` didn't suggest anything obvious to me. Wait, I've just discovered /usr/share/X11/locale/en_US.UTF-8/Compose, which tells me to multi-key '=' with 'C' for EuroSign. All that prints for me in an xterm is a blank space. € .. hmm. Obviously vi can do it.. € Why the blank space? Actually ₤ has the same problem.
You should use 'xev' to check if those are the right keycodes for you.
/me nods. Many thanks. This is the approach I'm looking for. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Mon, 02 Apr 2012, Michael Fischer wrote:
On Mon, Apr 02, David Haller wrote:
On Sun, 01 Apr 2012, Michael Fischer wrote:
Can anyone clue me in as to how to use dumpkeys (or potentially a UTF-8 aware successor) on 12.1 with en_US.UTF-8?
xmodmap -pke
That's a good one. Thanks.
xev
Yep, used to that when confirming my ~/.Xmodmap
Fine :)
Here's a snippet from my ~/.Xmodmap:
keycode 26 = e E EuroSign eacute ! use both Win-keys as AltGr/Mode_switch/ISO_Level3_Switch: keycode 115 = Mode_switch Mode_switch keycode 116 = Mode_switch Mode_switch
Hmm. I've got the 'menu' key (between 'win' and right ctrl) mapped thusly:
keycode 135 = Multi_key and then I use it for 'compose', e.g. (multi-key and ') _then_ e for é.
As I have most stuff mapped to 3rd and 4th level that I regularly need, I use "Print" for Compose (no, that does not interfere with the SysRq function of that key ;)
Not sure how to use this "Mode_switch" thing. I tried
! 35 is the letter 'e' keycode 135 = Mode_switch Mode_switch keycode 35 = e E EuroSign EuroSign
Well, Mode_switch (and/or ISO_Level3_Shift) functions like Shift does between 1st and 2nd level. I.e. for the key labeled 'A': 1st level a ! first xmodmap symbol after the = with Shift: 2nd level A ! second xmodmap symbol after the = with Mode_switch: 3rd level ä ! thirds xmodmap symbol after the = with Shift+Mode_switch: 4th level Ä ! fourth xmodmap symbol after the = My xmodmap line for that: keycode 38 = a A adiaeresis Adiaeresis In this fashion, I have most stuff added to the basic US-Layout. Get the full thing at http://dhaller.de/linux/Xmodmap (that's the one I'm using right now under oS 12.1). An PDF depicting the layout is here: http://dhaller.de/linux/Xmodmap.pdf (that's from 2008, I may have changed the odd key here or there, but you'll probably want to change that anyway). I did have to change the keycodes quite often in the last 3 years (at least 3 times, IIRC, mostly those for the cursor-keys and the ones of the Ins/Del/Home/End/PgUp/PgDown block). That pdf was produced with xkbprint + eps2pdf/pdftk. Oh, and I've also moved the "switch from X to a tty" from Ctrl+Alt to Win+Fn combinations, maybe not the best choice, but I don't really need more than F1-F12, so a 3rd and 4th Level on those keys is unneccessary for me. Have a look at the (commented) first section in my Xmodmap. Oh, and before testing my Xmodmap, save your current to a file: $ xmodmap -pke > ~/.Xmodmap.default $ xmodmap -pm Add the modifier map manually to that default Xmodmap. Then save my map as e.g. ~/.Xmodmap.dnh and start testing by 'xmodmap ~/.Xmodmap.dnh'. That way, if worst comes to worst, after a restart of X all should be back to normal. Oh, and one is supposed to use "ISO_Level3_Shift" instead of Mode_switch, but that didn't work for me. Whatever. ;)
$ xmodmap ~/.Xmodmap
And tried pressing both 'menu' and 'e' (or Shift-e) together, and in succession. All I got were 'e' and 'E'. What's the right way to do it?
Together. Just as you use the shift-key.
BTW, where would I find a list of such values (as xmodmap would accept) like 'EuroSign' and 'eacute', etc.? `man xmodmap` didn't suggest anything obvious to me.
Not easy to grasp. Have a look at e.g. /usr/share/X11/xkb/symbols/*. And the tool 'xkeycaps' ;)
Wait, I've just discovered /usr/share/X11/locale/en_US.UTF-8/Compose, which tells me to multi-key '=' with 'C' for EuroSign. All that prints for me in an xterm is a blank space. € .. hmm. Obviously vi can do it.. € Why the blank space? Actually ? has the same problem.
That sounds as if you terminal-font doesn't have the € sign. Or your locale. HTH, -dnh PS: I also have a similar keymap for the tty. Most importantly Escape on Caps and the Alt/Mode_switch behaviour. --
Have you ever read a cvs log and wanted to go back about a dozen commits and scream at someone you've never met? -- Anthony de Boer Yes, and on other occasions I wish I could go back about 35 years and offer the offender's parents a pack of condoms. -- Tanuki -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Apr 02, David Haller wrote:
And tried pressing both 'menu' and 'e' (or Shift-e) together, and in succession. All I got were 'e' and 'E'. What's the right way to do it?
Together. Just as you use the shift-key.
Ok, found that I was just being silly and had the wrong keycode. Works fine for pound sterling now. However....
Wait, I've just discovered /usr/share/X11/locale/en_US.UTF-8/Compose, which tells me to multi-key '=' with 'C' for EuroSign. All that prints for me in an xterm is a blank space. € .. hmm. Obviously vi can do it.. € Why the blank space? Actually ? has the same problem.
That sounds as if you terminal-font doesn't have the € sign. Or your locale.
Indeed. I've got LANG=en_US.UTF-8 XTERM_LOCALE=en_US.UTF-8 .Xdefaults simply has xterm*font: 7x13 (just noticed the install of 12.1 at work still prints a blank instead of a Euro even in vim - whereas the home desktop will print it in vim) Not sure what else to look for or to do. Surely 12.1 comes with some reasonable console fonts which can do a Euro sign? Lost in a world of old X utilities... Oh, BTW, just how do you do key mappings for the true console (not in X)? Thanks again. Michael -- Michael Fischer michael@visv.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Bob Williams
-
David Haller
-
James Knott
-
Michael Fischer