You are not logged in.

#1 2007-03-19 01:24:53

weeniewhite
Member
From: Saint-Nicolas, Quebec
Registered: 2007-01-04
Posts: 37

Romanian keyboard layout

Hi. I want to write some special characters for writing romanian on xorg. I tried : setxkbmap ro. It seems to be a normal english keyboard. I would like some help.


[weeniewhite@myhost ~]$ sudo make bagel
make: *** No rule to make target `bagel'.  Stop.

Offline

#2 2007-03-19 02:49:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Romanian keyboard layout

Maybe the app needs to be restarted after the keyboard is changed.

Offline

#3 2007-03-21 22:00:13

weeniewhite
Member
From: Saint-Nicolas, Quebec
Registered: 2007-01-04
Posts: 37

Re: Romanian keyboard layout

There was a way before to choose a keyboard layout in xorg.conf, but it seems to have disappeared in the new version. Am I right?


[weeniewhite@myhost ~]$ sudo make bagel
make: *** No rule to make target `bagel'.  Stop.

Offline

#4 2007-04-04 18:23:08

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Romanian keyboard layout

Uh...

I set this in xorg.conf

Option      "XkbLayout" "us,ro"

I use XFCE/Beryl and since I added "ro" to this option, Beryl keyboard shortcuts don't work anymore.
Also, only in a few applications I found out I could use the romanian keyboard layout: firefox, gvim, but not in gaim, mousepad, abiword and others. So, what's wrong?

Offline

#5 2007-04-04 19:56:46

Oin
Member
Registered: 2005-09-02
Posts: 63

Re: Romanian keyboard layout

I use xmodmap for romanian characters: şţăâî. I find it a lot easier to press Alt+a for ă then to change my entire keyboard layout to Romanian.

So i saved this into ~/.xmodmap:

keycode 38 = a A abreve Abreve
keycode 39 = s S scedilla Scedilla
keycode 31 = i I icircumflex Icircumflex
keycode 28 = t T tcedilla Tcedilla
keycode 24 = q Q acircumflex Acircumflex
keycode 26 = e E EuroSign EuroSign
keycode 115 = Mode_switch

In Linux there are no secrets!

Offline

#6 2007-04-05 07:45:56

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Romanian keyboard layout

Multumesc wink

Offline

#7 2007-04-05 16:34:05

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Romanian keyboard layout

Oin wrote:

I use xmodmap for romanian characters: şţăâî. I find it a lot easier to press Alt+a for ă then to change my entire keyboard layout to Romanian.

So i saved this into ~/.xmodmap:

keycode 38 = a A abreve Abreve
keycode 39 = s S scedilla Scedilla
keycode 31 = i I icircumflex Icircumflex
keycode 28 = t T tcedilla Tcedilla
keycode 24 = q Q acircumflex Acircumflex
keycode 26 = e E EuroSign EuroSign
keycode 115 = Mode_switch

I put these into .xmodmap file... now what? I restarted X, no result. I ran

xmodmap .xmodmap

then

xmodmap -pke | more

and I can see the codes changed, but the mapping doesn't work sad

Offline

#8 2007-04-05 19:23:33

Oin
Member
Registered: 2005-09-02
Posts: 63

Re: Romanian keyboard layout

RaisedFist: did you use fonts with unicode support?

Also, I forgot to mention that putting everything in /etc/X11/Xmodmap makes gdm or kdm run these scripts at startup.


In Linux there are no secrets!

Offline

#9 2007-04-05 20:53:03

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Romanian keyboard layout

Oin wrote:

RaisedFist: did you use fonts with unicode support?

Also, I forgot to mention that putting everything in /etc/X11/Xmodmap makes gdm or kdm run these scripts at startup.

OK, so here is what I have

[radu@kyle ~]$ xmodmap -pke | more
keycode  24 = q Q acircumflex Acircumflex
...
keycode  26 = e E EuroSign EuroSign
...
keycode  28 = t T tcedilla Tcedilla
...
keycode  31 = i I icircumflex Icircumflex
....
keycode  38 = a A abreve Abreve
keycode  39 = s S scedilla Scedilla

I use DejaVu as base font in XFCE, and usualy TTF fonts.

Offline

#10 2007-04-06 10:17:11

silvik
Member
From: Bucharest/Romania
Registered: 2006-11-08
Posts: 110

Re: Romanian keyboard layout

there are 2 RO kbd layouts - i prefer the one that uses RightAlt+{A,Q,T,I,S}, like Oin. But you don't need xmodmap, it's easier to set

   Option "XkbLayout"     "ro"
   Option "XkbVariant"    "basic" 
   Option "XkbModel"      "pc105"

in xorg.conf and restart X. Works for all X apps but not for agettys, but I never needed special characters for virtual consoles.

Last edited by silvik (2007-04-06 10:17:39)

Offline

#11 2007-04-06 10:57:31

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Romanian keyboard layout

I know. I did this and this is why I posted here in the first place: when I set the keyboard to Romanian, beryl shortcut keys stop working and there is support for romanian characters only in some applications, as I specified above neutral

Offline

#12 2007-04-06 12:49:28

Oin
Member
Registered: 2005-09-02
Posts: 63

Re: Romanian keyboard layout

oooh, so that was your problem tongue

well, it's normal that different application won't support utf-8 and different applications also use different fonts, regardless of what your DE settings are. You'll have to make sure that each of the applications use an utf-8 font.

Also, keybindings will overlap when changing keymaps, that's why it's a good idea to keep the changes to a minimum. You may have to change the default Beryl keys

silvik: my .xmodmap uses left-alt smile And if you use rxvt-unicode or konsole/gnome-terminal/Terminal with a good font, you can have diacritics in there, too. It's especially useful if you like typing all your documents in Vim big_smile like i do.


In Linux there are no secrets!

Offline

#13 2007-04-06 13:20:55

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Romanian keyboard layout

hm... I don't think the default gaim instalation comes without UTF-8 support. Also for Abiword.

Offline

Board footer

Powered by FluxBB