From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Wordingham Newsgroups: gmane.emacs.help Subject: Re: Adding Tai Tham Script to GNU/Linux Distribution's Version of Emacs Date: Wed, 18 Mar 2015 21:33:22 +0000 Message-ID: <20150318213322.4e29186b@JRWUBU2> References: <20150316074734.410bd2b6@JRWUBU2> <83zj7czytg.fsf@gnu.org> <20150318082737.1c56a32d@JRWUBU2> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1426714433 8435 80.91.229.3 (18 Mar 2015 21:33:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2015 21:33:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 22:33:44 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YYLax-00045y-2j for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 22:33:43 +0100 Original-Received: from localhost ([::1]:36006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYLaw-0001iQ-3e for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 17:33:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYLak-0001iL-RR for help-gnu-emacs@gnu.org; Wed, 18 Mar 2015 17:33:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYLag-0007iq-El for help-gnu-emacs@gnu.org; Wed, 18 Mar 2015 17:33:30 -0400 Original-Received: from know-smtprelay-omc-10.server.virginmedia.net ([80.0.253.74]:39681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYLag-0007iZ-64 for help-gnu-emacs@gnu.org; Wed, 18 Mar 2015 17:33:26 -0400 Original-Received: from JRWUBU2 ([81.103.224.4]) by know-smtprelay-10-imp with bizsmtp id 59ZQ1q02N06JmVd019ZQCM; Wed, 18 Mar 2015 21:33:25 +0000 X-Originating-IP: [81.103.224.4] X-Spam: 0 X-Authority: v=2.1 cv=dY0O3Bne c=1 sm=1 tr=0 a=pLuj3OkTrmEUIJBpyvkqVg==:117 a=pLuj3OkTrmEUIJBpyvkqVg==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=mDV3o1hIAAAA:8 a=fBOlfRV-UgwdC2_j4bIA:9 a=CjuIK1q_8ugA:10 In-Reply-To: <20150318082737.1c56a32d@JRWUBU2> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.0.253.74 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103204 Archived-At: On Wed, 18 Mar 2015 08:27:37 +0000 Richard Wordingham wrote: > On Mon, 16 Mar 2015 18:34:03 +0200 > Eli Zaretskii wrote: > > > My guess is that you will have to write a tai-tham.el file with > > similar data for Tai Tham, and then load it into Emacs. All the > > rest should "just work". > It's now mostly working, but with some strange anomalies. The problem is that function font-shape-gstring, defined in file font.c, which *appears* to be the correct composition function, does not grok the m17n FLT module, or at least not at Version 1.6.3. A work around appears to be declare all the strings passed to m17n by Emacs as grapheme clusters, which can be done by the special symbols < > in the FLT generator commands. I'm preparing a bug report. Without the < > symbols, the 'composition' of swapping consonant and vowel round to convert from logical and phonetic order to visual order is declared to be a shaper error! I detest grapheme clusters. I refuse to believe that in a Tai language, the users consider every combination of consonant, vowel and tone as a single letter. Indeed, there were howls of outrage when the practical effects of Unicode declaring a Thai preposed vowel plus consonant to be a grapheme cluster struck, and the standard was rapidly reversed. Richard.