ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jim <zlists+context@jdvb.ca>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
Date: Tue, 12 Nov 2024 10:18:45 -0400	[thread overview]
Message-ID: <ZzNjxZdThjwrEnb6@x360.localdomain> (raw)
In-Reply-To: <CAHy-LL_DMW+OgvbYg8jG3XHwMyn6mrEiGzmwWBF_av2hzkTDHw@mail.gmail.com>

On Tue, Nov 12, 2024 at 07:52 (+0100), Mikael Sundqvist wrote:

> Hi,

> On Tue, Nov 12, 2024 at 12:20 AM Jim <zlists+context@jdvb.ca> wrote:

>> On Mon, Nov 11, 2024 at 23:36 (+0100), Wolfgang Schuster wrote:

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

>> Thanks for confirming that there is a problem.

>> Is it safe to assume that this thread will get the attention of the math
>> team, so that they will put the issue on their To-Do list?  If not, I will
>> cheerfully file a bug report (at least if/when I find out where such a
>> report should be sent).

>> Jim

> I will talk to Hans about it. The funny thing is that \m
> {f\prime\prime} works as expected. So, it is puting primes "on
> nothing" that needs to be considered. It seems to work in (many) other
> fonts, so, we'll have to look at modern and what is special there.

Thanks Mikael,

I appreciate it.

At the moment I have a work around which creates a 0-width box with the
height of a digit, and then (in math mode) \prime\prime-ing that box.

                                        Jim
___________________________________________________________________________________
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	other threads:[~2024-11-12 14:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-11 18:34 [NTG-context] " Jim
2024-11-11 20:30 ` [NTG-context] " Wolfgang Schuster
2024-11-11 21:49   ` Jim
2024-11-11 22:36     ` Wolfgang Schuster
2024-11-11 22:50       ` Jim
2024-11-12  6:52         ` Mikael Sundqvist
2024-11-12 14:18           ` Jim [this message]
2024-11-13  8:27           ` Hans Hagen
2024-11-13 10:03   ` Marco Patzer
2024-11-13 14:09     ` Hans Hagen via ntg-context
2024-11-14 19:35       ` Keith McKay
2024-11-15 18:23         ` Jim
2024-11-15 23:50         ` Bruce Horrocks

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=ZzNjxZdThjwrEnb6@x360.localdomain \
    --to=zlists+context@jdvb.ca \
    --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).