From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Unicode input on Windows Emacs: any plans?
Date: Fri, 28 Mar 2014 14:15:04 +0000 (UTC) [thread overview]
Message-ID: <lh4058$fcp$1@dont-email.me> (raw)
In-Reply-To: mailman.18175.1395766786.10748.help-gnu-emacs@gnu.org
On 2014-03-25, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
>> Date: Tue, 25 Mar 2014 15:40:29 +0000 (UTC)
>>
>> Is there any plan to have Unicode input enabled on Windows?
>
> That ship sailed a long time ago. Emacs on Windows supports Unicode
> keyboard input on Windows NT and later since Aug 2012, and Emacs 24.3
> was released with that feature.
Hmm, I was reading the source code of 24.3 instead of running the
binary! (My workhorse version is 23.2, and since I could not find
changes in the source code, I did not bother upgrading.) Indeed, the
trivial stuff works fine in 24.3. Sorry for misrepresentation!
Now I need to find why I misinterpreted the source code.
> (This is limited to GUI sessions,
> since Unicode support in Windows console applications sucks big time,
> so much so that I consider it a waste of time and effort to support
> that in text mode.)
The only thing which sucks is impossibility to find whether a given
keypress is a part of a character input sequence (a deadkey). I need
to read the source code more to find out whether this is actually
processed in Emacs.
>> In addition to 8-bitness, Emacs also suffers from
>> check-for-specials-first syndrome…
> Not sure what is this about; please elaborate.
The long explanation is in the Web document I quoted
(UI::KeyboardLayout below). The short one: if I press
SuperDuper-RightArrow on the keyboard (here SuperDuper is a modifier
key), and the keyboard layout defines this combination to deliver a
character, this keypress should NOT be handled to the standard Emacs
keypress interpreter (which would most probably interpret it as just
RightArrow, ignoring the SuperDuper modifier).
(I would just define a [WithCharacter] event (similar to [menubar])
[which may “take parameters”], and would attach the keypress and
the character it delivers as two parameters. The standard binding
for WithCharacter event should be to ignore the keypress, while
inserting the character. The users would be able to override
this.)
Example: with izKeys keyboards, press AppMenu-RightArrow. This should
insert →, but it acts the same as RightArrow. (The layouts are on
http://k.ilyaz.org/windows
)
>> http://search.cpan.org/~ilyaz/UI-KeyboardLayout/lib/UI/KeyboardLayout.pm#Can_an_application_on_Windows_accept_keyboard_events?_Part_I:_insert_only
>> and 3 following parts).
>> P.P.S. The last time I inspected the source code of Emacs was several
>> months ago; I could not post before, so maybe my info is
>> obsolete now.
>
> What version did you look in?
24.3 (but as I said, apparently, I misread the code).
Thanks and sorry,
Ilya
next prev parent reply other threads:[~2014-03-28 14:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 15:40 Unicode input on Windows Emacs: any plans? Ilya Zakharevich
2014-03-25 16:25 ` Eli Zaretskii
2014-03-25 18:16 ` Eli Zaretskii
[not found] ` <mailman.18190.1395771430.10748.help-gnu-emacs@gnu.org>
2014-03-28 13:50 ` Ilya Zakharevich
2014-03-28 14:17 ` Ilya Zakharevich
2014-03-28 17:31 ` Eli Zaretskii
[not found] ` <mailman.18437.1396027924.10748.help-gnu-emacs@gnu.org>
2014-03-28 21:57 ` Ilya Zakharevich
2014-03-29 7:03 ` Eli Zaretskii
[not found] ` <mailman.18472.1396076654.10748.help-gnu-emacs@gnu.org>
2014-03-29 14:28 ` Ilya Zakharevich
[not found] ` <mailman.18175.1395766786.10748.help-gnu-emacs@gnu.org>
2014-03-28 14:15 ` Ilya Zakharevich [this message]
2014-03-28 15:39 ` Ilya Zakharevich
2014-03-28 17:38 ` Eli Zaretskii
[not found] ` <mailman.18438.1396028301.10748.help-gnu-emacs@gnu.org>
2014-03-28 22:08 ` Ilya Zakharevich
2014-03-29 7:06 ` Eli Zaretskii
2014-03-28 22:12 ` Ilya Zakharevich
2014-03-29 7:09 ` Eli Zaretskii
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='lh4058$fcp$1@dont-email.me' \
--to=nospam-abuse@ilyaz.org \
--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).