And I want to make a third keyboard layout for my nation language (Gilaki) in ubuntu.
Based on your HowTo article, I opened Pt file and edit all of its rows and made my advanced file and saved it in GLK name.
Then, I created a archive folder on my /home on the location:
but I could not put there my layout file (glk). It would not be copy!
Then I did like this:
sudo ln -sf /home/archive/keyboard/layout/glk /usr/share/X11/xkb/symbols/glk
I loose both of my PT and GLK files (with all of my changes that take 6 houres of my time) and have this erroe in begining of ubuntu:
Code:Error activating XKB configuration. There can be various reasons for that. If you report this situation as a bug, include the results of • xprop -root | grep XKB • gsettings get org.gnome.libgnomekbd.keyboard model • gsettings get org.gnome.libgnomekbd.keyboard layouts • gsettings get org.gnome.libgnomekbd.keyboard options
I won't be home till a little later so I can't look at this properly right now. But I'll try to find a solution for you. Sorry for that.
I send you here my new pt file as reference. You have to change its name to whatever you want. Like pt-v6rg (don't use extension) or whatever language you want to use. The name is irrelevant, it's just a mnemonic so you know what language it refers to and the aftername to know that you edited it.
What do you do with it, then?
Edit it at will. Be wise and try to follow the pattern of the file.
After that, you will copy it (not move, but copy it) to its right place. Where is that place? Here:
Code:sudo cp /path/for/your_keyboard_file /usr/share/X11/xkb/symbols
Then you have to edit this file:
Code:sudo gedit /etc/default/keyboard
When the file is open,
change the line in bold to match the name of your keyboard file.Code:XKBMODEL="pc105" XKBLAYOUT="pt-henrique" XKBVARIANT="" XKBOPTIONS=""
Save the file. Now reboot.Code:XKBMODEL="pc105" XKBLAYOUT="pt-v6rg" XKBVARIANT="" XKBOPTIONS=""
(so I hope)
Last edited by henriquemaia; August 14th, 2012 at 03:17 AM. Reason: Edited layout.
could you please summarize all the steps that are required to add a new keyboard layout?
from what I could understand so far the steps seem to be the following:
1) one has to create a layout file, give it a name
2) add the file with the new layout to /usr/share/X11/xkb/symbols
3) then modify the following files:
4) anything else?
Can the 3-letter language code be looked up here? http://www.sil.org/iso639-3/codes.as...639_3&letter=g
I am trying to create a Gagauz layout. I have the layout file, but I fail to add it as a separate layout into the system The steps above result in the failure of some module that's responsible for layout switching and configuration. I use Kubuntu 12.04
3) Edit the file
Save the file. Reboot. If the file follow the standard of a symbols files, it will work at startup. No more fuss.
Note: look até my updated howto on the post above yours.
I do as it's said in step 3, that is edited the /etc/default/keyboard, but nothing happens. The added layout doesn't appear in the layouts list.
I believe I may have made a mistake in the layout file itself. Could someone please look into the file? I attached all the files I used to create the layout.