From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47441 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: Arabic typesetting in Plain TeX over LuaTeX Date: Sun, 15 Feb 2009 12:06:31 +0200 Message-ID: <20090215100631.GA21216@khaled-laptop> References: <598a61650902121917l2037bb35ue16c4ad340cc39e9@mail.gmail.com> <598a61650902142320v6b52186cm671a6464c86e3e8c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0317937103==" X-Trace: ger.gmane.org 1234692563 5039 80.91.229.12 (15 Feb 2009 10:09:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2009 10:09:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 15 11:10:38 2009 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 1LYdxN-0007gI-7n for gctc-ntg-context-518@m.gmane.org; Sun, 15 Feb 2009 11:10:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 61AA01FB14; Sun, 15 Feb 2009 11:09:15 +0100 (CET) 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 20115-01-5; Sun, 15 Feb 2009 11:07:58 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D0921FB64; Sun, 15 Feb 2009 11:07:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 925861FB4E for ; Sun, 15 Feb 2009 11:07:56 +0100 (CET) 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 20115-01-4 for ; Sun, 15 Feb 2009 11:07:15 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 51CC71FB14 for ; Sun, 15 Feb 2009 11:06:40 +0100 (CET) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.145]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1FA6cAh010225 for ; Sun, 15 Feb 2009 11:06:39 +0100 Original-Received: by qw-out-1920.google.com with SMTP id 14so560499qwa.38 for ; Sun, 15 Feb 2009 02:06:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=Q5Ggtz2JyI5rfRH/qmah3jwMLL0KZgpHOPiAYOAGczg=; b=hs8dZIjiWoYbQTW4vkZ72ZrzuJXQn/hUY+rxTTw/FAz6Z6X1SVyr9ScoOMiD9g2bpN rjUp0K+iJ96aF/Oxk1rJh/pCnJJV2KifSWKdIuw1e3C5JUmWr82A5LVgyJmIt3reEMSq rANii8omNj/ZF+/B02okQlq6jkumra6JeJPao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=oZP2fhBOshCtoZiye91LWzFCRXjrqLhwfxNFeXz/zpHOBrQzSvPcFbfZaTLflapHxn Sc5D/WaaYzFtKDcd+5LSYg7Boix2QIKyd2RHVkQ4XRt2+0V0+Mx4Hr2XeMyepZw0SM2I UtDyoWUV/qSVNFXM2uti2phPr47lpLdpWKON8= Original-Received: by 10.224.74.74 with SMTP id t10mr1873657qaj.333.1234692398009; Sun, 15 Feb 2009 02:06:38 -0800 (PST) Original-Received: from localhost ([41.237.35.38]) by mx.google.com with ESMTPS id 9sm567225yws.15.2009.02.15.02.06.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 15 Feb 2009 02:06:37 -0800 (PST) In-Reply-To: <598a61650902142320v6b52186cm671a6464c86e3e8c@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.92.145; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 180124717 - b25ebe3fd252 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47441 Archived-At: --===============0317937103== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 15, 2009 at 06:20:08PM +1100, Ilda Khaki wrote: > This is a sample file, I am looking for. >=20 > %%%%%%%%%%%%%%%%%%%%%%%%%%%%% > \pagedir TRT \bodydir TRT \textdir TRT \pardir TRT > \font\test=3Dzar.ttf scaled\magstep0 >=20 > =D9=87=D9=84 =D8=A7=D9=86=D8=AA =DA=A9=DB=8C=D9=82=DA=A9=D8=9F > \end > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >=20 > But I do not know how to define the font so that Arabic alphabets are not > isolated. If you really want to use Plain TeX with LuaTeX, the only viable option you have now is to process your document with context thus enjoying ConTeXt's OpenType layout until there is an independent code that can be used in Plain TeX format. (BTW, your example won't work with Plain LuaTeX since it doesn't load TTF fonts directly, you must be using context if you see un-joined Arabic text). A minimal example, would be: %%%%%%%%%%%%%% \pagedir TRT \bodydir TRT \textdir TRT \pardir TRT \definefontfeature[fea] [mode=3Dnode,language=3Ddflt,script=3Darab, isol=3Dyes,init=3Dyes,medi=3Dyes,fina=3Dyes, liga=3Dyes,rlig=3Dyes,mark=3Dyes,mkmk=3Dyes] \font\test=3Dzara*fea scaled\magstep0\test =D9=87=D9=84 =D8=A7=D9=86=D8=AA =DA=A9=DB=8C=D9=82=DA=A9=D8=9F \end %%%%%%%%%%%%%%% The \definefontfeature defines a font feature that allows turning on/off various layout features of the selected font, assuming that the font contain OpenType layout tables. Regards, Khaled --=20 Khaled Hosny Arabic localizer and member of Arabeyes.org team --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmX6SYACgkQRoqITGOuyPI1zwCeNiinYQtb+eWiDd3Xi61qrlLf 3EwAn3qj8+/pEeImv6858P1Q9KDCQwKn =rC2K -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- --===============0317937103== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0317937103==--