From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18215 Path: main.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: iso latin 2 Date: Wed, 9 Feb 2005 22:18:43 +0000 Message-ID: <20050209221843.26175@mail.comp.lancs.ac.uk> References: <420A81D5.702@seznam.cz> 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 1107987722 30742 80.91.229.2 (9 Feb 2005 22:22:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Feb 2005 22:22:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 09 23:22:02 2005 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 1Cz0DI-0002XA-25 for gctc-ntg-context-518@m.gmane.org; Wed, 09 Feb 2005 23:21:36 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7EC5112780; Wed, 9 Feb 2005 23:23:12 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23158-01; Wed, 9 Feb 2005 23:23:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CB5E1278A; Wed, 9 Feb 2005 23:18:44 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C28D91278A for ; Wed, 9 Feb 2005 23:18:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22961-06-2 for ; Wed, 9 Feb 2005 23:18:42 +0100 (CET) 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 EBC3512780 for ; Wed, 9 Feb 2005 23:18:41 +0100 (CET) Original-Received: from [192.168.31.100] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id j19MIfAX006512 for ; Wed, 9 Feb 2005 22:18:41 GMT Original-To: "mailing list for ConTeXt users" In-Reply-To: <420A81D5.702@seznam.cz> X-Mailer: CTM PowerMail version 5.1 build 4340 English X-Virus-Scanned: by 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-Virus-Scanned: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: main.gmane.org gmane.comp.tex.context:18215 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18215 Vit Zyka said this at Wed, 9 Feb 2005 22:34:13 +0100: >The question is how to elegantly switch from standard (st2) tfm to >extended (st3) tfm when the glyph is not present in st2 - with >preserving \rm, \bf, \it, \bi. > >Example: {\bf Bold text with special char \textplus} where \texplus is >bold variant from st3 encoded tfm. It is understandable? Interesting. There are a couple possibilities, I think. My current favourite, \variant[something], is essentially a convention that's built on top of the font synonym mechanism. There's an example given at: ...but I haven't done a proper write-up yet. basically, you declare a variant set for a (Serif/Sans/Mono) family: \definefontvariant [Serif] [exp] [-Expert] % [fam] [call abbrev] [synonym suffix] And then you create font synonyms for each of the possible seven SerifBlah-Expert fonts that would be called, e.g.: \definefontsynonym [SerifRegular] [AndulkaText] \definefontsynonym [SerifRegular-Expert] [AndulkaTextExpert] \definefontsynonym [SerifBold] [AndulkaTextBold] \definefontsynonym [SerifBold-Expert] [AndulkaTextBoldExpert] Where the AndulkaText font resolves to your st2 encoding, and AndulkaTextExpert is in your st3 encoding. (I haven't tried this trick with different encodings, but it *should* work!) You can then call the proper variant with {\bf Hi there \Var[exp]+}, or create a level of indirection with your \textplus macro so that it calls the [exp] variant and the glyph together. The Storm fonts are beautiful. Sigh. Have fun with them... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-