Page 4 of 10 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 98

Thread: Create your own personal keyboard layout

  1. #31
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    18,809
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Create your own personal keyboard layout

    Quote Originally Posted by ernsttremel View Post
    I've just installed Ubuntu 10.04 some days ago.
    On my system there is nothing in
    /etc/X11/xkb
    Same here - My /etc/X11/xkb directory is completely empty. No files, no subdirectories.

    # /etc/X11/xkb$ \ls -al
    total 8
    drwxr-xr-x 2 root root 1 2010-04-15 08:12 ./
    drwxr-xr-x 9 root root 4096 2010-05-26 09:30 ../
    # /etc/X11/xkb$ setxkbmap -print
    xkb_keymap {
    xkb_keycodes { include "evdev+aliases(qwerty)" };
    xkb_types { include "complete" };
    xkb_compat { include "complete" };
    xkb_symbols { include "pc+us+inet(evdev)+level3(ralt_switch)" };
    xkb_geometry { include "pc(pc105)" };
    };


    I'm looking for where (which file) to change the level3(ralt_switch) setting to be useful - either for accents or to mirror the lalt_switch. I'm running X/Windows with Lubuntu 10.04. The base install was Ubuntu x64 Server 10.04, then I added LXDE Desktop.

    Any idea where the xkb settings are now? Ah ... seems they've been moved to /usr/share/X11/xkb/symbols
    Last edited by TheFu; May 26th, 2010 at 03:06 PM.

  2. #32
    Join Date
    May 2010
    Beans
    43
    Distro
    Ubuntu

    Re: Create your own personal keyboard layout

    Quote Originally Posted by simosx View Post
    The Hebrew keyboard layout is located at /usr/share/X11/xkb/symbols/il
    All layouts are found in /usr/share/X11/xkb/symbols/

    There is an advanced tool for keyboard layout creation at http://github.com/simos/keyboardlayouteditor
    Requires some skill to setup and use.

    Having read the Wikipedia page on the Avestan language, I see that just recently the Avestan script has been added to the Unicode standard. I suggest to
    1. Install a Unicode Avestan font in Linux. Apparently ALPHABETUM UNICODE supports the Avestan script. You install new fonts in ~/.fonts/
    2. If the script is right to left or left to right, this is not a problem with the keyboard layout, so there is no requirement to use the Hebrew layout as starting point.
    3. What I would wholeheartedly recommend is for you to design the keyboard layout first. Use a drawing program so write the Unicode codepoints (such as 'U+10B00') on a keyboard. Having that, it is possible to get even someone else to make the layout for you.

    Good luck!
    That's great. I've added the required informations about the Avestan keyboard layout as PDF files and the nesessary font in the attached file. And I hope somebody will be able the keyboard layout and forward the instructions to me how to use it in Ubuntu 10.04.
    Thank you very much.
    Attached Files Attached Files

  3. #33
    Join Date
    Aug 2005
    Beans
    368

    Re: Create your own personal keyboard layout

    Quote Originally Posted by ernsttremel View Post
    That's great. I've added the required informations about the Avestan keyboard layout as PDF files and the nesessary font in the attached file. And I hope somebody will be able the keyboard layout and forward the instructions to me how to use it in Ubuntu 10.04.
    Thank you very much.
    Thanks for the layout description.
    I managed to create a draft layout which I attach in avestan.txt.

    How can you use it?

    1. Add avestan.txt at the end of /usr/share/X11/xkb/symbols/ir

    sudo gedit /usr/share/X11/xkb/symbols/ir

    in order to open (as administrator) the 'ir' layout, and paste the contents of avestan.txt at the end of the 'ir' file. Click Save and exit.

    2. Register the new 'avestan' layout in evdev.xml and base.xml.

    Both files have a section that looks like the following. Do a simple search for 'ku_ara' or some other string in order to find the segment.


    Code:
            <variant>
              <configItem>
                <name>ku_ara</name>
                <description>Kurdish, Arabic-Latin</description>
                <languageList><iso639Id>kur</iso639Id></languageList>
              </configItem>
            </variant>
    -----------HERE------------
          </variantList>
        </layout>
        <layout>
          <configItem>
            <name>iq</name>
            <shortDescription>Irq</shortDescription>
            <description>Iraq</description>
            <languageList><iso639Id>ara</iso639Id>
                          <iso639Id>kur</iso639Id></languageList>
          </configItem>
    Open base.xml with
    sudo gedit /usr/share/X11/xkb/rules/base.xml
    Then open evdev.xml with
    sudo gedit /usr/share/X11/xkb/rules/evdev.xml

    Replace the '-----------HERE------------' with the following lines:

    <variant>
    <configItem>
    <name>avestan</name>
    <description>Avestan</description>
    <languageList><iso639Id>ae</iso639Id></languageList>
    </configItem>
    </variant>

    What we do here is we insert a variant description for the 'avestan' keyboard layout.

    Click Save and exit the text edit.

    3. Install the font. Follow the steps from http://www.bomahy.nl/hylke/blog/adding-fonts-in-gnome/
    which says to install the font in your home directory, in a '.fonts' subdirectory. Normally, Ubuntu will pick up the font as soon as you copy it in there. Any newly started application should be able to use the new font.

    4. Finally, add the new Avestan keyboard layout. Go to System/Preferences/Keyboard/Layouts, click on the [Add..] button and select from the list 'Iran' and layout 'Avestan'. Click OK. Notice the new keyboard layout indicator on the panel that allows you to switch between English and Avestan.

    Thats it. Goold luck!

    p.s. You might not be able to write Avestan in Firefox since Avestan is a recent addition to Unicode. It worked fine for the Ubuntu text editor (gedit) and OpenOffice.org 3.2.
    Attached Files Attached Files
    Last edited by simosx; May 27th, 2010 at 11:18 AM.

  4. #34
    Join Date
    May 2010
    Beans
    43
    Distro
    Ubuntu

    Re: Create your own personal keyboard layout

    Thank you very much for your instructions to install the Avestan keyboard layout.
    It is working well.
    I only had to modify the "avestant.txt" file. Maybe the Unicode Code points I'd sent were incorrect.
    So I'll add it "corrected" again.
    Kind regards and jia chara
    Ernst tremel
    Attached Files Attached Files

  5. #35
    Join Date
    May 2010
    Beans
    43
    Distro
    Ubuntu

    Re: Create your own personal keyboard layout

    As I told you in my previous mail the Avestan keyboard is working well and as aspected.
    But the onscreen keyboard looks like
    "AVestan_onscreen-keyboard.jpg"
    i.e. is showing the Unicode Code-Hex-Numbers instead of the Avestan glyphs.

    Do you know a possibility how to modify the "avestan.txt" file to get the Avestan glyphs shown?
    Attached Images Attached Images

  6. #36
    Join Date
    Aug 2005
    Beans
    368

    Re: Create your own personal keyboard layout

    Quote Originally Posted by ernsttremel View Post
    As I told you in my previous mail the Avestan keyboard is working well and as aspected.
    But the onscreen keyboard looks like
    "AVestan_onscreen-keyboard.jpg"
    i.e. is showing the Unicode Code-Hex-Numbers instead of the Avestan glyphs.

    Do you know a possibility how to modify the "avestan.txt" file to get the Avestan glyphs shown?
    Normally the characters should show up. What version of Linux do you use? 1) The Avestan script was added in Unicode 5.2 on Oct 2009, so your Linux version may have an older version of the 'glib' library.
    2) The Avestan script has the characters in Plane 1, while all other layouts use Plane 0 (BMP). It could be a bug and should be reported anyway at https://bugzilla.gnome.org/browse.cg...ct=libgnomekbd

    I managed to create a screenshot of the layout which I attach.
    Attached Images Attached Images
    Last edited by simosx; June 11th, 2010 at 05:42 PM. Reason: mention avestan and introduction in Oct 2009.

  7. #37
    Join Date
    May 2010
    Beans
    43
    Distro
    Ubuntu

    Re: Create your own personal keyboard layout

    You wrote

    "Normally the characters should show up. What version of Linux do you use? 1) The Avestan script was added in Unicode 5.2 on Oct 2009, so your Linux version may have an older version of the 'glib' library.
    2) The Avestan script has the characters in Plane 1, while all other layouts use Plane 0 (BMP). It could be a bug and should be reported anyway at https://bugzilla.gnome.org/browse.cg...ct=libgnomekbd"

    I use Ubuntu 10.04

  8. #38
    Join Date
    Aug 2005
    Beans
    368

    Re: Create your own personal keyboard layout

    Quote Originally Posted by ernsttremel View Post
    You wrote

    "Normally the characters should show up. What version of Linux do you use? 1) The Avestan script was added in Unicode 5.2 on Oct 2009, so your Linux version may have an older version of the 'glib' library.
    2) The Avestan script has the characters in Plane 1, while all other layouts use Plane 0 (BMP). It could be a bug and should be reported anyway at https://bugzilla.gnome.org/browse.cg...ct=libgnomekbd"

    I use Ubuntu 10.04
    Thanks.

    I filed a bug report for this,
    Bug 621367 - In keyboard display, characters for U+1xxxx appear as 'U1xxxx' (not as characters),
    https://bugzilla.gnome.org/show_bug.cgi?id=621367
    It is probably a bug in libgnomekbd. This keyboard layout is the first keyboard layout for the Unicode Plane 1 so there might be something small to fix.

    I also blogged about this,
    http://simos.info/blog/archives/1134

  9. #39
    Join Date
    May 2010
    Beans
    43
    Distro
    Ubuntu

    Re: Create your own personal keyboard layout

    Thank you.
    As I told you in a previous mail
    I corrected the avestan.txt file because some Avestan glyphs were positioned wrongly.
    So I'l transmit you the corrected avestan.txt file as an attachment.
    Attached Files Attached Files

  10. #40
    Join Date
    Aug 2005
    Beans
    368

    Re: Create your own personal keyboard layout

    Quote Originally Posted by ernsttremel View Post
    Thank you.
    As I told you in a previous mail
    I corrected the avestan.txt file because some Avestan glyphs were positioned wrongly.
    So I'l transmit you the corrected avestan.txt file as an attachment.
    Thanks, I updated my blog post with the new avestan.txt.

    Your subsequent step would be to get the layout added to the xkeyboard-config project so that newer Linux distributions will have it in by default.
    xkeyboard-config has a requirement to add new layouts in country files; therefore it makes sense to select 'ir' for Iran, for Avestan.
    You can file a feature request following the link
    https://bugs.freedesktop.org/enter_b...eyboard-config
    As an example, see
    https://bugs.freedesktop.org/show_bug.cgi?id=2693

Page 4 of 10 FirstFirst ... 23456 ... LastLast

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
  •