From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105429: New function `string-mark-left-to-right' for handling LRMs. Date: Wed, 17 Aug 2011 17:12:16 -0400 Message-ID: <877h6bpwsv.fsf@stupidchicken.com> References: <87lius33lj.fsf@m17n.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313619665 4334 80.91.229.12 (17 Aug 2011 22:21:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2011 22:21:05 +0000 (UTC) Cc: Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 18 00:21:01 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QtoTs-0004Q9-Oh for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2011 00:21:00 +0200 Original-Received: from localhost ([::1]:38861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtoTs-00064M-6Y for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2011 18:21:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtnPe-00085g-4N for emacs-devel@gnu.org; Wed, 17 Aug 2011 17:12:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtnPc-00041W-Mz for emacs-devel@gnu.org; Wed, 17 Aug 2011 17:12:33 -0400 Original-Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]:36496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtnPS-0003ty-E8; Wed, 17 Aug 2011 17:12:22 -0400 Original-Received: from furball (dhcp-128-36-225-145.central.yale.edu [128.36.225.145]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7HLCGNV031380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 17 Aug 2011 17:12:16 -0400 In-Reply-To: <87lius33lj.fsf@m17n.org> (Kenichi Handa's message of "Wed, 17 Aug 2011 16:21:44 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.144 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143382 Archived-At: Kenichi Handa writes: > One more tip: It may be a little bit faster to use a bidi-specific > category table with with-category-table because, in most cases, we can > find a category set for a specific character faster. In a > bidi-specific category table, most characters (e.g. all han > characters) will have the same category set and thus the set is > recorded for a group of characters. Currently, we are using this only for string-mark-left-to-right, and performance does not seem to be a problem for that usage. Also, we only need the "strong R" category. We could add the "strong L" category for symmetry, but I don't see the need to add the other bidi categories until they are called for. So, I propose adding ?L - Strong-L bidi types (L, LRE, LRO) ?R - Strong-R bidi types (R, AL, RLE, RLO) to the standard category table. Sound fine?