From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79045 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: A problem with autopunctuation Date: Sun, 4 Nov 2012 16:38:53 -0500 (EST) Message-ID: References: <20121103014545.02b8dd5f@aga-netbook> <1D28EB48-146C-4E8D-8A66-8E4284B1F6C2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352065144 9508 80.91.229.3 (4 Nov 2012 21:39:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2012 21:39:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 04 22:39:14 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TV7uT-00041u-T4 for gctc-ntg-context-518@m.gmane.org; Sun, 04 Nov 2012 22:39:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88F2B101F2; Sun, 4 Nov 2012 22:39:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6I-i7ifChWe5; Sun, 4 Nov 2012 22:39:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4520C101F9; Sun, 4 Nov 2012 22:39:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94D60101F9 for ; Sun, 4 Nov 2012 22:39:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nvB-Xkvj22zO for ; Sun, 4 Nov 2012 22:38:59 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 6488F101F2 for ; Sun, 4 Nov 2012 22:38:59 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qA4LcujR006435 for ; Sun, 4 Nov 2012 22:38:57 +0100 Original-Received: FROM adi-netbook (bas3-montreal02-1096681419.dsl.bell.ca [65.94.7.203]) By hellskitchen.mr.itd.umich.edu ID 5096E06E.D36A5.26173 ; Authuser adityam; 4 Nov 2012 16:38:54 EST In-Reply-To: <1D28EB48-146C-4E8D-8A66-8E4284B1F6C2@gmail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.9243 (Score 4.2, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07IjxCUMq - 1bf6bf3e8a0d - 20121104 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79045 Archived-At: On Sun, 4 Nov 2012, Wolfgang Schuster wrote: > > Am 03.11.2012 um 01:45 schrieb Marcin Borkowski : > >> If I get it correctly, the following two formulae should render >> differently - and they don't. What is going on? >> >> \setupmathematics[autopunctuation=yes] >> >> \starttext >> >> $(2,5)$ versus $(2, 5)$ >> >> \stoptext > > Spaces in math mode are ignored because the spacing is controlled by different rules. > > \starttext > > \m{1.2}\par > \m{1. 2}\par > \m{1 .2}\par > \m{1 . 2}\par > > \blank > > \m{1,2} > > \blank > > \setupmathematics[autopunctuation=yes]\m{1,2} > > \stoptext I always thought that autopunctuation was targetted towards the European tradition of using comma as a decimal separator. That behavior can be achieved by changing a comma to be an "ord" from a "punctuation". However, changing the comma to an "ord" has the drawback that you have to explicitly add spaces when comma is needed as a punctuation, for example in sets: \m{A = \{a,\, b,\, c\}} Autopunctuation is supposed to get around this: if comma is followed by a non-space, the comma should behave like an "ord"; if it is followed by a space, it should behave like a "punctuation". Clearly that is not happening. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________