From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116505 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: \setupmathematics oddity Date: Sun, 20 Nov 2022 22:49:52 +0100 Message-ID: <2987b32a-6607-9a28-9388-f244accb4307@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6558874620570898645==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16013"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.58 Cc: Wolfgang Schuster To: mailing list for ConTeXt users , Alan Bowen via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 20 22:50:39 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owsD0-0003xC-L7 for gctc-ntg-context-518@m.gmane-mx.org; Sun, 20 Nov 2022 22:50:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 06CC02A4CEE; Sun, 20 Nov 2022 22:50:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cHmo3qMcrrNZ; Sun, 20 Nov 2022 22:49:58 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 801CE2A4CF5; Sun, 20 Nov 2022 22:49:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D5F6D2A4CF1 for ; Sun, 20 Nov 2022 22:49:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xjLN5_Udw1As for ; Sun, 20 Nov 2022 22:49:56 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.42; helo=mail-ed1-f42.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DE8422A4CEE for ; Sun, 20 Nov 2022 22:49:55 +0100 (CET) Original-Received: by mail-ed1-f42.google.com with SMTP id v8so2797850edi.3 for ; Sun, 20 Nov 2022 13:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=Dz5RlGT1eLxfmD0YXdwIgNtBQUXzDwfoYjriHjRrmJ8=; b=Hfa8wiQ6Dizv+oYDKp86MH0MDzNWYCPjAZkFc06nMDGkZW05Gc19DMnYDqaCG3tbu7 jsYN+WNMivA53ecFhAYEMcnrYAn+KPGFfSeXuom8AE9BAhekvGPRIGJAJRil0Xr/zgIO W0ZUn9RdfpyBUzXREdNKTtwanRtmTBaFLJGsBCPP7x1J2CmdHogiWUw5a9VJMhWvwbza Ka88TpkeYTfneHif3tSpkaovglmAUzccKxS8CFiIP7+qTSMBui5i+1kG5FJo+LivqbUJ p/G/GxQPJqs1g44EKSGuFew74ZDw5lhcc/e/R0msQ8AtFa+4kbBQsUm/H9ub8HPdgIO7 2tJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Dz5RlGT1eLxfmD0YXdwIgNtBQUXzDwfoYjriHjRrmJ8=; b=gVCpBeXb/OQiPJn4P2un7TAKJVmEPMCNYXw97rWyrO1zMQpox74Ln4h60MSHKcTYnJ jHh+TiRfFVsyiUHZMibdedof9EK+VRTTMUFRXmBjR4XdcWjOp2Syr2rcJ1ywdW42kYSu GhL5Y7EUQ3aKOzlpoC4PS9nDAtG/gLufMmW2v3neesSCd/81uf/DiSeu5TUnIojPmp1w dLDoU5NOHpzBLSoPlVyKMyZBpGJmKajOPfxtBBkuFPF6VXZYuOpXcIZWyPSgV+ApSXeb BbgUwIGtKBn034dyM1FGTDEJwoHucz9qzaKod/00s+1H8vNdFIWcvDUWHoJIw9iRGlRk heJA== X-Gm-Message-State: ANoB5pm9RdVksMXbFSXV6KXSTSHLDaekXS9yp1jaAO2R/xdoj7nw3143 7zu3ZLjggGp6S/XTU0ZNyOHIEuzaCBY= X-Google-Smtp-Source: AA0mqf6Jta3AVsKxs6t/jKVD12LnYLGYRvlmjg5pecDKoJ9TMlujIdtp9+h7POMvujLjAIDpLNRkJA== X-Received: by 2002:a05:6402:294b:b0:458:cd82:91a with SMTP id ed11-20020a056402294b00b00458cd82091amr13634849edb.15.1668980995303; Sun, 20 Nov 2022 13:49:55 -0800 (PST) Original-Received: from ?IPv6:2a02:810d:a8bf:fe08::2fc0? ([2a02:810d:a8bf:fe08::2fc0]) by smtp.gmail.com with ESMTPSA id i18-20020a170906a29200b0078bfff89de4sm4366652ejz.58.2022.11.20.13.49.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Nov 2022 13:49:54 -0800 (PST) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:116505 Archived-At: This is a multi-part message in MIME format. --===============6558874620570898645== Content-Type: multipart/alternative; boundary="------------4DEE123B38B670BC369DC53F" Content-Language: en-US This is a multi-part message in MIME format. --------------4DEE123B38B670BC369DC53F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------4DEE123B38B670BC369DC53F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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

--------------4DEE123B38B670BC369DC53F-- --===============6558874620570898645== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6558874620570898645==--