unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using AltGr as standard modifier key in emacs
Date: Tue, 13 Oct 2015 10:05:27 -0700 (PDT)	[thread overview]
Message-ID: <902f4b3f-2c82-4d07-b940-67278871bde3@googlegroups.com> (raw)
In-Reply-To: <f196aab4-5577-4f8b-8508-984173246833@googlegroups.com>

On Tuesday, October 13, 2015 at 10:27:52 PM UTC+5:30, Rusi wrote:
> On Tuesday, October 13, 2015 at 8:05:33 PM UTC+5:30, Shahab Shahsavari Alavidjeh wrote:
> > Hi there
> > 
> > While that's my first post here, I'm going to introduce myself a little
> > bit, and I think this introduction might be relevant to my question
> > here, I'm Shahab Shahsavari Alavidjeh (simply everyone can call me Shibi
> > if that's too hard to pronounce) and I'm using emacs for my day to day
> > tasks (as a writer and translator) for writing and organizing my
> > tasks. Well I'm not a software developer or an emacs expert by any
> > means, therefor my questions or requests may seems dumb.
> > 
> > Well I'm an Iranian and a Persian speaker, which leads us right to the
> > problem, while emacs has great support for UTF-8 and complex script
> > languages (like Persian) and there is a well maintained quail input
> > method package for farsi (thanks to Mohsen Banan
> > http://mohsen.1.banan.byname.net/) there's a huge problem with that (and
> > as I already reviewed the code for hebrew, arabic and even latin-alt
> > input methods this problem exists there too) There is no implementation
> > for AltGr key or ISO_Level3_Shift key in elisp. So every input method
> > re-implemented a different modifier key and bind the third or forth
> > level modification to that. (in persian that key is "\" in hebrew that
> > key is "`" in latin-alt that key seems to be "_" in latin-post the key
> > is ",") which IMO is a very inconsistent way of implementation.
> > 
> > But waht is my question?
> > 
> > is there any way to work around this problem and assign a modifier key
> > to "Right Alt Key" on keyboard which is accessible through elisp
> > customization? something which I can assign a character (for example á
> > to (kbd rightalt-a))?
> > 
> > Why I don't simply use my D.E. input method support and keyboard layout
> > switcher instead?
> > 
> > I'm currently using it, that's my best option right now, but then I
> > should switch keyboard layouts whenever I want to run a command in emacs
> > or even when I want to save a file to disk.
> > 
> > I appreciate any answer which can help me to get it working.
> > 
> > What I'm using right now is
> > 
> > GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.6) of
> > 2015-09-14 on buildvm-10.phx2.fedoraproject.org
> > 
> > Thank You
> > Shahab
> 
> Hi Shibi
> Welcome to emacs!
> 
> Does this work for you (outside of and independent of emacs)?
> 
> $ setxkbmap -layout "us,ir" -option "grp:lalt_lshift_toggle,grp_led:scroll" 
> 
> If yes then you can see how to arrange for emacs to call that based on mode (switching)?

Just to clarify:
That command (on my ubuntu 15.4 box) switches from us to ir(ani)¹ when given
a l-alt, l-shift chord. Same switches back ie its a toggle

¹ Well actually not sure about the Irani! Emacs says its Arabic!


  reply	other threads:[~2015-10-13 17:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.229.1444746928.7904.help-gnu-emacs@gnu.org>
2015-10-13 16:57 ` Using AltGr as standard modifier key in emacs Rusi
2015-10-13 17:05   ` Rusi [this message]
2015-10-13 17:44     ` Shahab Shahsavari Alavidjeh
     [not found]     ` <mailman.256.1444758367.7904.help-gnu-emacs@gnu.org>
2015-10-13 18:19       ` Javier
2015-10-13 18:43         ` Javier
2015-10-13 19:42           ` Shahab Shahsavari Alavidjeh
     [not found]           ` <mailman.265.1444765466.7904.help-gnu-emacs@gnu.org>
2015-10-13 20:17             ` Javier
2015-10-14  5:18               ` Shahab Shahsavari Alavidjeh
2015-10-13 19:20         ` Shahab Shahsavari Alavidjeh
2015-10-13 13:11 Shahab Shahsavari Alavidjeh
2015-10-14  6:05 ` Yuri Khan
2015-10-14  6:47   ` Shahab Shahsavari Alavidjeh
2015-10-14  9:54   ` tomas
     [not found] ` <mailman.289.1444802784.7904.help-gnu-emacs@gnu.org>
2015-10-14 12:17   ` Rusi
2015-10-15  1:47     ` Rusi
2015-10-15  2:23       ` Yuri Khan
     [not found]       ` <mailman.347.1444875907.7904.help-gnu-emacs@gnu.org>
2015-10-15  2:42         ` Rusi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=902f4b3f-2c82-4d07-b940-67278871bde3@googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).