From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30244 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: \namedglyph (was: [XeTeX] \XeTeXglyphindex: just a short note) Date: Sat, 12 Aug 2006 09:39:26 +0200 Message-ID: <6faad9f00608120039u69e5ec51n8d43cf72c6eafa91@mail.gmail.com> 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 1155368398 24554 80.91.229.2 (12 Aug 2006 07:39:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 07:39:58 +0000 (UTC) Cc: Adam Lindsay , Will Robertson Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 12 09:39:55 2006 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 1GBo60-0004aa-Cd for gctc-ntg-context-518@m.gmane.org; Sat, 12 Aug 2006 09:39:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6EBB1FF12; Sat, 12 Aug 2006 09:39:43 +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 06474-07; Sat, 12 Aug 2006 09:39:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA0AB1FE93; Sat, 12 Aug 2006 09:39:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F92D1FE93 for ; Sat, 12 Aug 2006 09:39:33 +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 06481-07 for ; Sat, 12 Aug 2006 09:39:28 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by ronja.ntg.nl (Postfix) with SMTP id 06B591FE88 for ; Sat, 12 Aug 2006 09:39:27 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id x29so1139626nfb for ; Sat, 12 Aug 2006 00:39:26 -0700 (PDT) Original-Received: by 10.78.157.8 with SMTP id f8mr2493532hue; Sat, 12 Aug 2006 00:39:26 -0700 (PDT) Original-Received: by 10.78.175.15 with HTTP; Sat, 12 Aug 2006 00:39:26 -0700 (PDT) Original-To: "mailing list for ConTeXt users" Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30244 Archived-At: Hello, Some time ago Jonathan implemented a new \XeTeXglyphindex command to retrieve the glyph from current font by name (it currently only works for OpenType, but that's the most important). \getglyph is already taken, I used it in the example below just because I didn't think of a better name. Would it name sense to provide a \namedglyph macro in ConTeXt for XeTeX users as well? (Hopefully the feature will be available in pdfTeX as well ;) I don't mind if LaTeX & ConTeXt use the same syntax every now and then ;) (In the future: It might make sense to provide an optional field to retrieve a glyph from any font, not just from the current one, but I'm not sure about what the exact interface should be and if it would be optional it can be added later anyway.) Any thoughts? Mojca On 8/12/06, Will Robertson wrote: > On 11/06/2006, at 21:09 , Mojca Miklavec wrote: > > > \def\getglyph#1{\XeTeXglyph\XeTeXglyphindex "#1"} > > \font\A='Antykwa Torunska' \A > > > > Thank you, Jonathan, I \getglyph{heart} this new feature! > > Just to follow up on this; for LaTeX users, the new version of the > xltxtra package will include this macro under the name > "\namedglyph" (it's actually Jonathan's improved version). > > Cheers, > > Will