ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Alan Stone" <software.list.1es9s@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: ansi codes
Date: Tue, 30 Sep 2008 16:01:15 +0200	[thread overview]
Message-ID: <326847810809300701y4b3bf96bvecda807b2ce9d128@mail.gmail.com> (raw)
In-Reply-To: <20080930133756.f4aca410.taco@elvenkind.com>


[-- Attachment #1.1: Type: text/plain, Size: 1465 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2601 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2008-09-30 14:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-30 10:23 Alan Stone
2008-09-30 11:37 ` Taco Hoekwater
2008-09-30 14:01   ` Alan Stone [this message]
2008-09-30 14:16     ` Taco Hoekwater
2008-10-01 12:57       ` Alan Stone
2008-10-01 13:05         ` Taco Hoekwater
2008-10-01 18:30         ` Mojca Miklavec
2008-10-01 20:00           ` Hans Hagen
2008-10-03 20:15             ` Alan Stone
2008-11-14 15:25             ` Thomas A. Schmitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=326847810809300701y4b3bf96bvecda807b2ce9d128@mail.gmail.com \
    --to=software.list.1es9s@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).