From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24801 Path: news.gmane.org!not-for-mail From: Siep Kroonenberg Newsgroups: gmane.comp.tex.context Subject: Re: expert font access Date: Wed, 28 Dec 2005 12:02:54 +0100 Message-ID: <20051228110254.GB1377@muisje.local> References: Reply-To: Siep Kroonenberg , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135767788 23892 80.91.229.2 (28 Dec 2005 11:03:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Dec 2005 11:03:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 28 12:03:04 2005 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 ciao.gmane.org with esmtp (Exim 4.43) id 1ErZ59-0002Ir-QR for gctc-ntg-context-518@m.gmane.org; Wed, 28 Dec 2005 12:02:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7673F12814; Wed, 28 Dec 2005 12:02:59 +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 00542-04-5; Wed, 28 Dec 2005 12:02:54 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C346127FB; Wed, 28 Dec 2005 12:02:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04B53127FB for ; Wed, 28 Dec 2005 12:02:53 +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 00542-04-4 for ; Wed, 28 Dec 2005 12:02:52 +0100 (CET) Original-Received: from altrade.nijmegen.internl.net (altrade.nijmegen.internl.net [217.149.192.18]) by ronja.ntg.nl (Postfix) with SMTP id 0680A127E8 for ; Wed, 28 Dec 2005 12:02:51 +0100 (CET) Original-Received: from muisje.local by altrade.nijmegen.internl.net via 43-134.surfsnel.dsl.internl.net [145.99.134.43] with SMTP id jBSB2osf022604 (8.13.2/2.04); Wed, 28 Dec 2005 12:02:50 +0100 (MET) Original-Received: by muisje.local (sSMTP sendmail emulation); Wed, 28 Dec 2005 12:02:54 +0100 Original-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24801 Archived-At: On Wed, Dec 28, 2005 at 10:49:20AM +0100, Henning Hraban Ramm wrote: > Ahoi! > > One decorative font that I use contains some additional (swashed > etc.) characters. > At the moment I access them like this: > > \def\DelitschC#1{\getglyph{\defaultencoding-raw-delitschantiqua} > {\char#1}} > \definetextmodediscretionary A {\DelitschC{197}} > > So I get the alternative A as |A|, and that's enough for me. > But in this way |A| always takes this character from the same font. > > How could I solve this more generally, two cases: > 1. if several fonts use the same "expert" encoding > 2. if I change the font, I'd like to get a simple A instead of |A| > > At the moment I need (2.), because I'd like to use something like > \chapter{|A|nfang}; > that's ok with my definition of chapter style=\hw (Delitsch font > being defined as handwriting), but not in the ToC (rm font). > > Further (don't know how different), how could I define "take this > special character always at the end/beginning of a word" or the like, > e.g. how could I enable the different 's' of gothic fonts? Can't you define this behavior with ligatures? > Another one: How can I define additional ligatures, e.g. if my font > provides a "Qu" or some other unusual ligature? You can add ligature specifications to an enc file, see e.g. cork.enc. For afm2pl, you can also specify ligatures in a separate lig file. But I don't know how to use such custom enc or lig files in the context of the texfont utility. -- Siep Kroonenberg