From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81096 Path: news.gmane.org!not-for-mail From: =?utf-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMgICDYs9mF2KfZiNmKIA==?= =?utf-8?B?2K3Yp9mF2K8=?= Newsgroups: gmane.comp.tex.context Subject: setups within typescripts: can it be done? Date: Mon, 11 Mar 2013 10:51:00 -0600 Organization: csu Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363020738 2737 80.91.229.3 (11 Mar 2013 16:52:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Mar 2013 16:52:18 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 11 17:52:43 2013 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 1UF5xo-0003il-2E for gctc-ntg-context-518@m.gmane.org; Mon, 11 Mar 2013 17:52:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3DC28101F6; Mon, 11 Mar 2013 17:52:17 +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 NQC9JjcRvBeG; Mon, 11 Mar 2013 17:52:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E1BCA101E8; Mon, 11 Mar 2013 17:52:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 72F08101E8 for ; Mon, 11 Mar 2013 17:52:12 +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 KgGTjlWKvdKs for ; Mon, 11 Mar 2013 17:52:06 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id ED796101E7 for ; Mon, 11 Mar 2013 17:52:05 +0100 (CET) Original-Received: from erie.ACNS.ColoState.EDU (erie.acns.colostate.edu [129.82.100.38]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2BGq2P4022228 for ; Mon, 11 Mar 2013 17:52:04 +0100 Original-Received: from jansen.ColoState.EDU (jansen.acns.colostate.edu [129.82.100.132]) by erie.ACNS.ColoState.EDU (8.13.8/8.12.11) with ESMTP id r2BGpuCj008445 for ; Mon, 11 Mar 2013 10:51:56 -0600 Original-Received: from ishamid-pc ([184.21.117.108]) (authenticated bits=0) by jansen.ColoState.EDU (8.13.1/8.13.1) with ESMTP id r2BGphqX021317 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 11 Mar 2013 10:51:54 -0600 User-Agent: Opera Mail/12.14 (Win32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327, 1.0.431, 0.0.0000 definitions=2013-03-11_03:2013-03-08,2013-03-11,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1211240000 definitions=main-1303110119 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.82.100.38; country=US; region=CO; city=Fort Collins; postalcode=80523; latitude=40.4555; longitude=-105.4648; metrocode=751; areacode=970; http://maps.google.com/maps?q=40.4555,-105.4648&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08JagQ3ov - 3587cd413e0c - 20130311 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81096 Archived-At: Dear gang, Here is the situation: For an upcoming book project I may use a set of proprietary fonts whose license that does not allow modification even for personal, private use. Some characters I need are absent, but the components I need are there (macrons, dots, etc). So I can conceivably use \defineactivecharacter to map each needed unicode char to a \def made of glyph components in the font. Now in a typescript we have different fonts: Each individual font needs its own setup in terms of \defineactivecharacter. So the final typeface will be able to associate each individual font with its associated setup. So here's my idea: ============== \startsetups font1 \defineactivecharacter b blah1 \stopsetups \startsetups font2 \defineactivecharacter b blah2 \stopsetups \starttypescript [serif] [name] \definefontsynonym [MyFont1][name:SuperFontRgular][features=myfeatures,fallbacks=myfallback,setups=font1] \definefontsynonym [MyFont2][name:SuperFontItalic][features=myfeatures,fallbacks=myfallback,setups=font2] \stoptypescript =============== Is this doable? If not is there another way? If doable, is there a better way? If this is totally undoable, then here is another approach: Is there a way in mkiv to make a definition that can translate the following: ========== If font1 is active use def1 If font2 is active use def2 : Else \relax ========== If not, are there any other ideas? Thanks in advance for any hints and guidance. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ 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 ___________________________________________________________________________________