From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47650 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: Making necessary OpenType features on by default Date: Mon, 23 Feb 2009 18:56:05 +0200 Message-ID: <20090223165605.GA7160@khaled-laptop> References: <20090220183922.GA10583@khaled-laptop> <499EFD12.1080808@wxs.nl> <32A3D493-4371-459B-A2DA-3B98494BD641@gmail.com> <20090222210356.GB16381@khaled-laptop> <49A2802A.3030704@wxs.nl> <20090223120906.GB7439@khaled-laptop> <49A29667.4090002@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1651900095==" X-Trace: ger.gmane.org 1235408297 2016 80.91.229.12 (23 Feb 2009 16:58:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 16:58:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 23 17:59:32 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 1Lbe9N-00060q-Lw for gctc-ntg-context-518@m.gmane.org; Mon, 23 Feb 2009 17:59:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 314ED1FC32; Mon, 23 Feb 2009 17:58:03 +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 02933-02-4; Mon, 23 Feb 2009 17:56:54 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 122041FC07; Mon, 23 Feb 2009 17:56:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77D5C1FC07 for ; Mon, 23 Feb 2009 17:56:52 +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 01447-04-14 for ; Mon, 23 Feb 2009 17:56:14 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id BC5AD1FBD4 for ; Mon, 23 Feb 2009 17:56:14 +0100 (CET) Original-Received: from mail-qy0-f20.google.com (mail-qy0-f20.google.com [209.85.221.20]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1NGuC1a004331 for ; Mon, 23 Feb 2009 17:56:13 +0100 Original-Received: by qyk13 with SMTP id 13so2813121qyk.2 for ; Mon, 23 Feb 2009 08:56:12 -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=b/uVqx/vUprMFSRtVvxhbfzDb/m/s7qrdHI52wVSVs4=; b=l2LSrm/PvQ96i4VTD2lhBrtegHjiyoABuu8M9Wp8VpCKnofZVnuyKJJQYrwwSxbI7s GpHd59H0/yooF8gHHvlSv+4ctfUFTOJeefpoN4+/6zY7BYeELIMg+jFTp7nh7fagnQbM zld2g6RRFPbHkeKGNgRCMp7A2VMvYmByMl0cY= 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=Fs+NbhTDsQon4cmPLKPbvl8P/Sl8QP9pc/mj4yZDdE6hGhPeKdVAd6vtL+ilVnGZxh 3BziMbSKAZ6QSqjiZJ62N4LxGttj/+9Q2C9PfJlslVqYTxWRZ1rWaQmO3Ku+EF9YPQ6B JLP20ibK2d/OVEFAokrSfZ7d0Abi+jKVk/Rk4= Original-Received: by 10.224.14.197 with SMTP id h5mr6381754qaa.10.1235408172374; Mon, 23 Feb 2009 08:56:12 -0800 (PST) Original-Received: from localhost ([41.237.37.90]) by mx.google.com with ESMTPS id 7sm8416775qwf.40.2009.02.23.08.56.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Feb 2009 08:56:11 -0800 (PST) In-Reply-To: <49A29667.4090002@wxs.nl> 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.221.20; 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: 184057641 - 590c733ff01e X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:47650 Archived-At: --===============1651900095== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline --AhhlLboLdkugWU4S Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 23, 2009 at 01:28:23PM +0100, Hans Hagen wrote: > Thomas A. Schmitz wrote: >> >> On Feb 23, 2009, at 1:09 PM, Khaled Hosny wrote: >> >>> For scaling, we can specify a size, some thing like: >>> >>> \setupbodyfont[arabic=3Dfoo,20pt,latin=3Dbar,18pt] >>> >>> or so. >> >> I don't know Arabic, but I've done similar things for Greek, and that=20 >> is not a good interface. You want a scaling factor, so users won't have= =20 >> to worry about scaling in footnotes, titles, etc., an absolute size is= =20 >> not a viable alternative. > > indeed. > > btw, i have no problem with a bunch of predefined combinations (using =20 > the fallbacks mechanism) so that users can quickly initialize a typeface > > \usetypescript[fancyarabicwithgreekandtraditionallatin] > \setupbodyfont[fancyarabicwithgreekandtraditionallatin,13pt] > > or so, collected in some type-* file, but that's as far as we can go; we = =20 > need to guard at least some minimal quality > > a quick start but with bad output is not the way to go I was about to forget why I didn't like font fallbacks in the first place, the current font fallback mechanism assigns fonts per Unicode characters, this is fine until we come to common characters like numbers or brackets: you can only assign it to one font, which isn't usually desirable. Think of this sentence: =D8=B9=D8=B1=D8=A8=D9=8A 1234 =D8=B9=D8=B1=D8=A8=D9=8A (English 1234 Englis= h (English) English) =D8=B9=D8=B1=D8=A8=D9=8A. Here, the outer most parentheses and first numbers should use the same font of the Arabic text, while the inner ones should use the font of the English text, font fallback can't do this. Instead we need to segment the text per script and apply fonts on whole segments, the Unicode Script Property annex describes a way to handle this, see http://www.unicode.org/reports/tr24/#Script_Names_in_Rendering. Regards, Khaled --=20 Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer --AhhlLboLdkugWU4S 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) iEYEARECAAYFAkmi1SUACgkQRoqITGOuyPKAzQCfWUv8gN1G3nyOuJedBjcdKuXa NLMAn18rkszb+TbYTNgpeE5z5Q55UjWs =95Xt -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- --===============1651900095== 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 ___________________________________________________________________________________ --===============1651900095==--