From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82614 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: Wed, 22 May 2013 14:31:38 +0200 Message-ID: <201305221431.41095.romain.diss@yahoo.fr> References: <201305212335.59985.romain.diss@yahoo.fr> <519C81E6.5020107@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369225928 15806 80.91.229.3 (22 May 2013 12:32:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 12:32:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 22 14:32:08 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 1Uf8D9-0000yQ-Lf for gctc-ntg-context-518@m.gmane.org; Wed, 22 May 2013 14:32:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42A6A101EC; Wed, 22 May 2013 14:32:07 +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 5XcTC6Uoj5j9; Wed, 22 May 2013 14:32:01 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AD37F101E4; Wed, 22 May 2013 14:32:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A09FA101E4 for ; Wed, 22 May 2013 14:31:59 +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 6kx7AxRiXRNf for ; Wed, 22 May 2013 14:31:54 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id D9553101E0 for ; Wed, 22 May 2013 14:31:44 +0200 (CEST) Original-Received: from nm13.bullet.mail.ird.yahoo.com (nm13.bullet.mail.ird.yahoo.com [77.238.189.66]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with SMTP id r4MCVhub015580 for ; Wed, 22 May 2013 14:31:43 +0200 Original-Received: from [77.238.189.236] by nm13.bullet.mail.ird.yahoo.com with NNFMP; 22 May 2013 12:31:42 -0000 Original-Received: from [46.228.39.109] by tm17.bullet.mail.ird.yahoo.com with NNFMP; 22 May 2013 12:31:42 -0000 Original-Received: from [127.0.0.1] by smtp146.mail.ir2.yahoo.com with NNFMP; 22 May 2013 12:31:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1369225902; bh=VeUNMeQlcg79UMvHOQMl1NwsCsU+vAoxuqVG1FEvvVM=; 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=T9b/ov/U48dCc0BsRsu6y30jitPW57qVDEDEJgof+Z8RiN0dEf5w7xgUJcP4Hnm5faybfLp1ZmYDxCdN7EmoSucu4NiuFvjhsI4qrWyvdQ5ZGgVLdemaz/gxKE9jRK/UJ1DyGVrqqiFLp6VTj2MDaNKAuXk9KFgDCO8z7VseeIE= X-Yahoo-Newman-Id: 779602.35172.bm@smtp146.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: vmdpKEcVM1kccAw6OkSTfCHTMAioSuBGAI0o4oGDd2xGnN0 nfT16h2q5Xoz82ANG7Lut1amz_kumaqnvbnTLhW2JgYrK37ZbsUM1Ez0ZaQJ Nq9eOUGRgN4l7tP4Z0y3zflt7R.Vt0P5rKXDLdeSvsGsXAltDu2ZmeNwBwXy OFJe9bUeGMjTx5zST0ApqyqhN1e1hF0IOMeL76oPylZ0X9oN.UYWXhPxiodT Q0w_Wc77_P0u1gHBbdQt62kkcdNf3G3Xo_wmISNk1Gke6lJWi4ATT3qcz68o 4MsZbgHpgqlpNvS5Ou6IgBFbkCToVjkEy12033B34TLGHW.3nQaHh.Pqol.5 fVFnMhy__16nICMy_VmPNht9kKBot3w0fleyN015redcMJI5k7ateULGSDcD fDv0psYB_qrrlB19jniWPswdLbGY- X-Yahoo-SMTP: S1hYNv6swBAmdDgiTrR1jsHHwRWtJLYt X-Rocket-Received: from nereid.localnet (romain.diss@89.226.19.105 with ) by smtp146.mail.ir2.yahoo.com with SMTP; 22 May 2013 12:31:42 +0000 UTC User-Agent: KMail/1.13.7 (Linux/3.8-1-amd64; KDE/4.8.4; x86_64; ; ) In-Reply-To: <519C81E6.5020107@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=77.238.189.66; 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: 0RJD0vHg2 - 9e78c32eae4c - 20130522 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:82614 Archived-At: Le mercredi 22 mai 2013, Hans Hagen a =E9crit : > 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=3D4, % -->\setdigitmode{4} > >> = > >> % (decimal period, thinspace between groups) > >> = > >> inputdecimalmark=3D{,}, % -->\setdigitorder{0} > >> signspace=3Dyes, % -->\setdigitsign{1}; '+ 1.4', not '+1.4' > >> times=3D\times, % or times=3D\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=3D{.}, % input 3.1415926535 > >> = > >> decimal=3D{,} > >> separator=3D\space, > >> groupsize=3D4, % output 3,1415 9265 45 > >> signspace=3D,] % +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 ) I don't know if it is possible and can not estimate how much work it = represents but maybe one can consider to merge the digit part of the \digit= s = and \unit code. The \unit command would then use the same code as the \digit one to format = the = digit part. Then, the \unit code would use a specific code to format the un= it = part. This would make it possible to configure the digit formatting with one uniq= ue = command for both \unit and \digit and another command would be used to = configure the formating of the unit part. -- = Romain Diss ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________