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: Adding Tai Tham Script to GNU/Linux Distribution's Version of Emacs Date: Mon, 16 Mar 2015 07:47:34 +0000 Message-ID: <20150316074734.410bd2b6@JRWUBU2> References: 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 1426492090 12706 80.91.229.3 (16 Mar 2015 07:48:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 07:48:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 08:48:01 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 1YXPkj-0000AV-3a for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 08:47:57 +0100 Original-Received: from localhost ([::1]:47739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXPki-0002pP-BC for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 03:47:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXPkW-0002pI-4G for help-gnu-emacs@gnu.org; Mon, 16 Mar 2015 03:47:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXPkQ-00017f-9V for help-gnu-emacs@gnu.org; Mon, 16 Mar 2015 03:47:44 -0400 Original-Received: from know-smtprelay-omc-10.server.virginmedia.net ([80.0.253.74]:57034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXPkP-00017U-Vm for help-gnu-emacs@gnu.org; Mon, 16 Mar 2015 03:47:38 -0400 Original-Received: from JRWUBU2 ([81.103.224.4]) by know-smtprelay-10-imp with bizsmtp id 47nc1q01p06JmVd017nc8C; Mon, 16 Mar 2015 07:47:36 +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=wSHt-UZ5nvzK2j6x1lcA:9 a=CjuIK1q_8ugA:10 In-Reply-To: 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:103182 Archived-At: > Date: Mon, 16 Mar 2015 05:43:07 +0200 > From: Eli Zaretskii > To: help-gnu-emacs@gnu.org > Subject: Re: Adding Tai Tham Script to GNU/Linux Distribution's > Version of Emacs > Message-ID: <83d2491ub8.fsf@gnu.org> > Then what exactly is/was your problem with that script? Your question > said: > > > Is it 'simple' to add complex text layout (CTL) for the Tai Tham > > script on non-Windows systems? > > Emacs does CTL on Unix by using 2 m17l libraries. Here's a citation > from INSTALL: > > * Complex Text Layout support libraries > > On GNU and Unix systems, Emacs needs the optional libraries > "m17n-db", "libm17n-flt", "libotf" ... > But you seem to have these libraries already, so I'm unsure what > exactly is the problem you are having. The primary problem is that m17n currently does not have support for the Tai Tham script, not even at Version 1.7.0. I therefore need to add this to my copy of the m17n database, and, if I do an acceptable job, offer this support for inclusion in the public m17n database. I've added a first attempt to my copy, but I see no evidence that Emacs is attempting to use it. (I've enabled full m17n debugging by setting environment variable MDEBUG_ALL, and get lots of output to the terminal I launch Emacs from, including a record of my Tai Tham shaping rules being read in.) Unfortunately, writing a test bed for m17n does not seem simple - I had hoped to use Emacs as the test bed, as the rest of the system is often the quickest test bed to build. (It's for Emacs that I want m17n support - HarfBuzz provides support for browsers and word processing.) I've asked for advice on purely m17n matters on the m17n help list. > > Might the character categories be relevant? They don't seem to be > > set for Tai Tham characters, though they are set for Tai Viet > > characters, which are slightly younger in Unicode. > Which categories did you have in mind? "Category" is too general a > term here. I meant category as being set by calls of modify-category-entry in characters.el. (The lisp function is defined in file category.c.) The clue is that somehow Emacs knows that text shaping is not needed for a sequence of Thai consonants, and it is also true that it is not needed for a sequence of Tai Tham consonants. However, I don't know where the triggering logic is. It *could* be something like 'invoke shaping if there is a combining character or Indian character present'. I'm not even sure what an 'Indian character' (category codes 'i' and 'I') is. It might merely be a non-ASCII character supported by ISCII. Another clue is that shaping seems to be invoked for lone Tibetan consonants. Richard.