ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Alan Bowen via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: \setupmathematics oddity
Date: Sun, 20 Nov 2022 22:49:52 +0100	[thread overview]
Message-ID: <2987b32a-6607-9a28-9388-f244accb4307@gmail.com> (raw)
In-Reply-To: <CAFMOkGUHM0iHpaUCzycaZ7Wfhfs4pPTasYcosRQzbP_Pd0xrww@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1074 bytes --]

Alan Bowen via ntg-context schrieb am 18.11.2022 um 23:48:
> The following
> \setupmathematics[autopunctuation={all,semicolon}]
> %\setupmathematics[autopunctuation={all, semicolon}]
> %\setupmathematics[autopunctuation={all,semicolon,colon}]
>
> \starttext
> \startformula
> 0,0;2,0,35,17,40,41\textdegree{} \cdot 365;15 \cdot 40 = 
> 2,9;23,14\textdegree{}.
> \stopformula
> \stoptext
>
> works as it should (no space after the “;” or the “,”).
>
> With the second and third versions of \setupmathematics there is an 
> unwanted space after each punctuation mark.

Even though it seems like the autopunctuation key accepts a list of 
values this isn't the case
at the moment. Only values from the following list are valid arguments 
for the key:

- yes
- no
- all
- comma
- yes,semicolon
- comma,semicolon
- all,semicolon

The reason for this is that values like "all,semicolon" are treated as 
keyword and the comma
is part of the keyword, this means you can't change the order of the 
words and even spaces
after the comma make the argument invalid.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2090 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2022-11-20 21:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-18 22:48 Alan Bowen via ntg-context
2022-11-19 10:46 ` Henning Hraban Ramm via ntg-context
2022-11-20 21:49 ` Wolfgang Schuster via ntg-context [this message]

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=2987b32a-6607-9a28-9388-f244accb4307@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).