From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: Unicode input on Windows Emacs: any plans? Date: Fri, 28 Mar 2014 14:15:04 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1396016118 936 80.91.229.3 (28 Mar 2014 14:15:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 14:15:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 15:15:27 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WTXZ0-0007Yw-Ln for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 15:15:18 +0100 Original-Received: from localhost ([::1]:33839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTXZ0-0002tY-6M for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 10:15:18 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 65 Injection-Date: Fri, 28 Mar 2014 14:15:04 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="06ab0fed6ae52f560e1f8417db1ec81f"; logging-data="15769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/JHVIx0rKhQepDcdkjthh" User-Agent: slrn/pre1.0.0-18 (Linux) Cancel-Lock: sha1:93MAF3NW2lxUt6PRZCyGZyauRj8= Original-Xref: usenet.stanford.edu gnu.emacs.help:204541 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96810 Archived-At: On 2014-03-25, Eli Zaretskii wrote: >> From: Ilya Zakharevich >> 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