LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2008, 06:41 AM   #1
terminatorul
LQ Newbie
 
Registered: Jan 2007
Posts: 18

Rep: Reputation: 0
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
 
Old 12-13-2008, 06:56 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,596

Rep: Reputation: 125Reputation: 125
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
 
Old 01-13-2009, 05:41 PM   #3
terminatorul
LQ Newbie
 
Registered: Jan 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by titopoquito View Post

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
 
Old 01-14-2009, 05:13 AM   #4
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,596

Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by terminatorul View Post
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)

Last edited by titopoquito; 01-14-2009 at 07:07 AM. Reason: cleaned up
 
Old 01-17-2009, 01:17 PM   #5
terminatorul
LQ Newbie
 
Registered: Jan 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by titopoquito View Post
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.
 
Old 01-17-2009, 07:47 PM   #6
terminatorul
LQ Newbie
 
Registered: Jan 2007
Posts: 18

Original Poster
Rep: Reputation: 0
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.

Last edited by terminatorul; 01-17-2009 at 07:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KeyBoard Layout damanhoury SUSE / openSUSE 5 06-15-2007 05:05 PM
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 07:43 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 01:40 AM
Keyboard Layout AlessPT Linux - Software 1 12-20-2004 02:07 AM
uk keyboard layout in X fateslack Linux - Newbie 1 02-28-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration