ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Denis B. Roegel" <Denis.Roegel@loria.fr>
Cc: Denis.Roegel@loria.fr (Denis B. Roegel),
	ntg-context@ntg.nl, roegel@lorraine.loria.fr (Denis B. Roegel)
Subject: Re: fonts in embedded tex in embedded metapost in context
Date: Fri, 8 Dec 2000 22:34:05 +0100 (MET)	[thread overview]
Message-ID: <200012082134.WAA29308@bar.loria.fr> (raw)
In-Reply-To: <3.0.6.32.20001208201424.015bd960@pop.wxs.nl> from "Hans Hagen" at Dec 08, 2000 08:14:24 PM

`Hans Hagen' wrote
>   

>   >Some of the labels are in ISO-Latin 1 encoding. How do I select this?
>   >
>   >  ... btex ISO-Latin 1 text etex ...
>   
>   \enableencoding [il1]

I tried

\starttext
\startMPenvironment 
\ss
\enableencoding [il1]
\stopMPenvironment 
\startuseMPgraphic{test}
label(btex élève etex,origin);
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext

and it doesn't display ``é'' and ``è''.

When I look at the mpx file, I see

begingroup save _p,_r,_s,_n; picture _p; _p=nullpicture;
string _n[];
vardef _s(expr _t,_f,_m,_x,_y)=
  addto _p also _t infont _f scaled _m shifted (_x,_y); enddef;
_n0="cmss12";
_s("lve",_n0,1.00000,0.0000,0.0000);
setbounds _p to (0,0.0000)--(13.3110,0.0000)--
 (13.3110,8.3022)--(0,8.3022)--cycle;
_p endgroup
mpxbreak

so presumably, the problem is cmss12.

Can you explain how ``é'' is handled? In LaTeX, 
é becomes \'e (with the input encoding latin1) and
this is translated into some position in the font,
or some combination of characters. With cmss12, LaTeX
would map \'e to some \accent combination.

What is the context position on this matter?

Denis


  reply	other threads:[~2000-12-08 21:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-08 16:37 Denis B. Roegel
2000-12-08 19:14 ` Hans Hagen
2000-12-08 21:34   ` Denis B. Roegel [this message]
2000-12-11  0:15     ` Hans Hagen
2000-12-11 20:30       ` Denis B. Roegel
2000-12-12 17:26         ` Hans Hagen
2000-12-28  3:11           ` another question on regimes and encoding Denis B. Roegel
2000-12-28 17:12             ` Hans Hagen
2000-12-28 23:24               ` Denis B. Roegel

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=200012082134.WAA29308@bar.loria.fr \
    --to=denis.roegel@loria.fr \
    --cc=ntg-context@ntg.nl \
    --cc=roegel@lorraine.loria.fr \
    /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).