From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#7282: 23.2; [PATCH] Improve text composition by Input Methods on MacOSX. Date: Thu, 28 Oct 2010 09:55:37 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Thu_Oct_28_09:55:37_2010-1" X-Trace: dough.gmane.org 1288228397 19969 80.91.229.12 (28 Oct 2010 01:13:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2010 01:13:17 +0000 (UTC) Cc: 7282@debbugs.gnu.org To: Keitaro Miyazaki Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 28 03:13:15 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBH3K-0005rJ-Sn for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Oct 2010 03:13:15 +0200 Original-Received: from localhost ([127.0.0.1]:33416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBH3K-0004Tj-1y for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 21:13:14 -0400 Original-Received: from [140.186.70.92] (port=39551 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBH3C-0004TY-Al for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2010 21:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBH39-0000fa-TH for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2010 21:13:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBH39-0000fW-QU for bug-gnu-emacs@gnu.org; Wed, 27 Oct 2010 21:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PBGio-0001di-Ju; Wed, 27 Oct 2010 20:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Oct 2010 00:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 7282-submit@debbugs.gnu.org id=B7282.12882270986293 (code B ref 7282); Thu, 28 Oct 2010 00:52:02 +0000 Original-Received: (at 7282) by debbugs.gnu.org; 28 Oct 2010 00:51:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBGiP-0001dS-KR for submit@debbugs.gnu.org; Wed, 27 Oct 2010 20:51:37 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBGiL-0001dN-S1 for 7282@debbugs.gnu.org; Wed, 27 Oct 2010 20:51:35 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 48F5EC0563; Thu, 28 Oct 2010 09:55:38 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 27 Oct 2010 20:52:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41174 Archived-At: --Multipart_Thu_Oct_28_09:55:37_2010-1 Content-Type: text/plain; charset=US-ASCII >>>>> On Wed, 27 Oct 2010 23:56:47 +0900, Keitaro Miyazaki said: > Yes, NSString counts length of string as number of Unicode characters, > and I suppose range is counted in a similar way. > "... The length method returns the total number of Unicode > characters in the string ..." > NSString Class Reference > In this context, "number of Unicode characters" should be read as "number of `unichar' values", where the type `unichar' is of 16-bit width. Actually, it is confusing. Also, selected range handling is not enough for the following case: (activate Kotoeri) a i u e o left left left The first screenshot is for the NS port with your patch, and the second one is for my Mac port (http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg01439.html). YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp --Multipart_Thu_Oct_28_09:55:37_2010-1 Content-Type: image/png Content-Disposition: inline; filename="ns_port.png" Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAFIAAAAdCAYAAAA5IjsiAAAC7mlDQ1BJQ0MgUHJvZmlsZQAAeAGF VM9rE0EU/jZuqdAiCFprDrJ4kCJJWatoRdQ2/RFiawzbH7ZFkGQzSdZuNuvuJrWliOTi0SreRe2h B/+AHnrwZC9KhVpFKN6rKGKhFy3xzW5MtqXqwM5+8943731vdt8ADXLSNPWABOQNx1KiEWlsfEJq /IgAjqIJQTQlVdvsTiQGQYNz+Xvn2HoPgVtWw3v7d7J3rZrStpoHhP1A4Eea2Sqw7xdxClkSAog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JoRyY2VWYTTH7B7kw93kkEe3eFmw1geP6cjevytViWZvbp68IvnwWLHhMkF8D UwrFz7itMpVeWJYi33Ry01Jp79v5ld1SdGk9nawm4by9AKPxDFGu6aw5effVoi8VA+e3zsI3Mlm4 brzo0MF0PPa29XlaKHZGSZR7jSwJ8n7GKZyC/F6mF2Ulsw83Fn1b+Z1q3/rl1LG2qixftzshrXYz YsxICgLDcKz0lLbq+nDy3BucSQ/2Mnh6PvPHf2RS4ebuCNQu24nVHWV0p1IoNm3bYfPy31QDd65m kplTUJGTEeOK67wCQsP749dRQ/GTIvT6UnBFNxMYvzSL9q3FTvSKErIakiAtG9Qndck8YqYNxjnq OUnpG4SVFc77govEBrdgjr2W6Z71qnRmyeffT+NB/H6c3e2r6OVNNfZ21Q3cwKUji/mgQT/8E1Lw b1ieV/qpbjaAs7d34Vl+wApyfQcPcuf2wc3NA09HNyKXH604Dpr2XMO98yvxq/0rqy7co7bqHsuG uOPl5UU772WEHLtDmGOVjWDanWxLJf0PuYHslCRuWDrTw7ONcCv+zpIJs7lsfJ/ew0II8Ci/HGT3 aZagZ+vUMOJ+0dHc9TPGTg3Hw77mJigsPWlbknEM7CN5Q9fELxtRkJGRkWaT/X+bAQEBkhN805+I oiAlqyoOSQKSZ6RkhuIQJaCAFMUiX1RAymcmmqGAFMUiX1RAymcmmqGAFMUiX1RAymcmmqGAFMUi X/wHQyD2olohiPMAAAAASUVORK5CYII= --Multipart_Thu_Oct_28_09:55:37_2010-1 Content-Type: image/png Content-Disposition: inline; filename="mac_port.png" Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAE4AAAAmCAYAAABqDa0qAAAC7mlDQ1BJQ0MgUHJvZmlsZQAAeAGF VM9rE0EU/jZuqdAiCFprDrJ4kCJJWatoRdQ2/RFiawzbH7ZFkGQzSdZuNuvuJrWliOTi0SreRe2h B/+AHnrwZC9KhVpFKN6rKGKhFy3xzW5MtqXqwM5+8943731vdt8ADXLSNPWABOQNx1KiEWl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