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

Re: Euro support in Gnome



Hi,

Op vr, 24-09-2004 te 17:07 +0000, schreef Vaidotas Zemlys:
> Try choosing appropriate keyboard using gnome-keyboard-properties (or
keyboard
> capplet).
I tried to use the gnome-keyboard-properties applet, but it is not
completely clear to me which settings I should use.
Currently the settings are:
keyboard model:  Generic 105-key (Intl) PC which seems ok.
keyboard layout: U.S. English which seems ok as well.
options: none. I guess I should select "Right Alt is compose" here, but
if I do that I still can't use the AltGr+5 keys to get the euro symbol.

That is because with such setup, keyboard layout from file /etc/X11/xkb/ symbols/pc/us is used. And there is no Euro sign on 5 in that layout.


> If choose the right keyboard they should
> match and you'll get the desired result.
> Sorry, but I cannot guarantee that this will work, since I do not have
similar
> keyboard to test.
Well I don't think the type of keyboard really matters, my keyboard has
a normal US layout with some additional Internet and multimedia keys. I
hope someone can give me a little bit more information about how to
configure keyboards. The documentation of XFree86 and Xkb isn't very
helpfull and the Debian Euro Support howto doesn't really help either.
Furthermore I don't really understand why Gnome doesn't use the settings
from my XF86Config-4 file.


Since you use inet(microsoftpro) in Xkbsymbols, your keyboard is not Generic PC, and you should set it to Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro. Sadly this will only add the possibility to use those extra keys, but not the euro sign. The problem is that you want to use layouts from files that are in /etc/X11/xkb/symbols/, and gnome-keyboard-applet (with keyboard model set to Generic PC or Microsoft Keyboard) will only let you choose the layouts from /etc/X11/xkb/symbols/pc, and then not all of them.

The thing  is that from version 4.3 of Xfree86
the Right Way to choose appropriate keyboard is by using options XkbRules
XkbModel and XkbLayout. The combination of these options sets the keyboard, or
the settings XkbKeycodes, XkbTypes, XkbCompat, XkbSymbols and XkbGeometry. As far as I understand not all of the possible old combinations with XkbKeycodes, XkbTypes, XkbCompat, XkbSymbols and XkbGeometry have been migrated so that they can be accesible by using new way of choosing keyboard layout. Your combination falls in to that category, so there is no nice gui way to choose the same combination as yours. One possible way would be changing your Xkb setup to

Section "InputDevice"
	Identifier	"Microsoft Natural Multimedia Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"      "microsoftpro"
	Option		"XkbLayout"	"custom_us"
EndSection

And then accordingly change the gnome keyboard settings (if you changed them once, they will always override the settings in Xfree config file). You can change them by choosing Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro as your keyboard model using gnome-keyboard-properties and then change gconf key /desktop/gnome/peripherals/keyboard/xkb/layout to custom_us. Then your X keyboard setup will coincide with gnome setup, and you will get € on Right Alt + 5.

Of course adding setxkbmap -symbols "us(pc104euro)+us_intl+inet(microsoftpro)" to .gnomerc will work also.

Vaidotas



Attachment: pgpTU8Z8wwXpT.pgp
Description: PGP signature


Reply to: