ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Christopher G D Tipper" <ctipper@hol.gr>
Cc: "ConTeXT Mailing List" <ntg-context@ntg.nl>
Subject: Re: \pounds problem
Date: Fri, 2 Jun 2000 16:00:50 +0300	[thread overview]
Message-ID: <000901bfcc92$a8982ce0$e60761c3@chris> (raw)
In-Reply-To: <3.0.6.32.20000602004514.00b7e260@pop.wxs.nl>

> At 11:50 PM 5/31/2000 +0300, Christopher G D Tipper wrote:
> >Well, I have played around a bit, and I find the following in enco-win:
> >
> >\defineactivecharacter © {\copyright{}}
> >\defineactivecharacter £ {\pounds{}}
> 
> >So I'm stuck, and it looks like you've got the same problem too. Hans?
> 
> I never needed the pound (and not even enco-win), but I know it's \sterling
> -) 
> 
> Pound and Dollar are tricky ones, since in the tex fonts they are in the
> same slot but not in each font. So, there is also \dollar.  

The saga continues...

Basically, \sterling produces the right results with cmr fonts, but cussed old me is working in pos (URW postscript fonts), where it produces an italic $ symbol.

So I cook up the following which produces exactly the right results:

\setupbodyfont
  [ber,pos,ver,12pt]

\def\pounds{\char191}

\starttext

\dollar dollar symbol

\sterling pound sterling symbol

\pounds

\ss \pounds

\stoptext

Then I add \def\pounds{\char191} to the original document, and I get the following:

! Bad character code (19120).
l.163 ...Raphael has called it the \pounds 20 
                                          problem. Given \pounds 20, he
? 
! Emergency stop.

Obviously it is appending the 20 in £20 to the character code. Is there a TeX trick for forcing it out of \char mode?

Christopher

PS I tried the \character[191] command and it complains:

! Missing number, treated as zero.
<to be read again> 
                   [
\character #1->\ifcase #1
                         \unknowncharacter \or a\or b\or c\or d\or e\...
l.163 ...ael has called it the \character[
                                          191] 20 problem. Given %\po...
? 
! Emergency stop.


  reply	other threads:[~2000-06-02 13:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-31 18:12 Christopher G D Tipper
2000-05-31 19:10 ` Ed L Cashin
2000-05-31 20:50   ` Christopher G D Tipper
2000-06-01 12:54     ` Ed L Cashin
2000-06-01 22:45     ` Hans Hagen
2000-06-02 13:00       ` Christopher G D Tipper [this message]
2000-06-02 13:39         ` Ed L Cashin
2000-06-02 13:55         ` Karsten Tinnefeld
2000-06-02 13:19 Christopher G D Tipper
2000-06-02 20:25 Christopher G D Tipper

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='000901bfcc92$a8982ce0$e60761c3@chris' \
    --to=ctipper@hol.gr \
    --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).