From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44457 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: Re: ansi codes Date: Tue, 30 Sep 2008 16:01:15 +0200 Message-ID: <326847810809300701y4b3bf96bvecda807b2ce9d128@mail.gmail.com> References: <326847810809300323m4b315c19x59b28282f7c2acc9@mail.gmail.com> <20080930133756.f4aca410.taco@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0290523638==" X-Trace: ger.gmane.org 1222783503 11015 80.91.229.12 (30 Sep 2008 14:05:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 14:05:03 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 30 16:05:30 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 1Kkfq8-0001kx-8O for gctc-ntg-context-518@m.gmane.org; Tue, 30 Sep 2008 16:04:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30A561FEB8; Tue, 30 Sep 2008 16:03:30 +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 29214-03-9; Tue, 30 Sep 2008 16:02:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 068B91FE16; Tue, 30 Sep 2008 16:02:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9BF201FE16 for ; Tue, 30 Sep 2008 16:02:34 +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 29104-03-6 for ; Tue, 30 Sep 2008 16:01:57 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by ronja.ntg.nl (Postfix) with ESMTP id CFB171FEC2 for ; Tue, 30 Sep 2008 16:01:16 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so14568nfd.44 for ; Tue, 30 Sep 2008 07:01:16 -0700 (PDT) Original-Received: by 10.210.42.13 with SMTP id p13mr7972927ebp.140.1222783275878; Tue, 30 Sep 2008 07:01:15 -0700 (PDT) Original-Received: by 10.210.16.2 with HTTP; Tue, 30 Sep 2008 07:01:15 -0700 (PDT) In-Reply-To: <20080930133756.f4aca410.taco@elvenkind.com> 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:44457 Archived-At: --===============0290523638== Content-Type: multipart/alternative; boundary="----=_Part_14334_17142883.1222783275886" ------=_Part_14334_17142883.1222783275886 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater wrote: > On Tue, 30 Sep 2008 12:23:56 +0200 > "Alan Stone" wrote: > > > How do you typeset font characters by their ansi code number, ex. Alt+33 > > (21h) ? > > \char "21 % hex > \char 33 % decimal > Thanks Taco. It didn't work as expected. It outputs exclamation points. - font: combinumerals ( http://www.fontsite.com/bonusfonts/cnfree_tt.zip ) - font encoding type: symbol - supported unicode ranges: general punctuation What's missing here ? \starttypescript [sans] [combinumerals] \definefontsynonym [CombinumeralsRegular] [name:combinumerals] [features=default] \definefontsynonym [CombinumeralsBold] [name:combinumeralsbold] [features=default] \stoptypescript \starttypescript [sans] [combinumerals] \setups [font:fallback:sans] \definefontsynonym [sans] [CombinumeralsRegular] \definefontsynonym [sansBold] [CombinumeralsBold] \stoptypescript \starttypescript [combinumerals] \definetypeface [combinumerals] [ss] [sans] [combinumerals] [default] \stoptypescript \usetypescript[combinumerals] \starttext %\showcharacters %\page \char 33 \blank \char "21 \stoptext -- Best, Alan Ubuntu 8.04 Hardy Heron (Desktop) * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int: english/english (ConTeXt minimals installation) * texexec --lua foo ------=_Part_14334_17142883.1222783275886 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater <taco@elvenkind.com> wrote:
On Tue, 30 Sep 2008 12:23:56 +0200
"Alan Stone" <software.list.1es9s@gmail.com> wrote:

> How do you typeset font characters by their ansi code number, ex. Alt+33
> (21h) ?

\char "21 % hex
\char 33  % decimal

Thanks Taco.

It didn't work as expected. It outputs exclamation points.

- font: combinumerals ( http://www.fontsite.com/bonusfonts/cnfree_tt.zip )
- font encoding type: symbol
- supported unicode ranges: general punctuation

What's missing here ?

\starttypescript [sans] [combinumerals]
     \definefontsynonym [CombinumeralsRegular]    [name:combinumerals]                        [features=default]
     \definefontsynonym [CombinumeralsBold]            [name:combinumeralsbold]                [features=default]
\stoptypescript

\starttypescript [sans] [combinumerals]
     \setups [font:fallback:sans]
     \definefontsynonym [sans]                    [CombinumeralsRegular]
     \definefontsynonym [sansBold]            [CombinumeralsBold]
\stoptypescript

\starttypescript [combinumerals]
     \definetypeface [combinumerals] [ss] [sans] [combinumerals] [default]
\stoptypescript

\usetypescript[combinumerals]

\starttext
%\showcharacters
%\page
\char 33
\blank
\char "21
\stoptext

--
Best,
Alan

Ubuntu 8.04 Hardy Heron (Desktop)
  * ConTeXt  ver: 2008.09.16 19:49 MKIV  fmt: 2008.9.20  int: english/english  (ConTeXt minimals installation)
  * texexec --lua foo
------=_Part_14334_17142883.1222783275886-- --===============0290523638== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0290523638==--