Jim schrieb am 11.11.2024 um 22:49:
On Mon, Nov 11, 2024 at 21:30 (+0100), Wolfgang Schuster wrote:

Jim schrieb am 11.11.2024 um 19:34:
Hi,

I would expect (*cough*)
>
\starttext
2\inch
\stoptext

to output something like

2"

with some appropriate typographic symbols following the 2.  Instead, I get
a 2 with a large prime symbol down lower than a prime symbol should be, and
then a second prime symbol at about the correct size and at about the right
distance up from the baseline.

\setupbodyfont[pagella]

\starttext

\unit{2 arcminute}
\unit{2 arcsecond}

\blank

2\utfchar{0x2032}
2\utfchar{0x2033}

\blank

2′ 2″

\stoptext

Wolfgang,

thanks very much for that example.

However, while it does show me how to get the glyph I am looking for, I am
left wondering whether there is any way to do it without switching my font
from the default.  (And whether \inch is broken, or whether there is an
implicit assumption about font characteristics when using that macro.)

I hate to go to the well too often, but would you care to comment
specifically about \inch and the default font?

(If there is some document whose contents would enlighten me about this,
I'd be happy to get a pointer to it.)


This is a problem for the math team.

The default font "Latin Modern" fakes the symbol with primes but the output with LMTX is wrong here (old MkIV has the correct symbol) as can be seen below.

\starttext

% Latin Modern uses \def\inch{\mathematics{\prime\prime}}

2\m{\prime\prime}

% 2\m{^\doubleprime}

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to