Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 00:30
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Create new XKB keyboard layout
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
fobq

Joined: 19 Aug 2013
Posts: 65
Location: Hungary

PostPosted: Tue 24 Dec 2013, 14:56    Post subject:  Create new XKB keyboard layout  

Hi,

I want to add a new variant to my existing Lithuanian layout.
I followed the link http://linux.lsdev.sil.org/wiki/index.php/Building_an_XKB_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:
// 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?
Back to top
View user's profile Send private message 
fobq

Joined: 19 Aug 2013
Posts: 65
Location: Hungary

PostPosted: Tue 24 Dec 2013, 15:19    Post subject:  

I was suffering till I found something.
I had to change evdev.lst and base.lst according to symbols/pc/lt
Code:
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:
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:
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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0440s ][ Queries: 12 (0.0039s) ][ GZIP on ]