From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42635 Path: news.gmane.org!not-for-mail From: =?utf-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrQ==?= =?utf-8?B?2KfZhdiv?= Newsgroups: gmane.comp.tex.context Subject: Re: Problem in arabic script Date: Sun, 20 Jul 2008 11:48:19 -0600 Organization: Colorado State University Message-ID: References: <6048c4180807191613o61289690ra47a6bb3998fbbd0@mail.gmail.com> <6048c4180807200720t15e9cfabte904a59c83693772@mail.gmail.com> <6048c4180807200915t3a64772ag4d30ae302d50ac61@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216576387 21538 80.91.229.12 (20 Jul 2008 17:53:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2008 17:53:07 +0000 (UTC) Cc: Hans Hagen To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 20 19:53:54 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KKd6X-0000Nz-6Y for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jul 2008 19:53:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 597441FDE0; Sun, 20 Jul 2008 19:52:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26888-03-4; Sun, 20 Jul 2008 19:52:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 078501FDC7; Sun, 20 Jul 2008 19:52:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 274201FDC7 for ; Sun, 20 Jul 2008 19:51:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22501-04-6 for ; Sun, 20 Jul 2008 19:51:13 +0200 (CEST) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id 169201FDA2 for ; Sun, 20 Jul 2008 19:51:12 +0200 (CEST) Original-Received: (qmail 20673 invoked by uid 1006); 20 Jul 2008 17:51:11 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.1/100.0):. Processed in 0.661964 secs); 20 Jul 2008 17:51:11 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.23) by -v with SMTP; 20 Jul 2008 17:51:10 -0000 Original-Received: (qmail 29967 invoked from network); 20 Jul 2008 17:51:08 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (ishamid@75.104.82.252) by -v with SMTP; 20 Jul 2008 17:51:08 -0000 In-Reply-To: <6048c4180807200915t3a64772ag4d30ae302d50ac61@mail.gmail.com> User-Agent: Opera Mail/9.50 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42635 Archived-At: Dear Mehdi, On Sun, 20 Jul 2008 10:15:09 -0600, Mehdi Omidali wrote: >>> I use context+luatex to write farsi texts. A problem that I have been >>> faced is that some characters (those that are in farsi and not in >>> arabic like "Gaf", "Kaf", "Ya" and "Che") are shown only in isolated >>> form. How can I solve this problem. I use ubuntu and latest context >>> and luatex. I have added support for farsi in font-otf.lua. Ultimately we need to add all unicode chars that submit to contextual analysis, like Urdu, Pashto etc. Until Hans gets back, do the following: open font-otf.lua go to line 4660 replace that definition with this one: local isol_fina_medi_init = { [0x0626] = true, [0x0628] = true, [0x0629] = true, [0x062A] = true, [0x062B] = true, [0x062C] = true, [0x062D] = true, [0x062E] = true, [0x0633] = true, [0x0634] = true, [0x0635] = true, [0x0636] = true, [0x0637] = true, [0x0638] = true, [0x0639] = true, [0x063A] = true, [0x0640] = true, -- tadwil [0x0641] = true, [0x0642] = true, [0x0643] = true, [0x0644] = true, [0x0645] = true, [0x0646] = true, [0x0647] = true, [0x0649] = true, [0x064A] = true, [0x067E] = true, [0x0686] = true, [0x0698] = true, [0x06A9] = true, [0x06AF] = true, [0x06CC] = true, [zwj] = true, } save and regenerate the format. try your file again. Works here. Note that artro.ttf does not seem to have the correct opentype info for 06CC, so it's not processed correctly. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________