From: "Mark H. David" <mhd@yv.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Is there a sane way to type Hebrew with nikud with Emacs 25/Mac?
Date: Mon, 12 Dec 2016 13:09:58 -0800 [thread overview]
Message-ID: <1481576998.3109775.816718105.3FD7FFFA@webmail.messagingengine.com> (raw)
In-Reply-To: <83h96fhysl.fsf@gnu.org>
No, using an Emacs input method is not acceptable in this case.
The goal of this exercise is to allow one to use the built-in input method
(here, Hebrew keyboard MacOS (or Windows or GNU/Linux)), without needing
Emacs's input methods. Nowadays, built-in input methods involve very little
setup work on all the platforms. And then you have a uniform way to enter your
text in many apps, e.g., firefox, chrome, safari, terminal, mail, what have you.
So, just want Emacs to behave like these apps. It kind of does, as far as
self-inserting characters are concerned, but having to switch back to US keyboard
just to type C-x, C-c, C-s, et al, is "insane". How to fix it?
First approximation: when a key K comes in to Emacs, and not using US keyboard
and K is not defined in Emacs, reinterpret K with corresponding character in US keyboard
combined with modifier bits of of K.
Example:
User types C-<keycap for S> when in Hebrew input method. I.e.,
it looks like they typed C-s, but since the Hebrew input method
is on, Emacs is going to get a different key event.
So, Emacs gets a key whose modifier bits are for the control key,
and character is ד (daled), a Hebrew character that is assigned
to key cap S. So, Emacs initially sees that as C-ד.
So, Emacs decides that C-ד is not defined. So, Emacs
looks up the corresponding character in the US keyboard, which
is "s". So, reinterpret the keystroke as C-s.
I think this should be an optional switch, although I would want it to be the default.
In any case, if this does not work out for you -- e.g., you're really winning
with Emacs input methods, or whatever, you can just turn it off.
Thanks,
Mark
----- Original message -----
From: Eli Zaretskii <eliz@gnu.org>
To: "Mark H. David" <mhd@yv.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Is there a sane way to type Hebrew with nikud with Emacs 25/Mac?
Date: Thu, 08 Dec 2016 05:42:18 +0200
> From: "Mark H. David" <mhd@yv.org>
> Date: Wed, 07 Dec 2016 15:02:30 -0800
> Cc: emacs-devel@gnu.org
>
> It's similarly a bummer on GNU/Linux with a PC keyboard.
>
> Straightforward way to try it:
> Add Hebrew language keyboard in your modern GUI in the GNU/Linux-y way.
> Fire up emacs, go to scratch buffer
> Switch keyboard to "he" (Hebrew keyboard)
> Type keys with caps: ASDF - 4 Hebrew letters show up: שדגכ
> Type ctrl+b, meaning backward-char. Doesn't work, you get: "C-נ is undefined".
>
> נ is the Hebrew character you get when you type the keycap B.
>
> I tried this on Emacs 24. I'm sure it's the same on Emacs 25 in this respect.
It's not an Emacs issue, it's how keyboard works on X. (Ironically,
MS-Windows gets it right, so keys with Ctrl modifier are still ASCII
when I switch the keyboard to Hebrew.)
May I suggest to try one of the Emacs's own built-in Hebrew input
methods instead?
next prev parent reply other threads:[~2016-12-12 21:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 20:32 Is there a sane way to type Hebrew with nikud with Emacs 25/Mac? Mark H. David
2016-12-06 21:10 ` David Caldwell
2016-12-06 22:04 ` Mark H. David
2016-12-07 20:54 ` Richard Stallman
2016-12-07 23:02 ` Mark H. David
2016-12-08 3:42 ` Eli Zaretskii
2016-12-12 21:09 ` Mark H. David [this message]
2016-12-13 3:44 ` Eli Zaretskii
2016-12-13 21:27 ` Juri Linkov
2016-12-13 23:41 ` Mark H. David
2016-12-14 22:05 ` Juri Linkov
2016-12-08 20:36 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1481576998.3109775.816718105.3FD7FFFA@webmail.messagingengine.com \
--to=mhd@yv.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.