LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I get Romania keyboard layout ? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-get-romania-keyboard-layout-690289/)

terminatorul 12-13-2008 05:41 AM

Can I get Romania keyboard layout ?
 
Hello

I have Slackware 12 (Linux 2.6.24) and I would like the Romanian keyboard layout I am used with since I used Windows.

I mean I have the qwety/ro_win.map.gz file but it does not change the layout of the keyboard, but adds some combinations wiht AltGr key.

Can I get a map that changes the layout ? How would I use it ?

Thank you,
Timothy Madden

titopoquito 12-13-2008 05:56 AM

The usual way to get this on Slackware is to edit the keyboard section in /etc/X11/xorg.conf. Then restart your X server to make the changes apply. Example for German keyboard:

Code:

Section "InputDevice"
    Identifier    "Keyboard1"
    Driver        "kbd"
    Option        "AutoRepeat" "500 30"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc105"
    Option        "XkbLayout" "de"
EndSection

For Romanian keyboards it should probably read like one of the following:

Code:

Section "InputDevice"
    Identifier    "Keyboard1"
    Driver        "kbd"
    Option        "AutoRepeat" "500 30"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc105"
    Option        "XkbLayout" "ro"
EndSection

Code:

Section "InputDevice"
    Identifier    "Keyboard1"
    Driver        "kbd"
    Option        "AutoRepeat" "500 30"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc105"
    Option        "XkbLayout" "de"
    Option        "XkbVariant" "ro"
EndSection

To get your keyboard layout in console mode, you have to edit /etc/rc.d/rc.keymap and make that file executable if it isn't already. Mine reads like this:

Code:

#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys de-latin1.map
fi

This should probable get your Romanian layout loaded:

Code:

#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys ro_win.map
fi


terminatorul 01-13-2009 04:41 PM

Quote:

Originally Posted by titopoquito (Post 3374001)

Code:

#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys ro_win.map
fi


I want it to work both in the console and X11.
I have rc.keymap and it reads exactly as you said.
The problem is I want a different map (still
Romanian, but a different one).

Windows Vista calls it Legacy Romanian layout,
WinXP and previous call it just Romanian layout.
It is a qwertz (as opposed to qwerty) layout,
that also switches "-" with "/" (and "_" with
"?" if you hold Shift) and others.

Where can I find more keyboard layouts for my OS ?

I have searched the net a little and I am amazed how
many romanian layouts people have made up, when
qwertz was the standard all the time (until
Vista).

But the qwertz layout I want is now nowhere to be
found !

Thank you,
Timothy Madden

titopoquito 01-14-2009 04:13 AM

Quote:

Originally Posted by terminatorul (Post 3407567)
I want it to work both in the console and X11.
I have rc.keymap and it reads exactly as you said.
The problem is I want a different map (still
Romanian, but a different one).

Windows Vista calls it Legacy Romanian layout,
WinXP and previous call it just Romanian layout.
It is a qwertz (as opposed to qwerty) layout,
that also switches "-" with "/" (and "_" with
"?" if you hold Shift) and others.

Where can I find more keyboard layouts for my OS ?

I have searched the net a little and I am amazed how
many romanian layouts people have made up, when
qwertz was the standard all the time (until
Vista).

But the qwertz layout I want is now nowhere to be
found !

Thank you,
Timothy Madden

Sorry I don't know about that much. If I understand you right it works in X-server but not in console?
For X there is another layout that is "hidden" in the German keymap file, I think you could activate it with selecting German layout and a "XkbVariant" line in xorg.conf.

What I would probably do for console is to take the file /usr/share/kbd/keymaps/i386/qwerty/ro_win.map.gz, copy it to ro_mylayout.map.gz or whatever (in qwertz) and edit it. If the keymapping is to the greatest part ok for you this would probably mean not much extra work. Of course there might be another Romanian layout already done, but none seems to be installed with kbd it looks to me. (find /usr/share/kbd/keymaps/i386 -iname "*ro*" gives me only the ro_win map)

terminatorul 01-17-2009 12:17 PM

Quote:

Originally Posted by titopoquito (Post 3408087)
Sorry I don't know about that much. If I understand you right it works in X-server but not in console?
For X there is another layout that is "hidden" in the German keymap file, I think you could activate it with selecting German layout and a "XkbVariant" line in xorg.conf.

What I would probably do for console is to take the file /usr/share/kbd/keymaps/i386/qwerty/ro_win.map.gz, copy it to ro_mylayout.map.gz or whatever (in qwertz) and edit it. If the keymapping is to the greatest part ok for you this would probably mean not much extra work. Of course there might be another Romanian layout already done, but none seems to be installed with kbd it looks to me. (find /usr/share/kbd/keymaps/i386 -iname "*ro*" gives me only the ro_win map)

Damn ! I had to make my own keyboard map. If anyone else wants the map for the qwertz Romanian (Legacy) layout you can use it, but it is still missing some dead keys or accents. This is only for the console. I am now working on the X server settings.

terminatorul 01-17-2009 06:47 PM

Ok to get my good old Windows layout in X11 I need to specify
Code:

    Option "XkbLayout" "ro"
    Option "XkbVariant" "winkeys"

in the InputDevice section of the /etc/X11/xorg.config file.
It is just already there. I still wonder why the console driver
does not have the map.


All times are GMT -5. The time now is 06:50 AM.