From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79656 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: A problem with autopunctuation Date: Fri, 30 Nov 2012 13:51:57 +0100 Message-ID: References: <20121103014545.02b8dd5f@aga-netbook> <1D28EB48-146C-4E8D-8A66-8E4284B1F6C2@gmail.com> <20121104230354.4bda9aa3@aga-netbook> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354279964 29944 80.91.229.3 (30 Nov 2012 12:52:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 12:52:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 30 13:52:57 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 1TeQ5K-0006eQ-I1 for gctc-ntg-context-518@m.gmane.org; Fri, 30 Nov 2012 13:52:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 81D1E10321; Fri, 30 Nov 2012 13:52:38 +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 bGDqByto9AHl; Fri, 30 Nov 2012 13:52:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 43E93102EE; Fri, 30 Nov 2012 13:52:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F1EFE102EE for ; Fri, 30 Nov 2012 13:52:32 +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 wpL1SBZTMAdH for ; Fri, 30 Nov 2012 13:52:30 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 3A4561020C for ; Fri, 30 Nov 2012 13:52:30 +0100 (CET) Original-Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAUCqSiD020737 for ; Fri, 30 Nov 2012 13:52:29 +0100 Original-Received: by mail-ie0-f169.google.com with SMTP id c14so724458ieb.14 for ; Fri, 30 Nov 2012 04:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=toSFGplPhKDteS3BfFK7OaDsWnz6RKeXaVkehIbLGq0=; b=d0VLKEA70JlZAA59XnrtktrgGD8+OlCk5D9MZ4xQRsGeXvF9kPC9KAvTfhOc9eHaV/ wkW2jzbaWlP0H3Z0G6WDb3XIiPAPNDfyQfKrW8VlmG5/8O3hD2wxybWDvDRsCCrhEJCC SIE+5TMD2E/N38HjwV/tFe4LRRSFAlAXjUnGBwmN4lu1hwMDyTSQP+fu9v00mzVJ1/Dg RXP9kZ/sJ6pjYuoZFBV55RolR5/H64cxBnjE7IFNPVl6p8pv5O8H0G2VvhdleOxRcj5m cXMVKyXH4bnXLtrvgmWq3QQpqAKAXpIXKpxT5am8755qdlf+tOy8VSGD45Gx3Pt8zxdI t25w== Original-Received: by 10.50.236.72 with SMTP id us8mr913887igc.28.1354279947719; Fri, 30 Nov 2012 04:52:27 -0800 (PST) Original-Received: by 10.64.5.138 with HTTP; Fri, 30 Nov 2012 04:51:57 -0800 (PST) In-Reply-To: <20121104230354.4bda9aa3@aga-netbook> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.223.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08ItMQsHf - b979c5763d46 - 20121130 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:79656 Archived-At: Reviving this thread, because MkIV's default behaviour is still improper. The current default of always adding a space after periods *and* commas is expected by nobody, I think. Revival prompted by a recent tex.se question: http://tex.stackexchange.com/questions/84911/number-kerning-in-context-math-mode-is-different-and-worse-than-normal/84947#84947 I've set out the behaviour below; A --> B means 'A displays as B'. MkIV should probably follow either MkII, or the behavior Aditya and Marcin proposed. (Actually, even if we choose MkII behavior, it would be nice to have the latter available, too. Maybe as an option autopunctuation=user? It would require someone to hack respace[math_char] in math-noa.lua, though.) Cheers, Sietse == This is MkIV's behaviour == Spaces are ignored. \setupmathematics[autopunctuation=no] (the default) 2,5 --> 2, 5 2.5 --> 2. 5 \setupmathematics[autopunctuation=yes] 2,5 --> 2,5 2.5 --> 2.5 Spaces are ignored. == This is MkII's behaviour == Spaces are ignored. Without \enablemathpunctuation (no \disablemathpunctuation): % default TeX behaviour 2.5 or 2. 5 --> 2.5 2,5 --> 2, 5 \enablemathpunctuation: 2.5 --> 2.5 2,5 --> 2,5 == This would be really nice == See Aditya and Marcin's mails, further up this thread. http://www.mail-archive.com/ntg-context@ntg.nl/msg66306.html http://www.mail-archive.com/ntg-context@ntg.nl/msg66307.html Spaces are significant. \setupmathematics[autopunctuation=no] % standard TeX behaviour 2,5 --> 2, 5 2, 5 --> 2, 5 2.5 --> 2.5 2. 5 --> 2.5 \setupmathematics[autopunctuation=yes] % user controls spacing without needing to type 2,\, 5 all the time % decimal-mark agnostic % but especially when the decimal mark is a comma 2,5 --> 2,5 2, 5 --> 2, 5 2.5 --> 2.5 2. 5 --> 2. 5 ___________________________________________________________________________________ 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 ___________________________________________________________________________________