Create new XKB keyboard layout

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
fobq
Posts: 101
Joined: Mon 19 Aug 2013, 11:41
Location: Hungary

Create new XKB keyboard layout

#1 Post by fobq »

Hi,

I want to add a new variant to my existing Lithuanian layout.
I followed the link http://linux.lsdev.sil.org/wiki/index.p ... B_Keyboard. Since I don't have evdev.xml, I can't load my new variant to XKB
I added this new section at the end of the symbols/pc/lt

Code: Select all

// Lithuanian keyboard map by Gediminas Paulauskas <menesis@delfi.lt>
// Minor modification by Balázs Forgács <fobq@windowslive.com>
// Lithunian keyboard map for Hungarian keyboard layout

// Describes Lithuanian keymap LST 1582:2000
// Extensions:  B01 L3 is "<" , B02 L3 is ">" and B03 L3 is endash to make this
// layout usable with pc101 and pc104 keyboards.
 
partial alphanumeric_keys modifier_keys
xkb_symbols "lt_hu" {

    include "pc/hu(basic)"

    name[Group1]= "Lithuania - Hungarian based";

    key <AE10>  { [       ccaron,       Ccaron,       doubleacute                  ] };
    key <AE11>  { [   	  scaron,		Scaron,         diaeresis                  ] };
    key <AE12>  { [       zcaron,		Zcaron,           cedilla                  ] };
    key <AD11>  { [    eabovedot,    Eabovedot,          division                  ] };
    key <AD12>  { [      uogonek,	   Uogonek,          multiply                  ] };
    key <AC10>  { [      eogonek,      Eogonek,            dollar,            cent ] };
    key <AC11>  { [      aogonek,      Aogonek,            ssharp                  ] };
    key <BKSL>  { [      umacron,      Umacron,          currency                  ] };
    key <LSGT>  { [      iogonek,      Iogonek,              less,         greater ] };

    include "level3(ralt_switch)"
};
So, I have a Hungarian keyboard, but I want to use these Lithuanian letters

How can I load this new variant?

fobq
Posts: 101
Joined: Mon 19 Aug 2013, 11:41
Location: Hungary

#2 Post by fobq »

I was suffering till I found something.
I had to change evdev.lst and base.lst according to symbols/pc/lt

Code: Select all

xkb_symbols "lt_hu" {

    include "pc/hu(basic)"

    name[Group1]= "Lithuania - Hungarian keyboard wit Lithuanian letters";
so I added a third line in evdev.lst:

Code: Select all

std             lt: Lithuanian (standard)
  us              lt: Lithuanian (US keyboard with Lithuanian letters)
  lt_hu           lt: Lithuanian (Hungarian keyboard wit Lithuanian letters)
and in base.lst as well:

Code: Select all

std             lt: "Standard"
  us              lt: US keyboard with Lithuanian letters
  lt_hu           lt: Hungarian keyboard wit Lithuanian letters
now it seems to be good. But I am testing it with other layouts. If sombody have an other solution, just write it, please.

Post Reply