Layout Esperanto

Booting, installing, newbie
Post Reply
Message
Author
User avatar
sancxjo
Posts: 92
Joined: Mon 29 Apr 2013, 17:24
Location: Russia

Layout Esperanto

#1 Post by sancxjo »

Hello!
Saluton! :)

I have used the system:
Operating System: Lxpup 13.01
Desktop Panel: lxpanel 0.5.10
Desktop Window Manager: Openbox 3.5.0
Desktop Start: xwin startlxde.

Can not add a layout Esperanto.
On other Linux to switch I turn right while holding down the Alt
For this I added the file "eo" in the folder
"/ etc/X11/xkbsymbols" and edited the file "/ etc/X11/xorc.conf": http://pastebin.com/D74D2pCe ,
but here there is only layout "us". Option "ru". disappears. :? My keyboard "pc105" and in xorg.conf now this:http://pastebin.com/1CUS4dLZ .
Why program "xkbconfigmanager" not see my file "eo": http://pastebin.com/kJgBNWWR ?
Last edited by sancxjo on Tue 07 May 2013, 00:55, edited 1 time in total.

Burunduk
Posts: 80
Joined: Sun 21 Aug 2011, 21:44

#2 Post by Burunduk »

It is easier to edit one of the existing layouts, for example es or us.

To add a separate layout, this is what I have tested on Slacko 5.3.3 but you may want to try anyway:
  • copy the epo file from the distro your Puppy is based upon (mine is from Debian) to /etc/X11/xkb/symbols/pc/;

    open the file and replace include "us(basic)" with include "pc/us(basic)";

    edit xorg.conf:

    Code: Select all

        Option      "XkbLayout" "us,epo,ru" #xkeymap0
        Option      "XkbVariant" ",,winkeys"
    and restart X server - qwerty is now

User avatar
sancxjo
Posts: 92
Joined: Mon 29 Apr 2013, 17:24
Location: Russia

#3 Post by sancxjo »

Do not something has turned out. I have a file "epo" from Vector: http://pastebin.com/gj8Rp5Av
No. There's no include "pc / us (basic)". Line 73 is:

Code: Select all

include "level3 (ralt_switch)".
Xorg.conf file has been edited.
This line but I did not touch:

Code: Select all

Option 		"XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
May need to add the: Ctrl_Alt_toggle?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post by Karl Godt »

I have no idea, but

Code: Select all

default partial alphanumeric_keys
xkb_symbols "basic" {
  include "pc/latin(type4)"
something like that is common in my /etc/X11/xkb/symbols/pc/* files .

If you have an epo file there it should be recognized by

xkbconfigmanager
/usr/local/apps/XkbConfigurationManager/XkbLayoutConfig

if you add that epo into the
/etc/X11/xkb/rules/xorg.lst
file
.
Nevertheless xorg.conf gets easily rewritten if some hardware changed (ie monitor) , so putting some

Code: Select all

setxkbmap -rules xorg -model pc105 -layout ru,epo,eo,ru(winkeys) -variant "",winkeys -option grp:alt_shift_toggle,grp_led:scroll
line near the end of the /root/.xinitrc file
would avoid that you need to adjust xorg.conf every time hardware changes.

Note : My line looks as

Code: Select all

setxkbmap -rules xorg -model pc102 -layout us,de -variant "" -option grp:rwin_toggle,lv3:ralt_switch
it works without problems for my pc104/105 keyboard .

User avatar
sancxjo
Posts: 92
Joined: Mon 29 Apr 2013, 17:24
Location: Russia

#5 Post by sancxjo »

1 "eo" and "epo" added to the directory /etc/X11/xkb/symbols/pc/
2 Has registered in /etc/X11/xkb/rules/xorg.lst'
3 Append string to file /root/.xinitrc

Despite all of this
"xkbconfigmanager"
he still does not see them and the third layout is not there.

Burunduk
Posts: 80
Joined: Sun 21 Aug 2011, 21:44

#6 Post by Burunduk »

The xkbconfigmanager will never see new layouts because it has a hard-coded list of them. It will, however, see new variants of the existing layouts. You can copy the Esperanto layout variant to any Latin layout and add it to the xorg.lst as variant. You don't need the xkbconfigmanager altogether if you are following the Karl Godt's advice. Try to pass different options to the setxkbmap command.

I've written a script that will install an Esperanto layout stand-alone and as us and es layout variant. (The es variant is the same and is not suitable for a Spanish keyboard). It will also try to supplement the xkbconfigmanager's list. It's been tested on Lupu, Slacko 5.3 and Wary 5.3.

If you want to give it a try, just unpack and run. But it won't work if it finds the files in the xkb folder already modified. Try to restore them from the main sfs before you run the sctipt.
Attachments
add_eo_layout.gz
Unpack and run to add the Esperanto layout.
(1.93 KiB) Downloaded 116 times

User avatar
sancxjo
Posts: 92
Joined: Mon 29 Apr 2013, 17:24
Location: Russia

#7 Post by sancxjo »

Thank you very much for writing the script!
Then try.

I deleted files eo and epo.
Edited file es: http://pastebin.com/iGUNS7TB
xinitrc The command line is now this:

Code: Select all

setxkbmap -rules xorg -model pc105 -layout ru,es,us(winkeys) -variant "",winkeys -option grp:alt_shift_toggle,grp_led:scroll
Does not work. Something I did wrong again.

Burunduk
Posts: 80
Joined: Sun 21 Aug 2011, 21:44

#8 Post by Burunduk »

Well, yes. Your command won't work neither will my script. And you don't need a Spanish layout unless you can see a ñ key on your keyboard.

You can find an explanation here: As my script has no man page, here is an
add_eo_layout usage:
  • 0. Undo any change you (or the script if you ran it before) may have made to these files:

    /usr/local/apps/XkbConfigurationManager/XkbLayoutConfig
    /etc/X11/xkb/symbols/pc/us
    /etc/X11/xkb/symbols/pc/es
    /etc/X11/xkb/rules/xorg.lst

    and delete the /etc/X11/xkb/symbols/pc/eo file.

    The script won't touch any file that contains a word "Esperanto" so make sure you have removed your all modifications especially to the xorg.lst file.

    1. Unpack the script into your home directory (or elsewhere) and click its icon in the rox window or run it from the terminal.

    2. Open the xkb configuration manager and click the layouts button. You should now see the Esperanto layout on the list. If not, add the us or es layout and look for an eo variant on the layout variants list.
    (Once again, the es(eo) variant is not for a real Spanish keyboard).
If the script succeeded the following command should work for you:

Code: Select all

setxkbmap -rules xorg -model pc105 -layout us,ru,eo -variant ,winkeys,eo3 -option grp:alt_shift_toggle,grp_led:scroll

User avatar
sancxjo
Posts: 92
Joined: Mon 29 Apr 2013, 17:24
Location: Russia

#9 Post by sancxjo »

Aye! :) After running the script has become to work.
And also included, I am used the right Alt.
One indicator for two layouts.
Layout eo bind to another indicator does not?
Links read. For decoupling indicators have not seen.
Stop. And if there is no suitable indicator for the tray layout?

Burunduk
Posts: 80
Joined: Sun 21 Aug 2011, 21:44

#10 Post by Burunduk »

The simple Esperanto and us(basic) layouts are almost identical so maybe you don't need the latter:

... -layout eo,ru -variant eo3,winkeys ...
... -layout us,ru -variant eo,winkeys ...

All the LEDs can be used at will. Edit the /etc/X11/xkb/compat/led* files. groups=All-group1 means that the LED is on when any but the 1st layout is active. More than one grp_led option can be specified.

Further reference in Russian (and English): X Keyboard Extension

User avatar
sancxjo
Posts: 92
Joined: Mon 29 Apr 2013, 17:24
Location: Russia

#11 Post by sancxjo »

Burunduk wrote:The simple Esperanto and us(basic) layouts are almost identical so maybe you don't need the latter:

... -layout eo,ru -variant eo3,winkeys ...
... -layout us,ru -variant eo,winkeys ...

All the LEDs can be used at will. Edit the /etc/X11/xkb/compat/led* files. groups=All-group1 means that the LED is on when any but the 1st layout is active. More than one grp_led option can be specified.

Further reference in Russian (and English): X Keyboard Extension
Perfectly!
ŭ

Post Reply