From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72672 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \unit and Hertz, lux, and degrees/minutes/seconds Date: Thu, 24 Nov 2011 13:58:43 +0100 Message-ID: <4B99ACE8-7C48-4554-9655-89FD0C71F1CB@googlemail.com> References: , <4ECA1F49.6020309@wxs.nl> <746538930812A54DA07A768D52329470020C7D521E@exvic-mbx01.nexus.csiro.au> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322139558 4426 80.91.229.12 (24 Nov 2011 12:59:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 12:59:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 24 13:59:11 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTYtT-0002Tz-Nj for gctc-ntg-context-518@m.gmane.org; Thu, 24 Nov 2011 13:59:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91ACCCB1A0; Thu, 24 Nov 2011 13:59:10 +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 V+zCn00rERwk; Thu, 24 Nov 2011 13:59:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A8D6CB198; Thu, 24 Nov 2011 13:59:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7753CB198 for ; Thu, 24 Nov 2011 13:59:03 +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 LrbKsse+G3PU for ; Thu, 24 Nov 2011 13:58:48 +0100 (CET) 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 AE646CB158 for ; Thu, 24 Nov 2011 13:58:48 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAOCwlsM014898 for ; Thu, 24 Nov 2011 13:58:47 +0100 Original-Received: by bke17 with SMTP id 17so3657808bke.14 for ; Thu, 24 Nov 2011 04:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=iBsqLvszq6j9f2m8/AOqlvLzxqky7lmSOWYguSaWt04=; b=elNZLnU5IQ6qpaynDqw+clsvtF8tOj5/Oa+cH5wKxHVA+38lKC7XsxXqGVAQB2kRZU tnzTzE1EGHH+li+2byW5Hh27wr4RXWu5Qu+5lQdVWernQyp0Oeir/vzTnFlWctrjjZCp 91B3Xh32J6pxKlmINe0sXkqWyWzg8+eibdFjQ= Original-Received: by 10.204.155.152 with SMTP id s24mr29390817bkw.5.1322139527520; Thu, 24 Nov 2011 04:58:47 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFB205.dip.t-dialin.net. [87.175.178.5]) by mx.google.com with ESMTPS id z3sm1332782fan.8.2011.11.24.04.58.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Nov 2011 04:58:46 -0800 (PST) In-Reply-To: <746538930812A54DA07A768D52329470020C7D521E@exvic-mbx01.nexus.csiro.au> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 08G10WLsi - 2cda471e2d13 - 20111124 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:72672 Archived-At: Am 24.11.2011 um 13:36 schrieb : > On Monday, 21 November 2011 20:52, Hans Hagen wrote: > = >>> Over the weekend I've discovered a couple more problems with \unit so I= 'll >>> make up some test cases and desired output and post it in a few days. >> = >> ok, I'll wait for that then > = > Hans, all, > = > I attach a document (source and PDF) with some \unit test cases that don'= t currently work > (even with the most recent beta). It also has a number of suggestions for= improvement. > Some of this should be construed as personal opinion, but hopefully it is= n't too controversial. Nice summary, you should write a My Way about units once this things are fi= xed. A few comments from me: \type{1234}\tex{unit}\arg{m} should print equivalently to \tex{unit}\ar= g{1234m} and \tex{unit}\arg{1234 m}. (I have a lot of text that uses a \tex{unit} macro like that.) Maybe it=92s possible with MkIV to check if the text before the \unit comma= nd was a number but of the number is part of the unit them put in the command, such things are always tricky with TeX and it=92s better to force users to use p= roper input. Within \type{phys-dim.lua} all the units and all the prefixes seem to h= ave capitalised names; in fact, they should be all lowercase (even when they are named after some person). The exception is Celsius. I think this is a feature because Hans saves also a lowercase version of all keywords and you can use both as input. I wonder whether \tex{unit} should only parse and format units, and have another macro \tex{quan} or \tex{quantity} to handle number+unit combin= ations (obviously using \tex{digit} and \tex{unit}). Please don=92t suggest this, one of the nice features is that you don=92t h= ave to care which command you need but it would be nice to drop the old formatting options for \digits in the \unit command. Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________