From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to recognize keyboard insertion? Date: Mon, 02 Nov 2009 21:02:05 +0200 Message-ID: <83y6mobviq.fsf@gnu.org> References: <83vdhvd096.fsf@gnu.org> <4AEC6CC5.3010009@harpegolden.net> <83skczcwes.fsf@gnu.org> <837huac8gg.fsf@gnu.org> <200911021449.nA2EnkN7007964@beta.mvs.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1257188582 2073 80.91.229.12 (2 Nov 2009 19:03:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 19:03:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: ehud@unix.mvs.co.il Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 02 20:02:54 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 1N52B2-0006hN-Ep for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 20:02:52 +0100 Original-Received: from localhost ([127.0.0.1]:43412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N52B2-0003VI-2L for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 14:02:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N52Au-0003Ua-SE for emacs-devel@gnu.org; Mon, 02 Nov 2009 14:02:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N52Ap-0003TN-Sb for emacs-devel@gnu.org; Mon, 02 Nov 2009 14:02:44 -0500 Original-Received: from [199.232.76.173] (port=35734 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N52Ap-0003TK-Q0 for emacs-devel@gnu.org; Mon, 02 Nov 2009 14:02:39 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:64524) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N52Ap-0003jZ-5c for emacs-devel@gnu.org; Mon, 02 Nov 2009 14:02:39 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0KSH00000WUHIP00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Mon, 02 Nov 2009 21:02:02 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KSH00J6CWVDJWF0@a-mtaout23.012.net.il>; Mon, 02 Nov 2009 21:02:02 +0200 (IST) In-reply-to: <200911021449.nA2EnkN7007964@beta.mvs.co.il> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:116584 Archived-At: > Date: Mon, 2 Nov 2009 16:49:46 +0200 > From: "Ehud Karni" > Cc: emacs-devel@gnu.org > > 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. I tend to agree. The automatic mirroring is not 100% correct, but it's probably right 80% of the time, and the rest could be fixed by introducing a command to mirror the character at point. > 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). Yes, that's exactly one manifestation of why the automatic mirroring is wrong: it assumes too much about the application which will get this input.