delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/03/23/17:49:55

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=x-received:date:from:to:subject:message-id:mail-followup-to
:references:mime-version:content-type:content-disposition
:in-reply-to:user-agent;
bh=sYQ4EOajPD8n1nW+MHSn8BBWlvk5wDFM+8eh5t0Ut/8=;
b=AjgzxL8UyiQ1jqW+rvg578x9xPLIYe2IqHOlmUFpdlrbAMlHFmUyj/dRLtLcXL8D+E
ICfXfhv1N50fCzZ+x0F+qhaqlR37dWJZRGyxQBIay3XKE4davrwwrevwM3r0TAH3MZBr
a2HJOBJDL6un4vDNvmmMFJvucQshfDHfRLTVwdIf7aq7gencFDGp9KL4x0JiTtGcQyrT
wawrx5kBN0gaYA5vaFp9X1fSPJ37v7CT5ZAAtK9fFFPUu+bgonWo+pLhieyn73U5Yvv1
hfoAeuahPC1mYzDNgDBY7u3XDxAk21GYV3ry8OG/D2DIfftijmqogIA+wsQg8HFZCsLw
aRBQ==
X-Received: by 10.112.26.202 with SMTP id n10mr3480162lbg.15.1364075281731;
Sat, 23 Mar 2013 14:48:01 -0700 (PDT)
Date: Sun, 24 Mar 2013 01:47:57 +0400
From: Vladimir Zhbanov <vzhbanov AT gmail DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] gschem shortcuts do not work with non-latin keyboard
layout.
Message-ID: <20130323214757.GA3584@localhost.localdomain>
Mail-Followup-To: geda-user AT delorie DOT com
References: <CAHk6ah54kjhwewN17ZPpLhnke3rP9CLHDjdPSetmv_WQ70SU9A AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAHk6ah54kjhwewN17ZPpLhnke3rP9CLHDjdPSetmv_WQ70SU9A@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, Mar 23, 2013 at 01:28:25AM +0100, Sneetsher wrote:
>    Hi,
>    Actually, I use gEDA in Arabic and most of the time Arabic keyboard
>    layout active. So the shortcuts do not works till I switch back to
>    English. Is the any way to fix this behavior by mapping Arabic keys to
>    the corresponding English within gschem.

Yes, modern gschem (at least the latest git version which I use, and
probably 1.8.x series) will provide this functionality if you spend some
time on this.
First find your system-gschemrc. If you don't know where it is, use the
'locate' command:
  locate system-gschemrc
Location of mine is /usr/local/share/gEDA/system-gschemrc.
Then open that file in your text editor and find the "Keymapping"
section. You will see lots of global-set-key functions, for example:
  (global-set-key "A C" 'add-component)
Select them all and copy in a new file, let's call it "local_keymap".
Thereafter, you need to find your Arabic key names corresponding to
English keys.  Type "xev" in your preferred X terminal (mine is uxterm)
and play with it a little. When you type some keys there, you'll probably
see keysym names like Arabic_xxx (I suspect). Change corresponding
English letters in global-set-key definitions to your key names. I have
a file with definitions looking like this (I use Cyrillic alphabet):
  (global-set-key "Cyrillic_ef Cyrillic_es" 'add-component)

After all is done you need to load this file. Place the "local_keymap"
file to your ~/.gEDA directory and add the following line to
~/.gEDA/gschemrc:
  (load "local_keymap")

Now when you run gschem, your keys should behave the same way regardless
of selected keymap, English or Arabic.

You can add the global-set-key definitions directly to your gschemrc.
Just don't edit system-gschemrc! If you change the functions there,
English keymap will be lost. If you add them to user's or local
project's rc file, they will work in addition to the default keymap.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019