LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 12-28-2006, 11:54 AM   #1
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,090

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Keyboard definitions


Distro: Fedora 6
Keyboard: en_UK

I want to make some alterations to my keyboard layout: mostly making AltGr do something more useful than enabling Icelandic, but also altering a few basic keys. I do NOT want to do a bodge, but to find where Linux keeps the definition of en_UK and customise it.

I searched the web, but the few documents I found make frequent references to files that don't exist in Fedora.

I checked what happened at boot-up, starting from rc.sysinit, but this lead me to en_US.UTF-8 which is obviously not what I'm using.

I checked what xinitrc was up to, and this referred to unused (/etc/X11/Xmodmap) or or non-existant (/etc/X11/kbmap) files.

I looked for any files that might be relevant, but things like uk.map.gz and xmodmap.gb-102 do not describe the keymapping that I actually have.

So, where is Fedora hiding the definitions for my keyboard?
 
Old 10-10-2007, 10:51 AM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,090

Original Poster
Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Smile Keyboard definitions

Since 321 people have read my post, I thought I ought to answer the question myself, as no one else has.

Fedora looks for a keyboard in /usr/share/X11/xkb/symbols/. It will take the file that has been selected — e.g. "gb" for a UK keyboard — and look up anything that it doesn't find there in the "latin" file. Obviously, you can modify the default or add a new entry using it as a model. Keys are referred to by codes like <AC01> for the first key on the third row up of the alphanumeric area. Three have special names: <TLDE> grave (sic); <BKSL> backslash in US, hash in UK; <LSGT> backslash in UK. Characters are referred to by unicode number (e.g. U00E6) or by special names like "dead_acute" — see /usr/include/X11/keysymdef.h

A new keyboard must be listed in /usr/share/X11/xkb/rules/base.lst and defined in /usr/share/X11/xkb/rules/base.xml thus
<layout>
<configItem>
<name> file_name </name>
<shortDescription> brief_name </shortDescription>
<description> descriptive_name </description>
</configItem>
</layout>

If you have two keyboards installed, you can switch with a group-switch key, defined with the Gnome menu: system-preferences-keyboard.

The AltGr key is enabled by default, but a Multi or Compose key has to be selected with Gnome (try a Windows key).

Permitted combinations with diacritics are built into the kernel. Thus both
<Compose> <a> <'>
and
<AltGr>+<;> <a>
will give a-acute. You can get s-acute similarly, but not k-acute: someone thought of entering Polish, but not of transliterating Macedonian. Published lists of combinations are all wrong: to find what's available use
dumpkeys --compose-only

Last edited by DavidMcCann; 10-10-2007 at 10:55 AM. Reason: I forgot the last sentence
 
  


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
KDE Keyboard Definitions File nymusicman Linux - Software 3 02-11-2007 08:37 PM
Acronym Definitions... trey85stang General 2 08-05-2004 03:26 PM
simple definitions.. xushi Slackware 1 08-18-2003 10:16 PM
Definitions..? mikeyt_333 Linux - General 4 02-06-2002 01:45 PM
Linux Definitions newbietolinux Linux - Newbie 6 01-20-2002 07:11 AM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration