ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \inch not doing the expected thing (what I expect, anyway).
@ 2024-11-11 18:34 Jim
  2024-11-11 20:30 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Jim @ 2024-11-11 18:34 UTC (permalink / raw)
  To: ntg-context

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.


Are my expectations about what \inch should do incorrect?  I do notice that

$2\inch$

does what I expect, but if I have to enter math mode, I may as well type

$2''$ to get what I want.


In summary, is \inch working as intended or it is broken?

Thanks.

                                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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-11 18:34 [NTG-context] \inch not doing the expected thing (what I expect, anyway) Jim
@ 2024-11-11 20:30 ` Wolfgang Schuster
  2024-11-11 21:49   ` Jim
  2024-11-13 10:03   ` Marco Patzer
  0 siblings, 2 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2024-11-11 20:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jim

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

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-11 20:30 ` [NTG-context] " Wolfgang Schuster
@ 2024-11-11 21:49   ` Jim
  2024-11-11 22:36     ` Wolfgang Schuster
  2024-11-13 10:03   ` Marco Patzer
  1 sibling, 1 reply; 13+ messages in thread
From: Jim @ 2024-11-11 21:49 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

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

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-11 21:49   ` Jim
@ 2024-11-11 22:36     ` Wolfgang Schuster
  2024-11-11 22:50       ` Jim
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2024-11-11 22:36 UTC (permalink / raw)
  To: Jim; +Cc: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-11 22:36     ` Wolfgang Schuster
@ 2024-11-11 22:50       ` Jim
  2024-11-12  6:52         ` Mikael Sundqvist
  0 siblings, 1 reply; 13+ messages in thread
From: Jim @ 2024-11-11 22:50 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-11 22:50       ` Jim
@ 2024-11-12  6:52         ` Mikael Sundqvist
  2024-11-12 14:18           ` Jim
  2024-11-13  8:27           ` Hans Hagen
  0 siblings, 2 replies; 13+ messages in thread
From: Mikael Sundqvist @ 2024-11-12  6:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-12  6:52         ` Mikael Sundqvist
@ 2024-11-12 14:18           ` Jim
  2024-11-13  8:27           ` Hans Hagen
  1 sibling, 0 replies; 13+ messages in thread
From: Jim @ 2024-11-12 14:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-12  6:52         ` Mikael Sundqvist
  2024-11-12 14:18           ` Jim
@ 2024-11-13  8:27           ` Hans Hagen
  1 sibling, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2024-11-13  8:27 UTC (permalink / raw)
  To: ntg-context

On 11/12/2024 7:52 AM, 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

Are inches still used? Anyway, I suppose no mathematician will put a 
prime on nothing.

> fonts, so, we'll have to look at modern and what is special there.

Does this work ?

\permanent\protected\def\inch
   {\iffontchar\font`″″\else
      \mathematics
        {\mathsurround\zeropoint
         \mathatom\mathunspacedcode
         {\strut}″}%
    \fi}


Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-11 20:30 ` [NTG-context] " Wolfgang Schuster
  2024-11-11 21:49   ` Jim
@ 2024-11-13 10:03   ` Marco Patzer
  2024-11-13 14:09     ` Hans Hagen via ntg-context
  1 sibling, 1 reply; 13+ messages in thread
From: Marco Patzer @ 2024-11-13 10:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 11 Nov 2024 21:30:15 +0100
Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:

> \unit{2 arcsecond}

Arcseconds might print the correct glyph, but would be semantically
wrong. I believe the correct approach would be:

  \unit{2 inch}

