From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21321 Path: news.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: re-using ConTeXt typescripts ? Date: Mon, 11 Jul 2005 17:33:27 +0100 Message-ID: <20050711163327.13159@mail.comp.lancs.ac.uk> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121099688 3898 80.91.229.2 (11 Jul 2005 16:34:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2005 16:34:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 11 18:34:46 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ds1Dp-0004sn-43 for gctc-ntg-context-518@m.gmane.org; Mon, 11 Jul 2005 18:33:33 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D9EC6127C2; Mon, 11 Jul 2005 18:33:31 +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 30353-03; Mon, 11 Jul 2005 18:33:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2400B127B7; Mon, 11 Jul 2005 18:33:28 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D560C127B7 for ; Mon, 11 Jul 2005 18:33:26 +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 30352-03-3 for ; Mon, 11 Jul 2005 18:33:25 +0200 (CEST) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id C4959127A1 for ; Mon, 11 Jul 2005 18:33:25 +0200 (CEST) Original-Received: from [194.80.37.193] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id j6BGXO4X026097; Mon, 11 Jul 2005 17:33:25 +0100 (BST) Original-To: "Steffen Wolfrum" , In-Reply-To: X-Mailer: CTM PowerMail version 5.2.1 build 4397 English X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21321 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21321 Hi Steffen, You're pretty close. It's best not to rewrite your old scripts, rather, to make a new type-enc style script to replace your existing [serif] [agaramond][ec] script. This way, when changing engines, it's a simple step of changing the (default, perhaps?) encoding... \starttypescript [serif] [agaramond] [uc] % XeTeX and Unicode is a happy combination \definefontsynonym [AGaramond-Regular] ['AGaramondPro-Regular:mapping=tex-text;+onum'] [encoding=uc] \definefontsynonym [AGaramond-Italic] ['AGaramondPro-Italic:mapping=tex-text;+onum'] [encoding=uc] \definefontsynonym [AGaramond-Bold] ['AGaramondPro-Bold:mapping=tex-text;+onum'] [encoding=uc] \definefontsynonym [AGaramond-BoldItalic] ['AGaramondPro-BoldItalic:mapping=tex-text;+onum'] [encoding=uc] \definefontsynonym [AGaramond-Semibold] ['AGaramondPro-Semibold:mapping=tex-text;+onum'] [encoding=uc] \definefontsynonym [AGaramond-SemiboldItalic] ['AGaramondPro-SemiboldItalic:mapping=tex-text;+onum'] [encoding=uc] \stoptypescript So, as you will know from the XeTeX documentation :), the way of naming a font is enclosed within quotes. The first element is the postscript font name (otfinfo -p or look in FontBook.app), then (optionally) a /I, /B, /BI, or /S for within-family selection, any mapping features, and then other OpenType features. Here I selected the tex-text mapping (to stay consistent with `` --- '' ligatures), and the +onum opentype feature (guessing from the name of your typescripts, you like Oldstyle NUMerals). If you wanted to go further, you could define an \sc alternative in your typescripts by inserting it into your other typescripts and turning on the +smcp feature in AGaramondPro-Regular for the appropriate synonym to fit above. I leave that as an exercise for the reader... adam Steffen Wolfrum said this at Mon, 11 Jul 2005 17:37:24 +0200: >\starttypescript [serif] [agaramond] [ec] > \definefontsynonym [AGaramond-Regular] [padr9e] >[encoding=uc] % was encoding=ec before xetex > \definefontsynonym [AGaramond-Italic] [padri9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-Bold] [padb9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-BoldItalic] [padbi9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-Semibold] [pads9e] [encoding=uc] % =ec > \definefontsynonym [AGaramond-SemiboldItalic] [padsi9e] [encoding=uc] % =ec >\stoptypescript >\starttypescript [serif] [agaramond] [name] > \definefontsynonym [Serif] [AGaramond-Regular] > \definefontsynonym [SerifBold] >[AGaramond-Semibold]%[AGaramond-Bold-OSF] > \definefontsynonym [SemiBold] [AGaramond-Semibold] > \definefontsynonym [SerifItalic] [AGaramond-Italic] > \definefontsynonym [SerifBoldItalic] >[AGaramond-SemiboldItalic]%[AGaramond-BoldItalic-OSF] > \definefontsynonym [SemiBoldItalic] [AGaramond-SemiboldItalic] >\stoptypescript >\starttypescript [serif][allbold][all] > \definefontsynonym [Serif] [SerifBold] > \definefontsynonym [SerifItalic] [SerifBoldItalic] >\stoptypescript > >\starttypescript [AGaramondOldStyle] > \definetypeface [normaltype] [rm] [serif] [agaramond] >[default] [encoding=uc] % =ec > \definetypeface [boldtype] [rm] [serif] [agaramond,allbold] >[default] [encoding=uc] % =ec >\stoptypescript -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-