From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44497 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: ansi codes Date: Wed, 1 Oct 2008 20:30:24 +0200 Message-ID: <6faad9f00810011130w64ad8f2dkd00ae890b0909ecb@mail.gmail.com> References: <326847810809300323m4b315c19x59b28282f7c2acc9@mail.gmail.com> <20080930133756.f4aca410.taco@elvenkind.com> <326847810809300701y4b3bf96bvecda807b2ce9d128@mail.gmail.com> <48E234C2.60703@elvenkind.com> <326847810810010557t13335d26v4e98f1143c9c8339@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222886199 12945 80.91.229.12 (1 Oct 2008 18:36:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 18:36:39 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 01 20:37:36 2008 connect(): Connection refused 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 lo.gmane.org with esmtp (Exim 4.50) id 1Kl6Zj-0002An-2K for gctc-ntg-context-518@m.gmane.org; Wed, 01 Oct 2008 20:37:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 51F001FE3C; Wed, 1 Oct 2008 20:36:22 +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 30716-02-7; Wed, 1 Oct 2008 20:35:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C9AC1FD02; Wed, 1 Oct 2008 20:35:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 529DE1FCB1 for ; Wed, 1 Oct 2008 20:35: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 00401-04 for ; Wed, 1 Oct 2008 20:34:57 +0200 (CEST) Original-Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.153]) by ronja.ntg.nl (Postfix) with ESMTP id 8C9401FD02 for ; Wed, 1 Oct 2008 20:30:25 +0200 (CEST) Original-Received: by yx-out-1718.google.com with SMTP id 3so119898yxi.74 for ; Wed, 01 Oct 2008 11:30:24 -0700 (PDT) Original-Received: by 10.151.108.3 with SMTP id k3mr12536450ybm.67.1222885824816; Wed, 01 Oct 2008 11:30:24 -0700 (PDT) Original-Received: by 10.150.137.7 with HTTP; Wed, 1 Oct 2008 11:30:24 -0700 (PDT) In-Reply-To: <326847810810010557t13335d26v4e98f1143c9c8339@mail.gmail.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44497 Archived-At: On Wed, Oct 1, 2008 at 2:57 PM, Alan Stone wrote: > > Is there a (preferably free) Linux or Windows font tool out there which > allows to print a font's characters and corresponding character codes ? Geeks do it with LuaTeX :) I'm not sure if this still works since I have no luatex here, but in theory you can play with something like this: % do whatever you want with it \def\mychar#1#2{#1: #2\crlf} \starttext \ctxlua{ fontname = 'texgyrepagella-regular.otf' tfmdata = fonts.tfm.read_and_define("file:" .. fontname, 655360) w = tfmdata.characters for i=0,100000 do if w[i] then tex.sprint("\\strut\\mychar{" .. i, "}{\\type{", w[i].name, "}}") end end } \stoptext Mojca ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________