From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74781 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Font goodies color schemes by Unicode number Date: Wed, 29 Feb 2012 15:57:07 +0200 Message-ID: <20120229135707.GA8802@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="VS++wcV0S1rZb1Fb" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1330523871 19064 80.91.229.3 (29 Feb 2012 13:57:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Feb 2012 13:57:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 29 14:57:49 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S2k2P-00083F-8d for gctc-ntg-context-518@m.gmane.org; Wed, 29 Feb 2012 14:57:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21BB2CB26D; Wed, 29 Feb 2012 14:57:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id h8p11SjKeWPw; Wed, 29 Feb 2012 14:57:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6CBACB23F; Wed, 29 Feb 2012 14:57:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE3D1CB23F for ; Wed, 29 Feb 2012 14:57:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Zw42vnJTp6FZ for ; Wed, 29 Feb 2012 14:57:19 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id C67F5CB20F for ; Wed, 29 Feb 2012 14:57:19 +0100 (CET) Original-Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com [74.125.82.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1TDvIdK029750 for ; Wed, 29 Feb 2012 14:57:19 +0100 Original-Received: by wgbds1 with SMTP id ds1so2939554wgb.2 for ; Wed, 29 Feb 2012 05:57:18 -0800 (PST) Received-SPF: pass (google.com: domain of dr.khaled.hosny@gmail.com designates 10.180.92.73 as permitted sender) client-ip=10.180.92.73; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dr.khaled.hosny@gmail.com designates 10.180.92.73 as permitted sender) smtp.mail=dr.khaled.hosny@gmail.com; dkim=pass header.i=dr.khaled.hosny@gmail.com Original-Received: from mr.google.com ([10.180.92.73]) by 10.180.92.73 with SMTP id ck9mr1165585wib.2.1330523838649 (num_hops = 1); Wed, 29 Feb 2012 05:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; bh=jOlW9xI0JXTCUolbqcngoY0EjpKgwrJbjXNbdFit94I=; b=FEonBKWroP2LDn6AtvTRiL15URen5t5jhtbc/hx/N5OTbi99GHCefxy6Ox7Z61siXr l1qx+l8s9hVGoOHDaE1W4yC82iOxKiCCnQJpz14Q0EqyfcVlJiLoQcDzFmQwX++g8TmQ xH00DnX8kjX1B5ZnInwdtR4kMdQzqxnlxQNes= Original-Received: by 10.180.92.73 with SMTP id ck9mr945488wib.2.1330523838607; Wed, 29 Feb 2012 05:57:18 -0800 (PST) Original-Received: from localhost ([217.55.99.77]) by mx.google.com with ESMTPS id d8sm24935676wia.11.2012.02.29.05.57.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 05:57:17 -0800 (PST) Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.41; 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: 0HGDNVi5p - 5542a2200cd7 - 20120229 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74781 Archived-At: --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi all, Was exploring font goodies and color schemes and so far works great, very nice feature, thanks Hans. Now I've to small questions/feature requests: Can color schemes be defined using Unicode code points, e.g.: { 0x064E, 0x064F } instead of glyph names (e.g. I'd like to have a font independent goody to color Arabic combining marks and no glyph substitution is involved so Unicode code points should work for most fonts). Second question, can it be (ab)used to color a whole font with the same color (can be handy sometimes), e.g. using a special wildcard or something: { "*" }. Regards, Khaled --VS++wcV0S1rZb1Fb Content-Type: text/x-tex; charset=utf-8 Content-Disposition: attachment; filename="amiri.tex" Content-Transfer-Encoding: quoted-printable \definefontfeature[arabic][arabic][goodies=3Damiri, colorscheme=3Ddefault= ] \definecolor[colorscheme:1:1][r=3D1] \definecolor[colorscheme:1:2][g=3D1] \definecolor[colorscheme:1:3][b=3D1] \definecolor[colorscheme:2:1][c=3D.55] \definecolor[colorscheme:2:2][m=3D.55] \definecolor[colorscheme:2:3][y=3D.55] \setupalign[r2l] \starttext \definedfont[name:amiri*arabic at 36pt] \setfontcolorscheme[1] =D8=B6=D9=8E=D8=B1=D9=8E=D8=A8=D9=8E =D8=B6=D9=8F=D8=B1=D9=90=D8=A8=D9=8E= =D8=B6=D9=8E=D8=B1=D9=92=D8=A8=D9=8B=D8=A7 \setfontcolorscheme[2] =D8=B6=D9=8E=D8=B1=D9=8E=D8=A8=D9=8E =D8=B6=D9=8F=D8=B1=D9=90=D8=A8=D9=8E= =D8=B6=D9=8E=D8=B1=D9=92=D8=A8=D9=8B=D8=A7 \stoptext --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="amiri.lfg" return { name = "Amiri", version = "1.00", comment = "Goodies that complement the Amiri font.", author = "Khaled Hosny", colorschemes = { default = { [1] = { "uni064E", "uni064B", }, [2] = { "uni064F", "uni064C", }, [3] = { "uni0650", "uni064D", }, } } } --VS++wcV0S1rZb1Fb 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --VS++wcV0S1rZb1Fb--