Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Creating a custom keyboard layout

  1. #11
    Join Date
    Aug 2008
    Beans
    51

    Re: Creating a custom keyboard layout

    I posted exactly what frederickjh posted earlier. Reposting, that is:

    Code:
    <layout>
          <configItem>
            <name>DVX</name>
            <shortDescription>DVX</shortDescription>
           <description>Dvorak International Extended (dead keys)</description>
            <languageList><iso639Id>eng</iso639Id></languageList>
         </configItem>
          <variantList/>
        </layout>

  2. #12
    Join Date
    Mar 2008
    Location
    Hungary
    Beans
    12

    Re: Creating a custom keyboard layout

    Ok, you should modify it a bit. From your first post I think, that the file which contains your layout is in the /usr/share/X11/xkb/symbols/pc/ directory. You should copy your layout file into /usr/share/X11/xkb/symbols/ (one directory upper). After this copy, paste the name of that file here:

    Code:
    <layout>
          <configItem>
            <name>name of the file</name>
            <shortDescription>DVX</shortDescription>
           <description>Dvorak International Extended (dead keys)</description>
            <languageList><iso639Id>eng</iso639Id></languageList>
         </configItem>
          <variantList/>
        </layout>
    For example, if your layout file is /usr/share/X11/xkb/symbols/mydvorak then in your evdev.xml the above line should be this:
    Code:
            <name>mydvorak</name>

  3. #13
    Join Date
    Aug 2008
    Beans
    51

    Re: Creating a custom keyboard layout

    It worked! It worked!

    I realized the basic problem: I had not actually saved DVX in the symbols directory. I took the text from DVX and copied it. Then, I opened a terminal and used a sudo gedit. From there, I pasted the text, saved it as DVX in the symbols directory, and bang! It worked like a charm.

    Thank you all very much for your help: I could not have done this without you. I am marking this thread as solved.

  4. #14
    Join Date
    Mar 2008
    Location
    Hungary
    Beans
    12

    Re: Creating a custom keyboard layout

    You are welcome.

  5. #15
    Join Date
    Feb 2010
    Location
    Switzerland
    Beans
    15
    Distro
    Edubuntu 9.10 Karmic Koala

    Lightbulb Re: Creating a custom keyboard layout

    Quote Originally Posted by kutya61 View Post
    Freiberg: Yes, you should edit it with
    Code:
    sudo gedit /usr/share/X11/xkb/rules/evdev.xml
    because this file is out of your home directory.
    You can also hit Alt-F2 to bring up the Run Application dialog. Then type in gksu followed by the program you want to run as the super user. Many times in a project like this I will run the file manager with the run application dialog by typing in gksu nautilus. Then if I then need to edit a file I open it from the file manager and it opens gedit with super user privileges so I can edit it.

    Warning: If you don't know what you are doing you can mess up your computer big time running programs as the super user! Always make a backup copy of files before you edit them so you always have something to go back to. If you mess your computer up running as super user don't blame me you have been warned.

  6. #16
    Join Date
    Feb 2010
    Location
    Switzerland
    Beans
    15
    Distro
    Edubuntu 9.10 Karmic Koala

    Re: Creating a custom keyboard layout- How to Dvorak International with dead keys

    I figured out that if the layout file is named in lowercase characters only and the layout is added to the evdev.lst then the indicators and group names show up.

    So, add the following line to the end of the section ! layout in the /usr/share/X11/xkb/rules/evdev.lst file.

    dvx Dvorak International Extended (dead keys)

    This is just before the section ! variant.

    If you followed my previous instructions in my previous post then you will need to also change the

    <name>DVX</name> to <name>dvx</name> in the code to be inserted in the evdev.xml file and rename the DVX file in the /usr/share/X11/xkb/symbols directory to dvx. Change both the filename and the reference to it to all lower case.

    ================================================== ==========
    If you are starting fresh follow the instructions below which I have edited to be complete and use the newly attached file with the complete instructions.

    Quote Originally Posted by frederickjh View Post
    In reality you can simplify things as you only have one keyboard layout so you do not need the variant section but can replace the whole section with <variant/> tag

    I am using the same Dvorak International Extended keyboard with deadkeys from http://arjenvankol.com/dvorak.php .

    Here is how I got it to work.

    Save the attached text file as a file called dvx in the /usr/share/X11/xkb/symbols/ directory (I had to add the ".txt" to the end to be able to upload it). You will want to save it here instead of link to it if you want other user on the system to be able to use it.

    Then add the following lines to /usr/share/X11/xkb/rules/evdev.xml just before the </layoutList> tag.

    Code:
    <layout>
          <configItem>
            <name>dvx</name>
            <shortDescription>DVX</shortDescription>
           <description>Dvorak International Extended (dead keys)</description>
            <languageList><iso639Id>eng</iso639Id></languageList>
         </configItem>
          <variantList/>
        </layout>
    Then, add the following line to the end of the section ! layout in the /usr/share/X11/xkb/rules/evdev.lst file.

    dvx Dvorak International Extended (dead keys)

    This is just before the section ! variant.

    This worked for me on Karmic 9.10 the DVX show up as the layout indicator so I can differentiate it from the USA keyboard layout.

    Frederick
    I hope this helps someone else.

    Frederick
    Attached Files Attached Files

  7. #17
    Join Date
    Feb 2007
    Beans
    7

    Re: Creating a custom keyboard layout

    Here's a blogpost that explains how I customized my own keyboard on karmic: http://www.doink.ch/an-x11-keyboard-...-old-germanic/

  8. #18
    Join Date
    Jun 2008
    Beans
    16

    Re: Creating a custom keyboard layout- How to Dvorak International with dead keys

    Quote Originally Posted by frederickjh View Post
    I figured out that if the layout file is named in lowercase characters only and the layout is added to the evdev.lst then the indicators and group names show up.

    So, add the following line to the end of the section ! layout in the /usr/share/X11/xkb/rules/evdev.lst file.

    dvx Dvorak International Extended (dead keys)

    This is just before the section ! variant.

    If you followed my previous instructions in my previous post then you will need to also change the

    <name>DVX</name> to <name>dvx</name> in the code to be inserted in the evdev.xml file and rename the DVX file in the /usr/share/X11/xkb/symbols directory to dvx. Change both the filename and the reference to it to all lower case.

    ================================================== ==========
    If you are starting fresh follow the instructions below which I have edited to be complete and use the newly attached file with the complete instructions.



    I hope this helps someone else.

    Frederick
    That worked like a charm!

  9. #19
    Join Date
    May 2010
    Beans
    73

    Re: Creating a custom keyboard layout

    hey guys - I wrote up, at elast the general ideas presented here, in the ubuntu wiki: https://help.ubuntu.com/community/Ho...%20definitions -- please have a look. I'd already done so much work on it before I found your thread, I decided no one should ahve to go through all that again
    «If I've seen very far, it's only because I was that desperate to leave.»
    robisinho : mi colección de música : favoritas recientes

  10. #20
    Join Date
    Aug 2008
    Beans
    51

    Re: Creating a custom keyboard layout

    That is a really good, and concise, guide to doing this. If you don't mind, I'm going to try to edit my first post and put that link there, so that everybody can see it.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •