From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82608 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \digits get \times instead of \cdot before exponent Date: Wed, 22 May 2013 10:29:26 +0200 Message-ID: <519C81E6.5020107@wxs.nl> References: <519B869C.2020507@wxs.nl> <201305212335.59985.romain.diss@yahoo.fr> 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 1369211395 20807 80.91.229.3 (22 May 2013 08:29:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 08:29:55 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed May 22 10:29:57 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 1Uf4Qh-0001Rd-CD for gctc-ntg-context-518@m.gmane.org; Wed, 22 May 2013 10:29:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EDA3A101E7; Wed, 22 May 2013 10:29:50 +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 LDizVyOCoL+N; Wed, 22 May 2013 10:29:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id F03E1101E4; Wed, 22 May 2013 10:29:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D191101E4 for ; Wed, 22 May 2013 10:29:47 +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 0gRv8aF+vxkA for ; Wed, 22 May 2013 10:29:42 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 7C68B101E0 for ; Wed, 22 May 2013 10:29:32 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4M8TVlY021771 for ; Wed, 22 May 2013 10:29:31 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 4581-1713362 for ; Wed, 22 May 2013 10:29:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <201305212335.59985.romain.diss@yahoo.fr> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06JCUtvnl - 04907fc91f56 - 20130522 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:82608 Archived-At: On 5/21/2013 11:35 PM, Romain Diss wrote: >> 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! needs a bit of thinking as when we start this route we get lots of new keywords (with the danger of introducing inconsistencies) so first we need to collect all potential candidates for such keys (e.g. using separator might be too generic ) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________