From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82600 Path: news.gmane.org!not-for-mail From: Romain Diss Newsgroups: gmane.comp.tex.context Subject: Re: \digits get \times instead of \cdot before exponent Date: Tue, 21 May 2013 23:35:57 +0200 Message-ID: <201305212335.59985.romain.diss@yahoo.fr> References: <519B869C.2020507@wxs.nl> 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 1369172187 21642 80.91.229.3 (21 May 2013 21:36:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 May 2013 21:36:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 21 23:36:28 2013 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 1UeuEN-0007hj-1f for gctc-ntg-context-518@m.gmane.org; Tue, 21 May 2013 23:36:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 647BC101EC; Tue, 21 May 2013 23:36:26 +0200 (CEST) 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 5hiRt0LN0Gxx; Tue, 21 May 2013 23:36:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D24E7101E4; Tue, 21 May 2013 23:36:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 349F4101E4 for ; Tue, 21 May 2013 23:36:19 +0200 (CEST) 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 o9-q2yTUxZZC for ; Tue, 21 May 2013 23:36:16 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 528C6101E0 for ; Tue, 21 May 2013 23:36:16 +0200 (CEST) Original-Received: from nm15.bullet.mail.ird.yahoo.com (nm15.bullet.mail.ird.yahoo.com [77.238.189.68]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with SMTP id r4LLa5lh017837 for ; Tue, 21 May 2013 23:36:15 +0200 Original-Received: from [77.238.189.233] by nm15.bullet.mail.ird.yahoo.com with NNFMP; 21 May 2013 21:36:05 -0000 Original-Received: from [46.228.39.103] by tm14.bullet.mail.ird.yahoo.com with NNFMP; 21 May 2013 21:36:05 -0000 Original-Received: from [127.0.0.1] by smtp140.mail.ir2.yahoo.com with NNFMP; 21 May 2013 21:36:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1369172165; bh=pUoeswJKBOEkpE6QW0nRUIDS2JdFEIKrDOyxnN6xjc0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id; b=3xJCi6ocArcwum3eZXF3HE4vNFDzlH6YN4KvWqR89HkFqHPm/tFMArKa6EJvugDRNeJ493QKvr3Zej4H9l35LeScaYvk8Bqa+M50twe+KUp3Bt4RiahaaCuicVjziEzmyGGr5wEP0fLpiWADKzIC9PpvkeH1poEzYNY04JUwIC0= X-Yahoo-Newman-Id: 180354.66018.bm@smtp140.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: LFYMssEVM1kszbk_JF4rBUH8Esi02.sG.UGgWBsuzVJ_NMh fPABf796EWyCahhEMG_roI1JhbE5WTc3n7REgLKdfEb.RVinkzwHYMKScZYM CRkPp0sp7gWfFGQ42r5Huj.uaUkTj8JR6bIko70V97Pm9TJXoeMnP7xzpGME BXlxWZvOCvCsfPPucdfJ37i8XjoCIWUH1c6uQFpfDGV4Gqq6TVh6G70BV7DB _5w1W3EIYGzqCwoZ0t.87LMGXhxZGSu3y5BdlxfpvWYFY1e4zWu.nVxcZLRa OSAFTbRH6tLzKCk9uqav_pz5o_VzuvrNuobFbAXnRoM8r3456_lyIAA1dXjk yB.qgYZ2tkVed3oXzpx_P5kbv8Yr00k81MQwI3mziUAfO9QgyRyTqzmg8UEe ZjJwUvjoCj6bBQk0VibY5MugE0lk- X-Yahoo-SMTP: S1hYNv6swBAmdDgiTrR1jsHHwRWtJLYt X-Rocket-Received: from nereid.localnet (romain.diss@89.226.19.105 with ) by smtp140.mail.ir2.yahoo.com with SMTP; 21 May 2013 21:36:05 +0000 UTC User-Agent: KMail/1.13.7 (Linux/3.8-1-amd64; KDE/4.8.4; x86_64; ; ) In-Reply-To: X-Bayes-Prob: 0.9347 (Score 4.2, tokens from: @@RPTN) X-CanIt-Geo: ip=77.238.189.68; country=IE; latitude=53.0000; longitude=-8.0000; http://maps.google.com/maps?q=53.0000,-8.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03JCJA5o2 - 1876f7a7eb62 - 20130521 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:82600 Archived-At: > We've already got \setdigitmode, \setdigitorder, and \setdigitspace; > it might make sense to create a \setupdigits to consolidate these > setups into one interface. Something like this: > > \setupdigits > [mode=4, % -->\setdigitmode{4} > % (decimal period, thinspace between groups) > inputdecimalmark={,}, % -->\setdigitorder{0} > signspace=yes, % -->\setdigitsign{1}; '+ 1.4', not '+1.4' > times=\times, % or times=\cdot > ] > +1 > P.s: I've been thinking I'd like to write more contexty interface that > doesn't use predefined modes, but lets you setup the decimal mark, > separator mark, the input decimal mark, etc. Something like this: > > \setupdigits > [inputdecimal={.}, % input 3.1415926535 > decimal={,} > separator=\space, > groupsize=4, % output 3,1415 9265 45 > signspace=,] % +3.14159... > > That could even tie into \setuplanguage to allow setting > language-specific defaults. Would anyone be interested in this? +1 again! -- Romain Diss ___________________________________________________________________________________ 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 ___________________________________________________________________________________