The question then remains how to configure \unit{2 inch} to produce
(depending on the requirements):

  2 in   or
  2"

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-13 10:03   ` Marco Patzer
@ 2024-11-13 14:09     ` Hans Hagen via ntg-context
  2024-11-14 19:35       ` Keith McKay
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen via ntg-context @ 2024-11-13 14:09 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 11/13/2024 11:03 AM, Marco Patzer wrote:
> On Mon, 11 Nov 2024 21:30:15 +0100
> Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
> 
>> \unit{2 arcsecond}
> 
> Arcseconds might print the correct glyph, but would be semantically
> wrong. I believe the correct approach would be:
> 
>    \unit{2 inch}
> 
> The question then remains how to configure \unit{2 inch} to produce
> (depending on the requirements):
> 
>    2 in   or
>    2"

After 25 hours of discussion and 18 attempts the math team (whoever that 
is) has decided that this is good enough:

\permanent\protected\def\fakeminute
   {\dontleavehmode
    \begingroup
    \doifelseitalic
      {\scratchwidth\fontcharwd\font\singlequoteasciicode
       \hpack \s!to 1.2\scratchwidth \bgroup
         \glyphslant\plustwohundred
         \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode
       \egroup}%
      {\scratchwidth\fontcharwd\font\singlequoteasciicode
       \hpack \s!to 1.1\scratchwidth \bgroup
          \glyphslant\plusfivehundred
         \glyph \s!xoffset -\scratchwidth\singlequoteasciicode
       \egroup}%
    \endgroup}

\permanent\protected\def\fakesecond
   {\dontleavehmode
    \begingroup
    \doifelseitalic
      {\scratchwidth\fontcharwd\font\singlequoteasciicode
       \hpack \s!to 1.7\scratchwidth \bgroup
         \glyphslant\plustwohundred
         \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode
         \glyph \s!xoffset -1.1\scratchwidth\singlequoteasciicode
       \egroup}%
      {\scratchwidth\fontcharwd\font\singlequoteasciicode
       \hpack \s!to 1.6\scratchwidth \bgroup
         \glyphslant\plusfivehundred
         \glyph \s!xoffset    -\scratchwidth\singlequoteasciicode
         \glyph \s!xoffset -1.5\scratchwidth\singlequoteasciicode
       \egroup}%
    \endgroup}


\permanent\protected\def\minute{\iffontchar\font\textminute\textminute\else\fakeminute\fi}
\permanent\protected\def\second{\iffontchar\font\textsecond\textsecond\else\fakesecond\fi}

\aliased\let\inch\second


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  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
  0 siblings, 2 replies; 13+ messages in thread
From: Keith McKay @ 2024-11-14 19:35 UTC (permalink / raw)
  To: ntg-context

In last night's ConTeXt meeting there was a discussion on the use of 
vertical or slanted double primes for inches. The general consensus was 
that slanted should be used.

  I had a look in my copy of The Elements of Typographic Style version 
3.0 by Richard Bringhurst and he says (page 307]:

"Double Prime. An abbreviation for inches (1" =2.54 cm) and for seconds 
of arc (360" = 1 degree). Not to be confused with quotation marks, the 
double acute, nor with dumb quotes. Prime and double prime are rarely 
found on text fonts. See also prime. [U+2033]"

Similarly for prime he says (page 316):

"Prime. An abbreviation for feet (1' = 12") and for minutes of arc (60' 
= 1 degree). Singe and double primes should not be confused with 
apostrophes, dumb quotes or genuine quotation marks, though in some 
faces (frakturs especially) these glyphs may all have a similar shape 
and a pleasant slope. See also apostrophes, double prime, dumb quotes 
and quotation marks. [U+2032]"

Hope this clarifies things.

Best Wishes

Keith McKay

On 13/11/2024 14:09, Hans Hagen via ntg-context wrote:
> On 11/13/2024 11:03 AM, Marco Patzer wrote:
>> On Mon, 11 Nov 2024 21:30:15 +0100
>> Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>>
>>> \unit{2 arcsecond}
>>
>> Arcseconds might print the correct glyph, but would be semantically
>> wrong. I believe the correct approach would be:
>>
>>    \unit{2 inch}
>>
>> The question then remains how to configure \unit{2 inch} to produce
>> (depending on the requirements):
>>
>>    2 in   or
>>    2"
>
> After 25 hours of discussion and 18 attempts the math team (whoever 
> that is) has decided that this is good enough:
>
> \permanent\protected\def\fakeminute
>   {\dontleavehmode
>    \begingroup
>    \doifelseitalic
>      {\scratchwidth\fontcharwd\font\singlequoteasciicode
>       \hpack \s!to 1.2\scratchwidth \bgroup
>         \glyphslant\plustwohundred
>         \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode
>       \egroup}%
>      {\scratchwidth\fontcharwd\font\singlequoteasciicode
>       \hpack \s!to 1.1\scratchwidth \bgroup
>          \glyphslant\plusfivehundred
>         \glyph \s!xoffset -\scratchwidth\singlequoteasciicode
>       \egroup}%
>    \endgroup}
>
> \permanent\protected\def\fakesecond
>   {\dontleavehmode
>    \begingroup
>    \doifelseitalic
>      {\scratchwidth\fontcharwd\font\singlequoteasciicode
>       \hpack \s!to 1.7\scratchwidth \bgroup
>         \glyphslant\plustwohundred
>         \glyph \s!xoffset -0.6\scratchwidth\singlequoteasciicode
>         \glyph \s!xoffset -1.1\scratchwidth\singlequoteasciicode
>       \egroup}%
>      {\scratchwidth\fontcharwd\font\singlequoteasciicode
>       \hpack \s!to 1.6\scratchwidth \bgroup
>         \glyphslant\plusfivehundred
>         \glyph \s!xoffset    -\scratchwidth\singlequoteasciicode
>         \glyph \s!xoffset -1.5\scratchwidth\singlequoteasciicode
>       \egroup}%
>    \endgroup}
>
>
> \permanent\protected\def\minute{\iffontchar\font\textminute\textminute\else\fakeminute\fi} 
>
> \permanent\protected\def\second{\iffontchar\font\textsecond\textsecond\else\fakesecond\fi} 
>
>
> \aliased\let\inch\second
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________ 
>
> 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
> ___________________________________________________________________________________ 
>
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-14 19:35       ` Keith McKay
@ 2024-11-15 18:23         ` Jim
  2024-11-15 23:50         ` Bruce Horrocks
  1 sibling, 0 replies; 13+ messages in thread
From: Jim @ 2024-11-15 18:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Nov 14, 2024 at 19:35 (+0000), Keith McKay wrote:

> In last night's ConTeXt meeting there was a discussion on the use of
> vertical or slanted double primes for inches. The general consensus was that
> slanted should be used.

>  I had a look in my copy of The Elements of Typographic Style version 3.0 by
> Richard Bringhurst and he says (page 307]:

> "Double Prime. An abbreviation for inches (1" =2.54 cm) and for seconds of
> arc (360" = 1 degree). Not to be confused with quotation marks, the double
> acute, nor with dumb quotes. Prime and double prime are rarely found on text
> fonts. See also prime. [U+2033]"

> Similarly for prime he says (page 316):

> "Prime. An abbreviation for feet (1' = 12") and for minutes of arc (60' = 1
> degree). Singe and double primes should not be confused with apostrophes,
> dumb quotes or genuine quotation marks, though in some faces (frakturs
> especially) these glyphs may all have a similar shape and a pleasant slope.
> See also apostrophes, double prime, dumb quotes and quotation marks.
> [U+2032]"

> Hope this clarifies things.


At the meeting I said I was going to look around and get back.  Mea culpa
for letting Keith beat me to it.  I guess he deserves another glass of his
Macallan 30 year old single malt scotch.

Aside from references to The Elements of Typographic Style (as quoted by
Keith above), I found various sites which claim that the inch symbol is
prime marks:
-> https://www.datacenterknowledge.com/data-center-software/how-to-type-the-inch-symbol-
-> https://www.itprotoday.com/microsoft-windows/how-to-type-the-inch-symbol-
   (essentially the same article as above)
-> https://www.chicagomanualofstyle.org/qanda/data/faq/topics/Punctuation/faq0125.html
-> https://tex.stackexchange.com/questions/46055/typesetting-with-inch-symbols-and-sizes-in-inches
   (see keme1's claim about 1/2 way down)
-> https://community.adobe.com/t5/indesign-discussions/typing-symbol-for-quot-inches-quot/m-p/1718417
   See "Correct answer by FivePicaPica"
-> https://webdesignledger.com/common-typography-mistakes-apostrophes-versus-quotation-marks/

This one says to use straight, not curly quotes, but is silent on the issue
of whether the quote is slanted (thus a prime):
-> https://www.nobledesktop.com/typography-rules

These ones calls them prime, but just say they are straight:
-> https://practicaltypography.com/foot-and-inch-marks.html
-> https://typographyforlawyers.com/foot-and-inch-marks.html
   Amusingly, this seems to be a plagiarism of the one above.
   Or maybe vice versa.

This one says it shows the correct glyphs, but the glyphs shown are
straight up and down:
-> https://www.myfonts.com/pages/fontscom-learning-fontology-level-3-signs-and-symbols-correct-marks?srsltid=AfmBOoqI3Wrm6pwLcCzVJGJIpG3mQlnCpE883HqabgwqZh84YTFePlyp


I don't recognize any of those (with the possible exception of the Chicago
manual of style) as definitive opinions.

But I will say that each and every time I discussed the issue with Hermann
Zaph, he said that inch and foot marks are straight lines with a slant.


I found nothing at all about what to do when setting italic text.  It makes
sense to me to slant them a bit more, but that is just a gut feeling.


I think that is likely everything I will have to say on this topic.  No
doubt that makes people happy.  :-)

                                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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: \inch not doing the expected thing (what I expect, anyway).
  2024-11-14 19:35       ` Keith McKay
  2024-11-15 18:23         ` Jim
@ 2024-11-15 23:50         ` Bruce Horrocks
  1 sibling, 0 replies; 13+ messages in thread
From: Bruce Horrocks @ 2024-11-15 23:50 UTC (permalink / raw)
  To: ntg-context mailing list


> On 14 Nov 2024, at 19:35, Keith McKay <mckaymeister@gmail.com> wrote:
> 
> In last night's ConTeXt meeting there was a discussion on the use of vertical or slanted double primes for inches. The general consensus was that slanted should be used.

Unfortunately I wasn’t able to attend but, if it helps, here’s an example of usage taken from “Newnes Complete Engineer”, data sheet no. 2 “British Standard Engineering Drawing Office Practice (Part 1)”.

<https://flic.kr/p/2qujfCu>

The book seems to have been published in regular editions since at least 1935. My copy of the data sheets doesn’t have a published/printed date on it but I’m guessing printed in the 1960s. (I assume they’re undated because they were sold to apprentices or student engineers and the publishers, Newnes, didn’t want the students to realise they were paying for materials printed years earlier!)

Regards,
—
Bruce Horrocks
Hampshire, UK

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-11-15 23:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-11 18:34 [NTG-context] \inch not doing the expected thing (what I expect, anyway) 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
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

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