From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Composing Hebrew diacriticals Date: Fri, 14 May 2010 17:10:33 +0900 Message-ID: References: <83mxwlw2c0.fsf@gnu.org> <83eihojc1z.fsf@gnu.org> <83pr12pfw6.fsf@gnu.org> <83fx1xowfj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1273824668 3144 80.91.229.12 (14 May 2010 08:11:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 May 2010 08:11:08 +0000 (UTC) Cc: eliz@gnu.org, yair.f.lists@gmail.com, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 14 10:11:03 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OCpz4-0000qC-52 for ged-emacs-devel@m.gmane.org; Fri, 14 May 2010 10:11:02 +0200 Original-Received: from localhost ([127.0.0.1]:36691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCpz2-0007qD-G7 for ged-emacs-devel@m.gmane.org; Fri, 14 May 2010 04:11:00 -0400 Original-Received: from [140.186.70.92] (port=57244 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCpyq-0007lr-8c for emacs-devel@gnu.org; Fri, 14 May 2010 04:10:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCpyp-00083u-3T for emacs-devel@gnu.org; Fri, 14 May 2010 04:10:48 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:62798) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCpyj-000828-K8; Fri, 14 May 2010 04:10:42 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o4E8AYb0011979; Fri, 14 May 2010 17:10:34 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o4E8AYn1027956; Fri, 14 May 2010 17:10:34 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id o4E8AXe8021847; Fri, 14 May 2010 17:10:33 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1OCpyb-0002Sq-MK; Fri, 14 May 2010 17:10:33 +0900 In-Reply-To: (message from Kenichi Handa on Thu, 13 May 2010 09:42:50 +0900) X-detected-operating-system: by eggs.gnu.org: Solaris 9 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:124759 Archived-At: --=-=-= In article , Kenichi Handa writes: > Ok, then, as soon as I conclude that at least the displaying > looks correct, I'll commit my new code without testing it > against cursor positioning. I've just committed a fix. Eli, please check the comments of set_iterator_to_next, and verify that I'm doing the right thing. I have not yet committed proper codes for Hebrew composition. I'm now testing with this simple version. (let ((pattern "[\u05D0-\u05F2][\u0591-\u05BF\u05C1-\u05C5\u05C7]+")) (set-char-table-range composition-function-table '(#x591 . #x5C7) (list (vector pattern 1 'font-shape-gstring) ["[\u0591-\u05C7]" 0 font-shape-gstring])) (set-char-table-range composition-function-table #x5C0 nil) (set-char-table-range composition-function-table #x5C6 nil)) (set-fontset-font t 'hebrew '("dejavu sans" . "unicode-bmp")) On GNU/Linux, you have to build Emacs with libotf and m17n-flt libraries, and having the attached file in ~/.m17n.d/HEBR-FF.flt. --- Kenichi Handa handa@m17n.org --=-=-= Content-Disposition: inline; filename=HEBR-FF.flt Content-Description: HEBR-FF.flt ;; HEBR-FF.flt -- Font Layout Table for Hebrew OTF font ;; Copyright (C) 2010 AIST (H15PRO112) ;; See the end for copying conditions. (font layouter hebr-ff nil (font (nil nil unicode-bmp) :otf=hebr+mark)) (category (0x0591 0x05BF ?h) (0x05C1 0x05C5 ?h) (0x05C7 ?h) (0x05D0 0x05F2 ?H)) (generator (0 (cond ("Hhh*" < :otf=hebr=ccmp+mark >) ("h" [ = ]) ("." =)))) ;; Copyright (C) 2010 ;; National Institute of Advanced Industrial Science and Technology (AIST) ;; Registration Number H15PRO112 ;; This file is part of the m17n database; a sub-part of the m17n ;; library. ;; The m17n library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License ;; as published by the Free Software Foundation; either version 2.1 of ;; the License, or (at your option) any later version. ;; The m17n library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. ;; You should have received a copy of the GNU Lesser General Public ;; License along with the m17n library; if not, write to the Free ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;; Local Variables: ;; mode: lisp ;; End: --=-=-=--