From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49095 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Arabic protrosion Date: Mon, 6 Apr 2009 08:40:12 +0200 Message-ID: <20090406064012.GA3984@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2115451887==" X-Trace: ger.gmane.org 1239000111 12076 80.91.229.12 (6 Apr 2009 06:41:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Apr 2009 06:41:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 06 08:43:09 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 1LqiY1-0002nw-PK for gctc-ntg-context-518@m.gmane.org; Mon, 06 Apr 2009 08:43:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 21E831FADC; Mon, 6 Apr 2009 08:41:43 +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 26411-01; Mon, 6 Apr 2009 08:40:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 278DD1FADB; Mon, 6 Apr 2009 08:40:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0DF261FADB for ; Mon, 6 Apr 2009 08:40:43 +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 23379-01-8 for ; Mon, 6 Apr 2009 08:40:35 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 3F19A1FAD7 for ; Mon, 6 Apr 2009 08:40:35 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.242]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n366eREg026423 for ; Mon, 6 Apr 2009 08:40:28 +0200 Original-Received: by rv-out-0708.google.com with SMTP id l33so2469782rvb.14 for ; Sun, 05 Apr 2009 23:40:26 -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:mime-version:content-type:content-disposition:user-agent; bh=IzwSgZMDXkcqHLEzLVRRVOjoM74JnhgZA+t8QmxP2xs=; b=iResnrM4OhoPaNP50egFO+gvVyeiDGjfoz4ViJJOFKoiKmRPbdeYAYexgWxVgCNuWK cRo8nbvI4EYEWKrndhdMRObDA83ubJp6vThKXykuWUYXdTdCxPZ+FRuoA5n6AuM10AG6 lOLdklObJ5pSf26Oh+EMJOADsESsjbIDmRWek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=N7IypFTITiBhL0VLxte09rgKqK+50LW8opehxDz9NsCMJsrsJRp+OMKeq3Mb7sQZ0h gKXxohpkYxeQ2YhyECZBX7Hz2Sm5Rge6d+KbfrGUfM8TAsN+SPg9kD9Kp+suJS6PlaI9 yZd4Ql+nq45Dfl/bOEyz1wj5q6QlBliGhEFDc= Original-Received: by 10.141.33.19 with SMTP id l19mr1255170rvj.209.1239000026542; Sun, 05 Apr 2009 23:40:26 -0700 (PDT) Original-Received: from localhost ([41.237.41.159]) by mx.google.com with ESMTPS id g31sm17162985rvb.27.2009.04.05.23.40.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 05 Apr 2009 23:40:25 -0700 (PDT) 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.198.242; 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: 204301414 - bde14b92609c - 20090406 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:49095 Archived-At: --===============2115451887== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline --mojUlQ0s9EVzWg2t Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The attached patch adds Arabic coma, semicolon, full stop (used in Urdu) and question mark to font-ext.lua for protrusion. Now, combined with glyph expansion, I don't get any overfull boxes. Regards, Khaked --=20 Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer --RnlQjJ0d97Da+TV1 Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="font-ext.lua.diff" Content-Transfer-Encoding: quoted-printable --- font-ext.lua 2009-03-03 11:48:35.000000000 +0200 +++ /home/khaled/font-ext.lua 2009-04-06 08:33:26.000000000 +0200 @@ -134,6 +134,9 @@ [0x2014] =3D { 0, 0.33 }, -- emdash [0x3001] =3D { 0, 1 }, -- ideographic comma =E3=80=81 [0x3002] =3D { 0, 1 }, -- ideographic full stop =E3=80=82 + [0x060C] =3D { 0, 1 }, -- arabic comma =D8=8C + [0x061B] =3D { 0, 1 }, -- arabic semicolon =D8=9B + [0x06D4] =3D { 0, 1 }, -- arabic full stop =DB=94 =20 } =20 @@ -154,6 +157,10 @@ [0x002D] =3D { 0, 0.70 }, -- hyphen [0x2013] =3D { 0, 0.30 }, -- endash [0x2014] =3D { 0, 0.20 }, -- emdash + [0x060C] =3D { 0, 0.70 }, -- arabic comma + [0x061B] =3D { 0, 0.50 }, -- arabic semicolon + [0x06D4] =3D { 0, 0.70 }, -- arabic full stop + [0x061F] =3D { 0, 0.20 }, -- =D8=9F =20 -- todo: left and right quotes: .5 double, .7 single =20 --RnlQjJ0d97Da+TV1-- --mojUlQ0s9EVzWg2t 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) iEYEARECAAYFAknZo8sACgkQRoqITGOuyPL2AgCgjufmI8aeKf9xKaTcBwvEiCC6 V3oAoIAwze8tKo2QLfO6uQwJTGlI6Xnr =xCYH -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t-- --===============2115451887== 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 ___________________________________________________________________________________ --===============2115451887==--