From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48880 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: substitutions: can i send this? Date: Sun, 29 Mar 2009 19:25:29 +0200 Message-ID: <20090329172529.GA3844@khaled-laptop> References: <6faad9f00810070353h170387fm234b5b6a5c75b8c6@mail.gmail.com> <48EBA78A.8040209@wxs.nl> <6faad9f00810081553m5d478338t6d1d0b8a2ca9b5cd@mail.gmail.com> <20090327120503.GA10763@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0166267847==" X-Trace: ger.gmane.org 1238347595 3888 80.91.229.12 (29 Mar 2009 17:26:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2009 17:26:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 29 19:27:51 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 1LnynP-0000YL-Iu for gctc-ntg-context-518@m.gmane.org; Sun, 29 Mar 2009 19:27:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D14E1FC71; Sun, 29 Mar 2009 19:26:18 +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 19082-06; Sun, 29 Mar 2009 19:25:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6EDD91FC14; Sun, 29 Mar 2009 19:25:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15F8F1FC14 for ; Sun, 29 Mar 2009 19:25:45 +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 29348-07 for ; Sun, 29 Mar 2009 19:25:38 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 23D9E1FC07 for ; Sun, 29 Mar 2009 19:25:38 +0200 (CEST) Original-Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.217.180]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2THPaCv007112 for ; Sun, 29 Mar 2009 19:25:37 +0200 Original-Received: by gxk28 with SMTP id 28so3551011gxk.2 for ; Sun, 29 Mar 2009 10:25:36 -0700 (PDT) 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=L3Dp5rasUYSAvQ+MxZnzBgVv05dPcW7dbWPxUTTBKeA=; b=i4dBmBTkORNnwrj0t6MgIZX2rZAeNKIvWtjcavQPlf8KcnJ7HxaW3dDOWx5AcCL/5o 5idk3iNFlCbTXDmfL5Q7YT3naXpac5s/p0JYjhd2Mqd96BhHuCn0jpyC0UycHkxUcRz0 2w2wAxmYaG1KiI+pw32X+e7T26dW42Blwxf90= 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=Tki67O8VJKghlF2JAkcsej7KMHYld1IXtLKaRL5pwRH7c/o5O5boOsywlOBezr1OvC 47Tv7Vw7c/M/wYGuJsA+a0sseezsVmxJ9nTCVeOtO8Rb4kPB9GNQ+h9DUtcRvpgqDnps ou1dIEHXkB2D+xTnNvsOK515xtk6j2LSqYVMM= Original-Received: by 10.90.29.13 with SMTP id c13mr331177agc.45.1238347535935; Sun, 29 Mar 2009 10:25:35 -0700 (PDT) Original-Received: from localhost ([41.237.37.243]) by mx.google.com with ESMTPS id 18sm2466527agb.66.2009.03.29.10.25.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Mar 2009 10:25:35 -0700 (PDT) In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.217.180; 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: 200702210 - e576dcf4efc5 - 20090329 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:48880 Archived-At: --===============0166267847== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 28, 2009 at 07:27:07PM -0600, Idris Samawi Hamid =D8=A7=D8=AF= =D8=B1=D9=8A=D8=B3 =D8=B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7=D9=85=D8=AF = wrote: > On Fri, 27 Mar 2009 06:05:03 -0600, Khaled Hosny > wrote: > If it's not so complex, have you considered overloading font features with > fea files? Now that Adobe has (finally!) completed a major overhaul of the > spec, including the features neeeded for arabic, that's an option. Yes, it is an option, but not for complex operations as you know, and also font dependant (not all fonts use Adobe glyph names etc.) > But for your more complex needs, see the m-translate module. Maybe that > can be developed further? Note that Hans has pointed out that this is NOT > a core module and that it is preferable to fix the source beforehand. That module shows exactly the problem I mentioned in my earlier message, it processes the whole input file not only the text buffers that will be actually typesetted, so If I've an \Idris macro it'll get replaced as well, or I've to parse the file myself which isn't really an option. OTP fits nicely in this, but it isn't as powerful as lua, and there seem not to be much interest in maintaining it in the future. I think, being able to process the to-be-typesetted text in lua is desirable and have many use cases. Now we have callbacks for input buffer, which is not very handy when you need to handle only the textual material without messing with TeX commands and macros, and callbacks for token and node list, which make very complex what is otherwise simple task, like 1st -> 1\high{st} conversion, etc. Regards, Khaled --=20 Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer --pf9I7BMVVzbSWLtt 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) iEYEARECAAYFAknPrwkACgkQRoqITGOuyPLOIgCcD1QGotPpgtSoIECflGKDDv+b kHgAn31C0xCFIOgglWrPoPNaabO3bpdp =xejS -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt-- --===============0166267847== 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 ___________________________________________________________________________________ --===============0166267847==--