unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Richard Wordingham <richard.wordingham@ntlworld.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Switching non-English keyboard layouts and using Emacs shortcuts
Date: Wed, 13 May 2015 06:24:54 +0100	[thread overview]
Message-ID: <20150513062454.0e7f56e3@JRWUBU2> (raw)
In-Reply-To: <CABG-yt0O7VXA0Duf=sX-qYE5rj3gbH4v6gi_1vW_BkQg+xtqJw@mail.gmail.com>

On Wed, 13 May 2015 10:05:37 +0530
Shakthi Kannan <shakthimaan@gmail.com> wrote:

> I can switch to the Dvorak layout, use Emacs shortcuts and then switch
> back to enter unicode characters, but this is tedious.

> #1 Is there a way to program Emacs such that when I press "C-", then
> any key that follows needs to be interpreted from the Dvorak layout?

I don't know.

> #2 How do other people who use non-English layouts use Emacs shortcuts
> with their native language input method?

To be pedantic, as my native language input method inputs the Latin
script, I have no problems using it directly from X.

However, I also use non-Latin layouts.  In most applications, I use
the ibus input method, but that used not to work for Emacs with English
locales selected. As a result, I switched to using a quail keyboard, and
that avoids the problem you report.  The quail keyboard is simply
ignored when entering the shortcuts.  Unfortunately, a few commands
also ignore the quail keyboard for command input - one of these days
I'll investigate, fix and report.

I use the Emacs command set-input-method to select or change a quail
keyboard, and toggle-input-method to toggle between using and not using
a quail keyboard.  There are standard shortcuts for these
commands, but with the command line recall and completion facilities of
Emacs it's easier to just type their starts once at the beginning of
each Emacs session.  Because of the problem with shortcuts, it's not
worth using ibus now that it works in Emacs; I've stuck with quail.

I don't use setxkbmap to switch between X keyboards.  I just have four
X keyboards permanently defined (I am on Ubuntu 12.04) and rely on ibus
for the rest in non-Emacs applications.  I switch X keyboard by means
of the keyboard command​ ctrl/shift and ibus keyboard by alt/shift.
These commands were chosen so I could run multi-lingual editing sessions
in Emacs and LibreOffice on my Linux box from a Windows laptop with
Xming as X-server. Each window (= Emacs frame) has its own X- and ibus
keyboard selections.

Richard.



  reply	other threads:[~2015-05-13  5:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13  4:35 Switching non-English keyboard layouts and using Emacs shortcuts Shakthi Kannan
2015-05-13  5:24 ` Richard Wordingham [this message]
2015-05-20  9:38   ` Shakthi Kannan
2015-10-08 17:49     ` Shakthi Kannan
2015-10-18 19:50       ` Thien-Thi Nguyen
2015-10-20 17:58         ` Shakthi Kannan
2015-10-22 19:40           ` Thien-Thi Nguyen
2015-10-23  4:44             ` Shakthi Kannan
2015-05-13  7:37 ` Gian Uberto Lauri
2015-05-13 19:49   ` Richard Wordingham
2015-05-20  9:41   ` Shakthi Kannan
2015-05-13  9:02 ` Yuri Khan
2015-05-20  9:43   ` Shakthi Kannan

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=20150513062454.0e7f56e3@JRWUBU2 \
    --to=richard.wordingham@ntlworld.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).