From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: How to recognize keyboard insertion? Date: Mon, 2 Nov 2009 16:49:46 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <200911021449.nA2EnkN7007964@beta.mvs.co.il> References: <83vdhvd096.fsf@gnu.org> <4AEC6CC5.3010009@harpegolden.net> <83skczcwes.fsf@gnu.org> <837huac8gg.fsf@gnu.org> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1257173422 10262 80.91.229.12 (2 Nov 2009 14:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 14:50:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 02 15:50:14 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N4yEV-00086Y-FE for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 15:50:11 +0100 Original-Received: from localhost ([127.0.0.1]:39751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4yEU-00058u-Ec for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 09:50:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4yEO-00057I-9q for emacs-devel@gnu.org; Mon, 02 Nov 2009 09:50:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4yEJ-00051c-64 for emacs-devel@gnu.org; Mon, 02 Nov 2009 09:50:03 -0500 Original-Received: from [199.232.76.173] (port=46474 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4yEJ-00051N-0Z for emacs-devel@gnu.org; Mon, 02 Nov 2009 09:49:59 -0500 Original-Received: from [193.16.147.12] (port=45640 helo=unix.mvs.co.il) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4yEF-000735-J8; Mon, 02 Nov 2009 09:49:56 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.8/8.13.7) with ESMTP id nA2EnmKG019104; Mon, 2 Nov 2009 16:49:48 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.14.1/8.14.1) with ESMTP id nA2EnlAL007967; Mon, 2 Nov 2009 16:49:48 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id nA2EnkN7007964; Mon, 2 Nov 2009 16:49:46 +0200 In-reply-to: <837huac8gg.fsf@gnu.org> (message from Eli Zaretskii on Sun, 01 Nov 2009 22:10:23 +0200) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.109) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116579 Archived-At: On Sun, 01 Nov 2009 22:10:23 Eli Zaretskii wrote: > > Ehud, I'd appreciate your opinion on this matter. I read all the messages in the thread from the beginning. First, I want to remind that UAX#9 only deal with converting logical order to visual order, and not how to create the "Logical" text. I think that we should separate the ordering for display (your code) from getting the input (input method or keyboard layout). It seems that both Microsoft and the Xorg developers decided to use mirroring for Hebrew keyboard (see /usr/share/X11/xkb/symbols/il). So if the user uses an external "input method" (i.e. keyboard map) the 4 pairs - () [] {} <>, are already mirrored. If she prefers to use an Emacs internal input method (like I use with my hebeng.el) the mirroring should be an option. Ehud BTW. The keying of the RTL text and arithmetic expression discussed previously on the thread, Typing (from left to right): "A B C D ( 4 + 5 ) * 9" results in: 9*)4+5(DCBA That is because of parens mirroring (at the keyboard). -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry